# Kali Linux 改 KDE Plasma 桌面環境

### 前言

我真的不太喜歡用Kali預設的Xfce，所以我決定要來把Xfce換成KDE Plasma

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/rgiimage.png)

### 系統環境

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/E2Aimage.png)

### 安裝KDE Plasma

```
sudo apt-get update
sudo apt-get install kali-desktop-kde -y
```

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/sJFimage.png)

跳出下面畫面，SDDM是KDE預設的Display Manager，LightDM是Xfce預設的Display Manager，在這邊我們先選LightDM(不然會有問題)，晚一點移除Xfce後再改為使用SDDM

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/7W0image.png)

執行下面指令更換為預設KDE

```
sudo update-alternatives --config x-session-manager
```

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/hVYimage.png)

登出

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/pXkimage.png)

再重新登入，桌面就變成美美的KDE Plasma了 ^0^

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/0lgimage.png)

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/d3Oimage.png)

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/q5Limage.png)

### 移除Xfce、改用SDDM

```
sudo apt purge --autoremove kali-desktop-xfce
sudo dpkg-reconfigure sddm
sudo systemctl reboot
```

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/MNIimage.png)

重新開機後，Dosplay Manager就改成KDE的登入畫面了

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/p7eimage.png)

進到桌面，重新設定im-config (可參照 [https://mdfk.goddamn.idv.tw/books/linux/page/kali-linux-zh-tw](https://mdfk.goddamn.idv.tw/books/linux/page/kali-linux-zh-tw) 中文化設定)

```
im-config
```

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/KQrimage.png)

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/eC0image.png)

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/jkyimage.png)

![image.png](https://mdfk.goddamn.idv.tw/uploads/images/gallery/2024-07/scaled-1680-/fx2image.png)

完成後重新開機，大功告成