最小化安装Centos7后安装图形界面[通俗易懂]

2022-09-23 20:13:59 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

1. 更新下系统

yum -y upgrade

reboot

2. 安装依赖包

yum -y install gcc gcc-c autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers libXp binutils compat-libstdc elfutils-libelf elfutils-libelf-devel glibc-common libaio-devel libaio libgcc libstdc libstdc -devel make sysstat ncurses-devel pcre* opensslsl openssl-develel lsof cmake ncurses-devel bison make ncurses-devel libaio openssl openssl-devel ncurses ncurses-devel automake libaio-devel gcc-g77 pcre-devel openssl-devel bison autoconf automake libcurl-devel gd-devel zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* gtk2* gtk3* libgstreamer* libav* libgphoto* cmake gcc gcc-c gtk -devel gimp-develgimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devellibpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-develjasper-devel jasper-utils swig python libtool nasm cjkuni-uming-fonts gnome-classic-session gnome-terminal nautilus-open-terminal unzip openssh-clients traceroute nscd bind-utils

3.安装图形用户界面工具包

yum -y groupinstall “X Window System”

4.设置默认启动方式为图形用户界面

systemctl set-default graphical.target

reboot

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/171073.html原文链接:https://javaforall.cn

0 人点赞