Skip to content

Instantly share code, notes, and snippets.

@killedbymemory
Last active September 5, 2019 06:37
Show Gist options
  • Save killedbymemory/acf5ae86cd320499b36e8667c52cd8c4 to your computer and use it in GitHub Desktop.
Save killedbymemory/acf5ae86cd320499b36e8667c52cd8c4 to your computer and use it in GitHub Desktop.
## Update packages then upgrade
echo "Update Ubuntu packages and followed by upgrading"
sudo apt update
sudo apt upgrade -y
## SSH Public Key
echo "Setting up ~/.ssh and ~/.ssh/authorized_keys"
cd ~
mkdir .ssh
chmod 700 .ssh
curl https://gist.githubusercontent.com/killedbymemory/26243a397d9b2366540502e967a9622c/raw/60ee88b559b7a1a8b078a7acbe0740543cd4202c/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
## Figure out how to configure SSH daemon to enable login by public key
## See: https://www.thegeekstuff.com/2011/05/openssh-options
echo "Setting up some SSH daemon configurations"
sudo service ssh status
sudo service ssh reload
## Git
echo "Installing Git"
sudo apt -y install git
echo "Setting up Git configuration"
curl https://gist.githubusercontent.com/killedbymemory/753b50bd053808936fa18516e0b6f44f/raw/58887028007dd4f539abef8221dbdbf334332679/.gitconfig -o ~/.gitconfig
## ZSH
echo "Installing ZSH"
sudo apt -y install zsh
## oh-my-zsh
## See: https://github.com/robbyrussell/oh-my-zsh#basic-installation
echo "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "Remember to enable oh-my-zsh plugins in ~/.zshrc!"
## Vundle && Vim && Install plugins from CLI
## See: https://github.com/VundleVim/Vundle.vim
echo "Setting up Vundle"
mkdir -p ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "Setting up Vim configuration ~/.vimrc"
curl https://gist.githubusercontent.com/killedbymemory/c1b8825c55c0551ed0f273400318a1ca/raw/2506a01be24cb5f0fbca5de62a180477609fbeba/.vimrc -o ~/.vimrc
# Install plugins from CLI, unfortunately unavailable colorscheme prompt user response ;(
# vim +PluginInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment