Advertisement
Guest User

vnc

a guest
Nov 27th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2. # /etc/init.d/tightvncserver
  3. VNCUSER='pi'
  4. case "$1" in
  5. start)
  6. su $VNCUSER -c '/usr/bin/tightvncserver :1'
  7. echo "Starting TightVNC Server for $VNCUSER "
  8. ;;
  9. stop)
  10. pkill Xtightvnc
  11. echo "TightVNC Server stopped"
  12. ;;
  13. *)
  14. echo "Usage: /etc/init.d/tightvncserver {start|stop}"
  15. exit 1
  16. ;;
  17. esac
  18. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement