- 1). Install VNC Packages. Click "Applications," then "Accessories," and then "Terminal." Once the terminal appears, type the following command (without the quotation marks): "sudo apt-get install x11vnc vnc-java" --then press "Enter." Type the administrator password and hit "Enter" again. At the prompt "Do you want to continue [Y/n]?" type "y" and hit "Enter."
- 2). Set a VNC password. After the packages install, at the terminal prompt, type "x11vnc -storepasswd" (again, without the quotation marks) and hit "Enter." At the prompt "Enter VNC password:" type a password for VNC. At the "Verify password" prompt, re-type the password. Now, at the "Write password to /home/your-user-account-name/.vnc/passwd? [y]/n" prompt, type "y" and hit "Enter."
- 3). Open firewall ports 5800 and 5900. Consult your router vendor's website for specific information on how to open these ports.
- 4). Test VNC Configuration. Click "Applications," then "Accessories," and then "Terminal." At the prompt, without the quotation marks, type "x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800" and hit "Enter." VNC is now installed and configured for Linux. To view the Linux desktop on a browser, open a web browser, type "http://computername:5800/" and then hit "Enter." To view through the terminal, type "vncviewer computername:5800" at the prompt and then hit "Enter." The VNC password prompt appears. Type the password created in Step 2 and then click "OK." The Linux desktop appears in a window.
SHARE