Skip to content

Instantly share code, notes, and snippets.

@jzztf
Created March 18, 2019 03:13
Show Gist options
  • Save jzztf/8ac3b6c615bd167005500b2bc7c7df54 to your computer and use it in GitHub Desktop.
Save jzztf/8ac3b6c615bd167005500b2bc7c7df54 to your computer and use it in GitHub Desktop.
linux installs
  1. 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
  1. git/ssh
git config --global user.name "yourname"
git config --global user.email "your_email@example.com"
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval $(ssh-agent -s) #start the ssh-agent in the background
ssh-add ~/.ssh/id_rsa
  1. 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
  1. gcc
sudo apt install build-essential
sudo apt install gcc
  1. zsh/ohmyzsh
sudo apt install zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  1. 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
  1. 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
  1. shadowsocks
...
  1. ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment