ºìÁªLinuxÃÅ»§
Linux°ïÖú

debian Linux °²×°ÊÖ¼Ç

·¢²¼Ê±¼ä:2006-07-04 17:47:59À´Ô´:ºìÁª×÷Õß:Rstuosd
×÷ÕߣºNoInfoNoFear

Õ⼸Ìì°²×°ÁË×îеÄdebian£¬Í¨¹ýÍøÂç°²×°µÄ¡£
Ìù³öÀ´¹²Ïí£¬Ï£Íû´ó¼ÒÖ¸½Ì¡£


1.°²×°»ù±¾ÏµÍ³(debian-31r2-i386-netinst.iso)

(1)ÓÃcdromÆô¶¯£¬Ñ¡Ôñexpert26£¬°´ÕÕ²½Öè°²×°£¬×¢ÒâҪѡÔñ2.6µÄÄںˣ¬»¹ÓУ¬Ò»¶¨
ÒªÉèÖúÃÍøÂ磬ÉèÖõÄÄÚÈÝ»áÖ±½Ó´æÈëÅäÖÃÎļþ£¬·ñÔòÄãÒªÊÖ¹¤ÐÞ¸ÄÅäÖÃÎļþÀ´Éè
ÖÃÍøÂ磬ÒòΪ´ËʱÎÒÃÇÖ»ÓµÓлù±¾ÏµÍ³¡£

(2)°²×°¹ý³ÌÖÐÖØÆôºó£¬°´ÕÕ²½ÖèÒ»²½²½ÉèÖ㬵«ÒªÌø¹ý¡°Ñ¡Ôñ²¢°²×°Èí¼þ°ü¡±ÕâÒ»Ï
ÒòΪËü×ÜÊdzö´í£¨·´ÕýÎÒ°²×°µÄʱºòÒ»Ö±¶¼³ö´í£©¡£
ÎÒʹÓõÄaptÔ´ÊÇ£º
̨Í壺ftp://ftp.tku.edu.tw
ÈÕ±¾£ºftp://ftp2.jp.debian.org
ʵ²âÕâÁ½¸öÍøÕ¾×î¿ì£¬ÎÒʹÓõÄÊÇÍøͨ¿í´ø¡£
¾¡Á¿²»ÒªÊ¹ÓùúÄÚµÄaptÔ´£¬²»ÖªÎªºÎ£¬Ëٶȶ¼ºÜÂý¡£

(3)ÊÖ¹¤ÖØÆô£¬ÒòΪÕâÊÇ´¦ÔÚÒ»¸öÆæ¹ÖµÄ״̬ÖУ¨°²×°³ÌÐòµÄFrameBufferģʽ£¬Æäʵ
¿ÉÒÔ²»ÖØÆô£¬Ö±½Ó½øÐÐÏÂÒ»²½¡£²»¹ý²»ÖØÆô£¬zhcon¿ÉÄÜÎÞ·¨Õý³£¹¤×÷£©¡£

ÏÖÔڵõ½µÄÊÇÒ»¸ö×î»ù±¾µÄdebian»·¾³¡£×¼±¸ÔÚÕâ¸ö»·¾³Öа²×°ÆäËûÈí¼þ¡£

2.°²×°»ù±¾¹¤¾ß

(1) Æô¶¯ºó£¬ÒÔrootµÇ¼ºó£¬Ö´ÐÐÏÂÃæµÄÃüÁ½«×Ö·û¼¯¸ÄΪӢÎÄ¡£ÕâÊÇÒòΪ´Ëʱû
ÓÐÈκÎÏÔʾºº×ֵĻ·¾³£¬Èç¹ûĬÈÏ×Ö·û¼¯ÊÇÖÐÎÄ£¬ÎÒÃÇ¿´µ½µÄÌáʾÐÅÏ¢ÊÇÂÒÂë¡£
# export LANG=C

(2) Ë¢ÐÂaptÔ´¡£ÕâÒ»²½²»ÊDZØÐèµÄ£¬ÒòΪ°²×°»ù±¾ÏµÍ³Ê±ÒѾ­Ë¢ÐÂÁË¡£
# apt-get update

(3) ±£´æÄÚºËÅäÖÃ
# cp /boot/config-2.6.8-2-386 ~/

(4) °²×°zhcon×Ö·û½çÃæÖÐÎÄ»·¾³
# apt-get install zhcon
°²×°Ê±»áµ¯³öÒ»¸ö½çÃ棬ҪÇóÐÞ¸Älocales£¬ÇëÉèÖúã¬×îºó½«Ä¬ÈÏlocale³Ézh_CN£¬
ÉèÖõĽá¹ûÔÚÖØеǼʱ²ÅÆð×÷Ó᣻á³öÏÖ¾¯¸æÐÅÏ¢£¬²»ÓÃÀí»áÕâЩÐÅÏ¢£¬Ö±½Ó»Ø´ðY°²×°¡£
ÒòΪÉý¼¶glibc£¬°²×°¹ý³Ì»áѯÎÊÄãÊÇ·ñɾ³ýµ±Ç°ÔËÐеÄÄÚºËÓ°Ïñ£¬Äã¿ÉÒÔɾ³ýËü£¬ºóÃæ»á
±àÒë×îÐÂÄںˣ¬ËüÒѾ­Ã»±ØÒª´æÔÚÁË£¬µ«É¾³ýºóǧÍò²»ÒªÖØÆô»úÆ÷¡£

(4) ½øÈë×Ö·û½çÃæÖÐÎÄ»·¾³
# logout
# 怬
# zhcon
ÖØеǼÊÇΪÁ˱£Ö¤localeÉèÖóÉzh_CN

(5) °²×°±àÒëÄں˵Ť¾ß
# apt-get install kernel-package
# apt-get install libncurses5-dev
# apt-get install fakeroot
# apt-get install module-init-tools
# apt-get install initrd-tools
# apt-get install procps
# apt-get install wget tar bzip2 vim lftp


3. °²×°ÐÂÄÚºË
(1) ÏÂÔØÄÚºË 2.6.17.3
# cd /usr/src
# wget http://www.kernel.org/pub/linux/kern...6.17.3.tar.bz2
(2) ½â°ü
# tar xvfj linux-2.6.16.3.tar.bz2
(3) ÅäÖúͱàÒë
# ln -sv linux-2.6.16.3 linux
# cd linux
# make prproper
# cp ~/config-2.6.8-2-386 .config
# make menuconfig
ÕâÒ»²½ºÜÂé·³£¬·Ç³£²»ºÃÅ䣬ÎÒµÄÉù¿¨ÏÖÔÚ»¹ÃÀÓ´ÅäºÃ£¬°¦£¡ÂýÂýÚÂÄ¥°É¡£
# make
# make modules_install
(4) ±£´æÄں˼°ÅäÖÃ
# cp .config /boot/config-2.6.17.3
# cp System.map /boot/System.map-2.6.17.3
# cp arch/i386/boot/bzImage /boot/kernel-2.6.17.3
(5) ÖÆ×÷ÄÚ´æ¾µÏñ
# cd /boot
# mkinitrd -o /boot/initrd.img-2.6.17.3 2.6.17.3
(5) ÐÞ¸Ä/boot/grub/menu.lst
½«vmlinux-2.6.8-2-386 ¸ÄΪkernel-2.6.17.3
½«initrd.img-2.6.8-2-386 ¸ÄΪinitrd.img-2.6.17.3
(6) ÖØÆô£¬×¢Òâÿ´ÎÖØÆôµÇ¼ºó£¬ÐèÒªÔËÐÐzhcon£¬½øÈ뺺×Ö»·¾³¡£

4. ¸üÐÂϵͳ
# apg-get upgrade

5. °²×°»ù±¾Í¼ÐνçÃæ
# apt-get install x-window-system-core
°²×°ºó»á³öÏÖÅäÖýçÃ棬°´ÕÕÌáʾÅäÖᣰ²×°ºÃºó£¬Æô¶¯ÊÔÊÔ¡£
# startx
Èç¹û²»³É¹¦£¬¿ÉÒÔÓÃÏÂÃæµÄÃüÁîÖØÐÂÅäÖãº
# dpkg-reconfigure xserver-xorg

6. °²×°ÖÐÎÄ×ÖÌå
# cd /usr/share/fonts
# mkdir zh_CN
# cd zh_CN
½«×ÖÌåÎļþ¿½±´µ½´ËĿ¼ÏÂ
# mkfontscale
# mkfontdir
ÐÞ¸Ä/etc/X11/xorg.cong£¬ÕÒµ½FontPathÐУ¬Ôö¼ÓÒ»ÐУº
FontPath "/usr/share/fonts/zh_CN"

7. °²×°gnomeºËÐÄ
# apt-get install gnome-core
°²×°ºó£¬Ö±½ÓÆô¶¯
# startx
Õâʱ¾Í½øÈëgnome»·¾³ÁË£¬¶øÇÒºº×ÖÒ²ÏÔʾ³öÀ´ÁË¡£

8. °²×°Ð¡Æó¶ìÖÐÎÄÊäÈë·¨
# apt-get install fcitx
# cd /etc/X11/Xsession.d
Ôö¼ÓÒ»¸öÎļþ£º40xfcitx-startup£¬ÄÚÈÝÊÇ
export XMODIFIERS="@im=fcitx"
fcitx
Æô¶¯Í¼ÐνçÃ棬ÊäÈë·¨¿ÉÒÔʹÓÃÁË¡£

9. °²×°kdeºËÐÄ
# apt-get install kde-core
# apt-get install kde-i18n-zhcn
Ôö¼ÓÒ»¸öÎļþ ~/.xinitrc£¬ÄÚÈÝÊÇ£º
export XMODIFIERS="@im=fcitx"
fcitx &
exec startkde
Ö´ÐÐstartx¾Í½øÈëKDEµÄÉèÖýçÃæÁË£¬¶øÇÒСÆó¶ìÊäÈë·¨Ò²ÅäÖúÃÁË¡£
Èç¹ûÏëÓÃstartxÆô¶¯gnome½çÃ棬½«~/.xinitrcÎļþɾ³ý¼´¿É¡£

µ«ÊÇ£¬°²×°¿ÉKdeºó£¬gnomeµÄ¡°Ó¦ÓóÌÐò²Ëµ¥¡±´ò¿ªÊ±Ò»Ö±ÉÁ˸£¬ÎÞ·¨Ê¹Óá£ÕâºÃÏñÊÇÒ»¸öBug
´ó¼ÒµÄ˵·¨¸÷²»Ïàͬ£¬ÏêÇéÇë¿´£º http://bbs.linuxsir.org/showthread.php?t=254773&page=2
ÎÒʹÓÃÁËÉÏÃæµÄÒ»¸ö·½·¨£¬¾ÍÊÇÍ˳öͼÐνçÃ棬ִÐУº
# apt-get install menu
ÎÊÌâ½â¾öÁË£¡

10.°²×°firefoxä¯ÀÀÆ÷
# apt-get install firefox
°²×°ÍêºóÐèÒªÖØÐÂÆô¶¯£¬·ñÔò³ö´í
¿Éϧfirefox½çÃæÊÇÓ¢Îĵģ¬ÎÒ²»ÖªµÀÔõô¸Ä³ÉÖÐÎĵġ£

11.°²×°ÍêÕû°æµÄgnome
# apt-get install gnome
ºÜºÄʱ£¬ÎÒûÓвâ¹ý¡£

12.°²×°ÍêÕû°æµÄkde
# apt-get install kde
ºÜºÄʱ£¬ÎÒҲûÓвâ¹ý¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. saber312 ÓÚ 2011-12-25 12:09:50·¢±í:

    ¿´Ò»ÏÂ

  2. saber312 ÓÚ 2011-12-25 12:09:16·¢±í:

    ¿´Ò»ÏÂ