首页 | DV动态 | 数码产品 | 视频采编 | 网站建设 |
【收藏DV】
  最近3月排行
·赤马劫
·985、211、双一流
·许小年:碎片化信息让人变得无知,要少看手机多读书
·上了大学也没体面工作,我们是否还要上大学- 附一组数据
·许小年:浅析日本失去的30年——兼评“资产负债表衰退”
·高中英语-单词表
·常用网管软件下载,持续更新中...
在CentOS 4.4 下安装配置VNC
2007/9/27 14:10:09
 

分类:Unix/Linux
1. 检查vnc客户端和服务器是否已经安装在你的系统中:
[gavin@centos ~]$ rpm -q vnc vnc-server
package vnc is not installed
vnc-server-4.0-8.1
 
2. 将用户名称加入到配置文件:
(注:这里的“用户名”是指linux系统用户的名称)
[gavin@centos ~]# vi /etc/sysconfig/vncservers
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.
# VNCSERVERS="1:myusername"
VNCSERVERS="1:gavin"
# VNCSERVERARGS[1]="-geometry 800x600"
 VNCSERVERARGS[1]="-geometry 1024x768"
 
3. 设置用户gavin的密码
[gavin@centos ~]$ vncpasswd
Password:
Verify:
 
4. 启动VNC服务
[gavin@centos ~]# /sbin/service vncserver start
Starting VNC server: 1:gavin                [  OK  ] 
 
5.
[gavin@centos ~]$ cd ~/.vnc/
[gavin@centos .vnc]$ vi xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
 unset SESSION_MANAGER
 exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session & #set starting GNOME desktop
#startkde $   #kde desktop
#twm &      #Text interface

 
6. 重启vncserver
[gavin@centos ~]# /sbin/service vncserver restart
Shutting down VNC server: 1:gavin                          [  OK  ]
Starting VNC server: 1:gavin                [  OK  ] 
 
7. Windows登陆到VNC Server
启动:vnc-E4_2_8-x86_win32_viewer.exe
输入:
server:192.168.1.13:1 (这里,我的VNC服务器在192.168.1.13上,用的是Display1(对应gavin帐号))
Encryption:Let Server Choose(Default)
 
OK
 
注:红色标注部分是更改的配置。
 
文章参考:
1.VNCserver在Fedora上配置过程
http://bbs.chinaunix.net/viewthread.php?tid=368552
 
2.Linux下VNC远程控制的使用方法
[u]http://my.donews.com/ecco2005/2006/11/26/bthcyjqysqkudbbwssspcwoieyfldlqffyie/[/u] (DVOL本文转自:中国DV传媒 http://www.dvol.cn)

欢迎关注微信公众账号:手机烟台(mYantai)

 

  上一篇:Windows Server 2003多种版本区别
  下一篇:最有效的投放广告 网络广告计价的八种方式
      更多...
::打印本页 ::      ::关闭窗口::


版权所有© 数码在线网站 DV OnLine©  鲁ICP备12016322号-1