sudo apt -y update && sudo apt-get -y update
sudo apt-get install -y git wget zsh tzdata vim openssh-server sudo ufw curl fonts-powerline
sudo locale-gen
sudo chsh -s $(which zsh)
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
perl -pi -w -e 's/ZSH_THEME=.*/ZSH_THEME="agnoster"/g;' ~/.zshrc
perl -pi -w -e 's/plugins=.*/plugins=(git )/g;' ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions
vi ~/.zshrc
source ~/zsh-autosuggestions/zsh-autosuggestions.zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
vi ~/.zshrc
source ~/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
alias Vzsh="vi ~/.zshrc"
alias Szsh="source ~/.zshrc"
alias c='clear'
alias cc="clear && printf '\e[3J'"
alias cg='cargo'
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
alias g='git'
alias gpx="git pull -X theirs"
alias gpu="git push"
alias gcam="git add . && git commit -m "
alias gcl='git clone'
alias gl="git log --pretty=oneline"
alias gh="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --graph --topo-order --abbrev-commit --decorate"
alias gh-all="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --full-history --all --graph --topo-order --abbrev-commit --decorate"
sudo apt -y install build-essential cmake make clang pkg-config libssl-dev httpie librocksdb-dev jq ssh net-tools
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
nvm install --lts
sudo apt -y install mysql-server mysql-client
sudo apt-get -y autoclean autoremove
sudo apt install ssh
sudo vi /etc/ssh/sshd_config
(change your port)
sudo /etc/init.d/ssh restart
sudo netstat -anp|grep LISTEN|grep sshd
https://hei-jung.github.io/linux/linux-remote-access/
https://github.com/marlonrichert/zsh-autocomplete