http://forum.ubuntu.com.cn/viewtopic.php?f=54&t=222673&start=0
1、客户端:
sudo apt-get install xtightvncviewer
1.2、(服务器端安装成功后的步骤)桌面-》应用程序-》Internet-》终端服务客户端(输入192.168.1.116:1,vnc协议,连接即可)
1.3、(服务器端安装成功后的步骤)远程控制的时候可能出现键盘按键识别错乱的问题,确保客户端和服务端的键盘方案都是中国即可。
2、服务器端,参考:http://ubuntuforums.org/showthread.php?p=7831320
内容如下:
Multisession remote desktop (TightVNC) on ubuntu 9.04 Jaunty Jackalope
After three days of frustration... I found a simple and good solution (this works 100 % on fresh instalation):
1.) install xinetd, tight vncserver & viewer:
Code:
sudo apt-get update
sudo apt-get install xinetd
sudo apt-get install tightvncserver
sudo apt-get install xtightvncviewer
------------------
2.) Start vncserver and enter vnc password:
Code:
sudo vncserver :1
------------------
3.) Stop vncserver:
Code:
sudo vncserver -kill :1
------------------
4.) Edit GDM.conf:
Code:
sudo gedit /etc/gdm/gdm.conf
...make sure these two lines in [XDMCP] section are uncommented and looks like this:
Code:
[XDMCP]
Enabled=true
Port=177
-------------------
5.) Add vnc to services list:
Code:
sudo gedit /etc/services
Add this line at the end of file:
Code:
vnc 5901/tcp # Xvnc
-------------------
6.) Add vnc service to xinetd:
Code:
sudo gedit /etc/xinetd.d/vnc
...Add following lines:
Code:
# description: The vnc server provides remote desktop connections
#
service vnc
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :1 -inetd -once -query localhost -depth 24 -geometry 1024x768 -ac
}
-------------------
7.) Reboot server:
Code:
sudo reboot
-------------------
At last! Remote desktop works! Try login from other computer with any VNC client (I'm using RealVNC VNC viewer free edition on MS Windows Vista) and you'l get GDM login screen. For example, if your ubuntu server is at 192.168.0.8 enter this into vnc viewer: 192.168.0.8:5901