Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### BEGIN INIT INFO
- # Provides: vncboot
- # Required-Start:
- # Required-Stop:
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Start VNC Server at boot time
- # Description: Start VNC Server at boot time.
- ### END INIT INFO
- #! /bin/sh
- # /etc/init.d/vncboot
- USER=user
- HOME=/home/user
- export USER HOME
- case "$1" in
- start)
- echo "Starting VNC Server"
- #Insert your favoured settings for a VNC session
- /usr/bin/vncserver :0 -alwaysshared -geometry 1280x800 -depth 24 -pixelformat rgb565
- ;;
- stop)
- echo "Stopping VNC Server"
- /usr/bin/vncserver -kill :0
- ;;
- *)
- echo "Usage: /etc/init.d/vncboot {start|stop}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement