LinuxSir.cn,穿越时空的Linuxsir!

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

我的LAPTOP,我的ARCH(总结与遗留问题)

[复制链接]
发表于 2005-11-16 12:17:41 | 显示全部楼层 |阅读模式
我的LAPTOP,我的ARCH──打造精简实用LAPTOP LINUX

为什么安装ARCH LINUX:

还是最爱LINUX^^,上网/电影/听歌/聊天/写论文/编程/...
计划在笔记本上使用最多1G硬盘空间,安装精简实用的LINUX,
不断摸索过程中,最终看中ARCH.

本文内容:

安装笔记,遗留问题.....

最后更新:2005.11.20

0.my laptop

ASUS Notebook M3N (PM1.4/512MB/40G/WIFI2100)
xp home only
3 partitions: recovery, c, and d

1.intall base system

1.1 preparing

under XP:

download arch 0.7 base iso
install grub for dos into boot.ini
install vmware workstation
pqmagic resize d, free 1 Gb at the end of hd, for linux

the partition table now:
hda1    primary recovery
hda2    primary c
hda3    extend
hda5    logical d
hda4    primary free

1.2 setup base system

load iso to vmware cd, boot it.
run setup
format the hda4 as reiserfs, mount as /, NO swap
install all base packages
configuration
NOT install boot loader now! (for its under vmware!)
shutdown the vmware pc

reboot real pc.
from boot menu, choose grub for dos:
pressed "c" into command line:

grub>root (hd0,3)
grub>kernel (hd0,3)/boot/vmlinuz26 root=/dev/hda4
grub>boot

now config lilo.conf and install lilo
then mount c to /mnt/c, and
#dd if=/dev/hda4 of=/mnt/c/arch.lnx bs=512 count=1
#vi /mnt/c/boot.ini

add line

c:\arch.lnx="Arch Linux"


now the /mnt/c/boot.ini

  1. [boot loader]
  2. timeout=5
  3. default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

  4. [operating systems]
  5. multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn /bootlogo
  6. c:\arch.lnx=Arch Linux
  7. c:\bootsect.dos=MS-DOS 7.10
  8. C:\GRLDR=Grub for DOS
复制代码


the /etc/fstab:

  1. #
  2. # /etc/fstab: static file system information
  3. #
  4. # <file system>        <dir>         <type>    <options>          <dump> <pass>
  5. none                   /dev/pts      devpts    defaults            0      0
  6. none                   /dev/shm      tmpfs     defaults            0      0

  7. /dev/cdrom             /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
  8. /dev/cdrom             /mnt/dvd  udf       ro,user,noauto,unhide   0      0

  9. /dev/hda4 / reiserfs defaults 0 0
  10. /dev/hda2 /mnt/c auto rw,iocharset=utf8 0 0
  11. /dev/hda5 /mnt/d auto rw,iocharset=utf8 0 0
复制代码



now upgrade the system:
setup the /etc/pacman.conf first

  1. #
  2. # /etc/pacman.conf
  3. #
  4. # NOTE: If you find a mirror that is geographically close to you, please
  5. #       move it to the top of the server list, so pacman will choose it
  6. #       first.
  7. #
  8. # To re-sort your mirror lists by ping/traceroute results, use the
  9. # /usr/bin/sortmirrors script.  It requires the "netselect" package.
  10. #

  11. # See the pacman manpage for option directives

  12. #
  13. # GENERAL OPTIONS
  14. #
  15. [options]
  16. LogFile     = /var/log/pacman.log
  17. NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
  18. NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
  19. NoUpgrade   = etc/rc.conf etc/rc.local
  20. NoUpgrade   = etc/modprobe.conf etc/modules.conf
  21. NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
  22. HoldPkg     = pacman glibc
  23. XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

  24. #
  25. # REPOSITORIES
  26. #   - can be defined here or included from another file
  27. #   - pacman will search repositories in the order defined here.
  28. #   - local/custom mirrors can be added here or in separate files
  29. #

  30. [current]
  31. Server = http://debian.okey.net/archlinux/current/os/i686/
  32. [extra]
  33. Server = http://debian.okey.net/archlinux/extra/os/i686/
  34. [testing]
  35. Server = http://debian.okey.net/archlinux/testing/os/i686/
  36. [unstable]
  37. Server = http://debian.okey.net/archlinux/unstable/os/i686/
  38. [archcn]
  39. Server=http://www.mysunday.net/mirror/archcn/
  40. Server=http://www.mysunday.net/mirror/alcle/
  41. [fouiny_repo]
  42. Server=http://elusseau.free.fr/arch/fouiny_repo/

  43. #[testing]
  44. #Server = ftp://ftp.archlinux.org/testing/os/i686

  45. #[current]
  46. # Add your preferred servers here, they will be used first
  47. #Include = /etc/pacman.d/current

  48. #[extra]
  49. # Add your preferred servers here, they will be used first
  50. #Include = /etc/pacman.d/extra

  51. #[unstable]
  52. # Add your preferred servers here, they will be used first
  53. #Include = /etc/pacman.d/unstable

  54. #[community]
  55. # Add your preferred servers here, they will be used first
  56. #Include = /etc/pacman.d/community

  57. # An example of a custom package repository.  See the pacman manpage for
  58. # tips on creating your own repositories.
  59. #[custom]
  60. #Server = file:///home/custompkgs
复制代码


  1. #pacman -Sy
  2. #pacman -S pacman
  3. #pacman -Su
复制代码


1.3 install X package


  1. #pacman -S xorg
复制代码

不用其他xwin,就用twm, (取消#pacman -S enlightenment)
以下是.twmrc, cp自 system.twmrc修改而成:

  1. #
  2. # $Xorg: system.twmrc,v 1.3 2000/08/17 19:54:08 cpqbld Exp $
  3. #
  4. # Default twm configuration file; needs to be kept small to conserve string
  5. # space in systems whose compilers don't handle medium-sized strings.
  6. #
  7. # Sites should tailor this file, providing any extra title buttons, menus, etc.
  8. # that may be appropriate for their environment.  For example, if most of the
  9. # users were accustomed to uwm, the defaults could be set up not to decorate
  10. # any windows and to use meta-keys.
  11. #
  12. # $XFree86: xc/programs/twm/system.twmrc,v 1.4 2001/01/17 23:45:08 dawes Exp $
  13. #

  14. IconRegion  "1024x160+0+608" South East 16 16

  15. NoGrabServer
  16. RestartPreviousState
  17. DecorateTransients
  18. TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  19. ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  20. MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
  21. IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
  22. IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
  23. ShowIconManager
  24. IconManagerGeometry "124x100+896+0" 1
  25. RandomPlacement
  26. #ClientBorderWidth

  27. Color
  28. {
  29.     BorderColor "slategrey"
  30.     DefaultBackground "rgb:2/a/9"
  31.     DefaultForeground "gray85"
  32.     TitleBackground "rgb:2/a/9"
  33.     TitleForeground "gray85"
  34.     MenuBackground "rgb:2/a/9"
  35.     MenuForeground "gray85"
  36.     MenuBorderColor "slategrey"
  37.     MenuTitleBackground "gray70"
  38.     MenuTitleForeground "rgb:2/a/9"
  39.     IconBackground "rgb:2/a/9"
  40.     IconForeground "gray85"
  41.     IconBorderColor "gray85"
  42.     IconManagerBackground "rgb:2/a/9"
  43.     IconManagerForeground "gray85"
  44. }


  45. NoTitle{
  46. #            "beep-media-player"
  47.         "xclock"
  48.         "gmplayer"
  49.         "xmms"
  50.         "TWM Icon Manager"
  51.         "xosview"
  52. }

  53. IconManagerDontShow { "xclock"}

  54. #
  55. # Define some useful functions for motion-based actions.
  56. #
  57. MoveDelta 3
  58. Function "move-or-lower" { f.move f.deltastop f.lower }
  59. Function "move-or-raise" { f.move f.deltastop f.raise }
  60. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  61. Function "XTerm" { !"urxvt &" }

  62. #
  63. # Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
  64. #
  65. Button1 = : root : f.menu "apps"
  66. Button3 = : root : f.menu "defops"

  67. Button1 = m : window|icon : f.function "move-or-lower"
  68. Button2 = m : window|icon : f.iconify
  69. Button3 = m : window|icon : f.function "move-or-raise"

  70. Button1 = : title : f.function "move-or-raise"
  71. Button2 = : title : f.raiselower
  72. Button3 = : title : f.iconify

  73. Button1 = : icon : f.function "move-or-iconify"
  74. Button2 = : icon : f.iconify

  75. Button1 = : iconmgr : f.iconify
  76. Button2 = : iconmgr : f.iconify

  77. "F4" = m : window : f.delete


  78. LeftTitleButton "/usr/include/X11/bitmaps/shorter.xbm" = f.fullzoom

  79. #
  80. # And a menus with the usual things
  81. #
  82. menu "defops"
  83. {
  84. "Twm"        f.title
  85. "Iconify"        f.iconify
  86. "Resize"        f.resize
  87. "Move"                f.move
  88. "Raise"                f.raise
  89. "Lower"                f.lower
  90. ""                f.nop
  91. "Focus"                f.focus
  92. "Unfocus"        f.unfocus
  93. "Show Iconmgr"        f.showiconmgr
  94. "Hide Iconmgr"        f.hideiconmgr
  95. ""                f.nop
  96. "Kill"                f.destroy
  97. "Delete"        f.delete
  98. ""                f.nop
  99. "Restart"        f.restart
  100. "Exit"                f.quit
  101. }

  102. menu "apps"
  103. {
  104. "Apps"        f.title
  105. "URxvt"                f.function "XTerm"
  106. ""                f.nop
  107. "Opera"                f.exec "opera &"
  108. "GVim"                f.exec "gvim &"
  109. "GQView"        f.exec "gqview &"
  110. "Stardict"        f.exec "stardict &"
  111. ""                f.nop
  112. "Gaim"                f.exec "gaim &"
  113. "QTerm"                f.exec "qterm &"
  114. "XMMS"                f.exec "xmms &"
  115. "MPlayer"        f.exec "gmplayer &"
  116. }

复制代码



不选用firefox,改用opera, (取消#pacman -S mozilla-firefox)

  1. #pacman -S opera
复制代码


1.4 setup wireless lan card, sound card, etc

install wlan pkg:


  1. #pacman -S ipw2100
复制代码


sound card pkg:


  1. #pacman -Sy alsa-lib alsa-utils
  2. #alsaconf
  3. #amixer set Master 100 unmute
  4. #amixer set PCM 100 unmute
  5. #alsctl store
复制代码

(#pacman -S alsa-oss)不装oss了
(发现alsctl restore有问题!!!)

config:

edit /etc/conf.d/wireless

  1. #
  2. # Settings for wireless cards
  3. #
  4. # For each wireless interface declared in INTERFACES (in rc.conf), declare
  5. # a wlan_${IF} variable that contains the arguments to be passed to
  6. # iwconfig(8).  Then list the original interface name in the
  7. # WLAN_INTERFACES array.
  8. #

  9. #wlan_eth0="eth0 mode managed essid wireless"
  10. wlan_eth0="eth0 mode Ad-Hoc essid wireless channel 6 rate auto txpower on"
  11. WLAN_INTERFACES=(eth0)
复制代码


edit /etc/rc.conf

  1. #
  2. # /etc/rc.conf - Main Configuration for Arch Linux
  3. #

  4. #
  5. # Localization
  6. #
  7. # LOCALE: available languages can be listed with the 'locale -a' command
  8. # HARDWARECLOCK: set to "UTC" or "localtime"
  9. # TIMEZONE: timezones are found in /usr/share/zoneinfo
  10. # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
  11. # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
  12. # CONSOLEMAP: found in /usr/share/kbd/unimaps
  13. # USECOLOR: use ANSI color sequences in startup messages
  14. #
  15. LOCALE=en_US.utf8
  16. HARDWARECLOCK="localtime"
  17. TIMEZONE=Asia/Hong_Kong
  18. KEYMAP=us
  19. CONSOLEFONT=
  20. CONSOLEMAP=
  21. USEcolor="yes"

  22. # Scan for LVM volume groups at startup, required if you use LVM
  23. USELVM="no"

  24. #
  25. # Networking
  26. #
  27. HOSTNAME="zgf"

  28. #
  29. # Module to load at boot-up (in this order)
  30. #   (prefix a module with a ! to disable it)
  31. #
  32. #MODULES=(i810 parport_pc rtc intelfb tpm_atmel yenta_socket ipw2100 e100 ohci1394 eth1394 ohci_hcd ehci_hcd uhci_hcd usbhid snd_pcm_oss snd_intel8x0 pcspkr joydev evdev tsdev)
  33. #MODULES=(i810 tpm_atmel ipw2100 e100 ohci_hcd ehci_hcd uhci_hcd usbhid snd_pcm snd_intel8x0 pcspkr)
  34. MODULES=()

  35. #
  36. # Interfaces to start at boot-up (in this order)
  37. # Declare each interface then list in INTERFACES
  38. #   - prefix an entry in INTERFACES with a ! to disable it
  39. #
  40. # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
  41. #
  42. lo="lo 127.0.0.1"
  43. eth0=dhcp #"eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
  44. eth1=dhcp #"eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
  45. #eth2=dhcp #"eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
  46. INTERFACES=(lo eth0 eth1 eth2)

  47. #
  48. # Routes to start at boot-up (in this order)
  49. # Declare each route then list in ROUTES
  50. #   - prefix an entry in ROUTES with a ! to disable it
  51. #
  52. gateway="default gw 192.168.0.1"
  53. ROUTES=(!gateway)

  54. #
  55. # Enable these network profiles at boot-up.  These are only useful
  56. # if you happen to need multiple network configurations (ie, laptop users)
  57. #   - set to 'menu' to present a menu during boot-up
  58. #   - prefix an entry with a ! to disable it
  59. #
  60. # Network profiles are found in /etc/network-profiles
  61. #
  62. NET_PROFILES=(menu)

  63. #
  64. # Daemons to start at boot-up (in this order)
  65. #   - prefix a daemon with a ! to disable it
  66. #   - prefix a daemon with a @ to start it up in the background
  67. #
  68. DAEMONS=(syslog-ng hotplug !pcmcia !alsa @network !netfs !crond)

  69. # End of file
复制代码


1.5 Install Chinese fonts & input method

use XP's fonts:


  1. #cp /mnt/c/windows/Fonts/{simsun.ttf,tahoma.ttf,tahomabd.ttf} /usr/share/fonts/ttf/
  2. #cd /usr/share/fonts/truetype
  3. #fc-cache -fv
  4. #mkfontscale && mkfontdir
复制代码


edit ~/.font.conf.

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- ~/.fonts.conf file to configure system font access -->

  4. <fontconfig>
  5.         <dir>/usr/X11R6/lib/X11/fonts</dir>
  6.         <dir>/usr/share/fonts</dir>
  7.         <dir>/usr/share/fonts/local</dir>
  8.         <dir>~/.fonts</dir>

  9. <!--
  10.           Enable sub-pixel rendering
  11.         <match target="font">
  12.                 <test qual="all" name="rgba">
  13.                         <const>unknown</const>
  14.                 </test>
  15.                 <edit name="rgba" mode="assign">
  16.                         <const>rgb</const>
  17.                 </edit>
  18.         </match>
  19. -->

  20. <!--
  21.   Accept deprecated 'mono' alias, replacing it with 'monospace'
  22. -->
  23.         <match target="pattern" >
  24.                 <test name="family" qual="any" >
  25.                         <string>mono</string>
  26.                 </test>
  27.                 <edit mode="assign" name="family" >
  28.                         <string>monospace</string>
  29.                 </edit>
  30.         </match>

  31. <!--
  32.   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  33. -->
  34.         <match target="pattern" >
  35.                 <test name="family" qual="any" >
  36.                         <string>sans serif</string>
  37.                 </test>
  38.                 <edit mode="assign" name="family" >
  39.                         <string>sans-serif</string>
  40.                 </edit>
  41.         </match>

  42. <!--
  43.   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  44. -->
  45.         <match target="pattern" >
  46.                 <test name="family" qual="any" >
  47.                         <string>sans</string>
  48.                 </test>
  49.                 <edit mode="assign" name="family" >
  50.                         <string>sans-serif</string>
  51.                 </edit>
  52.         </match>

  53. <!--
  54.   Mark common families with their generics so we'll get
  55.   something reasonable
  56. -->
  57.         <!--  Serif faces  -->
  58.         <alias>
  59.                 <family>Times</family>
  60.                 <family>Times New Roman</family>
  61.                 <family>Nimbus Roman No9 L</family>
  62.                 <family>Luxi Serif</family>
  63.                 <family>SimSun</family>
  64.                 <family>Kochi Mincho</family>
  65.                 <family>AR PL SungtiL GB</family>
  66.                 <family>AR PL Mingti2L Big5</family>
  67.                 <family>Baekmuk Batang</family>
  68.                 <default>
  69.                         <family>serif</family>
  70.                 </default>
  71.         </alias>
  72.         <!--  Sans-serif faces  -->
  73.         <alias>
  74.                 <family>Helvetica</family>
  75.                 <family>Arial</family>
  76.                 <family>Verdana</family>
  77.                 <family>Nimbus Sans L</family>
  78.                 <family>Luxi Sans</family>
  79.                 <family>SimSun</family>
  80.                 <family>Kochi Gothic</family>
  81.                 <family>AR PL KaitiM GB</family>
  82.                 <family>AR PL KaitiM Big5</family>
  83.                 <family>Baekmuk Dotum</family>
  84.                 <default>
  85.                         <family>sans-serif</family>
  86.                 </default>
  87.         </alias>

  88.         <!--  Monospace faces  -->
  89.         <alias>
  90.                 <family>Courier</family>
  91.                 <family>Courier New</family>
  92.                 <family>Andale Mono</family>
  93.                 <family>Luxi Mono</family>
  94.                 <family>Nimbus Mono L</family>
  95.                 <family>SimSun</family>
  96.                 <default>
  97.                         <family>monospace</family>
  98.                 </default>
  99.         </alias>

  100. <!--
  101.   If the font still has no generic name, add sans-serif
  102. -->
  103.         <match target="pattern" >
  104.                 <test compare="not_eq" name="family" qual="all" >
  105.                         <string>sans-serif</string>
  106.                 </test>
  107.                 <test compare="not_eq" name="family" qual="all" >
  108.                         <string>serif</string>
  109.                 </test>
  110.                 <test compare="not_eq" name="family" qual="all" >
  111.                         <string>monospace</string>
  112.                 </test>
  113.                 <edit mode="append_last" name="family" >
  114.                         <string>sans-serif</string>
  115.                 </edit>
  116.         </match>

  117. <!--
  118.   Alias well known font names to available TrueType fonts
  119. -->
  120.         <alias>
  121.                 <family>Times</family>
  122.                 <accept>
  123.                         <family>Times New Roman</family>
  124.                 </accept>
  125.         </alias>       
  126.         <alias>
  127.                 <family>Helvetica</family>
  128.                 <accept>
  129.                         <family>Verdana</family>
  130.                 </accept>
  131.         </alias>
  132.         <alias>
  133.                 <family>Arial</family>
  134.                 <accept>
  135.                         <family>Verdana</family>
  136.                 </accept>
  137.         </alias>
  138.         <alias>
  139.                 <family>Courier</family>
  140.                 <accept>
  141.                         <family>Courier New</family>
  142.                 </accept>
  143.         </alias>

  144. <!--
  145.   Provide required aliases for standard names
  146. -->
  147.         <alias>
  148.                 <family>serif</family>
  149.                 <prefer>
  150.                         <family>Times New Roman</family>
  151.                         <family>Nimbus Roman No9 L</family>
  152.                         <family>Luxi Serif</family>
  153.                         <family>Times</family>
  154.                         <family>SimSun</family>
  155.                         <family>Kochi Mincho</family>
  156.                         <family>AR PL SungtiL GB</family>
  157.                         <family>AR PL Mingti2L Big5</family>
  158.                         <family>Baekmuk Batang</family>
  159.                 </prefer>
  160.         </alias>
  161.         <alias>
  162.                 <family>sans-serif</family>
  163.                 <prefer>
  164.                         <family>Verdana</family>
  165.                         <family>Nimbus Sans L</family>
  166.                         <family>Luxi Sans</family>
  167.                         <family>Arial</family>
  168.                         <family>Helvetica</family>
  169.                         <family>SimSun</family>
  170.                         <family>Kochi Gothic</family>
  171.                         <family>AR PL KaitiM GB</family>
  172.                         <family>AR PL KaitiM Big5</family>
  173.                         <family>Baekmuk Dotum</family>
  174.                 </prefer>
  175.         </alias>
  176.         <alias>
  177.                 <family>monospace</family>
  178.                 <prefer>
  179.                         <family>Andale Mono</family>
  180.                         <family>Courier New</family>
  181.                         <family>Luxi Mono</family>
  182.                         <family>Nimbus Mono L</family>
  183.                         <family>SimSun</family>
  184.                         <family>Kochi Gothic</family>
  185.                         <family>AR PL KaitiM GB</family>
  186.                         <family>Baekmuk Dotum</family>
  187.                 </prefer>
  188.         </alias>
  189.        
  190.         <match target="font" >
  191.                 <test compare="more" name="size" qual="any" >
  192.                         <double>8</double>
  193.                 </test>
  194.                 <test compare="less" name="size" qual="any" >
  195.                         <double>17</double>
  196.                 </test>
  197.                 <edit mode="assign" name="antialias" >
  198.                         <bool>false</bool>
  199.                 </edit>
  200.         </match>
  201.         <match target="font" >
  202.                 <test compare="more" name="pixelsize" qual="any" >
  203.                         <double>9</double>
  204.                 </test>
  205.                 <test compare="less" name="pixelsize" qual="any" >
  206.                         <double>19</double>
  207.                 </test>
  208.                 <edit mode="assign" name="antialias" >
  209.                         <bool>false</bool>
  210.                 </edit>
  211.         </match>

  212. <!--
  213. Artificial oblique for fonts without an italic or oblique version
  214. -->
  215.         <match target="font" >
  216.                 <!-- check to see if the font is roman -->
  217.                 <test name="slant" >
  218.                         <const>roman</const>
  219.                 </test>               
  220.                 <!-- check to see if the pattern requested non-roman -->
  221.                 <test compare="not_eq" target="pattern" name="slant" >
  222.                         <const>roman</const>
  223.                 </test>
  224.                 <!-- multiply the matrix to slant the font -->
  225.                 <edit mode="assign" name="matrix" >
  226.                         <times>
  227.                                 <name>matrix</name>
  228.                                 <matrix>
  229.                                         <double>1</double>
  230.                                         <double>.2</double>
  231.                                         <double>0</double>
  232.                                         <double>1</double>
  233.                                 </matrix>
  234.                         </times>
  235.                 </edit>
  236.                 <edit mode="assign" name="antialias" >
  237.                         <bool>false</bool>
  238.                 </edit>
  239.                 <!-- pretend the font is oblique now -->
  240.                 <edit mode="assign" name="slant" >
  241.                         <const>oblique</const>
  242.                 </edit>
  243.         </match>

  244. <!--
  245. Add by firefly@firefly.idv.tw
  246. Artificial bold for fonts without a bold version.
  247. -->
  248.         <match target="font" >
  249.                 <!-- check to see if the pattern requested > "medium" -->
  250.                 <test compare="more" target="pattern" name="weight" >
  251.                         <const>medium</const>
  252.                 </test>
  253.                 <!-- pretend the font is bold now -->
  254.                 <edit mode="assign" name="weight" >
  255.                         <const>bold</const>
  256.                 </edit>
  257.         </match>
  258.         <match target="font" >
  259.                 <test compare="contains" target="pattern" name="lang" >
  260.                         <string>zh-tw</string>
  261.                         <string>zh-cn</string>
  262.                         <string>ja</string>
  263.                         <string>ko</string>
  264.                 </test>
  265.                 <test compare="eq" name="spacing" >
  266.                         <const>mono</const>
  267.                 </test>
  268.                 <edit mode="assign" name="globaladvance" >
  269.                         <bool>false</bool>
  270.                 </edit>
  271.         </match>
  272.         <match target="font" >
  273.                 <edit mode="assign" name="hinting" >
  274.                         <bool>true</bool>
  275.                 </edit>
  276.         </match>
  277.         <match target="font" >
  278.                 <edit mode="assign" name="hintstyle" >
  279.                         <const>hintmedium</const>
  280.                 </edit>
  281.         </match>
  282. </fontconfig>
复制代码


安装输入法:

  1. #pacman -S fcitx
复制代码


set locale to utf8.
~/.bash_profile:

  1. . $HOME/.bashrc
  2. LANG="en_US.utf8"
  3. LC_CTYPE="en_US.utf8"
  4. LC_NUMERIC="en_US.utf8"
  5. LC_TIME="en_US.utf8"
  6. LC_COLLATE=C
  7. LC_MONETARY="en_US.utf8"
  8. LC_MESSAGES="en_US.utf8"
  9. LC_PAPER="en_US.utf8"
  10. LC_NAME="en_US.utf8"
  11. LC_ADDRESS="en_US.utf8"
  12. LC_TELEPHONE="en_US.utf8"
  13. LC_MEASUREMENT="en_US.utf8"
  14. LC_IDENTIFICATION="en_US.utf8"
  15. LC_ALL=
复制代码


.gtkrc:

  1. style "gtk-default" {
  2.        fontset="-*-Tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-*,\
  3.                   -*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-*,*-r-*"
  4. }
  5. class "GtkWidget" style "gtk-default"
复制代码



edit .xinitrc

  1. #!/bin/sh
  2. # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

  3. userresources=$HOME/.Xresources
  4. usermodmap=$HOME/.Xmodmap
  5. sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
  6. sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

  7. # merge in defaults and keymaps

  8. if [ -f $sysresources ]; then
  9.     xrdb -merge $sysresources
  10. fi

  11. if [ -f $sysmodmap ]; then
  12.     xmodmap $sysmodmap
  13. fi

  14. if [ -f $userresources ]; then
  15.     xrdb -merge $userresources
  16. fi

  17. if [ -f $usermodmap ]; then
  18.     xmodmap $usermodmap
  19. fi

  20. # start some nice programs

  21. export XMODIFIERS=@im=fcitx
  22. export XIM=fcitx
  23. export XIM_PROGRAM=fcitx
  24. export QT_IM_MODULE=fcitx
  25. env LC_CTYPE=zh_CN.utf8 fcitx &

  26. twm &
  27. xclock -geometry 50x50+1-1 &
  28. #xterm -geometry 80x50+494+51 &
  29. #xterm -geometry 80x20+494-0 &
  30. exec urxvt -geometry 80x24+0+0 -name X
复制代码


my .Xdefaults

  1. Xft.dpi:96
  2. URxvt.background:black
  3. URxvt.foreground:white
  4. URxvt.scrollBar_right:True
  5. URxvt.saveLines:3000
  6. URxvt.font:xft:SimSun
  7. URxvt.inputMethod:fcitx
  8. Rxvt.inputMethod:fcitx
  9. Rxvt.background:black
  10. Rxvt.foreground:white
  11. Rxvt.scrollBar_right:True
  12. Rxvt.saveLines:3000
复制代码


1.6 install entertainment software


  1. #pacman -S mplayer
复制代码

(#pacmen -S bmp)改用XMMS

  1. #pacman -S xmms
复制代码

xmms 字体main window与playlist均设成:
.xmms/config

  1. ......
  2. playlist_font=-microsoft-tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-*,-misc-simsun-medium-r-normal-*-14-*-*-*-*-*-iso10646-1
  3. use_fontsets=TRUE
  4. mainwin_use_xfont=TRUE
  5. mainwin_font=-microsoft-tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-*,-misc-simsun-medium-r-normal-*-14-*-*-*-*-*-iso10646-1
  6. ......
复制代码


1.7 已安装的其他软件

图片浏览:gqview
文本编辑:vim, gvim(因未熟vim的粘贴,装了gvim)
词典:stardict(及stardict-xdict-ce-gb,stardict-xdict-ec-gb)
IM: gaim+openq
BBS Client: qterm

openq 的PKGBUILD:

  1. pkgname=openq
  2. srcname=OpenQ
  3. pkgver=0.3.1
  4. pkgrel=2
  5. pkgdesc="OpenQ is a QQ-liked protocol plugin for gaim"
  6. url="http://openq.sf.net"
  7. license="GPL"
  8. depends=('glibc' 'gtk2>=2.4' 'gaim>=1.0')
  9. makedepends=('gtk2>=2.4' 'gaim>=1.0')
  10. conflicts=()
  11. replaces=()
  12. backup=()
  13. install=
  14. source=(http://openq.linuxsir.cn/download/$srcname-$pkgver.tar.bz2)
  15. md5sums=(80415138f7a59e0d6920e481f5dbecc8)

  16. build() {
  17.   cd $startdir/src/$srcname
  18.   ./configure --prefix=/usr
  19.   make || return 1
  20.   make DESTDIR=$startdir/pkg install
  21. }
复制代码


qterm的PKGBUILD:

  1. pkgname=qterm
  2. srcname=qterm
  3. pkgver=0.4.0pre3
  4. pkgrel=1
  5. pkgdesc="QTerm is a BBS client in Linux, written in Qt"
  6. url="http://qterm.sourceforge.net/"
  7. license="GPL"
  8. depends=('qt' 'xorg')
  9. conflicts=()
  10. replaces=()
  11. backup=()
  12. install=
  13. source=(http://optusnet.dl.sourceforge.net/sourceforge/qterm/$srcname-$pkgver.tar.gz)
  14. md5sums=(982dcf9ec56cc4caa6c44f07510caf3a)
  15. build() {
  16.   cd $startdir/src/$srcname-$pkgver
  17.   ./configure --prefix=/usr
  18.   make || return 1
  19.   make DESTDIR=$startdir/pkg install
  20. }
复制代码


2. Todo (含遗留问题,寻求解决方法)

2.1 系统精简问题, 这是我的LAPTOP上安装LINUX的最根本要求: 目前pacman -Scc后空间占用达800MB左右.

2.2 (未解决)sound问题: 不知哪里搞错,刚安装好后声音还好,但重启后声音就没了.(暂时在/etc/rc.local用amixer打开音量)

2.3 (已解决)firefox标题中文显示乱码问题: (确认是E16的问题,装E17或在TWM下标题显示正常)

2.4 (已解决)bmp中文显示问题(改用xmms,问题解决!)

2.5 (已解决)telnet 中文BBS的解决问题: urxvt可以显示与输入中文,但telnet 上bbs不能正常显示中文。准备用qterm。成功安装qterm

2.6 (已解决)qq 问题. LumaQQ可以, 但太大了(100MB).准备用gaim-qq.现安装了gaim+openq

2.7 安装xv,及LaTeX等软件包
 楼主| 发表于 2005-11-16 13:01:17 | 显示全部楼层
在vmware里运行的截图(因为未装xv, 只能在vmware里截图. 注意,在vmware与真实机器使用不同的xorg.conf).

前者是e16+firefox+bmp, 后者是twm+opera+xmms

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2005-11-16 13:29:16 | 显示全部楼层
2.2在rc.conf daemons加入alsa
2.3/4应该是你的enlightenment字体的问题...e16?
2.5bbs上的encoding和你本地不一样
2.6不觉的大....表面看起来大..其实没有人家说的那么消耗资源
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-16 15:48:45 | 显示全部楼层
2.2 alsa已经加入rc.conf,还是不行啊,等我慢慢调调,看问题在哪。
2.3 是跟e16有关,装了E17,可以显示中文标题了。
2.4 在E17下依然存在。
2.5 可能还得装QTERM
2.6 lumaqq占用hd 100M,大.

fallen兄的arch多大?
回复 支持 反对

使用道具 举报

发表于 2005-11-16 20:17:24 | 显示全部楼层
2.2 装了alsa-utils了么?
2.5 可以试试看pacmanx(似乎叫这个),gtk的bbs term
2.6 可能是包含java的版本吧,呵呵

telnet bbs试试看telnet -8 xxx.xxx.xx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-17 12:10:12 | 显示全部楼层
声卡都是按精华里的贴子一步一步做足的。xd帮忙治治吧。
我发现每次启动后,运行alsactl restore都会出错,
因为每次启动后运行alsamixer看到的设置都不大一样,例如有时PCM可以设MUTE,
有时没有设置MUTE的选项。很是奇怪!

这次设置好音量,可以发声了。于是alsactl store保存,马上再运行alsactl restore都没错。
(我特别在rc.conf里关了alsa,手动store与restore。自动启动也是一样的错误)
但重启后,手动restore就有错,说
alsactl: set_control:894: warning: name mismatch (Line Playback Switch/Line Playback Volume) for control #11
之类的错误。每次错误还不一样!

我的rc.conf里启动了hotplug,lsmod 看到
Module                  Size  Used by
i915                   18304  1
drm                    62740  2 i915
eth1394                18568  0
ohci_hcd               20100  0
parport_pc             26308  0
parport                33864  1 parport_pc
pcspkr                  3680  0
rtc                    10808  0
e100                   35712  0
mii                     5248  1 e100
ohci1394               33716  0
ieee1394               91352  2 eth1394,ohci1394
yenta_socket           23436  0
rsrc_nonstatic         12416  1 yenta_socket
pcmcia_core            37912  2 yenta_socket,rsrc_nonstatic
ipw2100               146532  0
ieee80211              46952  1 ipw2100
ieee80211_crypt         5124  1 ieee80211
snd_intel8x0m          15940  0
snd_intel8x0           30528  1
snd_ac97_codec         85116  2 snd_intel8x0m,snd_intel8x0
snd_pcm_oss            51104  0
snd_mixer_oss          18432  1 snd_pcm_oss
snd_pcm                84868  4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              22660  1 snd_pcm
snd                    49380  9 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               8032  1 snd
snd_page_alloc          8840  3 snd_intel8x0m,snd_intel8x0,snd_pcm
tpm_atmel               4864  0
tpm                     8480  1 tpm_atmel
ehci_hcd               32904  0
usbhid                 46368  0
uhci_hcd               32144  0
intelfb                30240  0
intel_agp              21404  1
agpgart                30160  4 drm,intelfb,intel_agp
usbcore               114300  5 ohci_hcd,ehci_hcd,usbhid,uhci_hcd
nls_cp437               5760  2
vfat                   11904  2
fat                    48156  1 vfat
joydev                  8768  0
tsdev                   6336  0
evdev                   7936  0



alsamixer看到的信息如下:
Card Intel 82801DB-ICH4
Chip: SigmaTel STAC9750,51
.......

hwd -e 看到

Multimedia audio controller
  snd-intel8x0    : Intel Corp.|ICH4 845G/GL Chipset AC'97 Audio Controller
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-17 13:50:50 | 显示全部楼层
既然alsactl restore失败,(原因是每次boot后alsactl store生成的/etc/asound.state不一样),
现在的暂时解决办法是在rc.local加入

amixer set Master 80 unmute
amixer set PCM 80 unmute

真是郁闷啊.
回复 支持 反对

使用道具 举报

发表于 2005-11-18 11:56:52 | 显示全部楼层
mingliu这字体看起不爽啊,半虚半不虚的。。。我用的simhei..呵呵。不过也没改fonts.conf。。所以网页上看的字体发虚。。也不知道如何解决,FIREFOX没有成中文。。其他的软件都是中午。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-18 21:56:39 | 显示全部楼层
Post by mydooom
mingliu这字体看起不爽啊,半虚半不虚的。。。我用的simhei..呵呵。不过也没改fonts.conf。。所以网页上看的字体发虚。。也不知道如何解决,FIREFOX没有成中文。。其他的软件都是中午。


关闭aa? 精华里有贴子讲的.
回复 支持 反对

使用道具 举报

发表于 2005-11-20 20:39:11 | 显示全部楼层
2.4 那首歌是mp3格式的么?mp3的tag一般还都是GB2312编码的,如果歌名后面还跟着(invalid UTF-8)云云,就是这个问题了。到属性里找到MPEG Audio Plugin配置一下,如果是non-UTF8字串就用GB2312编码。
回复 支持 反对

使用道具 举报

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

本版积分规则

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