Linux和Window系统远程桌面相互访问方法一、Windows 访问Linux(VNC,X) 1、vnc方式:
(1).确认安装包 #rpm -qa |grep vnc vnc-4.0-0.beta4.1.4 vnc-server-4.0-0.beta4.1.4
(2).启动并初始Vncserver登陆密码 #vncserver You will require a password to access your desktops.
Password: Verify:
New 'itrus-Test:6 (root)' desktop is itrus-Test:6 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/itrus-Test:6.log
(3).在windows启动vncviewer
vncserver中填: itrus-Test:6
2、X方式:
(1). vi /etc/services # 确保xdmcp端口打开
xdmcp 177/tcp # X Display Mgr. Control Proto xdmcp 177/udp
(2). vi /etc/X11/gdm/gdm.conf # 启用xdmcp服务
[xdmcp]
将Enable=false或Enable=0
Enable=true或Enable=1
(3).重起机器生效,用X-win32或X-manger登陆即可.
二、Linux远程访问Windows(rdesktop)
1.下载rdesktop
http://rpmfind.net/linux/rpm2html/search.php?query=rdesktop&submit=Search+...&system=&arch=
2.连接windows机器:
#rdesktop -f -a 16 -u test -p passwd 192.168.20.253
更多参数:
-f 全屏 -a 16位色 注意:退出选择注销,而不是关机 -u xxxxxx 登录用户,可选 -p xxxxxx 登录密码,可选 -r clipboard:PRIMARYCLIPBOARD 重要,剪贴板可以与远程桌面交互 -a 16 颜色,可选,不过最高就是16位 -z 压缩,可选 -g 1024x768 分辨率,可选,缺省是一种比当前本地桌面低的分辨率 -P 缓冲,可选 -r disk:wj=/home/magicgod 映射虚拟盘,可选,会在远程机器的网上邻居里虚拟出一个映射盘,功能很强,甚至可以是软盘或光盘 -r sound:off 关闭声音,当然也可以把远程发的声音映射到本地来。
(责任编辑:云子)
上一篇:新手学堂:在Solaris下使用USB存储设备 下一篇:Solaris Linux 9下Vsftpd的配置方法介绍 更多相关文章
|
推荐文章
精彩文章
|