Chinaunix首页 | 论坛 | 博客
  • 博客访问: 208054
  • 博文数量: 53
  • 博客积分: 2059
  • 博客等级: 大尉
  • 技术积分: 577
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-30 03:03
文章分类
文章存档

2012年(4)

2011年(19)

2010年(30)

分类:

2010-05-29 00:13:41

 
说明:以前在学校的时候,为了参加中科红旗的竞赛,配置了一个VNC服务,以后由于工作也没有太多的接触过,最近看书的时候,看到了一些相关的内容,所以想总结一下,算是个小结吧,但是,我相信真正的高手或者习惯了命令行的大牛市布喜欢图形化界面的,但是有些图形化工具的确很好,比如说webmin.
 
VNC服务的配置
1,启动  一般的安装系统的时候,即使是最小化安装,系统也会把VNC服务给安装上的,所以直接启动就可以了。
[root@test2 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'test2:1 (root)' desktop is test2:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test2:1.log
2,修改配置文件
#!/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" &
#twm &
3,打开防火墙 ,或者关闭防火墙
service iptables stop       
4,重新配置
[root@test2 ~]# vncserver -kill :1
.vncserver
5,也可以访问 但是需要java的支持
二。webadmin
1,下载webmin  到官网下载最新的版本 
2,下载rpm包安装
 rpm -ivh webmin-1.510-1.noarch.rpm
warning: webmin-1.510-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 11f63c51
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to
as root with your root password.
3,登陆 

webmin的功能真的很强大,我也在熟悉,挺好的 推荐大家用这个图形化界面。
阅读(447) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~