Advertisement
Red-ex

montana2

Dec 22nd, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.80 KB | None | 0 0
  1. #!/usr/bin/bash
  2. #
  3. # Postinstall script for MontanaLinux: https://img.cs.montana.edu/linux/montanalinux/
  4. #
  5.  
  6. # Install Epel-release & disable gpgchech
  7. rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
  8. yum install epel-release -y
  9. sed -i -e 's/gpgcheck=1/gpgcheck=0/' /etc/yum.repos.d/epel.repo
  10.  
  11. # Install ELREPO
  12. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  13. rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
  14.  
  15. ## Install additional repos & disable it
  16. # Install Nux-Dextop repo
  17. rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
  18. rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
  19. yum-config-manager --disable nux-dextop
  20.  
  21. # Install StotinkaOS repo
  22. rpm --import https://www.stotinkaos.net/stotinkaOS/repo/7/RPM-GPG-KEY-StotinkaOS-7
  23. yum-config-manager --add-repo=https://www.stotinkaos.net/stotinkaOS/repo/7/stotinkaOS.repo
  24. yum-config-manager --disable StotinkaOS-Base
  25. yum-config-manager --disable StotinkaOS-Wine
  26.  
  27. # Creating a /swapfile & enable it
  28. fallocate -l 8G /swapfile
  29. chmod 600 /swapfile
  30. mkswap /swapfile
  31. swapon /swapfile
  32. echo "/swapfile none swap defaults 0 0" >> /etc/fstab
  33.  
  34. # Enable CR repo & rebase system
  35. # yum clean all
  36. # yum-config-manager --enable cr
  37. # yum update -y
  38.  
  39. # Limit the number of installed Linux kernels
  40. sed -i -e 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf
  41.  
  42. # Install yum-pugins & update system
  43. yum install yum-langpacks -y
  44. rm -rf /var/cache/yum
  45. yum update -y
  46.  
  47. # Install some other stuff
  48. yum install gnome-disk-utility lightdm-settings gtk-murrine-engine \
  49. gvfs gtk-xfce-engine gtk2-engines beesu unzip p7zip p7zip-plugins conky \
  50. file-roller xfce4-weather-plugin xdg-user-dirs alsa-utils pavucontrol \
  51. xfce4-xkb-plugin xfce4-taskmanager notify-python pygtk2-libglade wget \
  52. dconf-editor libusal genisoimage libarchive lzop ncompress autofs nano \
  53. librsvg2 xed bash-completion system-config-date system-config-users yumex \
  54. ntfs-3g xfce4-whiskermenu-plugin alacarte libXScrnSaver os-prober xviewer \
  55. xviewer-plugins xfce4-genmon-plugin xfce4-time-out-plugin dconf ntfsprogs \
  56. xfce4-pulseaudio-plugin -y
  57.  
  58. # Install additional xfce plugins
  59. yum --enablerepo=StotinkaOS-Base install xfce4-genmon-plugin numlockx \
  60. xfce4-places-plugin xfce4-time-out-plugin gtkhash-thunar thunar-dropbox \
  61. thunar-media-tags-plugin thunar-archive-plugin xfburn mugshot galculator \
  62. catfish -y
  63.  
  64. # Set hardware clock to UTC
  65. hwclock --systohc --utc
  66.  
  67. # Disable SELinux
  68. sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  69.  
  70. # Limit the number of installed kernels
  71. sed -i -e 's/installonly_limit=5/installonly_limit=2/' /etc/yum.conf
  72.  
  73. # Disable unnecessary services
  74. localectl set-keymap no
  75. localectl set-x11-keymap no
  76. # systemctl mask systemd-udev-settle
  77. # systemctl mask lvm2-monitor.service
  78. # systemctl mask NetworkManager-wait-online.service
  79. # systemctl mask postfix.service
  80.  
  81. # Install additional wallpapers
  82. cd /usr/share/backgrounds
  83. wget -O - "https://www.dropbox.com/s/dsyudgg06zab1z2/wls.tar.gz?dl=0" | tar xzf -
  84.  
  85. ## Install additional fonts & infinality packages
  86. yum --enablerepo=StotinkaOS-Base install ubuntu-fonts google-roboto-fonts google-roboto-mono-fonts bitstream-vera* -y
  87. yum --enablerepo=nux-dextop install cairo libXft fontconfig-infinality freetype-infinality -y
  88.  
  89. # Install OTF SF Pro & Monaco fonts
  90. cd /usr/share/fonts
  91. wget -O - "https://www.dropbox.com/s/5nf6isrp44rzf3p/OTF.tar.gz" | tar xzf -
  92.  
  93. # Create an index of X font files in a directory
  94. cd OTF && mkfontdir
  95.  
  96. # Go to parent folder & update font cache
  97. cd .. && fc-cache -fv
  98.  
  99. # Download infinality.conf
  100. cd /etc/fonts/infinality/ && mv infinality.conf infinality.conf.bak
  101. wget -O infinality.conf https://pastebin.com/raw/DXsRTLmt
  102.  
  103. # Choose a rendering style
  104. ./infctl.sh setstyle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement