修改/etc/X11/Xorg.conf
vi /etc/X11/xorg.conf 保存shift|zz
Section "Device"
Identifier "Videocard0"
Driver "vesa" #驅動根據不同顯卡 vesa是通用的
VendorName "Videocard vendor"
BoardName "ATI Mach64" #顯卡的名字
VideoRam 1024
EndSection
vi /etc/X11/xorg.conf 保存shift|zz
Section "Device"
Identifier "Videocard0"
Driver "vesa" #驅動根據不同顯卡 vesa是通用的
VendorName "Videocard vendor"
BoardName "ATI Mach64" #顯卡的名字
VideoRam 1024
EndSection
=======================================================================================
在更改ip後,如果沒有重啓服務,實際上是不發生變化的
重啓網絡服務的命令是service network restart
或者/etc/init.d/network restart)
=======================================================================================
重啓網絡服務的命令是service network restart
或者/etc/init.d/network restart)
=======================================================================================
症狀:
CentOS在啓動過程中完全正常,未有任何錯誤提示。一會兒出現黑屏,而不是X Window的登錄界面。
CentOS在啓動過程中完全正常,未有任何錯誤提示。一會兒出現黑屏,而不是X Window的登錄界面。
使用startx命令啓動X Window失敗,提示如下:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again
原因
這是rhgb(redhat graphical boot)軟件包的bug,啓動後沒有自動切換到啓用了X Window的tty7終端,而停留在了字符界面的tty1終端。
這是rhgb(redhat graphical boot)軟件包的bug,啓動後沒有自動切換到啓用了X Window的tty7終端,而停留在了字符界面的tty1終端。
終端的設置可以在/etc/inittab文件中找到。
解決辦法
方法一:手動切換至tty7終端,CTRL+ALT+F7。
方法一:手動切換至tty7終端,CTRL+ALT+F7。
方法二:在tty1終端,刪除/tmp/.X0-lock文件,再使用# startx啓動X Window。
方法三:下載rhgb-0.16.4-3.fc6.i386.rpm並更新之,或使用# yum update rhgb更新
注:有時執行完方法一以後,仍不能進入圖形界面,這時可接着執行方法二,若還是不行,可連續執行
CTRL + ALT + F1 和 CTRL + ALT + F7即可。這是最近的經驗 。
=======================================================================================
yum groupinstall "GNOME Desktop Environment" |
yum groupinstall "KDE (K Desktop Environment)" |