您的位置:首页 > 其它

Debian Lenny英文版安装后配置

2010-03-03 20:19 501 查看
一、安装及安装后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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: