4
回答
求助:virtualbox下安装centos进不了图形界面
开发十年,就只剩下这套Java开发体系了   

virtualbox安装centos minimal

yum groupinstall "X Window System"

yum groupinstall "Desktop"

yum groupinstall "Chinese Support"

然后startx,显示如下提示

按Ctrl+Alt+F2死活进不了图形界面
举报
osofar
发帖于6年前 4回/4K+阅
共有4个答案 最后回答: 6年前

错误提示说

/etc/X11/xorg.conf
这个文件的ServerLayout部分的第6行有错误,你可以对比下我的:
Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

--- 共有 1 条评论 ---
osofar方便把xorg.conf的内容都贴出来么?谢谢^^ 6年前 回复

xorg.conf全部内容:

# VirtualBox generated configuration file
# based on /etc/X11/xorg.conf.
# Xorg configuration created by pyxf86config

# Section "ServerLayout"
# 	Identifier     "Default Layout"
# 	Screen      0  "Screen0" 0 0
# 	InputDevice    "Keyboard0" "CoreKeyboard"
# EndSection

# Section "InputDevice"
# 	Identifier  "Keyboard0"
# 	Driver      "kbd"
# 	Option	    "XkbModel" "pc105"
# 	Option	    "XkbLayout" "us"
# EndSection

# Section "Device"
# 	Identifier  "Videocard0"
# 	Driver      "vesa"
# EndSection

# Section "Screen"
# 	Identifier "Screen0"
# 	Device     "Videocard0"
# 	DefaultDepth     24
# 	SubSection "Display"
# 		Viewport   0 0
# 		Depth     24
# 	EndSubSection
# EndSection

Section "InputDevice"
  Identifier   "Keyboard[0]"
  Driver       "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
  Option       "Protocol" "Standard"
  Option       "CoreKeyboard"
EndSection

Section "InputDevice"
  Identifier  "Mouse[1]"
  Driver      "vboxmouse"
  Option      "Buttons" "9"
  Option      "Device" "/dev/input/mice"
  Option      "Name" "VirtualBox Mouse"
  Option      "Protocol" "explorerps/2"
  Option      "Vendor" "Oracle Corporation"
  Option      "ZAxisMapping" "4 5"
  Option      "CorePointer"
EndSection

Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

Section "Monitor"
  Identifier   "Monitor[0]"
  ModelName    "VirtualBox Virtual Output"
  VendorName   "Oracle Corporation"
EndSection

Section "Device"
  BoardName    "VirtualBox Graphics"
  Driver       "vboxvideo"
  Identifier   "Device[0]"
  VendorName   "Oracle Corporation"
EndSection

Section "Screen"
  SubSection "Display"
    Depth      24
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

顶部