ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 定制Kali的桌面系统 ## 更换Kali的桌面环境 不是所有的Kali Linux用户都希望使用Gnome作为默认的桌面环境,所以我们简化了更换桌面管理器所需的工作.要封装一个定制过桌面环境的专属Kali ISO镜像,从[封装定制的Kali Live ISO](http://cn.docs.kali.org/downloading-cn/%e5%b0%81%e8%a3%85%e5%ae%9a%e5%88%b6%e7%9a%84kali-live-iso "Live Build a Custom Kali ISO")这篇文档开始吧.在封装你的ISO之前,先编辑**config/package-lists/kali.list.chroot**的最后部分,加入你选择的桌面环境的相关信息到这些注释的后面: ``` # Graphical desktops depending on the architecture # # You can replace all the remaining lines with a list of the # packages required to install your preferred graphical desktop # or you can just comment everything except the packages of your # preferred desktop. ``` ## [KDE](#5xihfiganzk4_0) ``` kali-defaults kali-root-login desktop-base kde-plasma-desktop ``` ## [Gnome](#5xihfiganzk4_1) ``` gnome-core kali-defaults kali-root-login desktop-base ``` ## [LXDE](#5xihfiganzk4_2) ``` kali-defaults kali-root-login desktop-base lxde ``` ## [XFCE](#5xihfiganzk4_3) ``` kali-defaults kali-root-login desktop-base xfce4 ``` ## [I3WM](#5xihfiganzk4_4) ``` # cheers to 0xerror xorg dmenu conky i3 ``` ## [MATE](#5xihfiganzk4_5) “MATE”桌面默认并没有被包含在我们的源里,集成到Kali里需要一些操作. ``` echo "deb http://repo.mate-desktop.org/debian wheezy main" >> /etc/apt/sources.list apt-get update apt-get install mate-archive-keyring ``` ``` # apt-get install git live-build cdebootstrap # git clone git://git.kali.org/live-build-config.git cd live-build-config mkdir config/archives echo "deb http://repo.mate-desktop.org/debian wheezy main" > config/archives/mate.list.binary echo "deb http://repo.mate-desktop.org/debian wheezy main" > config/archives/mate.list.chroot cp /usr/share/keyrings/mate-archive-keyring.gpg config/archives/mate.key.binary cp /usr/share/keyrings/mate-archive-keyring.gpg config/archives/mate.key.chroot echo "sleep 20" >> config/hooks/z_sleep.chroot ``` 添加mate桌面到软件包的列表: 编辑后的config/package-lists/kali.list.chroot应该是这样: ``` xorg mate-archive-keyring mate-core mate-desktop-environment ```