linux远程桌面[vnc]

来源:互联网 发布:火狐 chrome 知乎 编辑:程序博客网 时间:2024/05/17 22:25
linux和linux远程桌面没有试过我把linux和windows之间的vnc配置过程写给你看吧
1.在linux下安装vnc
[root@www ~]#rpm -ivh vnc-4.1.2-14.el5
[root@www ~]#rpm -ivh vnc-server-4.1.2-14.el5
2.写入:
[root@www ~]#vncserver
出现:
New linux.com:1 (root) desktop is South.redflag-linux.com:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/South.redflag-linux.com:1.log
3.编辑文件:
[root@www ~]#vi /root/.vnc/xstsrtup
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
将上面两行的#号去掉,使其生效
twm & 改为gnome - session &
4.重启VNC
[root@www ~]#service vncserver restart
5.杀掉以前的连接号:(****此步骤相当重要*****)
[root@www ~]#vncserver -kill linux.com:连接号 (注:连接号第一个为1,第二个为2)
6启动vnc连接号:
[root@www ~]#vncserver
这样将会得到一个连接号1
7.在windows下安装安装vnc viewer
8.运行vnc viewer,输入ip+连接号
例如:192.168.2.98:1
原创粉丝点击