当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 用VNC访问远端Linux桌面 详细步骤解析

Unix/Linux
小型机cpu类型
bind9的安装
如何查看服务器上有多少个CPU
wu-ftp 设置匿名服务器(转载)
Solaris硬盘分区学习笔记(转载)
如何在solaris中添加删除磁盘和分区 (转载)
共享光驱怎么做?
改solaris 8的ip地址的问题
加路径的问题 ;(
超级终端如何发送STOP+A?
如何对某个端口限制IP访问 比如 针对1521端口 只允许某个IP访问
如何让root用户远程telnet?
/usr/lib/ld.so.1损坏或丢失
[分享]Sun X3151A 光纤网卡故障排除实例
[分享]Solaris 2.6+Ultra5内置扬声器故障诊断实例
在VMWARE上装Sun Cluster 3.1 Update 3(ZT )
Windows客户端使用UNIX打印服务器上共享打印机的方法
如何改网卡IP地址
[color=darkblue]CacheFS笔记[/color]
在SUN工作站上安装RTL8139网卡

Unix/Linux 中的 用VNC访问远端Linux桌面 详细步骤解析


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 95 ::
收藏到网摘: n/a

下面详细介绍如何使用VNC登陆远端Linux桌面

步骤1:安装

下载Linux版本VNC软件和Windows版本VNC,分别进行安装,windows下的安装不用

介绍了,这里着重介绍Linux下VNC软件的安装,

1)、[root@gliethttp root]#tar zxvf vnc-4.0-x86_linux.tar.gz

vnc-4.0-x86_linux/

vnc-4.0-x86_linux/README

vnc-4.0-x86_linux/vncinstall

vnc-4.0-x86_linux/Xvnc

vnc-4.0-x86_linux/Xvnc.man

vnc-4.0-x86_linux/vncviewer

vnc-4.0-x86_linux/vncviewer.man

vnc-4.0-x86_linux/vncpasswd

vnc-4.0-x86_linux/vncpasswd.man

vnc-4.0-x86_linux/vncconfig

vnc-4.0-x86_linux/vncconfig.man

vnc-4.0-x86_linux/vncserver

vnc-4.0-x86_linux/vncserver.man

vnc-4.0-x86_linux/x0vncserver

vnc-4.0-x86_linux/x0vncserver.man

vnc-4.0-x86_linux/vnc.so

vnc-4.0-x86_linux/LICENCE.TXT

vnc-4.0-x86_linux/java/

vnc-4.0-x86_linux/java/index.vnc

vnc-4.0-x86_linux/java/logo150x150.gif

vnc-4.0-x86_linux/java/vncviewer.jar

2)、[root@gliethttp root]#cd vnc-4.0-x86_linux

[root@gliethttp root]#./vncinstall /usr/local/bin

Can't install manual pages to /usr/local/man/man1

Copying Xvnc to /usr/local/bin

Copying vncviewer to /usr/local/bin

Copying vncpasswd to /usr/local/bin

Copying vncconfig to /usr/local/bin

Copying vncserver to /usr/local/bin

Copying x0vncserver to /usr/local/bin

[root@gliethttp root]#mkdir -p /usr/local/vnc/classes

[root@gliethttp root]#cp java/* /usr/local/vnc/classes

3)、好了安装完毕,接下来就是配置了

步骤2:配置

1、配置Linux主机

1)、[root@gliethttp root]#vncserver :1 //启动1号连接服务,会自动生成~/.vnc

2)、[root@gliethttp root]#vim ~/.vnc/xstartup

删除xstartup中所有内容,加入startkde&(KDE桌面) 或 gnome-session&(GNOME桌面)

startkde& #表示远程客户端将登陆Linux的KDE桌面(显示效果不太好)

gnome-session& #表示远程客户端将登陆Linux的GNOME桌面

3)、[root@gliethttp root]#vncserver -kill :1 //关闭1号服务

[root@gliethttp root]#vncserver :1 //重启1号服务,使2)设置生效

4)、[root@gliethttp root]#vncpasswd //设置登陆密码

2、使用windows下VNC Viewerv.exe登陆远端Linux主机

Server:192.168.0.250:1正确输入密码后即可正常登陆远端Linux桌面

3、使用IE浏览器登陆远端Linux主机

在IE浏览器中输入vncserver地址:http: //192.168.0.250:5801/在IE浏览器中会出现一个类似vncviewer的登陆界面,确定后,提示输入用户名和密码,输入后就进入了远端Linux桌面(不过要比采用vncviewer登陆的显示效果糟糕的多)