Skip to content

Instantly share code, notes, and snippets.

@refrax
Created June 17, 2019 13:15
Show Gist options
  • Select an option

  • Save refrax/4fa6095bb2d88fd2bd8284c782b07a32 to your computer and use it in GitHub Desktop.

Select an option

Save refrax/4fa6095bb2d88fd2bd8284c782b07a32 to your computer and use it in GitHub Desktop.
#!/bin/bash
# https://alkusin.net/crubuntung
bypass() {
sudo -v
while true;
do
sudo -n true
sleep 45
kill -0 "$$" || exit
done 2>/dev/null &
}
readonly txt1="Updating..."
readonly txt2="Installing..."
readonly txt3="Configuring..."
readonly txt4="Done!"
readonly txt5="Press ENTER to reboot."
bypass
clear
printf "$txt1\n\n"
sleep 3s
sudo apt -y update
sudo apt -y upgrade
clear
printf "$txt2\n\n"
sleep 3s
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo addgroup netdev
sudo usermod -a -G netdev $USER
sudo usermod -a -G video $USER
sudo apt -y install adwaita-icon-theme-full apturl brightness-udev brightnessctl compton conky-all cpufrequtils cups cups-daemon dmz-cursor-theme firefox fonts-croscore fonts-hack fonts-lato fonts-firacode fonts-noto-color-emoji fonts-ubuntu fonts-vollkorn galculator galternatives gdebi geoclue-2.0 gigolo git gsimplecal gtk-update-icon-cache gtk3-nocsd gufw gvfs hardinfo htop imagemagick language-selector-gnome libgdk-pixbuf2.0-dev libglib2.0-dev libxml2-utils light-locker light-locker-settings lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings linux-tools-generic lsb-release mesa-utils mesa-utils-extra mesa-vulkan-drivers neofetch nitrogen numlockx obconf obmenu obsession openbox optipng orage smplayer pavucontrol plymouth-theme-ubuntu-logo plymouth-theme-ubuntu-text policykit-1-gnome redshift-gtk ristretto ruby-sass scrot simple-scan software-properties-gtk synaptic system-config-printer thunar thunar-archive-plugin thunar-volman tint2 transmission-gtk tumbler tumbler-plugins-extra ubuntu-drivers-common ubuntu-restricted-addons ubuntu-restricted-extras unar update-manager volumeicon-alsa wget wicd xarchiver xbacklight xcalib xdg-user-dirs-gtk xdg-utils xdotool xfce4-appfinder xfce4-battery-plugin xfce4-clipman xfce4-goodies xfce4-notifyd xfce4-power-manager xfce4-settings xiccd xinit xorg xpdf xserver-xorg xz-utils
sudo apt -y install $(check-language-support)
clear
printf "$txt3\n\n"
sleep 3s
sudo systemctl stop snapd.service snapd.seeded.service snapd.socket
sudo systemctl disable snapd.service snapd.seeded.service snapd.socket
sudo update-alternatives --set x-session-manager /usr/bin/openbox-session
cd /tmp
wget https://alkusin.net/crubuntung/downloads/crubuntung-files.tar.xz
tar Jxvf crubuntung-files.tar.xz
chmod +x crubuntung-files/etc/skel/.bin/crubuntung-scripts/*
mv -f crubuntung-files/english-conkyrc crubuntung-files/etc/skel/.conkyrc
mv -f crubuntung-files/english-menu.xml crubuntung-files/etc/skel/.config/openbox/menu.xml
#mv -f crubuntung-files/english-lite-menu.xml crubuntung-files/etc/skel/.config/openbox/menu.xml
#mv -f crubuntung-files/lite-autostart crubuntung-files/etc/skel/.config/openbox/autostart
#mv -f crubuntung-files/lite-menu.xml crubuntung-files/etc/skel/.config/openbox/menu.xml
\cp -r crubuntung-files/etc/skel/. ~/
sudo \cp -r crubuntung-files/etc/. /etc
sudo \cp -r crubuntung-files/usr/. /usr
rm -rf crubuntung-files/
mkdir ~/.crubuntung-backup/
sh ~/.bin/crubuntung-scripts/theme-crunchified.sh
mv crubuntung-files.tar.xz ~/.crubuntung-backup/
cp -r /usr/share/icons/Papirus/ /usr/share/themes/Numix/ ~/.crubuntung-backup/
clear
printf "$txt4\n\n"
read -p "$txt5"
systemctl reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment