Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101015451
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-03-21 21:53:40

来源:赛迪网    作者:metallica

一、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

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 关闭声音,当然也可以把远程发的声音映射到本地来。

阅读(166) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~