Skip to content
Home » Operating System » Installing VNC on XUBUNTU

Installing VNC on XUBUNTU

This is a quick how to on installing VNC for XUbuntu on 12.04

Open a terminal

Type:
sudo bash, and press Enter

Enter your password when prompted and press Enter

Type:
apt-get install x11vnc vnc-java and press Enter

Press Y to install VNC

After the install completes type:
x11vnc -storepasswd and press Enter

Set your password and confirm it

Open your firewall now by typing:
iptables -A INPUT -i eth0 -p tcp -m tcp – -dport 5800 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp -m tcp – -dport 5900 -j ACCEPT
iptables -A INPUT -i ham0 -p tcp -m tcp – -dport 5800 -j ACCEPT
iptables -A INPUT -i ham0 -p tcp -m tcp – -dport 5900 -j ACCEPT

To start VNC type:
x11vnc -forever -httpdir /usr/share/vnc-java -httpport 5800

Now you can connect to the computer with the info listed on the screen