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
Harbor Install & Setup

1. Go to the Harbor releases page & Download either the online or offline installer for the version you want to install. 2. Use tar to...

 
 
 

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