怎么分辨linux是红帽还是Centos系统

时间:2024-03-12 08:11:56

为什么需要分辨呢?因为centos是rhel的衍生版本,虎鼠傻傻你分不清楚!,你也可以使用yum,如果是rhel则报RHN disenable错!,还是用下面的专业些的command来搞吧!

cat /etc/issue

cat /etc/redhat-release

 

Rhel6开启远程桌面报如下错!

could not open default font \'fixed\'

解决方法

 

  • yum install libXfont  
  • yum install xorg-x11-xfs  
  • yum install xorg-x11-xfs-utils  
  • yum install xorg-x11-xinit  
  • yum install xorg-x11-xdm  
  • yum install xorg-x11-fonts* 

 

需要安装的组件 tigervnc-server

rpm -ivh http://mirror.centos.org/centos/6/updates/x86_64/Packages/tigervnc-server-module-1.1.0-5.el6_4.1.x86_64.rpm
rpm -ivh http://mirror.centos.org/centos/6/updates/x86_64/Packages/tigervnc-server-1.1.0-5.el6_4.1.x86_64.rpm 
yum install xrdp

编辑 /etc/sysconfig/vncserver  配置vnc用户

 

  1. VNCSERVERS="2:root"  
  2. VNCSERVERARGS[2]="-geometry 1366x768 -nolisten tcp -localhost"  


使用vncpasswd 设置VNC密码

 

 

  1. [root@RHEL6 ~]# vncpasswd   
  2. Password:  
  3. Verify:

vi /root/.vnc/xstartup

在最后一行将twm
KDE则改成startkde
GNOME则改成gnome-session


启动vncserver与xrdp

 

/etc/init.d/vncserver restart

/etc/init.d/xrdp restart