Configuring VNC and Windows systems for remote connections on Ubuntu

Source: Internet
Author: User

By configuring the server as VNC server, you can have other hosts log on to the server graphically.

One, the configuration of VNC server under Ubuntu is simple, the following methods:

Server side:

1. First install VNC service program:

The code is as follows:

$ sudo apt-get install Vnc4-common vnc4server

2, to the current user set VNC login password:

The code is as follows:

$ vncpasswd

3, modify VNC default settings, so that the startup run Gnome as X desktop (if not set, VNC will use TWM, you can try, I believe you will not be accustomed to):

The code is as follows:

$ vncserver:1

$ vncserver-kill:1

Note: Inside the ": 1" represents the display number, the customer login must write the same display number to log in (see the back of the client section).

Modify the ~/.vnc/xstartup file and recommend copying the Xsession profile in the system:

The code is as follows:

$ cp/etc/x11/xsession ~/.vnc/xstartup

Then start VNC SERVER again:

The code is as follows:

$ vncserver-geometry 1280x800:1

Client:

1, install VNC client program:

The code is as follows:

$ sudo apt-get install Vnc4-common xvnc4viewer

2, then you are logged in via Terminal Server client: Applications-> Internet-> Terminal Server client; Computer is: Server ip:display#, for example: 192.168.10.36:1;protocol selection: VNC.

or the command line:

The code is as follows:

$ vncviewer 192.168.10.36:1

Second, set open

After installation, in the/usr/share/applications directory, open the "Desktop sharing (Desktop Sharing)" option, further set the desktop Sharing option to open the first sharing, on whether to allow other users to control the remote connection requires local confirmation, Remote-connected passwords and other items are set up according to your needs. If you need to access this Ubuntu computer from a public network or an external network, you need to turn on the "Automatically configure UPnP router open and forward port project." General recommendations are as follows:

If the setting is over 13.04, but Ubuntu 14.04 is not connected properly, it will show security level issues and we need to continue configuring.

1, installation dconf-editor;

Copy Code

The code is as follows:

sudo apt-get install Dconf-editor

2, need to adjust through the dconf-editor, open the terminal (shortcut key: ctrl+alt+t) input command: Dconf-editor open, and then access the following configuration path org > Gnome > Desktop > remote-access;

3, uncheck the "prompt-enabled" and "Requlre-encryption" properties.

Third, start the connection

Back in Windows, use the Client Access Tool VNC Viewer to enter the IP address of Ubuntu, as shown in the following illustration:

Click Connect Connection, and then enter the set access password is OK, the graphical interface will appear.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.