求助:virtualbox下安装centos进不了图形界面

发布于 2021-11-15 11:10:30 字数 398 浏览 873 评论 3

virtualbox安装centos minimal

yum groupinstall "X Window System"

yum groupinstall "Desktop"

yum groupinstall "Chinese Support"

然后startx,显示如下提示

按Ctrl+Alt+F2死活进不了图形界面

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

温柔少女心 2021-11-16 19:57:34

已解决,3q

离不开的别离 2021-11-16 19:32:21

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

伪装你 2021-11-16 18:34:40

错误提示说

/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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文