Advertisement
Red-ex

Mate-desktop with Centos 7-minimal

Nov 3rd, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.24 KB | None | 0 0
  1. #!/usr/bin/bash
  2. # Install MATE-desktop on Centos 7 minimal
  3. #
  4. # https://www.redhat-club.org/forum/index.php
  5. #
  6. yum install wget yum-plugin-fastestmirror -y
  7.  
  8. # Install EPEL repo
  9. rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
  10. yum -y install epel-release
  11.  
  12. # Install Nux-Dextop repo
  13. rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
  14. rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
  15.  
  16. # Install ELREPO
  17. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  18. rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
  19.  
  20. # Install Development tools
  21. yum groupinstall 'Development Tools' -y
  22.  
  23. # Update System
  24. yum install deltarpm yum-langpacks -y && yum clean all && yum update -y
  25.  
  26. # Install Xorg
  27. yum --disablerepo=elrepo groupinstall "X Window System" -y
  28.  
  29. # Install Mate-desktop from Epel repo
  30. yum groupinstall "MATE Desktop" -y
  31.  
  32. # Remove gdm
  33. yum remove gdm -y
  34.  
  35. # Remove its dependencies
  36. yum autoremove -y
  37.  
  38. # Install some other stuff
  39. yum install gnome-disk-utility lightdm-settings gtk-murrine-engine \
  40. gtk-unico-engine gtk2-engines beesu unrar unzip p7zip-plugins \
  41. p7zip nano yumex conky numlockx xdg-user-dirs alsa-utils pavucontrol \
  42. dconf wget notify-python pygtk2-libglade dconf-editor libusal autofs \
  43. genisoimage libarchive lzop ncompress librsvg2 bash-completion ntfs-3g -y
  44.  
  45. # Set hardware clock to UTC
  46. hwclock --systohc --utc
  47.  
  48. # Install lightdm instead
  49. yum install lightdm -y
  50.  
  51. # Remove GNOME 3 garbage
  52. yum remove abrt* brasero filezilla gnote rhythmbox \
  53. totem transmission* xchat -y
  54.  
  55. # Disable the fucking license prompt after installing
  56. systemctl disable initial-setup-text
  57. systemctl disable initial-setup-graphical
  58. rpm -e initial-setup initial-setup-gui
  59.  
  60. # Disable unnecessary services
  61. systemctl mask systemd-udev-settle
  62. systemctl mask lvm2-monitor.service
  63.  
  64. # Starting the graphical environment
  65. systemctl isolate graphical.target
  66.  
  67. # Make the GUI start by default on reboots
  68. systemctl set-default graphical.target
  69. rm '/etc/systemd/system/default.target'
  70. ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
  71.  
  72. # Enable lightdm
  73. systemctl enable lightdm
  74. systemctl isolate graphical.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement