Last active
October 13, 2023 02:00
-
-
Save AshishKapoor/2933de3720257fa5fd83a2422f50c5a7 to your computer and use it in GitHub Desktop.
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 | |
#WHILE THIS SCRIPT IS MOSTLY NON-INTERACTIVE, SOME SECTIONS DO HAVE EXPLICIT REMARKS TO EXECUTE ACTIONS! WATCH YOUR STEP HERE! | |
sudo apt-get update --yes | |
sudo apt-get dist-upgrade --yes | |
sudo apt-get autoremove --yes | |
sudo apt-get autoclean --yes | |
sudo apt-get install curl tmux zsh nload iotop htop git python3-dev python3-pip apt-transport-https ca-certificates software-properties-common vim mosh --yes | |
#Oh my TMUX | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
#Comment the following in ~/.tmux.conf.local | |
# status left/right sections separators | |
#tmux_conf_theme_left_separator_main='' | |
#tmux_conf_theme_left_separator_sub='|' | |
#tmux_conf_theme_right_separator_main='' | |
#tmux_conf_theme_right_separator_sub='|' | |
#Uncomment following commands | |
tmux_conf_theme_left_separator_main='' # /!\ you don't need to install Powerline | |
tmux_conf_theme_left_separator_sub='' # you only need fonts patched with | |
tmux_conf_theme_right_separator_main='' # Powerline symbols or the standalone | |
tmux_conf_theme_right_separator_sub='' # PowerlineSymbols.otf font | |
set -g mouse on | |
## Edits ended. | |
#Docker | |
sudo curl -sS https://get.docker.com/ | sh | |
sudo usermod -aG docker $USER | |
sudo pip3 install docker-compose | |
#KVM Fixes | |
#Edit `/etc/default/grub` with following changes from | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
# to | |
GRUB_CMDLINE_LINUX_DEFAULT="nodemodeset" | |
#Then run following | |
sudo update-grub | |
# MOSH Fixes Ref: https://github.com/mobile-shell/mosh/issues/793#issuecomment-434768637 | |
apt-get update | |
apt-get install -y locales | |
locale-gen "en_US.UTF-8" | |
update-locale LC_ALL="en_US.UTF-8" | |
#Remove AppArmor | |
aa-status #Check with aa-status | |
sudo systemctl stop apparmor | |
sudo systemctl disable apparmor | |
sudo apt remove --assume-yes --purge apparmor | |
# neovim latest | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:neovim-ppa/unstable | |
sudo apt-get update | |
sudo apt-get install neovim | |
#Oh my ZSH | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
#Finally change ~/.zshrc | |
ZSH_THEME="agnoster" | |
plugins=(git docker docker-compose tmux common-aliases zsh-syntax-highlighting jsontools) | |
#Edits end. Finally clone these 2 modules | |
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | |
#If you're prompted for password and are unsure, mitigate it by entering some garbage and let the authentication fail. | |
#Then execute the following to change the default shell. | |
sudo usermod -s /bin/zsh ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment