kali切换桌面环境

时间:2024-02-29 20:23:15

感谢大佬:https://blog.csdn.net/tao546377318/article/details/52353018

kali 是基于Debian的发行版,兼容性和软件支持都很好,默认使用Gnome桌面,如果不喜欢这个桌面环境,可以切换到其它的桌面环境,例如Linux mint使用的Cinnamon和mate桌面,官方源里已经有很多的桌面环境,几条命令就可以搞定切换

更新源

1、登录kali2.0系统

2、 修改软件源APT-sources.list

vim/etc/apt/sources.list

可以删除该文件中的所有内容,也可以直接在文前添加新的APT源。

3、  然后选择合适自己的源

------------------------------Kali2.0 ---滚动更新源-----------------------------------

#kali官方源

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

#中科大的源

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

 

---------------------------------Kali2.0 ---更新源-----------------------------------

#科大的云
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free


#
阿里云
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb-src http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security sana/updates main contrib non-free

----------------------------------Kali1.0--更新源-------------------------------------

#官方源

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

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

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

 

#中科大kali

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

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

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

 

#新加坡kali

deb http://mirror.nus.edu.sg/kali/kali/kali main non-free contrib

deb-src http://mirror.nus.edu.sg/kali/kali/kali main non-free contrib

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

deb http://mirror.nus.edu.sg/kali/kali-securitykali/updates main contrib non-free

deb-src http://mirror.nus.edu.sg/kali/kali-securitykali/updates main contrib non-free

 

#阿里云kali

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

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

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

 

#163 Kali

deb http://mirrors.163.com/debianwheezy main non-free contrib

deb-src http://mirrors.163.com/debianwheezy main non-free contrib

deb http://mirrors.163.com/debianwheezy-proposed-updates main non-free contrib

deb-src http://mirrors.163.com/debianwheezy-proposed-updates main non-free contrib

deb-src http://mirrors.163.com/debian-securitywheezy/updates main non-free contrib

deb http://mirrors.163.com/debian-securitywheezy/updates main non-free contrib

 

#上海交大 Kali源 (比较慢,直接忽略)

#deb http://ftp.sjtu.edu.cn/debianwheezy main non-free contrib

#deb-src http://ftp.sjtu.edu.cn/debianwheezy main non-free contrib

#deb http://ftp.sjtu.edu.cn/debianwheezy-proposed-updates main non-free contrib

#deb-src http://ftp.sjtu.edu.cn/debianwheezy-proposed-updates main non-free contrib

#deb http://ftp.sjtu.edu.cn/debian-securitywheezy/updates main non-free contrib

#deb-src http://ftp.sjtu.edu.cn/debian-securitywheezy/updates main non-free contrib


4、  对软件进行一次整体更新:

apt-get update & apt-get upgrade

apt-get dist-upgrade 

apt-get clean

完成。

KDE桌面

1.KDE Plasma Desktop (最小化的等离子桌面)

安装:

apt-get install kali-defaults kali-root-login desktop-base kde-plasma-desktop

卸载:

apt-get remove kde-plasma-desktop

2.KDE 上网本桌面

安装:

apt-get install kali-defaults kali-root-login desktop-base kde-plasma-netbook

卸载:

apt-get remove  kde-plasma-netbook

3.KDE标准版(Debian精选使用的)

安装:

apt-get install kali-defaults kali-root-login desktop-base kde-standard

卸载:

apt-get remove kde-standard

4.KDE标准版

安装:

apt-get install kali-defaults kali-root-login desktop-base kde-full

卸载:

apt-get remove  kde-full

XFCE桌面

安装:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

卸载:

apt-get remove xfce4 xfce4-places-plugin xfce4-goodies

LXDE桌面

安装:

apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base

卸载:

apt-get remove lxde-core

Cinnamon 桌面

安装:

apt-get install kali-defaults kali-root-login desktop-base cinnamon

卸载:

apt-get remove cinnamon

I3WM桌面

安装:

apt-get install xorg dmenu conky i3

卸载:

apt-get remove xorg dmenu conky i3

MATE桌面

MATE桌面没有在kali默认的源里,需要加一下源

echo "deb http://repo.mate-desktop.org/debian wheezy main" >> /etc/apt/sources.list
apt-get update
apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring

安装

apt-get install kali-defaults kali-root-login desktop-base mate-core mate-desktop-environment mate-desktop-environment-extra

安装MATE的好处是可以使用原始GNOME下的kail 工具菜单,这是其它桌面环境没有的,方法:

vim /etc/xdg/menus/mate-applications.menu

找到Internet 节点,在</Menu><!-- End Internet -->下面加入:

<!-- Kali Linux  -->
<MergeFile type="path">applications-merged/kali-applications.menu</MergeFile>

保存,之后就可以在应用程序里看到“kali linux”的工具菜单了

卸载:

apt-get remove  mate-core mate-desktop-environment mate-desktop-environment-extra

GNOME桌面

这个是默认桌面,如果折腾后想换回原来的桌面,请按照下面的方法安装:

apt-get install gnome-core kali-defaults kali-root-login desktop-base

卸载:

 apt-get remove gnome-core

我使用的是Mate桌面,建议保留默认的Gnome桌面,安装好mate后,将mate设置成默认的登录使用的的桌面:

update-alternatives --config x-session-manager

之后选mate前面的数字,这样每次登录时就不用手选mate了。

注意:apt-get包管理在卸载软件后不要轻易使用apt-get autoremove,否则极容易各种悲剧。如果真想卸载干净,可以用apt-get purge

==================================================================================

更新
由于mate已经被debian官方源收录,mate-desktop.org的源中已经移除了debian和ubuntu的安装包,添加debian的backports源即可。

echo "deb http://http.debian.net/debian wheezy-backports main contribnon-free" >> /etc/apt/sources.list

安装:

apt-get update
apt-get install mate-archive-keyring
apt-get update
apt-get install mate-desktop-environment-extra

ps:大部分内容来自网络整理和个人使用经历,仅供学习使用,如有雷同,请见谅。