Advertisement
Guest User

Untitled

a guest
Nov 1st, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. login as: pi
  2. pi@192.168.1.124's password:
  3.  
  4. The programs included with the Debian GNU/Linux system are free software;
  5. the exact distribution terms for each program are described in the
  6. individual files in /usr/share/doc/*/copyright.
  7.  
  8. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  9. permitted by applicable law.
  10. Last login: Sun Nov 1 10:44:48 2015 from jackiechan
  11. pi@raspberrypi ~ $ cat /etc/init.d/tightvncserver
  12. #!/bin/sh
  13. ### BEGIN INIT INFO
  14. # Provides: tightvncserver
  15. # Required-Start: $local_fs
  16. # Required-Stop: $local_fs
  17. # Default-Start: 2 3 4 5
  18. # Default-Stop: 0 1 6
  19. # Short-Description: Start/stop tightvncserver
  20. ### END INIT INFO
  21.  
  22. # More details see:
  23. # http://www.penguintutor.com/linux/tightvnc
  24.  
  25. ### Customize this entry
  26. # Set the USER variable to the name of the user to start tightvncserver under
  27. export USER='pi'
  28. ### End customization required
  29.  
  30. eval cd ~$USER
  31.  
  32. case "$1" in
  33. start)
  34. su $USER -c '/usr/bin/tightvncserver -geometry 1024x900 :1'
  35. echo "Starting TightVNC server for $USER "
  36. ;;
  37. stop)
  38. pkill Xtightvnc
  39. echo "Tightvncserver stopped"
  40. ;;
  41. *)
  42. echo "Usage: /etc/init.d/tightvncserver {start|stop}"
  43. exit 1
  44. ;;
  45. esac
  46. exit 0
  47.  
  48. pi@raspberrypi ~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement