start vncserver at boot – ubuntu 14.04
Start vncserver at boot – ubuntu 14.04
Date Posted: 05-10-2017
Write a sample script startvnc.sh and update the code mentioned below.
vi /root/startvnc.sh
#! /bin/bash USER=root HOME=/root export USER HOME cd /root /usr/bin/vncserver :1
Make this script executable
chmod +x /root/startvnc.sh
Update rc.local file with this script
vi /etc/rc.local
Find ‘exit 0
‘ and paste these codes above the line
# Start vncserver /usr/bin/startvnc.sh
You can verify the server just be rebooting. You should be able to access vncserver from vnc client
SERVER_IP:1
Thats it.