Kali Linux设置源及安装常用软件

来源:互联网 发布:室内设计用的软件 编辑:程序博客网 时间:2024/05/22 23:28

看看里面有没有一下三行kali官方源的地址(如果是断网安装,kali的默认源可能不会写入到这个文件里),如果没有,请在/etc/apt/sources.list中入这三行。

#官方源
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

#debian_wheezy国内源

deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib 
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib 
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib 
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib 
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib 
#163源
deb
 http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib

root@newbie:~# apt-get upgrade


 

1.安装中文字体和拼音输入法

 

Kali Linux的国际化做得真心不错,安装时如果你选择了中文语言,进入系统之后已经发现汉化完成了。如果安装时没有选择中文那么请参考一下的方法吧系统语言设置成中文:

点击右上角root—— System Settings—— Region and Language——点击“+”按键—— Chinesechina—— Select —— Chinesesimplified),重启电脑即可。

如果还不行也有可能是中文包没有安装,在终端中运行:

 dpkg-reconfigurelocales

安装fcix输入法

 

root@newbie:~# apt-get installfcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei

root@newbie:~# im-config  配置

 

 

2.安装Deb包图形安装工具

 

root@newbie:~# Apt-get install gdebi

 

 

3.安装Chrome浏览器

 

谷歌官网下载deb工具包,用gdebi安装完后。但是由于Kali系统是默认root,所以点击图标后没有任何反应。所以应该以普通用户来启动:

 

      1)创建一个新用户:

root@newbie:~# useradd -m cz

      2)  设置用户密码:

root@newbie:~# passwd cz

      3)  将用户添加到sudo组(允许用户进行安装软件、使用特权模式等操作)

root@newbie:~# usermod -a -G sudo cz

 

设置完之后就可以使用chrome浏览器了

 

如果实在想以root用户启动chrome,就在chrome文件后面加上 --user-data-dir:

 

root@newbie:~# vi/usr/bin/google-chrome

计算机生成了可选文字:overrides the default n "$CHROME USER_DATA_DIR ] ] ; then # Note: e x e c a below s a bashism e X e C a u S e r e X e C a "$HERE/chrome" -data dir "$CHROME USER_DA A_ D I R "$HERE/chrome" u s e r data d

 

然后每次以命令行方式启动:

root@newbie:~#/usr/bin/google-chrome %U --no-sandbox

 

4.安装XAMPP

 

  官网上下载.run安装包https://www.apachefriends.org/zh_cn/index.html

 

root@newbie:/home/cz/下载# chmod +xxampp-linux-x64-5.6.15-1-installer.run

root@newbie:/home/cz/下载#./xampp-linux-x64-5.6.15-1-installer.run

 

 

重要的文件和目录

文件/目录用途

/opt/lampp/bin/ XAMPP命令库。例如/opt/lampp/bin/mysql可执行 MySQL监视器。

/opt/lampp/htdocs/ Apache文档根目录。

/opt/lampp/etc/httpd.conf Apache配制文件。

/opt/lampp/etc/my.cnf MySQL配制文件。

/opt/lampp/etc/php.ini PHP配制文件。

/opt/lampp/etc/proftpd.conf ProFTPD配制文件。(从0.9.5版开始)

/opt/lampp/phpmyadmin/config.inc.phpphpMyAdmin配制文件。

/opt/lampp/logs/error_logs  //错误信息

0 0
原创粉丝点击