Last active
September 2, 2021 14:46
-
-
Save woile/92d3677f1af65d1d8549b0c42f1aedfe to your computer and use it in GitHub Desktop.
My personal conf when installing debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add my custom gnome extensions | |
# Execution: | |
# sudo chmod +x add_gnome_extensions.sh | |
# ./add_gnome_extensions.sh | |
cd /tmp | |
wget https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/ubuntugnome/gnomeshell-extension-manage | |
chmod +x gnomeshell-extension-manage | |
./gnomeshell-extension-manage --install --extension-id 1011 # Dynamic panel transparency | |
./gnomeshell-extension-manage --install --extension-id 750 # weather | |
./gnomeshell-extension-manage --install --extension-id 826 # Suspend Button | |
./gnomeshell-extension-manage --install --extension-id 905 # Refresh Wifi Connections | |
./gnomeshell-extension-manage --install --extension-id 841 # Freon sensors | |
./gnomeshell-extension-manage --install --extension-id 307 # Dash to dock | |
./gnomeshell-extension-manage --install --extension-id 1031 # TopIcons Plus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Give execution permission to this script with: | |
# chmod +x 1_configure_so_root.sh | |
# WARN: Execute this command as ROOT!!!! | |
# Make sure only root can run our script | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
username=`id -nu 1000` | |
# Update sources and upgrade current system to latest | |
# in order to properly upgrade the distro later | |
apt update | |
apt -y upgrade | |
apt -y dist-upgrade | |
# install essential libraries | |
apt install -y sudo curl apt-transport-https dirmngr wget ca-certificates gnupg2 gpa aptitude | |
# Update everything | |
wget -q https://gist.githubusercontent.com/Woile/5b98250afa438def998ce3a2c1818166/raw/d0491c162ec5c00cc554d88f70a9a7a8fe830f63/sources.list -O /etc/apt/sources.list | |
mkdir /home/$username/bin | |
wget -q https://gist.githubusercontent.com/Woile/672e663b1e1bac3a4687/raw/105783b4cc205be5a55cc01033cbc4bae375a18e/upgrade-sys -O /home/$username/bin/upgrade-sys | |
chmod +x /home/$username/bin/upgrade-sys | |
chown -R $username:$username /home/$username/bin | |
/home/$username/bin/upgrade-sys | |
# Configure sudoers | |
echo "$username ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
# Add essential packages | |
apt install -y software-properties-common gnupg-agent guake git vim curl vlc build-essential python-dev \ | |
python3 python3-dev python3-pip pass rar unrar lm-sensors bash-completion | |
dpkg --add-architecture i386 | |
# Dotfiles | |
mkdir /home/$username/.apps | |
git clone https://github.com/malderete/dotfiles /home/$username/.apps/dotfiles | |
chown -R $username:$username /home/$username/.apps | |
# Pip | |
curl -sL https://bootstrap.pypa.io/get-pip.py | python - | |
# Poetry python package manager | |
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Give execution permission to this script with: | |
# sudo chmod +x 2_configure_so_user.sh | |
# WARN: EXECUTE THIS COMMAND AS YOUR NORMAL USER | |
# Nodejs | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt install -y nodejs | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
sudo npm install -g yarn | |
sudo yarn global add n eslint | |
# Docker | |
sudo apt remove docker docker-engine docker.io | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt update | |
sudo apt install docker-ce | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# Pip dependencies | |
sudo pip3 install Pygments pipenv virtualenvwrapper | |
# Update again and fix possible unmet dependencies | |
~/bin/upgrade-sys | |
# Chrome | |
sudo apt install -y libxss1 libappindicator1 libindicator7 | |
cd /tmp | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb | |
rm google-chrome*.deb | |
sudo apt -y --fix-broken install | |
################################################# Themes and Icons ################################################# | |
######### | |
# Numix # | |
######### | |
sudo add-apt-repository -y ppa:numix/ppa | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 43E076121739DEE5FB96BBED52B709720F164EEB | |
sudo apt update | |
sudo apt install -y numix-icon-theme-circle numix-gtk-theme | |
########## | |
# Adapta # | |
########## | |
sudo add-apt-repository -y ppa:tista/adapta | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com EAC0D406E5D79A82ADEEDFDFB76E53652D87398A | |
sudo apt update | |
sudo apt install -y adapta-gtk-theme | |
########## | |
# Flat Remix # | |
########## | |
sudo add-apt-repository ppa:daniruiz/flat-remix | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com BA309D7C0CBE9A2DF584AC50A074F0583066C9C9 | |
sudo apt update | |
sudo apt -y install flat-remix-gtk flat-remix | |
############################# | |
# Libreoffice Papirus theme # | |
############################# | |
# https://github.com/PapirusDevelopmentTeam/papirus-libreoffice-theme#papirus-installer | |
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-libreoffice-theme/master/install-papirus-root.sh | sh | |
################################################# End ################################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment