top of page

Install x11 VNC ubuntu/kubuntu

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

Recent Posts

See All
Install Surfshark CLI

Step-by-step guide to automatically set up Surfshark VPN on Ubuntu (for both CLI and autostart at boot): sudo apt update sudo apt install snapd sudo snap install surfshark https://chatgpt.com/share/

 
 
 

Comments


Contact Me

Tel: 678-642-8051

cspeed@jcsassoc.com

  • Google+ Long Shadow
  • LinkedIn Long Shadow
  • Facebook Social Icon
  • Twitter Long Shadow

© 2005 by Christopher Speed

Your details were sent successfully!

bottom of page