CentOS安装图形桌面
# 简介
CentOS-7-x86_64-Minimal没有图形化界面,是最小的安装镜像。实际运用中可能会用到图图形桌面,本文以安装GNOME桌面为例,来进行安装。
# 安装步骤
yum groupinstall "X Window System"
yum groupinstall -y "GNOME Desktop"
# 等以上两句命令的软件安装完后,执行↓:
init 5
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install -y lsb
yum install -y libXScrnSaver
yum -y install liberation-fonts
rpm -ivh google-chrome-stable_current_x86_64.rpm
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# 报错解决
报错一: ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. 解决方案:
vim /usr/share/applications/google-chrome.desktop
修改:Exec=/usr/bin/google-chrome-stable %U
为:Exec=/usr/bin/google-chrome-stable %U --no-sandbox
或者启动:启动命令后添加“–no-sandbox”
/usr/bin/google-chrome –no-sandbox
1
2
3
4
5
6
7
2
3
4
5
6
7
上次更新: 2023/09/16, 02:28:15