Skip to content

Instantly share code, notes, and snippets.

@ichisadashioko
Last active February 3, 2021 03:51
Show Gist options
  • Save ichisadashioko/884b6d2009d6b59cf5d6abfadc0cabcc to your computer and use it in GitHub Desktop.
Save ichisadashioko/884b6d2009d6b59cf5d6abfadc0cabcc to your computer and use it in GitHub Desktop.
setup fresh ubuntu machine
# shorten bash cwd path
PROMPT_DIRTRIM=1
# make * select dot files
shopt -s dotglob
alias aup="sudo apt update"
alias ain="sudo apt install"
alias ll="ls -la"
alias l="ls -a"
# block core-js ads
export ADBLOCK=1
set ts=4 sw=4 et sts=4
set nu
# vim syntax highlight is so annoying
syn off
set backspace=indent,eol,start
sudo apt update # never run upgrade or it will break nvidia+tensorflow
# update git
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install -y \
git git-lfs \
tmux vim \
curl wget net-tools htop tree dos2unix \
build-essential gcc g++ cmake autoconf \
p7zip p7zip p7zip-rar unzip zip tar \
python3 python3-pip python3-dev \
virtualenv jupyter \
python python-pip python-dev
git config --global user.name "shioko"
git config --global user.email "ichisadashioko@gmail.com"
git config --global core.editor vim
git config --global core.autocrlf false
# new Git feature since v2.28 (?) to prevent pulling from auto merging
git config --global pull.ff only
# cache git credentials
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=9'
# java
sudo apt install default-jdk default-jdk-doc default-jdk-headless
# clang - the default version included in Ubuntu is outdated
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
# sudo ./llvm.sh <version number>
sudo ./llvm.sh 11
# nvm / NodeJS
# nvm.sh
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
nvm install v12.16.2
# desktop environment only
# Dark theme
sudo apt install -y \
gnome-tweaks gnome-tweak-tool arc-theme \
vlc baobab transmission
# use deb package if you don't want automatic updates (I don't want automatic updates)
# sudo snap install --classic code # vscode - not on WSL
# remmina for remote desktop
sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt update
sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret
# Ubuntu 20.04
sudo apt install \
llvm \
gnome-system-monitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment