Skip to content

Instantly share code, notes, and snippets.

@mofas
Last active September 16, 2018 20:32
Show Gist options
  • Save mofas/b8f39fa78fb13553092a7ad49654dcb5 to your computer and use it in GitHub Desktop.
Save mofas/b8f39fa78fb13553092a7ad49654dcb5 to your computer and use it in GitHub Desktop.
Setup the new linux server

Common Tool

apt install curl
apt install vim
apt install git

CLI

~/.bash_profile

export CLICOLOR=1
export LSCOLORS="ExFxBxDxCxegedabagacad"
export TERM=xterm-256color
export EDITOR="vim"

Zsh

https://github.com/robbyrussell/oh-my-zsh/wiki

apt install zsh
chsh -s $(which zsh)

SSH

Copy Public key to server

scp -p your_pub_key.pub user@host:
ssh user@host
host$ cat id_dsa.pub >> ~/.ssh/authorized_keys

Config local ~/.ssh/config

Host vm2
    HostName v.vm2.987.tw
    User root
    IdentityFile ~/.ssh/id_rsa

tmux

https://linuxize.com/post/getting-started-with-tmux/

Vim customization

https://github.com/amix/vimrc

git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

Further Customization

bat

fzf

fd

https://remysharp.com/2018/08/23/cli-improved

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