Ubuntu 9.04 多用户远程桌面实现方案

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值