9

Ubuntu下实现全局翻墙的配置过程 · Issue #7 · naseeihity/LearnToLearn · GitHub

 1 year ago
source link: https://github.com/naseeihity/LearnToLearn/issues/7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

shadowsocks-qt5

可以在github中找到。

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

安装完成后在搜索里可以找到shadowscoks-qt5.

和windows配置相同,可以直接导入。
本地服务器类型选择SOCKS5,本地地址127.0.0.1,本地端口:1080

浏览器翻墙

安装完ss-qt5后,浏览器还并不能翻墙,需要配置浏览器的代理,因为chrome在linux里无法设置代理,所以需要安装插件。

下载SwitchyOmega

可以在github的xx-net项目中找到,需要点进该文件然后download。
把该文件拉入chrome的设置-扩展程序中来安装。(其他浏览器的方法也可在xxnet中找到)

配置SwitchyOmega

选项中设置prxoy里代理协议SOCKS5,代理服务器:127.0.0.1,端口1080(即浏览器连接本地)。
然后选中这一项(proxy)即可。

如果一切中常,现在浏览器就可以翻墙了。

实际上linux中更多的操作是在终端中进行,很多程序和服务的下载都需要通过 npm,gem,nvm,git等命令进行,而在前内起下载速度十分感人,而且很容易快下载完了又直接失败,都要重新开始,通过全局翻墙可以改善这种情况。

安装配置proxychains

全局翻墙通过proxychains实现,即将任何程序和ss的proxy建立链接,原理和浏览器的代理相似。

下载

sudo apt-get install proxychains

配置

sudo nano /etc/proxychains.conf //nano比vim对新手更友好

在最后的ProxyList里加入Shawdowsocks的代理设置:

socks5    127.0.0.1    1080

使用
打开ss-qt5的前提现,在需要翻墙的命令前打上proxychains即可。

purezhi, sqn175, xsf72006, willhunger, csyangpeng, TianhongDai, gt11799, kircs, nicehiro, dongqiceo, and 18 more reacted with thumbs up emojiprintjs and HammerMax reacted with thumbs down emojixiaofan8421 and pla0599 reacted with laugh emojidaixian reacted with hooray emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK