Skip to content

Instantly share code, notes, and snippets.

@RoryDuncan
Created March 13, 2017 08:05
Show Gist options
  • Save RoryDuncan/4dfd8c8c870bb132aa66a387bc716192 to your computer and use it in GitHub Desktop.
Save RoryDuncan/4dfd8c8c870bb132aa66a387bc716192 to your computer and use it in GitHub Desktop.
After a fresh install of a elementaryOS
steps=6
currentstep=1
function update() {
echo -e "\n================================================================================"
echo -e "\t\tStep $currentstep of $steps: $@"
echo -e "================================================================================\n"
currentstep=$((currentstep+1))
}
# note: this script silences some output via: "> /dev/null"
# step 1
update "Importing aptitude sources from backup"
sudo cp -a ./etc/apt/ /etc/
sudo apt-get update
# step 2
update "Retrieving 'Additional Drivers' application"
sudo apt-get install software-center software-properties-common
# step 3
update "Configure display driver"
echo "The available drivers are listed below."
echo -e "\tUse the number of the option to download, and install it.\n"
PS3="Option: "
echo "Drivers:"
select DRIVERNAME in `ubuntu-drivers list`
do
echo -e "\t\nDownloading and installing $DRIVERNAME..."
selecteddriver=$DRIVERNAME
break
done
# download the driver
sudo apt-get install $selecteddriver
echo "Install finished."
# display the current driver in use. outputs something simple like "nvidia"
lspci -vnn | grep -i VGA -A 12 | grep -i "kernel driver in use"
# step 4
update "Retrieving System Setting 'elementary tweaks' extension"
sudo apt-get install elementary-tweaks
# step 5
update "Installing theme packages"
echo -e "->\t Choose a theme package within System Setting -> Elementary Tweaks"
# paper theme
sudo apt-get install paper-icon-theme paper-gtk-theme paper-cursor-theme
# numix theme
sudo apt-get install numix-gtk-theme numix-icon-theme numix-plymouth-theme numix-icon-theme-square numix-icon-theme-circle numix-folders
# step 6
update "Installing applications"
# install chrome
echo "Downloading chrome..."
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb >/dev/null
sudo dpkg -i google-chrome-stable_current_amd64.deb
echo "Cleaning up..."
rm google-chrome-stable_current_amd64.deb
echo "Done!"
echo "A restart is recommended"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment