KaliLinux装好系统后安装常用软件

时间:2024-07-08 00:04:50

1.配置软件源
leafpad /etc/apt/source.list

or(recommand):
#官方源
deb kali main non-free contrib
deb-src kali main non-free contrib
deb kali/updates main contrib non-free

#激进源,新手不推荐使用这个软件源
deb kali-bleeding-edge main
deb-src kali-bleeding-edge main

#中科大kali源
deb kali main non-free contrib
deb-src kali main non-free contrib
deb kali/updates main contrib non-free

#阿里云kali源
deb kali main non-free contrib
deb-src kali main non-free contrib
deb kali/updates main contrib non-free

#aptitude 与apt-get 的区别可参考
aptitude update && aptitude full-upgrade

2.解决LC_CTYPE,LC_ALL的设置问题
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_US.UTF-8″,
LC_ALL = “en_US.UTF-8″,
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
参考:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

3.安装QQ
下载alsa-lib-1.0.26.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.26.tar.bz2
然后解压
tar -jxvf alsa-lib-1.0.26.tar.bz2
c.最后编译安装:
cd alsa-lib-1.0.26
./configure
make && make install

dpkg --add-architecture i386 ####移出 i386: dpkg --remove-architecture i386
apt-get install -y ia32-libs libnotify-bin ia32-libs-gtk libnotify-bin
wget
dpkg -i WineQQ2013SP6-20140102-Longene.deb

/usr/bin/qq:行69: /opt/longene/qq/longene_gtk: 没有那个文件或目录
解决方法:
apt-get install -y ia32-libs

dpkg -i --force-overwrite /var/cache/apt/archives/libasound2_1.0.25-4_i386.deb
libgtk-x11-2.0.so.0 : No such file or directory
/opt/longene/qq/longene_gtk: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
apt-get install libgtk-x11-2.0
?t=155354
apt-get install apt-file
apt-file search libGL.so.1
apt-get install ia32-libs-gtk (OK)

4.安装eclipe及pydev,django
可参考
apt-get install -y eclipse
默认安装的 eclipse plugins 路径为: /usr/lib/eclipse/

下载pydev
wget %203.2.0/PyDev%203.2.0.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpydev%2Ffiles%2Fpydev%2FPyDev%25203.2.0%2F&ts=1407645058&use_mirror=cznic

unzip PyDev\ 3.2.0.zip
cp -r features /usr/lib/eclipse/
cp -r plugins /usr/lib/eclipse/

安装 django:
curl https://bootstrap.pypa.io/ez_setup.py -o - | python
apt-get install -y apache2 libapache2-mod-wsgi mysql-server python-mysqldb
下载 django: #下载页面 https://www.djangoproject.com/download/
wget https://www.djangoproject.com/download/1.6.5/tarball/
tar -zxvf Django-1.6.5.tar.gz
cd Django-1.6.5
python setup.py install

打开eclipse
Windows → Preferences → PyDev → Python Interpreters →
(可以Auto config也可手动)
Interpreter name: Python 2.73
Interpreter Executable: /usr/bin/python2.7
/usr/bin/python2.7

5.安装fcitx中文输入法
apt-get install -y fcitx fcitx-pinyin fcitx-module-cloudpinyin fcitx-googlepinyin im-config
im-config
再将默认的输入法改成fcitx,保存即可

6.激活VPN连接
默认安装,是没有激活VPN的,能看到VPN选项,但是不能天际VPN连接
apt-get install -y pptpd network-manager-openvpn network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

7.安装libreoffice
apt-get install -y libreoffice

解决libreoffice中文显示方框:
fonts 安装字体:
apt-get install -y ttf-arphic-uming ttf-wqy-zenhei ttf-wqy-microhei ttf-arphic-ukai
从C:/Windows/Fonts 中复制
simfang.ttf和simsun.ttc 到 /usr/share/fonts/
打开libreoffice
libreoffice ->tools->options->libre write ->basic fonts
将字体改为 simsun

8. 安装java 1.7
#可在这里查看版本列表
#下载地址
wget
tar -zxvf jdk-7u67-linux-x64.tar.gz
cd jdk1.7.0_67/
mkdir /usr/local/java/jdk1.7.0_67
cp -r ./* /usr/local/java/jdk1.7.0_67
vi /etc/profile 加入:
export JAVA_HOME=/usr/local/java/jdk1.7.0_67
export JRE_HOME=/usr/local/java/jdk1.7.0_67/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export PATH=$JAVA_HOME:$PATH
source /etc/profile
#检查
java -version

9.安装新得立软件管理和邮件客户端
apt-get install -y synaptic
apt-get install -y gnome-tweak-tool gdebi icedove 10.kali-linux安装flash player:
apt-get install -y flashplugin-nonfree
update-flashplugin-nonfree --install

11.安装一些工具:
apt-get install -y gnome-tweak-tool file-roller clementine smplayer terminator

12.开启gnome 3的标准模式:
gsettings set org.gnome.desktop.session session-name gnome #这个模式比较流畅
gsettings set org.gnome.desktop.session session-name gnome-fallback #还原默认模式
gnome-shell --replace #在默认模式临时开启

13.安装chromium浏览器:
apt-get install -y chromium-browser #chromium
此时可以在应用程序-互联网下面找到chromium,如果是普通用户,可以立即使用,
如果当前是root账户登录的系统,打开chromium/google-chrome提示Chromium can not be run as root:
解决linux下root账户无法打开chromium/google-chrome的方法:右键桌面chromium图标,选属性;或打开主菜单,找到chromium,点属性:
往命令框之后添加一个空格,然后再添加--user-data-dir $HOME,close
这是完整命令: /usr/bin/chromium %U --user-data-dir $HOME,close
也可以把--user-data-dir 写入/usr/bin/chromiun文件的尾部,这样彻底些
同样,google-chrome也是一样的(/usr/bin/google-chrome)
关闭之后就可以打开了!

14.Linux 备份
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/media / (责任编辑:幽灵学院)