注意:以下命令用sudo或者以root用戶進行
一.Xterm(在安裝KDE桌面情況下)的配置(可以黏貼,復制):
首先在根目錄下編輯文件.Xresources(沒有可以創建)
root@debian:~# vim ~/.Xresources root@debian:~# cat ~/.Xresources !=============================== ! – Setting for xterm ! ——————– XTerm*locale: true XTerm*utf8Title: true XTerm*fontMenu*fontdefault*Label: Default XTerm*faceName: Courier 10 Pitch:antialias=True:pixelsize=18 !中文字體 XTerm*faceNameDoublesize: Microsoft YaHei:antialias=True:pixelsize=12 !中文輸入 XTerm*inputMethod: ibus XTerm*faceSize: 20 XTerm*faceSize1: 20 XTerm*faceSize2: 20 XTerm*faceSize3: 20 XTerm*faceSize4: 20 XTerm*faceSize5: 20 XTerm*faceSize6: 20 XTerm.cjkWidth:true XTerm*background: #C7EDCC XTerm*foreground: #000000 XTerm*scrollBar: true XTerm*rightScrollBar: true XTerm*jumpScroll: true XTerm*SaveLines: 1000 XTerm*VT100.Translations: #override \n Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n Ctrl <KeyPress> P: print() \n !———————- !- End of setting Xterm !=========================
最后執行:
xrdb ~/.Xresources
借鑒自:陳聽溪
二.安裝fcitx的ui(否則輸入法不能使用),安裝搜狗輸入法:
1)安裝fitcx的ui件:
apt-get install fcitx-ui-classic apt-get install fcitx-ui-light
2)安裝搜狗輸入法linux版:
1.去搜狗官網下載最新的linux版本
2.然后安裝:
dpkg -i deb軟件包
3.最后可能出現依賴問題,執行:
apt-get install -f
4.最后reboot,可見效果
三.安裝winehq,安裝wineqq(注意最好在系統環境干凈時安裝,負責可能出現依賴問題):
1)安裝winehq:
1.去官網可查看最新安裝信息
2.選擇自己的系統,然后按照命令進行
2)可以參考下面代碼:
開啟32位包安裝:
dpkg --add-architecture i386
安裝簽名鑰匙:
wget -nc https://dl.winehq.org/wine-builds/Release.key apt-key add Release.key
添加源(如何為debian添加源?):
deb https://dl.winehq.org/wine-builds/debian/ DISTRO main
注意:上面的 DISTRO 是debian版,比如debian8是 Jessie 然而debian9則是: stretch,相關的資料可上wiki查找
安裝下面幾個包之一:
Stable branch | sudo apt-get install --install-recommends winehq-stable |
---|---|
Development branch | sudo apt-get install --install-recommends winehq-devel |
Staging branch | sudo apt-get install --install-recommends winehq-staging |
一般情況安裝一個穩定版
2)安裝wineQQ:
1.去下載wineQQ
2.解壓:
tar -xvf wineQQ8.9_19990.tar.xz -C ~/
3.運行方式(具體還是看自己的QQ.exe所在的目錄):
wine ~/.wine/drive_c/Program Files/QQ/Bin/QQ.exe
4.運行如圖所示
四.瀏覽器安裝百度網盤直接下載助手(linux下沒有百度網盤客戶端,網頁不能直接下載大文件):
1.瀏覽器的擴展程序里面下載: tampermonkey
2.然后瀏覽器右上角出現剛剛安裝的擴展程序
3.點擊這個擴展程序中的獲取腳本,會出現網頁類似的界面,選擇GreasyFork進入。
4.進入GreasyFork后,選擇適用於baidu.com,可以看到第一個出現:百度網盤直接下載助手 直鏈加速版,點擊直接安裝。重啟瀏覽器即可
五.配置開發環境:
1)安裝Android studio
1.直接去官網下載或者去android studio中文社區下載linux版
2.解壓,比如我下載的是android-studio-ide-181.5014246-linux.zip:
unzip android-studio-ide-181.5014246-linux.zip
3.移動到/usr目錄
mv android-studio-ide-181.5014246-linux/ /usr
4.安裝以及運行:去到/usr/android-studio-ide-181.5014246-linux/bin的目錄下,運行:
sudo ./stdio.sh
最后按照自己的方式安裝即可
5.添加程序到菜單(后面會續寫)
2)安裝idea集成開發環境
1.去官網直接下載idea的linux版
2.解壓,比如我下載的是ideaIU-2018.2.4.tar.gz
tar -zxvf ideaIU-2018.2.4.tar.gz -C /usr
3.運行:
cd /usr/idea-IU-182.4505.22/bin/ sudo ./idea.sh
4.由於idea不是免費的所以你可能需要破解:
將hosts文件添加一行0.0.0.0 account.jetbrains.com ,也可以用下面的命令:
echo "0.0.0.0 account.jetbrains.com" >> /etc/hosts
然后去到lanyus的網站獲取idea注冊碼,在啟動idea時在activty code添加注冊碼即可
解決網易雲音樂不能普通用戶啟動:
用戶名 ALL= NOPASSWD: /usr/bin/netease-cloud-music
優化部分:
shell主題:頂部透明化
https://github.com/daniruiz/flat-remix-gnome