折腾了好长时间,记录一下:
因为是使用了Kali2.0的原因,网上很少由教程说具体怎么安装。
1.尝试了下载QT,对源码进行编译,结果报错一直找不到原因,如下图所示:
/root/桌面/WizQTClient-master/lib/cryptopp/cryptlib.cpp: In member function 'virtual size_t CryptoPP::PK_Signer::SignMessage(CryptoPP::RandomNumberGenerator&, const byte*, size_t, byte*) const': /root/桌面/WizQTClient-master/lib/cryptopp/cryptlib.cpp:764:41: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations] std::auto_ptr<PK_MessageAccumulator> m(NewSignatureAccumulator(rng)); ^
求大神指教
2.使用官网上Ubuntu的方式来安装
在/usr/bin下写一个脚本apt-add-repository,内容如下:
#!/bin/bash if [ $# -eq 1 ] then ppa_name=`echo "$1" | cut -d":" -f2 -s` if [ -z "$ppa_name" ] then echo "PPA name not found" echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" else echo "$ppa_name" echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu lucid main" >> /etc/apt/sources.list apt-get update >> /dev/null 2> /tmp/apt_add_key.txt key=`cat /tmp/apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3` apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key rm -rf /tmp/apt_add_key.txt fi else echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" fi
修改权限和属主:
chmod +x apt-add-respository
chown root:root apt-add-respository
执行apt-update,然后悲剧了:
W: 无法下载 http://ppa.launchpad.net/wiznote-team/ubuntu/dists/lucid/main/binary-amd64/Packages 404 Not Found
显然是那个url是错误的,不是很清楚为什么那个目录结构不正确,不过既然可以找到ppa的位置,于是采用了最简单的办法,直接从ppa那边下载deb包。。。
https://launchpad.net/~wiznote-team/+archive/ubuntu/ppa/+packages
之后搞一下为什么会找不到资源。。
另外:对于Kali2.0的设置,这篇文章感觉不错:
http://tenshine.org/linux/kali2.0-setting.html