Debian GNU/Linux (sid) 的安装与配置

上一篇 / 下一篇  2007-10-08 01:00:31 / 个人分类:Linux


 本文是根据本人安装Debian GNU/Linux(sid)的简要总结。现记录下,希望对需要的人有所帮助。同时也欢迎批评指正。

  
   1. 从lenny光盘启动,安装基本系统。

   2. 设置系统locale
dpkg-reconfigure locales
     选择需要的locale,这里我将系统默认locale设置为zh_CN.UTF-8
  
   3. 修改系统源
vim /etc/apt/sources.list
     设置为sid,然后升级
aptitude dist-upgrade
 
   4. 安装X、gnome、gdm
aptitude install x-window-system-core
aptitude install gnome-core
aptitude install gdm

   5. 修改系统的源
       /etc/apt/sources.list
deb http://debian.ustc.edu.cn/debian unstable main non-free contrib
deb-src http://debian.ustc.edu.cn/debian unstable main non-free contrib
 
deb http://debian.ustc.edu.cn/debian-uo sid marillat  misc ustc
deb-src http://debian.ustc.edu.cn/debian-uo sid marillat misc ustc
 
deb http://debian.ustc.edu.cn/rarewares.org sid main
deb-src http://debian.ustc.edu.cn/rarewares.org sid main
 
    然后在控制台执行
wget -O - http://debian.ustc.edu.cn/ustc.asc | sudo apt-key add -


   6. 安装输入法fcitx
aptitude install fcitx

echo "export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=fcitx
export LANG='zh_CN.UTF-8' LC_ALL='zh_CN.UTF-8' LANGUAGE='zh_CN.UTF-8'
fcitx &" >>  /etc/X11/Xsession.d/95xinput

   7. 安装ALSA驱动
      到 http://www.alsa-project.org/下载最新版本的alsa-driver,alsa-lib,alsa-utils. 目前的最新版本为
alsa-driver-1.0.15rc3.tar.bz2
alsa-lib-1.0.15rc3.tar.bz2
alsa-utils-1.0.15rc1.tar.bz2

安装必要的软件
aptitude install build-essential ncurses-dev linux-headers-`uname -r` gettext

  执行
    
tar jxvf alsa-driver-1.0.15rc3.tar.bz2
cd alsa-driver-1.0.15rc3
./configure --with-cards=hda-intel
make
make install

tar jxvf alsa-lib-1.0.15rc3.tar.bz2
cd alsa-lib-1.0.15rc3
./configure
make
make install

tar jxvf alsa-utils-1.0.15rc1.tar.bz2
cd alsa-utils-1.0.15rc1
./configure
make
make install

   8. 安装无线网卡
      首先安装无线网卡驱动
aptitude install ipw3945d ipw3945-modules-2.6.22-2-686
      安装工具
aptitude install wireless-tools
   打开无线网卡开关,运行
modprobe ipw3945
iwconfig
   应该能够看到网卡的信息,这里是eth2

  运行
iwlist eth2 scan
  查看可用的网络

   执行
iwconfig eth2 essid "XXXXX" [key "KKK"]
dhclient eth2
   就应该能够使用无线网络了。也可以修改配置文件,以免每次手动输入命令。

   9. 一个可能遇到的问题: Linux下时钟快8小时

      运行
hwclock --directisa --show
      如果时间是准确的话,修改文件/etc/default/rcS,增加一行
HWCLOCKPARS="--directisa"

==========
补充

2007年10月8日

最近sid的源好像有问题? 在从testing升级后安装x-window-system-core是总是出现错误。安装x后运行
dpkg-reconfigure xserver-xorg
最后总是提示错误,大意为
cannot generate configure file. shared/default x-server not set

我的解决方法是在testing下装好x-window-system-core和gnome-core后,再dist-upgrade

 

TAG: Debian Linux Fcitx sid alsa

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-10-11  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 3479
  • 日志数: 6
  • 建立时间: 2006-09-08
  • 更新时间: 2007-10-14

RSS订阅

Open Toolbar