- change the source of applications
vim /etc/apt/sources.list
# vim-replace
# :%s/archive\.ubuntu/mirrors\.aliyun/g
# :%s/security\.archive\.ubuntu/mirrors\.aliyun/g
- git/ssh
git config --global user.name "yourname"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval $(ssh-agent -s) #start the ssh-agent in the background
ssh-add ~/.ssh/id_rsa
- python/pip
cd /usr/src
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
tar -xzvf Python-3.7.2.tgz
cd Python-3.7.2/
./configure --enable-optimizations
sudo make altinstall #make altinstall is used to prevent replacing the default python binary file /usr/bin/python.
# ---
# python3.7 contains pip3.7
- gcc
sudo apt install build-essential
sudo apt install gcc
- zsh/ohmyzsh
sudo apt install zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- emacs
# find the mirrors of gnu or just download from the emacs website
# https://mirrors.tuna.tsinghua.edu.cn/gnu/
wget https://mirrors.tuna.tsinghua.edu.cn/gnu/emacs/emacs-26.1.tar.gz
tar -xzvf emacs-26.1.tar.gz
cd emacs-26.1/
# install steps
# https://www.admintome.com/blog/install-emacs-26-1-on-ubuntu/
./configure --without-x --with-gnutls=no
make
sudo make install
git clone https://github.com/jzztf/dotemacs.d.git .emacs.d
- vim
sudo apt install vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
wget https://raw.githubusercontent.com/jzztf/configuration/master/.vimrc
# change some settings
- shadowsocks
- ...