Skip to content

Instantly share code, notes, and snippets.

@amaurycatelan
Created December 18, 2019 04:00
Show Gist options
  • Save amaurycatelan/ecfff2571c73fb229e9f18b2273ec592 to your computer and use it in GitHub Desktop.
Save amaurycatelan/ecfff2571c73fb229e9f18b2273ec592 to your computer and use it in GitHub Desktop.
Install script for Ubuntu (in-progress) * forked *
#!/bin/bash
sudo apt update
# Some basic stuff
sudo apt install htop
sudo apt install iperf
sudo apt install glances
sudo apt install git
sudo apt install tree
sudo apt install xclip
sudo apt install curl
sudo apt install cifs-utils
sudo apt install google-chrome-stable
sudo apt install gnome-tweak-tool
# sudo apt install openjdk-8-jdk
sudo apt install default-jdk
sudo apt install python-pip
sudo apt install tmux
sudo apt install exuberant-ctags
sudo apt install linkchecker-gui
sudo apt install wakeonlan
sudo apt install stow
sudo apt install libnss-ldap libpam-ldap ldap-utils
# Find a more elegant way to get git-completion.bash? maybe?
# Maybe sudo apt install bash-completion
sudo curl \
https://raw.githubusercontent.com/git/git/v$(git --version | awk '{print $3}')/contrib/completion/git-completion.bash \
-o /usr/lib/git-core/git-completion.bash
# nvm
sudo apt install build-essential libssl-dev
git clone https://github.com/nvm-sh/nvm.git $NVM_DIR
cd $NVM_DIR
git checkout v0.34.0
nvm install --lts
nvm use --lts
npm install -g typescript
# rbenv
sudo apt install rbenv
# Tmux bash completion
sudo mkdir -p /usr/lib/tmux
sudo curl \
https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/master/completions/tmux \
-o /usr/lib/tmux/bash_completion_tmux.sh
# Base16 Shell
# Not quite sure about this right now
# git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
# Powerline
pip install --user powerline-status
git clone https://github.com/powerline/fonts.git --depth=1
./fonts/install.sh
rm -rf fonts
# In terminal profile preferences, configure:
# Title and Command > Custom command: env TERM=xterm-256color /bin/bash (if tput colors < 256) // Not sure about this
# General > Font: Source Code Pro for Powerline Regular
# Profiles-default > Colors: Text and Background color > Built-in schemes: Tango dark, Palette > Built-in schemes: Solarized
# GitHub SSH
ssh-keygen -t rsa -b 4096 -C "[email protected]"
xclip -sel clip < ~/.ssh/id_rsa.pub
# Go to https://github.com/settings/ssh/new and paste the key
# Tmux Plugin Manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install tmux plugins:
# * Start tmux
# Press prefix + I (Ctrl-a + Shift i)
# vim
sudo apt install vim-gnome
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
# YouCompleteMe
sudo apt install build-essential cmake
# sudo apt install python-dev python3-dev // It doesn't look like I need this anymore
~/.vim/bundle/YouCompleteMe/install.py --clang-completer --tern-completer
# YubiKey
sudo apt-add-repository ppa:yubico/stable && sudo apt-get update
sudo apt install gpg yubikey-manager-qt scdaemon pcscd
# I prefer to use the default pin tool
# sudo apt install pinentry-curses
# Might need the personalization tool if gpg --card-status doesn't recognize the key
# sudo apt install yubikey-personalization-gui
# Nextcloud
sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt update
sudo apt install nextcloud-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment