shadowsocks-qt5 client 搭建
sudo apt-get install software-properties-common python-software-properties
shadowsocks-qt5 安装
- 按照https://github.com/shadowsocks/shadowsocks-qt5/wiki/安装指南进行安装(deppin商店如果有就安装)
- 安装完成就可以启动shadowsocks了
sudo apt-get install shadowsocks-qt5
shadowsocks-qt5 pac系统代理 仅代理访问一些站点
需要python,通过python –-version来查看自己系统中的python,没有运行以下command
sudo apt-get install python
需要pip,通过pip –version 来查看自己的pip版本
sudo apt-get install -y python-setuptools
sudo easy_install pip
安装gcc
sudo pip install genpac
生产代理文件
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"
这里很多人获取不到gfwlist, 浏览器用bing国际版搜索下载gfwlist.txt,然后本地使用这个文件,比如我下载到 “下载”目录下,命令如下
genpac --proxy="SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-local="/home/g510/Downloads/gfwlist.txt"
注意:这里的端口是1080,如果是配置的其他端口,需要修改1080->port
最后一步需要把生成的autoproxy.pac文件加入到系统的配置中 ,文件的生成路径在~./autoproxy.pac
终端记录:
g510@g510-PC:~
sudo apt-get install -y python-setuptools
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
下列软件包是自动安装的并且现在不需要了:
libcg libcggl libjpeg8 libportaudiocpp0 nvidia-cg-dev nvidia-cg-toolkit
使用’sudo apt autoremove’来卸载它(它们)。
建议安装:
python-setuptools-doc
下列【新】软件包将被安装:
python-setuptools
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 36 个软件包未被升级。
需要下载 301 kB 的归档。
解压缩后会消耗 1,048 kB 的额外空间。
获取:1 http://packages.deepin.com/deepin panda/main amd64 python-setuptools all 36.0.1-1 [301 kB]
已下载 301 kB,耗时 0秒 (1,059 kB/s)
正在选中未选择的软件包 python-setuptools。
(正在读取数据库 … 系统当前共安装有 205766 个文件和目录。)
正准备解包 …/python-setuptools_36.0.1-1_all.deb …
正在解包 python-setuptools (36.0.1-1) …
正在设置 python-setuptools (36.0.1-1) …
g510@g510-PC:~$ sudo easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
Best match: pip 9.0.1
Processing pip-9.0.1.tar.gz
Writing /tmp/easy_install-iYVUJN/pip-9.0.1/setup.cfg
Running pip-9.0.1/setup.py -q bdist_egg –dist-dir /tmp/easy_install-iYVUJN/pip-9.0.1/egg-dist-tmp-T7aDyB
warning: no previously-included files found matching ‘.coveragerc’
warning: no previously-included files found matching ‘.mailmap’
warning: no previously-included files found matching ‘.travis.yml’
warning: no previously-included files found matching ‘.landscape.yml’
warning: no previously-included files found matching ‘pip/_vendor/Makefile’
warning: no previously-included files found matching ‘tox.ini’
warning: no previously-included files found matching ‘dev-requirements.txt’
warning: no previously-included files found matching ‘appveyor.yml’
no previously-included directories found matching ‘.github’
no previously-included directories found matching ‘.travis’
no previously-included directories found matching ‘docs/_build’
no previously-included directories found matching ‘contrib’
no previously-included directories found matching ‘tasks’
no previously-included directories found matching ‘tests’
creating /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg
Extracting pip-9.0.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
g510@g510-PC:~
genpac –proxy=”SOCKS5 127.0.0.1:1080” –gfwlist-proxy=”SOCKS5 127.0.0.1:1080” -o autoproxy.pac –gfwlist-local=”/home/g510/Downloads/gfwlist.txt”
g510@g510-PC:~$
完成
来自 http://f73041fb.wiz03.com/share/s/3Tc47X2o94qF2oNrPU3ra3EQ3Y1lom0LpQgV22GWsD2iyZdz