How to Configure VNC for Linux

How to Configure VNC for Linux thumbnail
Access Linux remotely with VNC.

Virtual Network Computing (VNC) provides remote desktop connection abilities to and from Linux and any other platform. In a typical VNC setup, the computer providing remote connection acts as the "server," transmitting desktop, keyboard and mouse input to the remotely-connecting computer that's acting as the "client." As an open-source program released under the GNU General Public License, VNC can be installed free of charge and configured to work with different distributions of Linux, like Ubuntu.

Things You'll Need

  • Ubuntu Linux operating system
  • Router
  • VNC
Show More

Instructions

    • 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.

Tips & Warnings

  • Consult the FAQ section of RealVNC for more information and downloads applicable to your specific operating system, to view the Linux desktop over the Internet through platforms other than Linux.

  • Opening firewall ports is a security risk. Consult your router vendor's documentation for more information.

Related Searches:

References

  • Photo Credit atmosphericr eflections in a discarded computer monitor image by Steve Johnson from Fotolia.com

Comments

You May Also Like

  • How to Configure a VNC Server in Linux

    Controlling your computer remotely is just cool. Linux users have long used SSH to control their computers from afar using the command...

  • How to Configure a Linux Terminal Server Client

    The Terminal Server Client is a graphical application for the Gnome desktop that allows you to connect to remote computers. It is...

  • How to Run VNC in Linux

    VNC, also known as Virtual Network Computing, is an open, cross-platform protocol that allows you to access a remote computer as if...

  • How to Install VNC 4_1_2

    Real VNC (virtual network computing) allows users to remotely control another computer. This is useful if you are working from home or...

  • How to Set Up VNC

    VNC is an application used to remote control a machine on your network. The application runs in the background of a server...

  • How to Use VNC Server on Linux

    AT&T designed the virtual network computer, or VNC, for the purposes of administrating a machine without having to have the physical console...

  • How to Connect to Suse in Linux Remote Desktop

    A remote desktop allows you to connect to the graphical environment of your computer from a remote computer. The Linux operating system,...

  • How to Install a VNC Server on Ubuntu 8.10

    Ubuntu 8.10 has a remote desktop application installed by default. To use the remote desktop, you must be logged in to a...

Related Ads

Featured