上大學的時候就在自己的筆記本上安裝過深度操作系統(deepin),當時好像是15.x的版本。畢業后第一家公司是全Mac辦公,因在學校期間有過完全Linux環境下的開發體驗,上手Mac非常快、非常爽。前段時間換了工作,當前公司用的是台式機。於是,入職當天重裝了deepin系統,也就有了此篇博客。隨手記錄,方便你我他。持續更新~~

deepin最新版本下載
https://www.deepin.org/zh/download/
如何安裝deepin
https://www.deepin.org/zh/installation/
當前版本deepin20.2,開箱就內置了很多實用的軟件。但作為軟件開發人員,還需要安裝一些開發中常用的工具與軟件。
常用軟件安裝
sudo apt-get install git -y
sudo apt-get install curl -y
sudo apt-get install zsh -y
sudo apt-get install xsel -y
sudo apt-get install htop -y
Oh My Zsh安裝:
https://ohmyz.sh/
Chrome瀏覽器:
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Chrome瀏覽器常用插件
- Adblock Plus
- Tampermonkey
- JSON Formatter
- Sourcegraph
- Octotree
- GitCodeTree
- XPath Helper
- yuque-helper
- Google翻譯
- Proxy SwitchyOmega
搜狗輸入法:
https://pinyin.sogou.com/linux/
百度輸入法:
http://srf.baidu.com/site/guanwang_linux/index.html
JDK:
https://repo.huaweicloud.com/java/jdk/8u202-b08/
https://enos.itcollege.ee/~jpoial/allalaadimised/jdk8/
Python開發環境搭建:
https://www.cnblogs.com/bytesfly/p/python-environment.html
Java反編譯圖形化工具:
http://java-decompiler.github.io/
JetBrains全家桶:
https://www.jetbrains.com/zh-cn/products/
IntelliJ IDEA:
https://www.jetbrains.com/zh-cn/idea/download/other.html
PyCharm:
https://www.jetbrains.com/pycharm/download/other.html
DataGrip:
https://www.jetbrains.com/zh-cn/datagrip/download/other.html
VSCode:
https://code.visualstudio.com/Download
百度網盤客戶端(官方已有Linux版):
https://pan.baidu.com/download/
Free Download Manager(也可以從deepin的應用商店直接安裝):
https://www.freedownloadmanager.org/zh/
docker安裝
https://wiki.deepin.org/wiki/Docker
另外附上別人已經整理好的安裝腳本(實測沒毛病, 強烈推薦)
https://gist.github.com/madkoding/3f9b02c431de5d748dfde6957b8b85ff
命令導入OpenVPN文件:
https://github.com/linuxdeepin/dde-control-center/issues/43
https://bbs.deepin.org/post/205870
sudo nmcli connection import type openvpn file your-own-openvpn-profile-config-file.ovpn
此外在deepin的應用商店可方便的安裝很多常用軟件,比如:
Typora(markdown編輯器)、微信、QQ、WPS、迅雷、Postman、Wireshark、Flameshot(好用的截圖工具)、網易雲音樂等等
Typora主題:https://theme.typora.io/theme/Drake/
字體:https://www.jetbrains.com/zh-cn/lp/mono/
星火應用商店——致力於豐富Linux生態,取星星之火,可以燎原之意(有一些民間wine打包的應用):
https://www.spark-app.store/
其他:
https://github.com/shadowsocksrr/electron-ssr
https://github.com/Qv2ray/Qv2ray
Command匯總
實用
命令行操作剪貼板
# 安裝xsel
sudo apt-get install xsel
# 拷貝到剪貼板
cat file.txt | xsel -b
# 從剪貼板粘貼
xsel -b >> example.txt
字體查看
# 查看系統字體
fc-list
# 查看系統中已經安裝的中文字體
fc-list :lang=zh
fc-list -q 'Noto Serif CJK SC'
fc-list -q 'WenQuanYi Micro Hei'
常見問題匯總
下面是使用deepin過程中遇到的常見問題匯總。持續更新~~
快捷鍵沖突
參考:https://www.jianshu.com/p/4bbae666abff
IDEA中有好幾個常用的快捷鍵被deepin系統占用了,非常難受,我是不願意修改IDEA默認快捷鍵的(通用的多好哇),所以嘗試去修改deepin系統默認快捷鍵。
# 查看哪些快捷鍵被占用了,記得用grep過濾
gsettings list-recursively
# 取消Ctrl+Alt+U
gsettings set com.deepin.dde.keybinding.system translation '[]'
修改被系統占用的快捷鍵Ctrl+Alt+B,這樣IDEA中就能happy地使用了。

dpkg: 處理軟件包 xxx (--configure)時出錯
使用apt-get安裝某軟件包(比如xxx)時失敗可能會導致安裝其他軟件都失敗,報錯信息大致如下:
dpkg: 處理軟件包 xxx (--configure)時出錯:
已安裝 xxx 軟件包 post-installation 腳本 子進程返回錯誤狀態 1
在處理時有錯誤發生:
xxx
E: Sub-process /usr/bin/dpkg returned an error code (1)
可以用如下方法嘗試解決(比如發生錯誤的軟件包是xxx):
# 新建臨時目錄用作備份
mkdir /tmp/xxx
# 查看xxx軟件包信息文件
ls -l /var/lib/dpkg/info/xxx.*
# 把xxx軟件包信息移到臨時目錄
sudo mv /var/lib/dpkg/info/xxx.* /tmp/xxx
# 下面這一步可以不要
sudo apt autoremove xxx
然后再用apt-get安裝其他軟件。
寫在后面
當前只是記錄了少許痕跡,隨着后續對deepin的深度使用,更多使用建議與問題匯總將記錄於此。也歡迎朋友在評論區留言,分享你的常用軟件與經驗總結!
