h8rt3rmin8r

crouton server config

Apr 7th, 2019
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh -e
  2. #
  3. # /etc/rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13.  
  14. # Auto-start Apache2 on crouton boot
  15. # Reference: https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton
  16. /etc/init.d/apache2 start
  17.  
  18. # Allow all inbound traffic to reach crouton
  19. # Reference: https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton
  20. /sbin/iptables -P INPUT ACCEPT
  21.  
  22. # Enable SSH server on crouton boot
  23. # Reference: https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton
  24. mkdir -p -m0755 /var/run/sshd
  25. /usr/sbin/sshd
  26.  
  27. exit 0
RAW Paste Data