yum方式远程安装gnome

yum方式远程安装gnome  

 以centos4.2为例子,
#yum grouplist
显示系统已经安装的组件,和可以安装的组件
如果系统安装之初采用最小化安装,没有安装xwindow,那么\r
#yum groupinstall "X Window System"
#yum groupinstall "GNOME Desktop Environment"

注意:为了能快速下载,可以设置/etc/yum.repos.d/CentOS-Base.repo 指向国内的站点http://mirror.be10.com
安装完X Window 修改
/etc/X11/xdm/Xaccess (去掉 #* #any host can get a login window前面的 #)\r
/etc/X11/gdm/gdm.conf (Enable=true,port=177)\r
/etc/inittab (第一行改为 id:5:initdefault: 最后一行改为 x:5:respawn:/usr/bin/gdm)\r

修改完毕,reboot os

#netstat -ln
检查 177 是否开放\r

如果没有177端口,那么可能是iptables设置有问题\r
可以用命令开放端口
#iptables -I INPUT -p udp -s 0/0 -d 0/0 –dport 177 -j ACCEPT
最彻底的办法是关闭iptables
/sbin/service iptables stop
或者
#chkconfig –level 5 iptables off
然后reboot os


ok现在应该可以用xmanager连接 linux的图形界面了
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章