neverchanje / notes

1 stars 0 forks source link

ubuntu preparation #5

Closed neverchanje closed 6 years ago

neverchanje commented 6 years ago

Set up Shadowsocks

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

set up pac

sudo genpac --proxy="SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"

Put autoproxy.pac into System settings > Network > Network Proxy > Automatic > Configuration URL: file:///home/neverchanje/autoproxy.pac.

Set up Python

sudo apt install python-pip

.pip/pip.conf

[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com

upgrade pip

sudo python -m pip install --upgrade --force pip

sometimes you can install cmake using pip

pip install --upgrade cmake 

Set up ruby

# https://rvm.io/
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.6
rvm use 2.6.0 --default