Solve the problem that CentOS7.0 does not have a desktop after minimal installation
1. Place the file on a CD
2. Enter the following command as the root user:
mount
/dev/sr0
/media
3. Configure the CD as the local yum Source
Command:
vi
/etc/yum
.repos.d
/local
.repo
Press the Insert key to enter the following content:
[
local
]
name=
local
baseurl=
file
:
///media/
enabled=1
gpgcheck=0
Press ESC and enter x or wq to save the settings (do not miss the input :)
(You can view tutorials online without using vi)
4. Load the yum cache:
yummakecache
Then you find that the operation fails. follow these steps:
mkdir
/tmp/repo
mv
/etc/yum
.repos.d/*
/tmp/repo
mv
/tmp/repo/local
.repo
/etc/yum
.repos.d/
yumcleanall&&
rm
-rf
/var/cache/yum/
*
yummakecache
5,
yumgrouplist
The s command shows the installed group:
Minimal Install (the minimum installation for lz is not Desktop), GNOME Desktop, KDE Plasma Workspaces, etc.
Choose GNOME desktop or KDE Desktop
Command:
yumgroupinstall-y
"GNOMEDesktop"
yumgroupinstall-y
"KDEPlasmaWorkspaces"
6. After the installation is complete, set the startup mode to a graphical interface. Previously, it was changed to/etc/inittab. After cat and/etc/inittab, it was found that inittab was changed to systemd, therefore, use the following command:
ln
-sf
/lib/systemd/system/graphical
.target
/etc/systemd/system/default
.target
7,
reboot
The graphic interface is displayed after restart.
PS: linux Commands include mount yum mkdir mv and vi. We recommend that you start with the command and download many good videos from the Internet.