Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- # Install MATE-desktop on Centos 7 minimal
- #
- # https://www.redhat-club.org/forum/index.php
- #
- yum install wget yum-plugin-fastestmirror -y
- # Install EPEL repo
- rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
- yum -y install epel-release
- # Install Nux-Dextop repo
- rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
- rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
- # Install ELREPO
- rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
- rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
- # Install Development tools
- yum groupinstall 'Development Tools' -y
- # Update System
- yum install deltarpm yum-langpacks -y && yum clean all && yum update -y
- # Install Xorg
- yum --disablerepo=elrepo groupinstall "X Window System" -y
- # Install Mate-desktop from Epel repo
- yum groupinstall "MATE Desktop" -y
- # Remove gdm
- yum remove gdm -y
- # Remove its dependencies
- yum autoremove -y
- # Install some other stuff
- yum install gnome-disk-utility lightdm-settings gtk-murrine-engine \
- gtk-unico-engine gtk2-engines beesu unrar unzip p7zip-plugins \
- p7zip nano yumex conky numlockx xdg-user-dirs alsa-utils pavucontrol \
- dconf wget notify-python pygtk2-libglade dconf-editor libusal autofs \
- genisoimage libarchive lzop ncompress librsvg2 bash-completion ntfs-3g -y
- # Set hardware clock to UTC
- hwclock --systohc --utc
- # Install lightdm instead
- yum install lightdm -y
- # Remove GNOME 3 garbage
- yum remove abrt* brasero filezilla gnote rhythmbox \
- totem transmission* xchat -y
- # Disable the fucking license prompt after installing
- systemctl disable initial-setup-text
- systemctl disable initial-setup-graphical
- rpm -e initial-setup initial-setup-gui
- # Disable unnecessary services
- systemctl mask systemd-udev-settle
- systemctl mask lvm2-monitor.service
- # Starting the graphical environment
- systemctl isolate graphical.target
- # Make the GUI start by default on reboots
- systemctl set-default graphical.target
- rm '/etc/systemd/system/default.target'
- ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
- # Enable lightdm
- systemctl enable lightdm
- systemctl isolate graphical.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement