LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1715|回复: 8

Debian Lenny英文版安装后配置

[复制链接]
发表于 2008-5-7 13:10:12 | 显示全部楼层 |阅读模式
本文原载自:http://www.qpsoft.com/blog/debian-lenny-config-en/
使用Ubuntu大概一周,就不得不放弃。因为在此期间的我笔记本电脑三次无法启动,而且查阅论坛,也无法得到修复。由于Ubuntu默认安装了大量的软件及后台服务,速度确实比较慢,个人更喜欢简洁与速度,相对Ubuntu的追求视觉,我有点无法接受性能上的损失。以下安装的是Debian的英文测试版本,中文版本的区别我会在几天后再发布。等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 gnochm

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 ... rom_source_on_Linux
更多信息请访问:http://www.qpsoft.com/blog
发表于 2008-5-7 15:10:57 | 显示全部楼层
个人色彩很强,不适合新手,而老手又知道自己需要什么。
所以……这篇文章不咋的
回复 支持 反对

使用道具 举报

发表于 2008-10-2 20:32:54 | 显示全部楼层
请问能提供debian-multimedia.org 的KEY吗?http://www.debian-multimedia.org/这里的连接没找到。
回复 支持 反对

使用道具 举报

发表于 2008-10-2 22:53:52 | 显示全部楼层
个人笔记, 还行了。
回复 支持 反对

使用道具 举报

发表于 2008-10-2 23:33:57 | 显示全部楼层
9. 支持mht文件
下载安装unmht: http://www.unmht.org

------------------------------------------

这个东西以前不知道。很好用,谢LZ。
回复 支持 反对

使用道具 举报

发表于 2008-10-3 11:55:02 | 显示全部楼层
哪有什么中文版和英文版的区别啊,

我觉得是没有。
回复 支持 反对

使用道具 举报

发表于 2008-10-3 12:00:01 | 显示全部楼层
哪有什么中文版和英文版的区别啊

安装界面有,哈哈~~~
回复 支持 反对

使用道具 举报

发表于 2008-10-3 12:42:07 | 显示全部楼层
Post by L.Lawliet;1889746
安装界面有,哈哈~~~


那个安装界面选择的语言好像是只对安装过程的吧,哈哈。
回复 支持 反对

使用道具 举报

发表于 2008-10-3 12:59:58 | 显示全部楼层
那倒不是,debian目前哪里有什么中文版英文版的区别哦...设置什么locale有什么语言,只要有相应的字体就成
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表