[toc]
kali linux 安裝KDE桌面環(huán)境及美化
目標(biāo)
kali linux rolling 更換桌面環(huán)境為KDE, 默認(rèn) kali linux 使用的桌面環(huán)境是 gnome或是xfce, 其實(shí)也還可以,特別是xfce可以換切到類windows10主題,也蠻好看的。但朕就是想換KDE
預(yù)備
- 操作系統(tǒng)
# cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2020.3"
VERSION_ID="2020.3"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
操作
## 安裝KDE軟件
echo '>_ start install kde'
sudo apt-get install kali-defaults kali-root-login desktop-base kde-plasma-desktop -y
echo '>_ install kde over'
## 切換桌面環(huán)境
echo '>_ change x-session'
sudo update-alternatives --config x-session-manager
## 重啟
echo '>_ reboot'
sudo reboot
美化
1. 變更主題
## 下載主題
菜單 》 系統(tǒng)設(shè)置 》 全局主題 》 獲取新的全局主題 》 WhiteSur-dark 》 安裝
## 使用主題
菜單 》 系統(tǒng)設(shè)置 》 全局主題 》WhiteSur-dark 》勾選`使用來自主題的桌面布局` 》 應(yīng)用
2. 變更圖標(biāo)
## 下載圖標(biāo)
菜單 》 系統(tǒng)設(shè)置 》圖標(biāo) 》 獲取新圖標(biāo)主題 》 WhiteSur icon theme 》 安裝
## 使用圖標(biāo)
菜單 》 系統(tǒng)設(shè)置 》圖標(biāo) 》WhiteSur-dark 》應(yīng)用
3. 變更壁紙
## 下載壁紙
桌面右鍵 》 配置桌面 》 獲取新壁紙 》 WhiteSur Wallpaper 》 安裝
## 使用壁紙
桌面右鍵 》 配置桌面 》 WhiteSur 》 應(yīng)用
4. 安裝網(wǎng)速部件
## 下載網(wǎng)速部件
任務(wù)欄右鍵 》 添加部件 》 獲取新部件 》 下載新的plasma部件 》NetSpeed Widget 》安裝
## 使用網(wǎng)速部件
任務(wù)欄右鍵 》添加部件 》 NetSpeed Widget 》 雙擊添加
5. 添加時(shí)間部件
## 使用時(shí)間部件
任務(wù)欄右鍵 》添加部件 》 數(shù)字時(shí)鐘 》 雙擊添加
6. 安裝Dock欄
## 安裝 Dock
sudo apt install latte-dock
## 重新啟動(dòng)
sudo reboot
7. 登錄屏幕
## 安裝登錄屏幕主題
菜單 》 系統(tǒng)設(shè)置 》開機(jī)和關(guān)機(jī) 》 獲取新登錄屏幕 》 WhiteSur SDDM 》 安裝
## 使用登錄屏幕主題
菜單 》 系統(tǒng)設(shè)置 》開機(jī)和關(guān)機(jī) 》WhiteSur 》 應(yīng)用
## 隱藏登錄屏幕顯示 Root 用戶(請確保你有其它可顯示用戶)
sudo vim /etc/sddm.conf
?``` 配置內(nèi)容
[Users]
DefaultPath=/bin:/usr/bin:/sbin:/usr/sbin
HideShells=/bin/false,/sbin/nologin,/usr/sbin/nologin,/bin/sync
HideUsers=arpwatch,speech-dispatcher,postgres,couchdb,root
?```
補(bǔ)充
1. 深度版微信修復(fù)
# 原因
原來使用的深度版微信是在gnome和mate桌面環(huán)境下使用的,使用正常,但更改kde后無法啟動(dòng)
# 處理
sudo apt install gnome-settings-daemon
# 更改
sudo vim /opt/deepinwine/apps/Deepin-WeChat/run-weChat.sh
?```Shell內(nèi)容
#!/bin/bash
## 添加部分
/usr/libexec/gsd-xsettings &
## 原來內(nèi)容
"/opt/deepinwine/apps/Deepin-WeChat/run.sh">/dev/null 2>&1
start_succ=false
for i in {1..5}
do
xdotool search --onlyvisible --classname "WeChat.exe"
if [ $? == 0 ]
then
start_succ=true
break
fi
sleep 10
done
if [ $start_succ == false ]
then
exit 1
fi
windowclose=false
while :
do
retval=$(xdotool search --onlyvisible --classname "WeChat.exe")
if [ $? != 0 ]
then
exit 0
fi
login=true
for id in $retval
do
windowname=$(xdotool getwindowname $id)
if [ "$windowname" == "登錄" ]
then
login=false
fi
if [ $windowclose == true ] && ([ "$windowname" == "" ] || [ "$windowname" == "ChatContactMenu" ])
then
xdotool windowclose $id
fi
done
if [ $windowclose == true ]
then
exit 0
fi
if [ $login == true ]
then
windowclose=true
fi
sleep 2
done
?```
效果

kde.png