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.