-
-
Save GrayedFox/71dd824d75362df4b98ae98ae22c5627 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash | |
source $HOME/.bashrc | |
MACHINE=$(uname -s) | |
cd $HOME | |
if [ "$MACHINE" == "Linux" ]; then | |
printf "Removing libreoffice, thunderbird, and webbrowser app..." | |
sudo apt remove --purge libreoffice* && | |
sudo apt remove --purge thunderbird* && | |
printf "Success\n" | |
printf "Adding Charles Proxy 64 Bit PPA..." | |
wget -qO- https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add - && | |
sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list' && | |
printf "Success\n" | |
printf "Adding Peek PPA" | |
sudo add-apt-repository ppa:peek-developers/stable && | |
printf "Success\n" | |
printf "Adding CopyQ PPA" | |
sudo add-apt-repository ppa:hluk/copyq && | |
printf "Success\n" | |
printf "Installing and updating all the things..." | |
sudo apt update && | |
sudo apt --yes --allow-remove-essential --allow-change-held-packages install build-essential libssl-dev zsh git htop curl vlc peek charles-proxy xclip xdotool wmctrl net-tools copyq chrome-gnome-shell dconf-editor && | |
sudo apt upgrade && | |
printf "Success\n" | |
printf "Installing Konsole using Snap..." | |
sudo snap install konsole --classic && | |
printf "Success\n" | |
printf "Installing Spotify using Snap..." | |
sudo snap install spotify && | |
printf "Success\n" | |
printf "Installing Postman using Snap..." | |
sudo snap install postman && | |
printf "Success\n" | |
printf "Installing MS Code using Snap..." | |
sudo snap install --classic code && | |
printf "Success\n" | |
printf "Installing Slack using Snap..." | |
sudo snap install --classic slack && | |
printf "Success\n" | |
printf "Installing NVM..." | |
wget -O install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh && | |
chmod +x ./install.sh && | |
/bin/bash ./install.sh && | |
printf "Success\n" | |
printf "Installing and using latest Node LTS version..." | |
source .bashrc && | |
nvm install --lts && | |
nvm use --lts && | |
printf "Success\n" | |
printf "Downloading gists: git commands and custom scripts into Scripts folder" | |
mkdir $HOME/Scripts && | |
cd $HOME/Scripts && | |
wget https://gist.githubusercontent.com/GrayedFox/2c2c770b6b4f44317b275dd4a69f333f/raw/ -O git-trim && | |
wget https://gist.githubusercontent.com/GrayedFox/8250e7a49bfffdb581f6356a43188de2/raw/ -O git-glean && | |
wget https://gist.githubusercontent.com/GrayedFox/2b6229e25650afaba6ceabcd4b1ba7de/raw/ -O git-count && | |
wget https://gist.githubusercontent.com/GrayedFox/a191e201620bb4adce226dc11b947ae2/raw/ -O git-bottle && | |
wget https://gist.githubusercontent.com/GrayedFox/6c303647551e6f4081f44c9eeb9c4836/raw/ -O goodMorning && | |
wget https://gist.githubusercontent.com/GrayedFox/da5c2f78c141427dba9fa54effc7ba67/raw/ -O cpc && | |
wget https://gist.githubusercontent.com/GrayedFox/d596c7896aad4b3cea441037c890f826/raw/ -O show-hide-konsole && | |
printf "Success/n" | |
printf "Make scripts executable and add Scripts folder to path..." | |
printf "\n# add Scripts folder to path\nPATH=\"\$PATH:\$HOME/Scripts/\"" >> $HOME/.bashrc && | |
chmod +x $HOME/Scripts/* && | |
printf "Success\n" | |
printf "Adding bash, config file, markdown, and yaml syntax highlighting support for Nano..." | |
cd /usr/share/nano && | |
sudo wget https://raw.githubusercontent.com/serialhex/nano-highlight/master/bash.nanorc && | |
sudo wget https://raw.githubusercontent.com/serialhex/nano-highlight/master/configfiles.nanorc && | |
sudo wget https://raw.githubusercontent.com/serialhex/nano-highlight/master/markdown.nanorc && | |
sudo wget https://raw.githubusercontent.com/serialhex/nano-highlight/master/yaml.nanorc && | |
printf "Success\n" | |
printf "Installing all ubuntu drivers using autoinstall..." | |
sudo ubuntu-drivers autoinstall && | |
printf "Success\n" | |
printf "Tidying up..." | |
cd $HOME && | |
sudo apt autoclean && | |
sudo apt autoremove && | |
printf "Success\n" | |
printf "\nYou should set zsh to be your default console!" | |
printf "\nAnd install OH MY ZSH!" | |
printf "\nAnd enable wsmatrix and grand-theft-focus gnome extensios!" | |
else | |
printf "Apparently this shit aint Linux?" | |
fi |
remove postman install and icon generation
Remove bash completion script (included by default on latest Ubuntu) and add vlc and gnome calculator
Added pinta
Added peek
Added syntax highlighting support for yaml, bash, config files, and markdown to Nano
Added Charles
Added arc-darker theme and script now sets icon, application, and cursor themes
Added multi-monitor extension
Added net-tools
added insomnia
Replace insomnia with Postman, remove dark theme and other theming options, use apt instead of apt-get, remove chrome, don't remove firefox, update atom installation method
Use printf instead of echo for printing messages and appending to files for more consistent behaviour
Add scripts folder to path from .bashrc instead of .profile
Add xclip
Remove atom in favour of MS-Code for IDE of choice
Update node version, remove multi monitor extension
Rename gnome-tweak-tool to gnome-tweaks
Add chrome-gnome-shell (required for Firefox gnome extension to work)
Removes:
- guake terminal
- clipboard extension indicator
- script for managing gnome extensions
Adds:
- konsole terminal
- cpc (copy content), show-hide-konsole script, and git-bottle script
- adds wmctrl, xtodo, and zsh apps
Removes:
- attempt to remove old Ubuntu browser (seems to be no longer included in 22.04)
Adds:
- updated NVM minor version
- adds
--classic
switch to Konsole snap app
Added chrome-gnome-shell
and dconf-editor
for better gnome extension management and greater control over system shortcuts and behaviour.
Removed libinput-gestures tweaking (applied only to 16.04 and Unity desktop) and changed how chrome ppa is added/managed to not create duplicates