Kali-linux安装之后的简单设置

address:http://xiao106347.blog.163.com/blog/static/215992078201342410347137/

1.更新软件源:

修改sources.list文件:
leafpad /etc/apt/sources.list
然后选择添加以下较快的源: 
<p><span style="font-family: 微软雅黑;"><span style="font-size: 12px; color: rgb(51, 102, 255);"><span class="com">#官方源</span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//http.kali.org/kali kali main non-free contrib</span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//http.kali.org/kali kali main non-free contrib</span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//security.kali.org/kali-security kali/updates main contrib non-free </span>

<span class="com">#中科大kali源</span></span></span>
<span style="font-family: 微软雅黑;"><span style="font-size: 12px; color: rgb(51, 102, 255);"><span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirrors.ustc.edu.cn/kali kali main non-free contrib</span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirrors.ustc.edu.cn/kali kali main non-free contrib</span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free</span>

<span class="com">#新加坡kali源</span></span></span>
<span style="font-family: 微软雅黑;"><span style="font-size: 12px; color: rgb(51, 102, 255);"><span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirror.nus.edu.sg/kali/kali/ kali main non-free contrib</span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirror.nus.edu.sg/kali/kali/ kali main non-free contrib</span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//security.kali.org/kali-security kali/updates main contrib non-free</span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free</span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free</span><strong></strong>

<span class="com">#debian_wheezy国内源</span></span></span></p><p><span style="font-family: 微软雅黑;"><span style="font-size: 12px; color: rgb(51, 102, 255);"><span class="com">deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib</span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//ftp.sjtu.edu.cn/debian wheezy main non-free contrib </span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib </span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib </span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib </span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib </span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian wheezy main non-free contrib </span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian wheezy main non-free contrib </span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian wheezy-proposed-updates main non-free contrib </span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian wheezy-proposed-updates main non-free contrib </span>
<span class="pln">deb</span><span class="pun">-</span><span class="pln">src http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian-security wheezy/updates main non-free contrib </span>
<span class="pln">deb http</span><span class="pun">:</span><span class="com">//mirrors.163.com/debian-security wheezy/updates main non-free contrib</span></span></span></p>
保存之后运行:apt-get update && apt-get dist-upgrade

2.kali-linux安装中文输入法(以下任意选择一安装):
     apt-get install fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei                                 #拼音五笔
     apt-get install ibus ibus-pinyin                                                                                   #经典的ibus
     apt-get install fcitx 
fcitx-googlepinyin  fcitx-pinyin fcitx-module-cloudpinyin                  #fcitx拼音  
注销,重新登录之后才可以使用。

3.kali-linux安装flash player:
        apt-get install flashplugin-nonfree
        update-flashplugin-nonfree --install
或者参看:ubuntu下安装flash

4.kali-linux安装qq2012
!!!QQ2012现在无法使用了,可以参照这个 kali-linux安装QQ解决方案
 
(1)
dpkg --add-architecture i386
         apt-get update
         apt-get install ia32-libs  libnotify-bin ia32-libs-gtk 
      
         #如果是32位操作系统,这步可以跳过
(2) 下载这个库文件(alsa-lib):
           http://pan.baidu.com/share/link?shareid=470635&uk=1209563959
           cd到下载目录
           bzip2 -d alsa-lib-1.0.26.tar.bz2 && tar -vxf alsa-lib-1.0.26.tar && cd alsa-lib-1.0.26/ && ./configure && make && make install && make clean

(3)下载安装wineqq2012:           
           wget http://www.longene.org/download/WineQQ2012-20121221-Longene.deb && dpkg -i WineQQ2012-20121221-Longene.deb

Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记
 
5.kali_linux安装最新iceweasel,并汉化
deb http://mozilla.debian.net/ wheezy-backports iceweasel-release      # 添加这个软件源
apt-get install pkg-mozilla-archive-keyring                                                   #导入PGP KEY
gpg --check-sigs --fingerprint --keyring /etc/apt/trusted.gpg.d/pkg-mozilla-archive-keyring.gpg --keyring /usr/share/keyrings/debian-keyring.gpg pkg-mozilla-maintainers            #新建 钥匙环
apt-get update && apt-get install -t wheezy-backports iceweasel && apt-get install iceweasel-l10n-zh-cn
Kali_linux简单设置2 - xiao106347 - 学习笔记

6.安装一些工具:
apt-get install gnome-tweak-tool                   #安装gnome管理软件
apt-get install synaptic                    #安装新立德
apt-get install file-roller                    #安装解压缩软件
apt-get install clementine                    #clementine音乐播放器
apt-get install smplayer                    #安装smplayer视频播放器
apt-get install terminator                    #安装多窗口终端

Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记
 

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


经典模式:
Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记

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


9.Kali-linux设置vpn代理:
依次执行以下命令之后就可以陪置vpn了:
<p><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">openvpn</span><span class="pun">-</span><span class="pln">gnome</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">pptp</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">pptp</span><span class="pun">-</span><span class="pln">gnome</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">strongswan</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">vpnc</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install network</span><span class="pun">-</span><span class="pln">manager</span><span class="pun">-</span><span class="pln">vpnc</span><span class="pun">-</span><span class="pln">gnome</span></span><br style="word-wrap: break-word; line-height: 21px;" /><span style="line-height: 21px;"><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">init</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">network</span><span class="pun">-</span><span class="pln">manager restart</span></span></p>

有些vpn无法连接的情况请参照下图设置, 更详细方法请 参照文尾推荐阅读的《 ubuntu下设置vpn连接 》。
Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记
 
10. 安装VMware和 VirtualBox
  链接:http://xiao106347.blog.163.com/blog/static/2159920782013928288628/
Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记

11.运行 Metasploit Framework( 转,原文地址:http://www.backtrack.org.cn/thread-12664-1-1.html)
依照kali linux网络服务策略,Kali没有自动启动的网络服务,包括数据库服务在内。所以为了让metasploit以支持数据库的方式运行有些必要的步骤。
启动Kali的PostgreSQL服务:Metasploit 使用PostgreSQL作为数据库,所以必须先运行它。
service postgresql start
可以用 ss -ant  的输出来检验PostgreSQL是否在运行,然后确认5432端口处于listening状态。
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 :::22 :::*8 
LISTEN 0 128 *:22 *:*3
LISTEN 0 128 127.0.0.1:5432 *:*4 
LISTEN 0 128 ::1:5432 :::*
启动Kali的Metasploit服务:随着PostgreSQL的启动和运行,接着我们要运行Metasploit服务。第一次运行服务会创建一个msf3数据库用户和一个叫msf3的数据库。还会运行Metasploit RPC和它需要的WEB 服务端。
service metasploit start
在Kali运行msfconsole:现在PostgreSQL 和 Metasploit服务都运行了,可以运行 msfconsole,然后用 db_status 命令检验数据库的连通性。
msf > db_status
[*] postgresql connected to msf3
msf >
配置Metasploit随系统启动运行:如果你想PostgreSQL和Metasploit在开机时运行,你可以使用update-rc.d启用服务。
update-rc.d postgresql enable
update-rc.d metasploit enable
Kali-linux安装之后的简单设置 - xiao106347 - 学习笔记
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值