落脚点

当前位置:
  • 首页 »
  • Linux
  • » ubuntu7.04下配置vnc4server远程桌面(转)

ubuntu7.04下配置vnc4server远程桌面(转)

2007-09-10无人留言

vnc4server配置过程:
1. 配置远程控制权限
打开 系统->系统管理->登陆窗口
点击<远程>页面,在模式中选择”与本地相同”
点击”配置XDMCP”按钮,将”遵从非直接请求”的选中状态取消

编辑 /etc/X11/gdm/gdm.conf

  1. sudo gedit /etc/X11/gdm/gdm.conf

找到[xdmcp]节,将enable改为true

  1. Enable=True

找到行,# RemoteGreeter=/usr/lib/gdm/gdmlogin 去掉注释

  1. RemoteGreeter=/usr/lib/gdm/gdmlogin


2. 安装所需软件

  1. sudo apt-get install vnc4server xinetd

3. 设置VNC口令

  1. sudo vncpasswd /root/.vncpasswd

4. 在xinetd中增加VNC服务

  1. sudo vi /etc/xinetd.d/Xvnc

Xvnc内容如下:

  1. service Xvnc
  2.   {
  3.       type = UNLISTED
  4.       disable = no
  5.       socket_type = stream
  6.       protocol = tcp
  7.       wait = yes
  8.       user = root
  9.     server = /usr/bin/Xvnc
  10.     server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
  11.     port = 5901
  12. }

5. 启动xinetd服务

  1. sudo /etc/init.d/xinetd stop
  2.   sudo killall Xvnc
  3.   sudo /etc/init.d/xinetd start

vnc客户端配置:
客户端系统可以使用win XP,vnc客户端用的是UltraVNC Viewer。
启动UltraVNC Viewer后,在vnserver中输入刚才配置nvc4server的主机ip和vncserver端口号(如 192.168.3.11:5901),端口号在/etc/xinetd.d/Xvnc文件中设置(port = 5901)。输入用户,口令,就可以从远程登录ubuntu7.04桌面了。

类别:
标签:,
如本站引用的文字、图片、其它媒体等侵犯了您的权益,请及时告知,我们将会在第一时间删除。

发表评论:

姓名:

邮件:

网址:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Copyright © 2009-2010 落脚点 版权所有
当前用户: validated XHTML 1.0 - CSS 3 - Section 508 - PR