Installing GUI on CentOS 7 and maybe CentOS 8 running on VMWare Player or Virtual Box
- Download full ISO of your OS
- Mount the ISO to your VM
- Increase video memory to 128 MB, you may also increase CPU quota to 4 and RAM size to 16MB as well
- Start-up your VM as-is
- Mount the CD to your Linux file system where you expects a local repo:
mount -r -t iso9660 /dev/sr0 /media/cdrom
- Install GUI X Window system
sudo yum groupinstall "X Window System"
- Install the GUI "shell":
a. Gnome (appeared somewhat unstable)
sudo yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
b. Install Xfce (appeared to be more stable than gnome to me):
sudo yum groupinstall "Xfce" -y
If Xfce group is not available, then install epel-release repo
sudo yum install epel-release -y
and re-try the step
- Make the GUI available at startup
unlink /etc/systemd/system/default.target
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
- Restart the system
- In gdm screen select your GUI "shell" of choice
References:
- https://owlhowto.com/how-to-install-xfce-on-centos-7/