# Kali Linux



# Kali Linux ZH_TW 繁體中文化

### 環境

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

### 設定時區

如果你不是用ISO安裝是直接下載VM版本的Kali Linux預設的時區是不對的，在中文化前先來變更一下時區設定

```
sudo timedatectl set-timezone Asia/Taipei
timedatectl
```

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

### 設定語系

```
sudo dpkg-reconfigure locales
```

勾選 "zh\_TW.UTF-8" 後按 &lt;ok&gt;

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

選擇預設語系 "zh\_TW.UTF-8"

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

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

完成之後重新開機

重開完成之後，會出現以下畫面，自己選擇是否要更名

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

### 安裝fcitx5中文輸入法

```
sudo apt-get update
sudo apt-get install fcitx5 fcitx5-chewing im-config zenity -y
```

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

執行im-config

```
im-config
```

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

點選"是"，指定使用者設定值

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

設定使用fcitx5為預設輸入法

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

點選"確定"，完成 im-config 設定

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

重新開機後，右上角即會出現輸入法了

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

執行Fcitx5設定可以更進階的設定切換輸入法按鍵

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

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

# 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)

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