Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- #
- # Postinstall script for MontanaLinux: https://img.cs.montana.edu/linux/montanalinux/
- #
- # Install Epel-release & disable gpgchech
- rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
- yum install epel-release -y
- sed -i -e 's/gpgcheck=1/gpgcheck=0/' /etc/yum.repos.d/epel.repo
- # 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 additional repos & disable it
- # 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
- yum-config-manager --disable nux-dextop
- # Install StotinkaOS repo
- rpm --import https://www.stotinkaos.net/stotinkaOS/repo/7/RPM-GPG-KEY-StotinkaOS-7
- yum-config-manager --add-repo=https://www.stotinkaos.net/stotinkaOS/repo/7/stotinkaOS.repo
- yum-config-manager --disable StotinkaOS-Base
- yum-config-manager --disable StotinkaOS-Wine
- # Creating a /swapfile & enable it
- fallocate -l 8G /swapfile
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- echo "/swapfile none swap defaults 0 0" >> /etc/fstab
- # Enable CR repo & rebase system
- # yum clean all
- # yum-config-manager --enable cr
- # yum update -y
- # Limit the number of installed Linux kernels
- sed -i -e 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf
- # Install yum-pugins & update system
- yum install yum-langpacks -y
- rm -rf /var/cache/yum
- yum update -y
- # Install some other stuff
- yum install gnome-disk-utility lightdm-settings gtk-murrine-engine \
- gvfs gtk-xfce-engine gtk2-engines beesu unzip p7zip p7zip-plugins conky \
- file-roller xfce4-weather-plugin xdg-user-dirs alsa-utils pavucontrol \
- xfce4-xkb-plugin xfce4-taskmanager notify-python pygtk2-libglade wget \
- dconf-editor libusal genisoimage libarchive lzop ncompress autofs nano \
- librsvg2 xed bash-completion system-config-date system-config-users yumex \
- ntfs-3g xfce4-whiskermenu-plugin alacarte libXScrnSaver os-prober xviewer \
- xviewer-plugins xfce4-genmon-plugin xfce4-time-out-plugin dconf ntfsprogs \
- xfce4-pulseaudio-plugin -y
- # Install additional xfce plugins
- yum --enablerepo=StotinkaOS-Base install xfce4-genmon-plugin numlockx \
- xfce4-places-plugin xfce4-time-out-plugin gtkhash-thunar thunar-dropbox \
- thunar-media-tags-plugin thunar-archive-plugin xfburn mugshot galculator \
- catfish -y
- # Set hardware clock to UTC
- hwclock --systohc --utc
- # Disable SELinux
- sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
- # Limit the number of installed kernels
- sed -i -e 's/installonly_limit=5/installonly_limit=2/' /etc/yum.conf
- # Disable unnecessary services
- localectl set-keymap no
- localectl set-x11-keymap no
- # systemctl mask systemd-udev-settle
- # systemctl mask lvm2-monitor.service
- # systemctl mask NetworkManager-wait-online.service
- # systemctl mask postfix.service
- # Install additional wallpapers
- cd /usr/share/backgrounds
- wget -O - "https://www.dropbox.com/s/dsyudgg06zab1z2/wls.tar.gz?dl=0" | tar xzf -
- ## Install additional fonts & infinality packages
- yum --enablerepo=StotinkaOS-Base install ubuntu-fonts google-roboto-fonts google-roboto-mono-fonts bitstream-vera* -y
- yum --enablerepo=nux-dextop install cairo libXft fontconfig-infinality freetype-infinality -y
- # Install OTF SF Pro & Monaco fonts
- cd /usr/share/fonts
- wget -O - "https://www.dropbox.com/s/5nf6isrp44rzf3p/OTF.tar.gz" | tar xzf -
- # Create an index of X font files in a directory
- cd OTF && mkfontdir
- # Go to parent folder & update font cache
- cd .. && fc-cache -fv
- # Download infinality.conf
- cd /etc/fonts/infinality/ && mv infinality.conf infinality.conf.bak
- wget -O infinality.conf https://pastebin.com/raw/DXsRTLmt
- # Choose a rendering style
- ./infctl.sh setstyle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement