Skip to content

Instantly share code, notes, and snippets.

@grammy-jiang
Last active August 26, 2021 07:31
Show Gist options
  • Save grammy-jiang/56e511a547c6be5d3aa4bc7a1b93302a to your computer and use it in GitHub Desktop.
Save grammy-jiang/56e511a547c6be5d3aa4bc7a1b93302a to your computer and use it in GitHub Desktop.
init.sh
#!/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
@grammy-jiang
Copy link
Author

grammy-jiang commented Jul 2, 2021

Usage:

foo@bar:~$ wget --no-cache --output-document - https://git.io/Jc8Ld | bash

Test in Docker

docker run --interactive --tty --rm ubuntu:latest bash
foor@bar:~$ apt-get update -qq && \
    DEBIAN_FRONTEND=noninteractive apt-get install -qq sudo wget < /dev/null > /dev/null && \
    wget --no-cache --output-document - https://git.io/Jc8Ld | bash

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment