Kali Linux 装好系统后安装经常使用软件

时间:2023-03-09 05:56:20
Kali Linux 装好系统后安装经常使用软件

1.配置软件源 

leafpad /etc/apt/source.list



or(recommand):

#官方源

deb http://http.kali.org/kali kali main non-free contrib

deb-src http://http.kali.org/kali kali main non-free contrib

deb http://security.kali.org/kali-security kali/updates main contrib non-free



#激进源。新手不推荐使用这个软件源

deb http://repo.kali.org/kali kali-bleeding-edge main

deb-src http://repo.kali.org/kali kali-bleeding-edge main



#中科大kali源

deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib

deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib

deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free



#阿里云kali源

deb http://mirrors.aliyun.com/kali kali main non-free contrib

deb-src http://mirrors.aliyun.com/kali kali main non-free contrib

deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free





#aptitude 与apt-get 的差别可參考 http://blog.chinaunix.net/uid-10697776-id-3085807.html

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

參考:http://bookmarks.honewatson.com/2009/05/30/perl-warning-please-check-that-your-locale-settings-ubuntu/





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 http://www.longene.org/download/WineQQ2013SP6-20140102-Longene.deb

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

http://forum.ubuntu.org.cn/viewtopic.php?

t=155354

apt-get install apt-file

apt-file search libGL.so.1

apt-get install ia32-libs-gtk  (OK)  





4.安装eclipe及pydev,django

可參考 http://blog.****.net/allen_zhao_2012/article/details/7988389

apt-get install -y eclipse

默认安装的  eclipse plugins 路径为: /usr/lib/eclipse/



下载pydev

wget http://downloads.sourceforge.net/project/pydev/pydev/PyDev%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

#可在这里查看版本号列表  http://www.oracle.com/technetwork/java/javase/documentation/7u-relnotes-515228.html

#下载地址 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

cd /usr/local

cp jdk-7u55-linux-x64.tar.gz /usr/local

tar -zxvf jdk-7u55-linux-x64.tar.gz

mkdir java

mv jdk1.7.0_55 java/

cd java/jdk1.7.0_55/



vi /etc/profile 增加:

export JAVA_HOME=/usr/local/java/jdk1.7.0_55

export JRE_HOME=/usr/local/java/jdk1.7.0_55/jre

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH

export PATH=$JAVA_HOME:$PATH

source /etc/profile





update-alternatives --install /usr/bin/java java /usr/local/java/jdk1.7.0_55/bin/java 1


update-alternatives --install /usr/bin/javac javac /usr/local/java/jdk1.7.0_55/bin/javac 1


update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/local/java/jdk1.7.0_55/jre/lib/amd64/libnpjp2.so 1


update-alternatives --set java /usr/local/java/jdk1.7.0_55/bin/java

update-alternatives --set javac /usr/local/java/jdk1.7.0_55/bin/javac

update-alternatives --set mozilla-javaplugin.so /usr/local/java/jdk1.7.0_55/jre/lib/amd64/libnpjp2.so


#检查

java -version







9.安装新得立软件管理和邮件client

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

相关文章