China is a fantastic country that you can not visit Google,Facebook,Youtube and etc.Sometimes,github.com is unavaliable for chinese too.So I need to find a stable way to synchronize codes.
I have tried vpn/openvpn and goagent,but all are too slow,especially vpn connection are offen reset by G*W in China.
Then I found a 'Chinese VPN Protocol' called Shadowosocks.Doesn't like vpn,just a chinese special secure sock5 proxy protocol,it's traffic characteristics are not obvious.So G*W cannot easy to detect the traffic through Shadowsocks.
Here's the guide for Using ProxyChains & Shadowsocks to Synchronize codes on Ubuntu 14.04 in China.
1.You need to own a vps.
Cheaper is better.
2.Install Shadowsocks on VPS
Click here to check for how-tos
3.Install & Configure Shadowsocks-Qt5 on PC
Shadowsocks-Qt5 is a 3rd party clients for Shadowsocks.
I'm usting Ubuntu
PPA is for Ubuntu >= 14.04.
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5
Check for "how-tos on other systems".
After you installed Shadowsocks-Qt5,you must configure it before use.
Input the infomation you have configure on your server.
connect to your vps.
4.Install & Configure proxychains
sudo apt-get install proxychains
proxychains looks for config file in following order:
so,you can edit /etc/proxychains.conf for applying proxies to every account on your pc.
sudo nano /etc/proxychains.conf
congfig file example is listed as fllowed:
strict_chain proxy_dns remote_dns_subnet 224 tcp_read_time_out 15000 tcp_connect_time_out 8000 localnet 127.0.0.0/255.0.0.0 quiet_mode [ProxyList] socks5 127.0.0.1 1080
save config file.now you can use proxychains to synchronize codes.