配置VNC 使window下vnc访问linux的桌面
时间:2010-10-20 来源:bitmilong
1. Fedora Core 9下安装vnc
[root@localhost ~]# yum install vnc*
2. 启动vnc server
[root@localhost ~]# vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /root/.Xauthority New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost.localdomain:1.log
3. 编辑配置文件
[root@localhost ~]# vi .vnc/xstartup
只要两行就可以,其余注释掉 unset SESSION_MANAGER gnome-session&
4. 然后运行 vncserver,提示中 new "服务器名:1(用户名)" desktop is 服务器名:,服务器名后面的编号是在VNCviewer访问时用到
这里需要下载一个安装在Windows上的VNC客户端:http://www.realvnc.com/download.html
例如
window访问Linux
192.168.0.1:5901
linux访问linux
192.168.0.1:1
5. 关闭vncserver $ vncserver -kill:1
相关阅读 更多 +