最近幾天折騰了一下Debian 7 (gnome桌面DVD版,KDE桌面CD版最後會提到),總的來講收穫仍是挺大的,對比之前使用ubuntu,debian 7給個人感受像是一個新生嬰兒,不帶多餘的花俏,那麼的簡單和單純。話很少說,下面寫出本身安裝完debian後碰到的一些問題及解決方法。php
1.安裝系統css
安裝系統能夠參考如下教程:html
http://www.jb51.net/os/85858.html前端
http://forum.ubuntu.org.cn/viewtopic.php?f=165&t=443173python
http://www.debian.org/releases/stable/i386/index.html.zh-cnlinux
https://wiki.debian.org/zh_CN/FrontPage?action=show&redirect=%E9%A6%96%E9%A1%B5git
步驟很詳細,注意不要設置網絡,不要使用網絡鏡像就行。github
2.配置源sql
1 su - 2 密碼: 3 gedit /etc/apt/sources.list 4 5 添加如下163源: 6 #####################主要,開源,閉源 7 deb http://mirrors.163.com/debian wheezy main non-free contrib 8 deb-src http://mirrors.163.com/debian wheezy main non-free contrib 9 10 ###################wheezy-proposed-updates建議更新 11 deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 12 deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free 13 14 #wheezy-updates推薦更新 15 deb http://mirrors.163.com/debian wheezy-updates main contrib non-free 16 deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free 17 18 19 #wheezy/updates安全更新 20 deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 21 deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 22 23 deb http://http.us.debian.org/debian wheezy main contrib non-free 24 deb http://security.debian.org wheezy/updates main contrib non-free
#上海交大
deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contribshell
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
#上海交大 ipv6
deb http://ftp6.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp6.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp6.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp6.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp6.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp6.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
#網易
deb http://mirrors.163.com/debian/ wheezy main non-free contrib
deb http://mirrors.163.com/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.163.com/debian/ wheezy-proposed-updates main non-free contrib
#搜狐
deb http://mirrors.sohu.com/debian/ wheezy main non-free contrib
deb http://mirrors.sohu.com/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.sohu.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.sohu.com/debian/ wheezy-proposed-updates main non-free contrib
#中國科技大學
deb http://mirrors.ustc.edu.cn/debian/ wheezy main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ wheezy main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ wheezy-proposed-updates main non-free contrib
#清華大學 不是很穩定
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ wheezy main non-free contrib
deb http://mirrors.tuna.tsinghua.edu.cn/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/ wheezy main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/ wheezy-proposed-updates main non-free contrib
#北京理工
deb http://mirrors.bit.edu.cn/debian/ wheezy main non-free contrib
deb http://mirrors.bit.edu.cn/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.bit.edu.cn/ wheezy main non-free contrib
deb-src http://mirrors.bit.edu.cn/ wheezy-proposed-updates main non-free contrib
#北京理工(Ipv6)
deb http://mirrors.bit6.edu.cn/debian/ wheezy main non-free contrib
deb http://mirrors.bit6.edu.cn/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.bit6.edu.cn/ wheezy main non-free contrib
deb-src http://mirrors.bit6.edu.cn/ wheezy-proposed-updates main non-free contrib
#清華大學(Ipv6)
deb http://mirrors.6.tuna.tsinghua.edu.cn/debian/ wheezy main non-free contrib
deb http://mirrors.6.tuna.tsinghua.edu.cn/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ wheezy main non-free contrib
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ wheezy-proposed-updates main non-free contrib
但有時候163的源會很是慢,只有幾KB每秒,所以咱們須要更新源,這時候推薦使用新得力軟件包裏的軟件源設置,讓其本身選擇最佳服務器,這樣能夠本身替換掉sources.list文件中的內容,一般這樣比較管用。
3.安裝chromium瀏覽器
1 apt-get update 2 apt-get install chromium chromium-l10n
4.安裝flash
安裝flashplugins
下載http://get.adobe.com/flashplayer,選擇.tar.gz包。
1 tar xvf install_flash_player_11_linux.i386.tar.gz 2 cp –rv usr /usr 3 mkdir –v /usr/lib/iceweasel/plugins 4 cp libflashplayer.so /usr/lib/iceweasel/plugins 5 cp libflashplayer.so /usr/lib/chromium/plugins
5.輸入法
自帶的fcitx怎麼也不能使用,網上Google了不少方法都沒用,因此乾脆purge掉fcitx,從新安裝ibus
1 apt-get install ibus 2 apt-get install ibus-googlepinyin
啓用ibus輸入法。
在ibus中添加googlepinyin。
後來又把fcitx輸入法從新配置好了,要先安裝顯卡驅動再安裝輸入法前端,不然會出錯,要先把輸入法裏的五筆等其餘除了Google拼音之類的輸入法都刪掉
而後安裝前端:apt-get
install
fcitx-ui-classic
接着在輸入法設置裏設置fcitx爲默認輸入法便可。
或者直接重裝:
apt-get install ttf-wqy-microhei ttf-wqy-zenhei #安裝字體
apt-get install fcitx fcitx-pinyin fcitx-module-cloudpinyin fcitx-googlepinyin im-switch #fcitx拼音
安裝完畢後使用:im-switch -s fcitx或者使用輸入法配置的圖形界面將fcitx設置爲默認輸入法
6.安裝編程工具
jdk:http://blog.csdn.net/liu_yongyou/article/details/9027381
eclipse:http://www.rockbb.com/blog/?p=349
python:http://blog626.blog.163.com/blog/static/1056107322013871337910/
codeblocks:http://www.cnblogs.com/maowang1991/p/3361640.html
kdevelop:
apt-get install build-essential cmake curl git vim
apt-get install kdevelop
apt-get install kdevelop-dbg kdevelop-dev kdevelop-l10n kdevelop-pg-qt
virtualbox:
http://www.rockbb.com/blog/?p=359
https://www.virtualbox.org/wiki/Linux_Downloads
git:
http://blog.csdn.net/ididcan/article/details/6646069
http://www.linuxidc.com/Linux/2012-06/62794.htm
vim:
https://github.com/fisadev/fisa-vim-config
https://github.com/humiaozuzu/dot-vimrc
https://github.com/square/maximum-awesome
推薦: https://github.com/spf13/spf13-vim
zsh:https://github.com/robbyrussell/oh-my-zsh
7.壓縮解壓縮命令
參考此帖:http://blog.csdn.net/zad522/article/details/2770446
8.網絡和時間配置
時間可使用date配置:date -s xx:xx:xx能夠設置時間,date -s 06/10/13能夠設置日期,date -s "06/10/1996 13:12:00"能夠設置日期和時間,設置完後右下角時間就能正確顯示了。
網絡配置參考此帖:http://www.cnblogs.com/BigIdiot/archive/2012/05/21/2511821.html
9.AMD顯卡驅動安裝問題
由於個人機器是雙顯卡,安裝完debian7後只能識別集成顯卡,而AMD的HD 7679顯卡沒法識別,須要安裝驅動(在kde桌面下使用lspci | grep VGA 居然能夠識別AMD顯卡,可是仍是沒法運行,只能識別而已,全部仍是須要安裝驅動發揮性能),具體步驟以下:
首先打開 http://support.amd.com/ 在這裏選擇相應的顯卡型號而後下載下來是一個.zip文件,解壓縮後獲得一個.run文件。
而後在bash下進入.run文件的目錄,執行以下命令:chmod 777 xxx.run,更改其執行權限。
接着輸入命令:./amd-driver.run 一般來講,這一步安裝是會出錯的,會有一個對話框提示」one or more tools required cannot be found in this system」,打開記錄文件你會發現這麼一行:fglrx installation requires that the system have kernel headers系統缺乏內核頭文件。
在bash下執行如下命令:sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant而後安裝就能順利完成了,接下來重啓就能看到催化劑驅動的效果了。
升級完debian後若是出現沒法啓動圖形界面的狀況:
首先執行dpkg--reconfigure xserver-xorg,發現仍是進不了,嘗試刪除/etc/X11/xorg.conf,進圖形界面卡在啓動畫面就停住了,ctrl alt f1啓動tty1,卸載ati顯卡驅動cd /usr/share/ati 運行sh ./fglrx-uninstall.sh 便可,接着重裝顯卡驅動就能夠了。
安裝完畢重啓後可使用命令:fglrxinfo查看顯卡信息,出現AMD或者ATI字樣就說明安裝驅動成功,而後使用命令:aticonfig --pxl來查看正在運行的顯卡模式,aticonfig --px-dgpu切換到獨立顯卡,aticonfig --px-igpu切換到獨立顯卡。
若是是nvidia驅動,卸載命令:nvidia-installer --uninstall,安裝相似於ati顯卡驅動的安裝。至於雙顯卡切換或者顯卡測試命令,由於個人機器是ati和intel雙顯卡,故沒有多作研究,或許之後換筆記本了會去研究哈=.=
10.修改gnome-shell.css
gedit /usr/share/gnome-shell/theme/gnome-shell.css
具體修改參數以下:
狀態欄字體大小
stage { font-family: cantarell, sans-serif; font-size: 9.5pt; //這裏改爲9.5pt以爲比較合適 color: white; }
彈出菜單透明
.popup-menu-boxpointer { -arrow-border-radius: 8px; /*-arrow-background-color: black;*/ //這是系統原來默認的黑色,爲了安全起見,我只是將原來的註釋掉了 -arrow-background-color: rgba(0, 0, 0, 0.8); //改爲0.8就好,不要太過透明,不然字就看不清 -arrow-border-width: 2px; -arrow-border-color: #a5a5a5; -arrow-base: 24px; -arrow-rise: 11px; }
面板透明
#panel { /*background-color: black;*/ //一樣,爲了安全將原來的代碼註釋掉 background-color: rgba(0, 0, 0, 0.4); //將透明度調到0.4,能夠根據本身的喜愛調整 font-weight: bold; height: 1.86em; }
兩邊弧度變小:
.panel-corner {
-panel-corner-radius: 5px;
-panel-corner-background-color: black;
-panel-corner-border-width: 2px;
-panel-corner-border-color: transparent;
}
.panel-corner:active,
.panel-corner:overview,
.panel-corner:focus {
-panel-corner-border-color: rgba(255,255,255,0.8);
}
修改應用程序圖標的大小
.icon-grid {
/* old settings,edit by zws 2013.04.09
spacing: 36px;
-shell-grid-horizontal-item-size: 118px;
-shell-grid-vertical-item-size: 118px;
*/
spacing: 18px;
-shell-grid-horizontal-item-size: 96px;
-shell-grid-vertical-item-size: 96px;
}
.icon-grid .overview-icon {
/* icon-size: 96px;*/
icon-size: 64px;
}
面板彈出菜單大小修改
.popup-menu {
min-width: 100px;
}
11.使用KDE桌面版的CD鏡像安裝完系統後出現的問題進行總結
首先是中文字體亂碼問題:
解決方法以下:
1 dpkg-reconfigure locales
1 fc-cache -fv
alsactl init
再重啓一下就有聲音了。
最後是網絡鏈接問題:
KDE桌面右下角沒有網絡管理器,沒法鏈接無線網,能夠參考下列教程安裝NetworkManager便可解決
https://wiki.debian.org/zh_CN/NetworkManager
還有關於libreoffice以及kde桌面漢化問題:
libreoffice漢化:apt-get install libreoffice-l10n-zh-cn
kde桌面漢化:apt-get install kde-l10n-zhcn
還有一些關於kali linux的配置,參考下文:
http://xiao106347.blog.163.com/blog/static/215992078201342410347137/
12.關於xfce桌面配置問題
xfce桌面有些應用程序沒有安裝中文語言包,可使用aptitude search xxx-l10 來查找中文語言包,而後安裝,例如能夠安裝iceweasel中文語言包:apt-get install iceweasel-l10n-zh-cn,安裝libreoffice語言包:apt-get install libreoffice-l10n-zh-cn。
xfce桌面右下角時間設置問題:可使用date命令的-s選項來設置時間。參考前面提到的時間設置方法,貌似orage日曆選項不是很好用,反正我最後使用date命令設置時間成功。
xfce快捷鍵設置:xfce下沒有鎖屏快捷鍵,沒有終端快捷鍵,因此須要本身設置,在鍵盤管理選項中選擇快捷鍵管理,能夠去設置,經常使用命令有:鎖屏:xflock4,瀏覽器:iceweasel,終端:xfce4-terminal,運行程序:xfrun4,在添加完命令後能夠按下快捷鍵來設置對應命令的快捷鍵了。
大體就是這麼多,但願能對你們有所幫助啊!