????#??????Щ????????????(??????????????????
????yum grouplist
????yum groupinstall 'X Window System' -y
????#???GNOME???滷??
????yum groupinstall 'GNOME Desktop Environment' -y
????#???KDE???滷??
????yum groupinstall 'KDE (K Desktop Environment)'
????ж??
????ж??GNOME???滷??
????yum groupremove GNOME Desktop Environment'
????ж??KDE???滷??
????yum groupremove 'K Desktop Environment'
???????X??ν???????
????1??startx
????2????????????????????/etc/inittab
????id:3:initdefault:      ------>      id:5:initdefault:
????3??init 5
????--------------------------------------------------------------???????????---------------------------------------------------------
???????????????????
???????x_window????????KDE????????startx?????????????????????????????
????1??
????xhost: unable to open display 0
?????????????????????????鵽?????????
????********************************
???????????????????????????????root?????:
????[root] export DISPLAY=:0 ??export DISPLAY=192.168.1.1:0.0??export DISPLAY=localhost:10.0
???????
????[root] xhost +
???????????????????????????????У???????X11?????????????????????????3?????????С?
????[root] rpm -qa |grep X11
????libX11-common-1.5.0-4.el6.noarch
????libX11-1.5.0-4.el6.x86_64
????libX11-devel-1.5.0-4.el6.x86_64
????********************************
????2????????????rpm -qa |grep X11???????????????libX11-devel-1.5.0-4.el6.x86_64
????????yum install libX11-devel???????????????????????????No more mirrors to try.??
?????????????鵽?????£?
????********************************
????yum clean all
????yum makecache
????????
????********************************
????3??????yum clean all ??????
????yum????????????······
????[root@devpubmstr ~]# yum makecache
????Loaded plugins: fastestmirror?? security
????Loading mirror speeds from cached hostfile
????Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
????14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
????Error: Cannot find a valid baseurl for repo: base
?????????????dns?????????????????????
???????????????????
????********************************
?????????????????????DNS???????????????????? /etc/resolv.conf
??????????nameserver 8.8.8.8???
????********************************
????????yum makecache ?????
????????·····
????#yum install libX11-devel
????ok????????????????
???????1???????????????????????????????startx
???????????????
????4??"Warning: You do not seem to have the package gstreamer0.10-plugins-good installed.
????Some video features have been disabled."
???????# yum install gstreamer* -y
????startx?????????
????-------------------------------------------?????----------------------------------------
???????????startx???????
????????????????vnc??????????yum?????vnc sever??
????????yum install tigervnc-server -y
??????vncserver??????????????
????????chkconfig vncserver on
?????????chkconfig vncserver --level 5 on
???????vncserver???????????
????????vim /etc/sysconfig/vncservers
???????????????????????s??????
????VNCSERVERS="1:root"
????VNCSERVERARGS[1]="-geometry 800*600 -nolisten tcp"
??????esc????????:wq???????
????????vncserver??????vnc?????????????
????????????????????su???????????????????????????root?????
????????vncpasswd
????????vncserver????
????????service vncserver restart
????????????vnc??????·???°??????
????Vnc service????Linux??ip??e????????192.168.1.200:1???????connect?????????
????????????????????????????????????????棩
????????????????????????
????************************??????firewall********************************
?????????????
????service iptables status
???????
????# vim /etc/sysconfig/iptables
??????????
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
???????????
????????????
????service iptables restart
???????????????????????????
????1?????setup????????“Firewall configuration ”??
????2????“Security Level: ”??????????“(* ) Enabled ”
????3??“SELinux:”????“Enforcing ”??“Permissive”??
????4?????“OK”???????
????5?????“service iptables status”
?????????????????????????????????????????????ü??ɡ?