Linux下的图形界面——X Window的安装


Linux下的图形界面——X Window的安装
 
    X Window即X Windows图形用户接口,是一种计算机软件系统和网络协议,提供了一个基础的图形用户界面(GUI)和丰富的输入设备能力联网计算机。其中软件编写使用广义的命令集,它创建了一个硬件抽象层,允许设备独立性和重用方案的任何计算机上实现。本文讲解如何在最小化安装的RedHat中安装X Window(只供学习使用,生产环境不会这样做)。
 
[plain] 
#ssh以支持XWindow的形式登录  
[root@larrywen software]# ssh 192.168.0.29 -X  
The authenticity of host '192.168.0.29 (192.168.0.29)' can't be established.  
RSA key fingerprint is 38:a0:60:c2:e8:71:26:e5:b3:83:75:a8:e6:25:d8:5e.  
Are you sure you want to continue connecting (yes/no)? yes  
Warning: Permanently added '192.168.0.29' (RSA) to the list of known hosts.  
root@192.168.0.29's password:   
Last login: Sat Jul 27 13:46:29 2013 from 192.168.0.10  
#本地创建一个文件,编辑保存一个文件到远程,可以看到远程有刚创建的文件  
[root@michael ~]# gedit  
[root@michael ~]#   
  
  
#以支持XWindow的形式登录,远程不安装X Window服务,可以看到本机编辑保存的文件  
[root@larrywen Desktop]# ssh 192.168.1.11 -X  
root@192.168.1.11's password:   
Last login: Sat Jul 27 19:26:38 2013 from 192.168.1.1  
/usr/bin/xauth:  creating new authority file /root/.Xauthority  
[root@serv01 ~]# gedit  
  
[root@serv01 ~]# ls Unsaved\ Document\ 1   
Unsaved Document 1  
  
#安装X Window,建议安装完后重启  
[root@serv01 ~]# yum groupinstall "X Window System" "Desktop" -y  
#卸载X Window   
[root@serv01 ~]# yum groupremove "X Window System" "Desktop" -y  
#可以选择安装Gnome或者KDE  
#RHEL5 6,Desktop 默认是Gnome  
#RHEL4,Desktop 默认是KDE  
  
#虚拟机下要启动图形界面,需要调整内存,最好800M  
  
#字符界面下启动图形界面  
[root@serv01 ~]# startx  
  
#图形界面下退回字符界面  
Ctrl+Alt+Back  
  
#测试用:如果安装后卸载然后重新安装后出现鼠标、键盘不能移动,重启解决  

相关内容

    暂无相关文章