Install x11 VNC ubuntu/kubuntu
- Chris Speed
- May 1, 2017
- 1 min read
Install the required x11vnc package in ubuntu.
sudo apt-get install -y x11vnc
If headless server (EC2 aws Instance) install gnome packages.
sudo apt-get install gnome-core
Create a password for a user.
sudo x11vnc -storepasswd
Output:
Enter VNC Password: Verify password: Write password to /home/user/.vnc/passwd? [y]/n y Password written to: /home/user/.vnc/passwd
To run the vnc server on every start automatically.
sudo nano /etc/rc.local
Copy the below line to start vnc session automatically with system startup, paste it the line before the exit 0.
sudo x11vnc -xkb -noxrecord -forever -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw &
----------------------------------------------------------------------------------------------------------------------------------
Start up x11 vnc when system reboots
Add the following command inside a .sh file (vnc_startup.sh) and reference the .sh file in the autostart section of the startup and shutdown system setting.
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/plex/.vnc/passwd -rfbport 5900 -shared
Comments