Advertisement
stanto

vncboot

May 4th, 2014
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ### BEGIN INIT INFO
  2. # Provides: vncboot
  3. # Required-Start:
  4. # Required-Stop:
  5. # Default-Start: 2 3 4 5
  6. # Default-Stop: 0 1 6
  7. # Short-Description: Start VNC Server at boot time
  8. # Description: Start VNC Server at boot time.
  9. ### END INIT INFO
  10.  
  11. #! /bin/sh
  12. # /etc/init.d/vncboot
  13.  
  14. USER=user
  15. HOME=/home/user
  16.  
  17. export USER HOME
  18.  
  19. case "$1" in
  20. start)
  21. echo "Starting VNC Server"
  22. #Insert your favoured settings for a VNC session
  23. /usr/bin/vncserver :0 -alwaysshared -geometry 1280x800 -depth 24 -pixelformat rgb565
  24. ;;
  25.  
  26. stop)
  27. echo "Stopping VNC Server"
  28. /usr/bin/vncserver -kill :0
  29. ;;
  30.  
  31. *)
  32. echo "Usage: /etc/init.d/vncboot {start|stop}"
  33. exit 1
  34. ;;
  35. esac
  36.  
  37. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement