Debian Lenny英文版安裝後配置

一、安裝及安裝後shell下離線安裝
下載DVD版本的第一張光盤,安裝時選擇英文版本,不選擇任何軟件組合,安裝之後進入shell,以root用戶登陸後進行以下操作。
1. 配置locales
#dpkg-reconfigure locales
選擇:
en_US.UTF-8
zh_CN.GB2312
zh_CN.UTF-8
zh_CN.GBK
zh_TW.BIG5
zh_TW.UTF-8
默認選擇 en_US.UTF-8

2. 將用戶加入到sudoers列表中
#apt-get install sudo
#chmod +w /etc/sudoers
#vim /etc/sudoers
添加一行:username ALL=(ALL) ALL
其中username是你的用戶名,保存
#chmod 0440 /etc/sudoers

3. 利用zhcon實現Console下中文支持
#apt-get install zhcon
#vim /boot/grub/menu.lst #在kernel項後添加 vga=791,即:1024*768,另:788=800*600
#vim /etc/zhcon.conf #註釋掉相關輸入法之前的“ime=...”部分
#zhcon #命令和目錄還不能正常顯示輸入中文,不過可以顯示中文文檔和在vi中輸入中文
#zhcon --utf8 #正常顯示目錄,並可以在命令中使用中文

4. 安裝X窗口
#apt-get install xorg

5. 安裝gnome
#apt-get install gnome-core gdm

6. 安裝gnome主題、圖標、背景
#apt-get install gnome-themes gnome-icon-theme-dlg-neu gnome-backgrounds

7. 讓alsa把你的聲卡驅動起來
#apt-get install alsa-base alsa-utils alsa-oss
#alsaconf #一路回車

8. 安裝gnome下的聲音支持。
#apt-get install gnome-audio esound #esound是gnome下的軟件混音器

9. 其他工具
#apt-get install gnome-system-tools gconf-editor nautilus-open-terminal
gnome-system-tools 服務、網絡等系統工具
gconf-editor 配置編輯器
nautilus-open-terminal 在右鍵菜單中加入終端

10. 安裝OpenOffice.org
#apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-math openoffice.org-impress openoffice.org-gtk openoffice.org-help-en-us
#apt-get install openoffice.org-l10n-zh-cn openoffice.org-help-zh-cn #中文界面和中文幫助

11. 編程環境支持
#apt-get install build-essential libgtk2.0-dev freeglut3-dev libtool autoconf automake subversion

12. 安裝中文字體
#apt-get install xfonts-wqy ttf-arphic-uming ttf-freefont

13. 壓縮與解壓縮
#apt-get install file-roller p7zip-full cabextract

14. 安裝視頻播放器
#apt-get install mplayer

15. PDF閱讀
#apt-get install evince

16. 圖像處理
#apt-get install gimp

17. 網絡通訊
#apt-get install pidgin

二、重啓後登陸到圖形界面,聯網操作
1. 安裝中文輸入法
#apt-get install scim scim-pinyin scim-tables-zh im-switch
$im-switch -z en_US -s scim #英文系統下使用SCIM:
光標跟隨
#gedit /etc/X11/xinit/xinput.d/scim
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim 
QT_IM_MODULE=scim

2. PPPOE上網
#apt-get install pppoeconf
#pppoeconf #設置用戶名與密碼
#pon dsl-provider #連接
#poff #斷開

3. 添加軟件源到最後
deb http://ftp.debian.org/debian/  lenny main contrib non-free
deb-src http://ftp.debian.org/debian/  lenny main contrib non-free
deb http://www.debian-multimedia.org/  lenny main
deb-src http://www.debian-multimedia.org/  lenny main
注意:debian-multimedia.org的源需要安裝KEY,在http://www.debian-multimedia.org/下載後安裝後纔可以更新軟件列表。

4. 更新系統
#apt-get update
#apt-get upgrade
#apt-get dist-upgrade

5. RAR支持
#apt-get install p7zip-rar rar unrar

6. 安裝視頻解碼包
#apt-get install w32codecs

7. Evince完美中文支持
#apt-get install xpdf-chinese-simplified xpdf-chinese-traditional

8. CHM文件支持
#apt-get install chmsee

9. 支持mht文件
下載安裝unmht: http://www.unmht.org

10. 安裝文泉驛正黑字體
#apt-get install ttf-wqy-zenhei

11. 雙擊安裝deb文件
#apt-get install gdeb

三、其他問題
1. 自動掛載U盤中文文件名亂碼問題
解決方法:系統工具->配置編輯->/system/storage/default_options/vfat,雙擊mount_options,”添加”,在“新列表值”中填入“utf8”。

2. apt-get與dpkg的基本用法

#apt-get install packagename #安裝一個新軟件包

#apt-get remove packagename #卸載一個已安裝的軟件包(保留配置文件)

#apt-get --purge remove packagename #卸載一個已安裝的軟件包(刪除配置文件)

#dpkg --force-all --purge packagename #強制卸載,風險大!

#apt-get upgrade #更新所有已安裝的軟件包

#apt-get dist-upgrade #將系統升級到新版本

$apt-cache search 正則表達式 #在軟件包列表中搜索字符串

$dpkg -l 正則表達式 #列出所有與模式相匹配的軟件包

#apt-get clean #清理所有軟件緩存

#apt-get autoclean #清理舊版本的軟件緩存

#apt-get autoremove #刪除系統不再使用的孤立軟件

#apt-cdrom add #增加一個光盤源

$dpkg -l |grep ^rc|awk '


;{print $2}' | #xargs dpkg -P #清除所有已刪除包的殘餘配置文件

#auto-apt run ./configure #編譯時缺少h文件的自動處理

3. 安裝RealPlay
下載bin包,到realplayer主頁上下載 http://www.real.com/linux
#chmod 755 ./*.bin #或chmod +x ./*.bin
#./*.bin #一定要root安裝,否則安裝後無法啓動。

4. 安裝FlashPlayer
在iceweasel提示安裝時選擇安裝,如果安裝失敗:
下載install_flash_player_9_linux.tar.gz並解壓,進入解壓目錄,執行
安裝:sudo ./flashplayer-installer
若flashplayer菜單有亂碼問題的話,執行:sudo mv /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak
安裝ttf-freefont字體可解決swf文件中文亂碼。

5. 編譯Code::Blocks的SVN版本
(a) 下載源碼
svn checkout svn://svn.berlios.de/codeblocks/trunk ~/Sources/CodeBlocks
(b) 編譯
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure 或 ./configure --with-contrib-plugins=all
make
sudo make install
(c) 缷載
sudo make uninstall
(d) 重新編譯
make clean
make distclean
make clean-bin
make clean-zipfiles
詳情:http://wiki.codeblocks.org/index.php...ource_on_Linux

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章