Things To Do After Installing A New OS

  • Generating a new SSH key
1
ssh-keygen -t rsa -b 4096 -C "vincent2015a@aliyun.com"
1
2
3
4
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
sudo make install-config (installs proxychains.conf)
1
2
3
4
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev

for Ubuntu 18.04

1
sudo apt-get install shadowsocks-libev
1
2
3
4
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

or

1
sudo snap install sublime-text
  • Installing LaTeX
1
sudo apt-get install texlive-full
  • Installing Java
  1. Download Java 9 Archive Package (tar.gz)
1
proxychains4 wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f270a4347a95050320eef3fb7/jdk-11.0.1_linux-x64_bin.tar.gz
  1. Move and Extract The Java 11 Archive Package
1
2
3
4
sudo mv jdk-11_linux-x64_bin.tar.gz /opt

cd /opt/
sudo tar -xzf jdk-11_linux-x64_bin.tar.gz
  1. Set Java 11 As Default Java
1
2
3
4
5
6
7
sudo update-alternatives  --install /usr/bin/java java /opt/jdk-11/bin/java 1000

sudo update-alternatives --install /usr/bin/javac javac /opt/jdk-11/bin/javac 1000
sudo update-alternatives --install /usr/bin/javadoc javadoc /opt/jdk-11/bin/javadoc 1000
sudo update-alternatives --install /usr/bin/javap javap /opt/jdk-11/bin/javap 1000

sudo update-alternatives --config java
  1. Verify
1
java -version
  1. Set up Java Environment Variables
1
2
3
4
export JAVA_HOME=/opt/jdk-11
export PATH="$PATH:$JAVA_HOME/bin"

source /etc/environment
  • Installing SDKMAN (optional)
1
curl -s "https://get.sdkman.io" | bash
  • Installing Node.js
  1. Download the binary archive

  2. follow the install instruction

  3. Fixing npm permissions

1
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
  1. Installing taobao mirror for npm
1
npm install -g cnpm --registry=https://registry.npm.taobao.org
  • Setting Git
  1. Set a Git username

  2. SEt a Git user email

1
2
git config --global user.name "GreatX"
git config --global user.email "vincent2015a@aliyun.com"
GreatX wechat
订阅公众号,获取更多信息。