Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login as: pi
- pi@192.168.1.124's password:
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Sun Nov 1 10:44:48 2015 from jackiechan
- pi@raspberrypi ~ $ cat /etc/init.d/tightvncserver
- #!/bin/sh
- ### BEGIN INIT INFO
- # Provides: tightvncserver
- # Required-Start: $local_fs
- # Required-Stop: $local_fs
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Start/stop tightvncserver
- ### END INIT INFO
- # More details see:
- # http://www.penguintutor.com/linux/tightvnc
- ### Customize this entry
- # Set the USER variable to the name of the user to start tightvncserver under
- export USER='pi'
- ### End customization required
- eval cd ~$USER
- case "$1" in
- start)
- su $USER -c '/usr/bin/tightvncserver -geometry 1024x900 :1'
- echo "Starting TightVNC server for $USER "
- ;;
- stop)
- pkill Xtightvnc
- echo "Tightvncserver stopped"
- ;;
- *)
- echo "Usage: /etc/init.d/tightvncserver {start|stop}"
- exit 1
- ;;
- esac
- exit 0
- pi@raspberrypi ~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement