-
-
Save grammy-jiang/56e511a547c6be5d3aa4bc7a1b93302a to your computer and use it in GitHub Desktop.
init.sh
This file contains hidden or 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
#!/usr/bin/env bash | |
# URL Original: https://gist.githubusercontent.com/grammy-jiang/56e511a547c6be5d3aa4bc7a1b93302a/raw | |
# URL Shorten: https://git.io/Jc8Ld | |
# Usage: | |
# wget --no-cache --output-document - https://git.io/Jc8Ld | bash | |
set -x | |
# update system | |
sudo -- sh -c "apt-get update -qq && apt-get upgrade -qq && apt-get dist-upgrade -qq && apt-get autoremove --purge -qq" | |
# setup the timezone | |
sudo -- sh -c "timedatectl set-timezone Australia/Sydney && date" | |
# install basic dependencies | |
sudo -- sh -c "apt-get install --yes curl lnav mosh tig tree watchman" | |
# install git and configuration | |
sudo -- sh -c "apt-get install --yes git && wget --output-document=/etc/gitconfig https://git.io/Jc8Ob" | |
wget --output-document=~/.gitconfig https://git.io/Jc8Wh | |
# install tmux | |
sudo -- sh -c "apt-get install --yes tmux" && \ | |
git clone https://github.com/gpakosz/.tmux.git ~/projects/tmux-config && \ | |
ln -s -f ~/projects/tmux-config/.tmux.conf && \ | |
ln -s -f ~/projects/tmux-config/.tmux.conf.local | |
# install zsh, p10k, zplug | |
sudo -- sh -c "apt-get install --yes zsh" | |
# install vim and plugins | |
# sudo -- sh -c "apt-get install --yes vim-nox vifm && wget --output-document=/etc/vim/vimrc.local https://git.io/JvpS2" | |
# install fzf | |
# if [ -n "$(which fzf)" ]; then | |
# source /usr/share/doc/fzf/examples/completion.zsh | |
# source /usr/share/doc/fzf/examples/key-bindings.zsh | |
# fi | |
# install dependencies | |
sudo -- sh -c "apt-get install --yes python3-pip" | |
# install rime and its configuration | |
# sudo -- sh -c "apt-get install --yes ibus-rime" | |
# ibus restart | |
# install chrome, chromium | |
# install gnome terminal colors solarized | |
# install authy | |
# install telegram-desktop | |
# install nvm, nodejs | |
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
# install pyenv | |
# install jetbrains | |
# edit grub timeout | |
# install mpv, vlc | |
# sudo -- sh -c "apt-get install --yes mpv vlc" | |
# install docker and docker-compose | |
# refer to: | |
# https://docs.docker.com/engine/install/ubuntu/ | |
# https://docs.docker.com/compose/install/ | |
# install virtualbox | |
# install minikube | |
# refer to: | |
# https://minikube.sigs.k8s.io/docs/start/ | |
# https://minikube.sigs.k8s.io/docs/drivers/docker/ | |
# https://gist.github.com/grammy-jiang/7bb09d3b289d04aec00c78b133c5b346 | |
# install aws cli | |
# refer to: | |
# https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install | |
# install calibre | |
sudo apt-get install --quiet --yes calibre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Test in Docker
Reference: