VNC安装配置


VNC安装配置

Linux上安装某个软件时,经常需要启动图形,有时候Xmanager,xshell,xstart等工具无法正常启动图形,可以考虑通过VNC启动图形;

-----------
---Linux---
-----------
一:安装VNC Server端

---1 Server端需要的VNC安装包
[root@chen vnc]# ll -rth
total 2.2M
-rw-r--r-- 1 root root 2.1M Feb  3  2009 vnc-server-4.1.2-14.el5_3.1.x86_64.rpm
-rw-r--r-- 1 root root 159K Feb  3  2009 vnc-4.1.2-14.el5_3.1.x86_64.rpm

[root@chen vnc]# rpm -ivh vnc-* --nodeps --force
warning: vnc-4.1.2-14.el5_3.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY
Preparing...                ########################################### [100%]
   1:vnc-server             ########################################### [ 50%]
   2:vnc                    ########################################### [100%]

---2 生成密码
[root@chen ~]# vncserver 

You will require a password to access your desktops.

Password:123456
Verify:123456

New 'chen:1 (root)' desktop is chen:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/chen:1.log

---3 配置xstartup
[root@chen ~]# vi .vnc/xstartup 
......
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &

---4 配置vncservers
[root@chen ~]# vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

---5 重启vncserver
[root@chen ~]# /etc/init.d/vncserver start
Starting VNC server: 2:root 
New 'chen:2 (root)' desktop is chen:2

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/chen:2.log


                                                           [  OK  ]

-------------
---Windows---
-------------
二:安装VNC Viewer端
D:\cjc\soft\vnc\VNC-Viewer-6.17.1113-Windows.exe
...下一步
...下一步
......
安装完成后登录:   
192.168.208.200:2
password:123456


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29785807/viewspace-2153107/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29785807/viewspace-2153107/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值