Ubuntu 16.04/14.04安裝SS與Chrome

Ubuntu 16.04/14.04安裝SS與Chrome


安裝SS

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

安裝完成後,輸入自己的賬號和密碼。

安裝Chrome

首先設置Firefox,依次Open Menu→Preferences→Advanced→Network→Settings,勾選Mannual proxy configuration,在SOCKS Host裏填寫127.0.0.1,在Port裏填寫1080,並勾選SOCKS v5。
參考Install安裝Chrome瀏覽器,可直接官網鏈接下載安裝。

生成PAC配置文件

參照PAC Install,輸入如下命令安裝genpac

sudo pip install genpac
pip install –upgrade genpac

安裝genpac後,輸入如下命令:

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

設置全局代理,依次點擊System settings→Network→Network Proxy,選擇Method爲Automatic,設置Configuration URL爲autoproxy.pac的路徑,點擊Apply System Wide。
格式如:file:///home/{user}/Downloads/shadowsocks/autoproxy.pac
其中{user}需要修改爲自己的用戶名。

設置開機啓動

Settings

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章