51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

kali linux安装ss客户端shadowsocks-qt5

文章目录

当前环境:

VMware Workstation 12 Pro 12.0.0 build-2985596

当前kali linux版本:

Kali-Linux-2016.2-vm-amd64

官方下载地址:

https://images.offensive-security.com/virtual-images/Kali-Linux-2016.2-vm-amd64.7z

当前kali linux是干净的,确保你没有做过更新及源文件更改,确保你当前的环境系统和我这里所演示的相同,如果不同,不保证成功性,本篇文章已经过多次测试。

更改当前语言为中文,更改后重启
root@kali:~# echo LANG="zh_CN.UTF-8" > /etc/default/locale root@kali:~# reboot root@kali:~# apt-get update

|-------|----------------------------------------------------------------------------------------------------------------| | 1 2 3 | root@kali:~# echo LANG="zh_CN.UTF-8" > /etc/default/locale root@kali:~# reboot root@kali:~# apt-get update |


安装libqtshadowsocks-dev {#title-0}

安装依赖
root@kali:~# apt-get install qt5-qmake qtbase5-dev libbotan1.10-dev pkg-config debhelper

|---|-------------------------------------------------------------------------------------------| | 1 | root@kali:~# apt-get install qt5-qmake qtbase5-dev libbotan1.10-dev pkg-config debhelper |

安装libqtshadowsocks-dev
root@kali:~# cd Downloads/ root@kali:~/Downloads# git clone --branch v1.10.0 https://github.com/shadowsocks/libQtShadowsocks.git root@kali:~/Downloads# cd libQtShadowsocks/ root@kali:~/Downloads/libQtShadowsocks# dpkg-buildpackage -uc -us -b root@kali:~/Downloads/libQtShadowsocks# dpkg -i ../libqtshadowsocks_1.10.0-1_amd64.deb ../libqtshadowsocks-dev_1.10.0-1_amd64.deb root@kali:~/Downloads/libQtShadowsocks# cd ..

|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 5 6 | root@kali:~# cd Downloads/ root@kali:~/Downloads# git clone --branch v1.10.0 https://github.com/shadowsocks/libQtShadowsocks.git root@kali:~/Downloads# cd libQtShadowsocks/ root@kali:~/Downloads/libQtShadowsocks# dpkg-buildpackage -uc -us -b root@kali:~/Downloads/libQtShadowsocks# dpkg -i ../libqtshadowsocks_1.10.0-1_amd64.deb ../libqtshadowsocks-dev_1.10.0-1_amd64.deb root@kali:~/Downloads/libQtShadowsocks# cd .. |


安装shadowsocks-qt5 {#title-1}

安装依赖
root@kali:~/Downloads# apt-get install libqrencode-dev libzbar-dev libappindicator-dev

|---|-----------------------------------------------------------------------------------------| | 1 | root@kali:~/Downloads# apt-get install libqrencode-dev libzbar-dev libappindicator-dev |

安装shadowsocks-qt5
root@kali:~/Downloads# git clone --branch v2.8.0 https://github.com/shadowsocks/shadowsocks-qt5.git root@kali:~/Downloads# cd shadowsocks-qt5/ root@kali:~/Downloads/shadowsocks-qt5# dpkg-buildpackage -uc -us -b root@kali:~/Downloads/shadowsocks-qt5# dpkg -i ../shadowsocks-qt5_2.8.0-1_amd64.deb

|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 | root@kali:~/Downloads# git clone --branch v2.8.0 https://github.com/shadowsocks/shadowsocks-qt5.git root@kali:~/Downloads# cd shadowsocks-qt5/ root@kali:~/Downloads/shadowsocks-qt5# dpkg-buildpackage -uc -us -b root@kali:~/Downloads/shadowsocks-qt5# dpkg -i ../shadowsocks-qt5_2.8.0-1_amd64.deb |

运行ss客户端
root@kali:~/Downloads/shadowsocks-qt5# ss-qt5

|---|------------------------------------------------| | 1 | root@kali:~/Downloads/shadowsocks-qt5# ss-qt5 |

启动后可以直接将ss添加到收藏夹,下次直接从收藏夹打开。


安装GenPAC {#title-2}

安装下载GenPAC
root@kali:~/Downloads/shadowsocks-qt5# cd root@kali:~# pip install genpac root@kali:~# pip install --upgrade genpac root@kali:~# 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"

|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 | root@kali:~/Downloads/shadowsocks-qt5# cd root@kali:~# pip install genpac root@kali:~# pip install --upgrade genpac root@kali:~# 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" |

接下来点击右上角代理,网络设置,设置自动,我这里的pac文件在root下,所以我把下面地址填进去就可以了,当然你也可以换其他路径
file:///root/autoproxy.pac
genpac详细说明https://github.com/JinnLynn/GenPAC

附:
如果看到下面这种报错,表示缺少依赖,安装所需要的依赖。例:这里就需要安装apt-get install libqrencode-dev libzbar-dev libappindicator-dev
dpkg-checkbuilddeps: error: Unmet build dependencies: libqrencode-dev libzbar-dev libappindicator-dev


赞(0)
未经允许不得转载:工具盒子 » kali linux安装ss客户端shadowsocks-qt5