LinuxSir.cn,穿越时空的Linuxsir!

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

换硬盘后重新安装gentoo 2005.1 for amd64版经验

[复制链接]
发表于 2005-10-9 07:11:11 | 显示全部楼层 |阅读模式
按照这个教材基本不会错
http://www.gentoo.org/doc/en/han ... ok-amd64.xml?full=1


安装网络:
我的是动态ip
#dhcpcd -HD eth0

不要忘记chroot后要#emerge --sync


重点是一些配置文件

/etc/make.conf

  1. # These settings were set by the catalyst build script that automatically built
  2. this stage
  3. # Please consult /etc/make.conf.example for a more detailed example
  4. CFLAGS=" -pipe -O2"
  5. CHOST="x86_64-pc-linux-gnu"
  6. CXXFLAGS="${CFLAGS}"
  7. USE="gnome kde alsa X qt gtk -ipv6 cjk gtk acpi ati"
  8. GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo ftp://mirror.switch.ch
  9. /mirror/gentoo"
复制代码


配置文件:
/etc/fstab:

  1. # /etc/fstab: static file system information.
  2. # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23
  3. :05:14 vapier Exp $
  4. #
  5. # noatime turns off atimes for increased performance (atimes normally aren't
  6. # needed; notail increases performance of ReiserFS (at the expense of storage
  7. # efficiency).  It's safe to drop the noatime options if you want and to
  8. # switch between notail / tail freely.
  9. #
  10. # See the manpage fstab(5) for more information.

  11. # <fs>                  <mountpoint>    <type>          <opts>          <dump/pa
  12. ss>

  13. # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
  14. /dev/hdd1               /boot           ext2            noauto,noatime  1 2
  15. /dev/hdd3               /               ext3            noatime         0 1
  16. /dev/hdd2               none            swap            sw              0 0
  17. /dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
  18. #/dev/fd0               /mnt/floppy     auto            noauto          0 0

  19. # NOTE: The next line is critical for boot!
  20. proc                    /proc           proc            defaults        0 0

  21. # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
  22. # POSIX shared memory (shm_open, shm_unlink).
  23. # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
  24. #  use almost no memory if not populated with files)
  25. shm                     /dev/shm        tmpfs           nodev,nosuid,noexec 0 0
复制代码


内核配置文件:
**************************************************************************
最主要的选项handbook都已经提到了,根据handbook编译的内核基本可以启动
当然也可以用genkernel
每个人对内核的要求不一样,而且这个文件太长,不贴出来了
**************************************************************************


/boot/grub/grub.conf
**************************************
这个文件默认启动windows
root(hd1,0)是因为安装linux的盘是slave
**************************************


  1. #default windows
  2. default 1
  3. timeout 30
  4. #splashimage=(hd1,0)/grub/splash.xmp.gz

  5. #gentoo linux

  6. title=gentoo linux2.6.12
  7. root (hd1,0)
  8. kernel /kernel-2.6.12-10 root=/dev/hdd3

  9. #windows

  10. title=windows xp
  11. rootnoverify (hd0,0)
  12. makeactive
  13. chainloader +1

复制代码


~/.bashrc
*******************************************************
这个文件的配置基本可以运行scim了
当然需要
#emerge scim
#ACCEPT_KEYWORDS="~amd64" emerge scim-pinyin
小心上面不要写错,感谢日月改正
*******************************************************

  1. # /etc/skel/.bashrc:
  2. # $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bashrc,v 1.3 2005/0
  3. 7/06 22:10:22 vapier Exp $
  4. #
  5. # This file is sourced by all *interactive* bash shells on startup,
  6. # including some apparently interactive shells such as scp and rcp
  7. # that can't tolerate any output.


  8. # Test for an interactive shell.  There is no need to set anything
  9. # past this point for scp and rcp, and it's important to refrain from
  10. # outputting anything in those cases.
  11. if [[ $- != *i* ]]; then
  12.         # Shell is non-interactive.  Be done now
  13.         return
  14. fi

  15. # Shell is interactive.  It is okay to produce output at this point,
  16. # though this example doesn't produce any.  Do setup for
  17. # command-line interactivity.

  18. # colors for ls, etc.  Prefer ~/.dir_colors #64489
  19. if [[ -f ~/.dir_colors ]]; then
  20.         eval `dircolors -b ~/.dir_colors`
  21. else
  22.         eval `dircolors -b /etc/DIR_COLORS`
  23. fi
  24. alias ls="ls --color=auto"

  25. # Change the window title of X terminals
  26. case $TERM in
  27.         xterm*|rxvt*|Eterm)
  28.                 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$
  29. HOME/~}\007"'
  30.                 ;;
  31.         screen)
  32.                 PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HO
  33. ME/~}\033\"'
  34.                 ;;
  35. esac

  36. [color=red]
  37. LANG="en_US.utf8"
  38. export LC_CTYPE="en_US.utf8"
  39. export XMODIFIERS="@im=SCIM"
  40. export GTK_IM_MODULE="scim"
  41. export QT_IM_MODULE="scim"
  42. [/color]
  43. # uncomment the following to activate bash-completion:
  44. #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
复制代码


~/.xinitrc
(这个是启动kde的)

  1. exec startkde
  2. #exec gnome-session
  3. #exec wmaker
复制代码
 楼主| 发表于 2005-10-9 07:12:44 | 显示全部楼层
安装ati9800 pro驱动:
********************************
#emerge ati-drivers
(配置X命令)
#/opt/ati/bin/fglrxconfig
********************************

/etc/X11/xorg.conf


  1. # File: xorg.conf
  2. # File generated by fglrxconfig (C) ATI Technologies, a substitute for xf86confi
  3. g.

  4. # Note by ATI: the below copyright notice is there for servicing possibly
  5. # pending third party rights on the file format and the instance of this file.
  6. #
  7. # Copyright (c) 1999 by The XFree86 Project, Inc.
  8. #
  9. # Permission is hereby granted, free of charge, to any person obtaining a
  10. # copy of this software and associated documentation files (the "Software"),
  11. # to deal in the Software without restriction, including without limitation
  12. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  13. # and/or sell copies of the Software, and to permit persons to whom the
  14. # Software is furnished to do so, subject to the following conditions:
  15. #
  16. # The above copyright notice and this permission notice shall be included in
  17. # all copies or substantial portions of the Software.
  18. #
  19. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  22. # THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  23. # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  24. # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  25. # SOFTWARE.
  26. #
  27. # Except as contained in this notice, the name of the XFree86 Project shall
  28. # not be used in advertising or otherwise to promote the sale, use or other
  29. # dealings in this Software without prior written authorization from the
  30. # XFree86 Project.
  31. #

  32. # **********************************************************************
  33. # Refer to the XF86Config(4/5) man page for details about the format of
  34. # this file.
  35. # **********************************************************************

  36. # **********************************************************************
  37. # DRI Section
  38. # **********************************************************************
  39. Section "dri"
  40. # Access to OpenGL ICD is allowed for all users:
  41.     Mode 0666
  42. # Access to OpenGL ICD is restricted to a specific user group:
  43. #    Group 100    # users
  44. #    Mode 0660
  45. EndSection

  46. # **********************************************************************
  47. # Module section -- this  section  is used to specify
  48. # which dynamically loadable modules to load.
  49. # **********************************************************************
  50. #
  51. Section "Module"

  52. # This loads the DBE extension module.

  53.     Load        "dbe"   # Double buffer extension

  54. # This loads the miscellaneous extensions module, and disables
  55. # initialisation of the XFree86-DGA extension within that module.
  56.     SubSection  "extmod"
  57.       Option    "omit xfree86-dga"   # don't initialise the DGA extension
  58.     EndSubSection

  59. # This loads the Type1 and FreeType font modules
  60.     Load        "type1"
  61. #    Load        "freetype"
  62.     Load        "xtt"

  63. # This loads the GLX module
  64.     Load        "glx"   # libglx.a
  65.     Load        "dri"   # libdri.a

  66. EndSection

  67. # **********************************************************************
  68. # Files section.  This allows default font and rgb paths to be set
  69. # **********************************************************************

  70. Section "Files"

  71. # The location of the RGB database.  Note, this is the name of the
  72. # file minus the extension (like ".txt" or ".db").  There is normally
  73. # no need to change the default.

  74.     RgbPath     "/usr/X11R6/lib/X11/rgb"

  75. # Multiple FontPath entries are allowed (which are concatenated together),
  76. # as well as specifying multiple comma-separated entries in one FontPath
  77. # command (or a combination of both methods)
  78. #
  79. # If you don't have a floating point coprocessor and emacs, Mosaic or other
  80. # programs take long to start up, try moving the Type1 and Speedo directory
  81. # to the end of this list (or comment them out).
  82. #

  83.     FontPath   "/usr/X11R6/lib/X11/fonts/local/"
  84.     FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
  85.     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
  86.     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
  87.     FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
  88. #    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
  89.     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
  90.     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

  91. # The module search path.  The default path is shown here.

  92. #    ModulePath "/usr/X11R6/lib/modules"

  93. EndSection

  94. # **********************************************************************
  95. # Server flags section.
  96. # **********************************************************************

  97. Section "ServerFlags"

  98. # Uncomment this to cause a core dump at the spot where a signal is
  99. # received.  This may leave the console in an unusable state, but may
  100. # provide a better stack trace in the core dump to aid in debugging

  101. #    Option "NoTrapSignals"

  102. # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
  103. # This allows clients to receive this key event.

  104. #    Option "DontZap"

  105. # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
  106. # sequences.  This allows clients to receive these key events.

  107. #    Option "Dont Zoom"

  108. # Uncomment this to disable tuning with the xvidtune client. With
  109. # it the client can still run and fetch card and monitor attributes,
  110. # but it will not be allowed to change them. If it tries it will
  111. # receive a protocol error.

  112. #    Option "DisableVidModeExtension"

  113. # Uncomment this to enable the use of a non-local xvidtune client.

  114. #    Option "AllowNonLocalXvidtune"

  115. # Uncomment this to disable dynamically modifying the input device
  116. # (mouse and keyboard) settings.

  117. #    Option "DisableModInDev"

  118. # Uncomment this to enable the use of a non-local client to
  119. # change the keyboard or mouse settings (currently only xset).

  120. #    Option "AllowNonLocalModInDev"

  121. EndSection

  122. # **********************************************************************
  123. # Input devices
  124. # **********************************************************************

  125. # **********************************************************************
  126. # Core keyboard's InputDevice section
  127. # **********************************************************************

  128. Section "InputDevice"

  129.     Identifier  "Keyboard1"
  130.     Driver      "kbd"
  131. # For most OSs the protocol can be omitted (it defaults to "Standard").
  132. # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
  133. # uncomment the following line.

  134. #    Option "Protocol"   "Xqueue"

  135.     Option "AutoRepeat" "500 30"

  136. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  137. #    Option "Xleds"      "1 2 3"

  138. #    Option "LeftAlt"    "Meta"
  139. #    Option "RightAlt"   "ModeShift"

  140. # To customise the XKB settings to suit your keyboard, modify the
  141. # lines below (which are the defaults).  For example, for a non-U.S.
  142. # keyboard, you will probably want to use:
  143. #    Option "XkbModel"   "pc102"
  144. # If you have a US Microsoft Natural keyboard, you can use:
  145. #    Option "XkbModel"   "microsoft"
  146. #
  147. # Then to change the language, change the Layout setting.
  148. # For example, a german layout can be obtained with:
  149. #    Option "XkbLayout"  "de"
  150. # or:
  151. #    Option "XkbLayout"  "de"
  152. #    Option "XkbVariant" "nodeadkeys"
  153. #
  154. # If you'd like to switch the positions of your capslock and
  155. # control keys, use:
  156. #    Option "XkbOptions" "ctrl:swapcaps"

  157. # These are the default XKB settings for XFree86
  158. #    Option "XkbRules"   "xfree86"
  159. #    Option "XkbModel"   "pc101"
  160. #    Option "XkbLayout"  "us"
  161. #    Option "XkbVariant" ""
  162. #    Option "XkbOptions" ""

  163. #    Option "XkbDisable"

  164.     Option "XkbRules"   "xfree86"
  165.     Option "XkbModel"   "pc101"
  166.     Option "XkbLayout"  "us"

  167. EndSection


  168. # **********************************************************************
  169. # Core Pointer's InputDevice section
  170. # **********************************************************************

  171. Section "InputDevice"

  172. # Identifier and driver

  173.     Identifier  "Mouse1"
  174.     Driver "mouse"
  175.     Option "Protocol"   "ImPS/2"
  176.     Option "ZAxisMapping"   "4 5"
  177.     Option "Device"     "/dev/input/mice"

  178. # When using XQUEUE, comment out the above two lines, and uncomment
  179. # the following line.

  180. #    Option "Protocol"   "Xqueue"

  181. # Baudrate and SampleRate are only for some Logitech mice. In
  182. # almost every case these lines should be omitted.

  183. #    Option "BaudRate"   "9600"
  184. #    Option "SampleRate" "150"

  185. # Emulate3Buttons is an option for 2-button Microsoft mice
  186. # Emulate3Timeout is the timeout in milliseconds (default is 50ms)

  187. #    Option "Emulate3Buttons"
  188. #    Option "Emulate3Timeout"    "50"

  189. # ChordMiddle is an option for some 3-button Logitech mice

  190. #    Option "ChordMiddle"

  191. EndSection


  192. # **********************************************************************
  193. # Other input device sections
  194. # this is optional and is required only if you
  195. # are using extended input devices.  This is for example only.  Refer
  196. # to the XF86Config man page for a description of the options.
  197. # **********************************************************************
  198. #
  199. # Section "InputDevice"
  200. #    Identifier  "Mouse2"
  201. #    Driver      "mouse"
  202. #    Option      "Protocol"      "MouseMan"
  203. #    Option      "Device"        "/dev/mouse2"
  204. # EndSection
  205. #
  206. # Section "InputDevice"
  207. #    Identifier "spaceball"
  208. #    Driver     "magellan"
  209. #    Option     "Device"         "/dev/cua0"
  210. # EndSection
  211. #
  212. # Section "InputDevice"
  213. #    Identifier "spaceball2"
  214. #    Driver     "spaceorb"
  215. #    Option     "Device"         "/dev/cua0"
  216. # EndSection
  217. #
  218. # Section "InputDevice"
  219. #    Identifier "touchscreen0"
  220. #    Driver     "microtouch"
  221. #    Option     "Device"         "/dev/ttyS0"
  222. #    Option     "MinX"           "1412"
  223. #    Option     "MaxX"           "15184"
  224. #    Option     "MinY"           "15372"
  225. #    Option     "MaxY"           "1230"
  226. #    Option     "ScreenNumber"   "0"
  227. #    Option     "ReportingMode"  "Scaled"
  228. #    Option     "ButtonNumber"   "1"
  229. #    Option     "SendCoreEvents"
  230. # EndSection
  231. #
  232. # Section "InputDevice"
  233. #    Identifier "touchscreen1"
  234. #    Driver     "elo2300"
  235. #    Option     "Device"         "/dev/ttyS0"
  236. #    Option     "MinX"           "231"
  237. #    Option     "MaxX"           "3868"
  238. #    Option     "MinY"           "3858"
  239. #    Option     "MaxY"           "272"
  240. #    Option     "ScreenNumber"   "0"
  241. #    Option     "ReportingMode"  "Scaled"
  242. #    Option     "ButtonThreshold"    "17"
  243. #    Option     "ButtonNumber"   "1"
  244. #    Option     "SendCoreEvents"
  245. # EndSection

  246. # **********************************************************************
  247. # Monitor section
  248. # **********************************************************************

  249. # Any number of monitor sections may be present

  250. Section "Monitor"
  251.     Identifier  "Monitor0"
  252.     HorizSync   31.5 - 80.5
  253.     VertRefresh 60 - 85
  254.     Option "DPMS"

  255. # === mode lines based on GTF ===
  256. # VGA @ 100Hz
  257. # Modeline "640x480@100" 43.163 640 680 744 848 480 481 484 509 +hsync +vsync
  258. # SVGA @ 100Hz
  259. # Modeline "800x600@100" 68.179 800 848 936 1072 600 601 604 636 +hsync +vsync
  260. # XVGA @ 100Hz
  261. # Modeline "1024x768@100" 113.309 1024 1096 1208 1392 768 769 772 814 +hsync +vs
  262. ync
  263. # 1152x864 @ 60Hz
  264. # Modeline "1152x864@60" 81.642 1152 1216 1336 1520 864 865 868 895 +hsync +vsyn
  265. c
  266. # 1152x864 @ 85Hz
  267. # Modeline "1152x864@85" 119.651 1152 1224 1352 1552 864 865 868 907 +hsync +vsy
  268. nc
  269. # 1152x864 @ 100Hz
  270. # Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vs
  271. ync
  272. # 1280x960 @ 75Hz
  273. # Modeline "1280x960@75" 129.859 1280 1368 1504 1728 960 961 964 1002 +hsync +vs
  274. ync
  275. # 1280x960 @ 100Hz
  276. # Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017  +hsync +
  277. vsync
  278. # SXGA @ 100Hz
  279. # Modeline "1280x1024@100" 190.960 1280 1376 1520 1760 1024 1025 1028 1085 +hsyn
  280. c +vsync
  281. # SPEA GDM-1950 (60Hz,64kHz,110MHz,-,-): 1280x1024 @ V-freq: 60.00 Hz, H-freq: 6
  282. 3.73 KHz
  283. # Modeline "GDM-1950"  109.62  1280 1336 1472 1720  1024 1024 1026 1062 -hsync -
  284. vsync
  285. # 1600x1000 @ 60Hz
  286. # Modeline "1600x1000" 133.142 1600 1704 1872 2144 1000 1001 1004 1035 +hsync +v
  287. sync
  288. # 1600x1000 @ 75Hz
  289. # Modeline "1600x1000" 169.128 1600 1704 1880 2160 1000 1001 1004 1044 +hsync +v
  290. sync
  291. # 1600x1000 @ 85Hz
  292. # Modeline "1600x1000" 194.202 1600 1712 1888 2176 1000 1001 1004 1050 +hsync +v
  293. sync
  294. # 1600x1000 @ 100Hz
  295. # Modeline "1600x1000" 232.133 1600 1720 1896 2192 1000 1001 1004 1059 +hsync +v
  296. sync
  297. # 1600x1024 @ 60Hz
  298. # Modeline "1600x1024" 136.385 1600 1704 1872 2144 1024 1027 1030 1060 +hsync +v
  299. sync
  300. # 1600x1024 @ 75Hz
  301. # Modeline "1600x1024" 174.416 1600 1712 1888 2176 1024 1025 1028 1069 +hsync +v
  302. sync
  303. # 1600x1024 @ 76Hz
  304. # Modeline "1600x1024" 170.450 1600 1632 1792 2096 1024 1027 1030 1070 +hsync +v
  305. sync
  306. # 1600x1024 @ 85Hz
  307. # Modeline "1600x1024" 198.832 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +v
  308. sync
  309. # 1920x1080 @ 60Hz
  310. # Modeline "1920x1080" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync -v
  311. sync
  312. # 1920x1080 @ 75Hz
  313. # Modeline "1920x1080" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +v
  314. sync
  315. # 1920x1200 @ 60Hz
  316. # Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +v
  317. sync
  318. # 1920x1200 @ 75Hz
  319. # Modeline "1920x1200" 246.590 1920 2064 2272 2624 1200 1201 1203 1253 +hsync +v
  320. sync
  321. # 2048x1536 @ 60
  322. # Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +v
  323. sync
  324. # 2048x1536 @ 60
  325. # Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +v
  326. sync
  327. # 1400x1050 @ 60Hz M9 Laptop mode
  328. # ModeLine "1400x1050" 122.000 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +v
  329. sync
  330. # 1920x2400 @ 25Hz for IBM T221, VS VP2290 and compatible display devices
  331. # Modeline "1920x2400@25" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync
  332. +vsync
  333. # 1920x2400 @ 30Hz for IBM T221, VS VP2290 and compatible display devices
  334. # Modeline "1920x2400@30" 149.250 1920 1928 1982 2044 2400 2402 2404 2434 +hsync
  335. +vsync

  336. EndSection


  337. # **********************************************************************
  338. # Graphics device section
  339. # **********************************************************************

  340. # Any number of graphics device sections may be present

  341. # Standard VGA Device:

  342. Section "Device"
  343.     Identifier  "Standard VGA"
  344.     VendorName  "Unknown"
  345.     BoardName   "Unknown"

  346. # The chipset line is optional in most cases.  It can be used to override
  347. # the driver's chipset detection, and should not normally be specified.

  348. #    Chipset     "generic"

  349. # The Driver line must be present.  When using run-time loadable driver
  350. # modules, this line instructs the server to load the specified driver
  351. # module.  Even when not using loadable driver modules, this line
  352. # indicates which driver should interpret the information in this section.

  353.     Driver      "vga"
  354. # The BusID line is used to specify which of possibly multiple devices
  355. # this section is intended for.  When this line isn't present, a device
  356. # section can only match up with the primary video device.  For PCI
  357. # devices a line like the following could be used.  This line should not
  358. # normally be included unless there is more than one video device
  359. # installed.

  360. #    BusID       "PCI:0:10:0"

  361. #    VideoRam    256

  362. #    Clocks      25.2 28.3

  363. EndSection

  364. # === ATI device section ===

  365. Section "Device"
  366.     Identifier                          "ATI Graphics Adapter"
  367.     Driver                              "fglrx"
  368. # ### generic DRI settings ###
  369. # === disable PnP Monitor  ===
  370.     #Option                              "NoDDC"
  371. # === disable/enable XAA/DRI ===
  372.     Option "no_accel"                   "no"
  373.     Option "no_dri"                     "no"
  374. # === misc DRI settings ===
  375.     Option "mtrr"                       "off" # disable DRI mtrr mapper, driver
  376. has its own code for mtrr
  377. # ### FireGL DDX driver module specific settings ###
  378. # === Screen Management ===
  379.     Option "DesktopSetup"               "0x00000000"
  380.     Option "MonitorLayout"              "AUTO, AUTO"
  381.     Option "IgnoreEDID"                 "off"
  382.     Option "HSync2"                     "unspecified"
  383.     Option "VRefresh2"                  "unspecified"
  384.     Option "ScreenOverlap"              "0"
  385. # === TV-out Management ===
  386.     Option "NoTV"                       "yes"
  387.     Option "TVStandard"                 "NTSC-M"
  388.     Option "TVHSizeAdj"                 "0"
  389.     Option "TVVSizeAdj"                 "0"
  390.     Option "TVHPosAdj"                  "0"
  391.     Option "TVVPosAdj"                  "0"
  392.     Option "TVHStartAdj"                "0"
  393.     Option "TVColorAdj"                 "0"
  394.     Option "GammaCorrectionI"           "0x00000000"
  395.     Option "GammaCorrectionII"          "0x00000000"
  396. # === OpenGL specific profiles/settings ===
  397.     Option "Capabilities"               "0x00000000"
  398. # === Video Overlay for the Xv extension ===
  399.     Option "VideoOverlay"               "on"
  400. # === OpenGL Overlay ===
  401. # Note: When OpenGL Overlay is enabled, Video Overlay
  402. #       will be disabled automatically
  403.     Option "OpenGLOverlay"              "off"
  404. # === Center Mode (Laptops only) ===
  405.     Option "CenterMode"                 "off"
  406. # === Pseudo Color Visuals (8-bit visuals) ===
  407.     Option "PseudoColorVisuals"         "off"
  408. # === QBS Management ===
  409.     Option "Stereo"                     "off"
  410.     Option "StereoSyncEnable"           "1"
  411. # === FSAA Management ===
  412.     Option "FSAAEnable"                 "no"
  413.     Option "FSAAScale"                  "1"
  414.     Option "FSAADisableGamma"           "no"
  415.     Option "FSAACustomizeMSPos"         "no"
  416.     Option "FSAAMSPosX0"                "0.000000"
  417.     Option "FSAAMSPosY0"                "0.000000"
  418.     Option "FSAAMSPosX1"                "0.000000"
  419.     Option "FSAAMSPosY1"                "0.000000"
  420.     Option "FSAAMSPosX2"                "0.000000"
  421.     Option "FSAAMSPosY2"                "0.000000"
  422.     Option "FSAAMSPosX3"                "0.000000"
  423.     Option "FSAAMSPosY3"                "0.000000"
  424.     Option "FSAAMSPosX4"                "0.000000"
  425.     Option "FSAAMSPosY4"                "0.000000"
  426.     Option "FSAAMSPosX5"                "0.000000"
  427.     Option "FSAAMSPosY5"                "0.000000"
  428. # === Misc Options ===
  429.     Option "UseFastTLS"                 "0"
  430.     Option "BlockSignalsOnLock"         "on"
  431.     Option "UseInternalAGPGART"         "yes"
  432.     Option "ForceGenericCPU"            "no"
  433.     BusID "PCI:1:0:0"    # vendor=1002, device=4e48
  434.     Screen 0
  435. EndSection

  436. # **********************************************************************
  437. # Screen sections
  438. # **********************************************************************

  439. # Any number of screen sections may be present.  Each describes
  440. # the configuration of a single screen.  A single specific screen section
  441. # may be specified from the X server command line with the "-screen"
  442. # option.
  443. Section "Screen"
  444.     Identifier  "Screen0"
  445.     Device      "ATI Graphics Adapter"
  446.     Monitor     "Monitor0"
  447.     DefaultDepth 24
  448.     #Option "backingstore"

  449.     Subsection "Display"
  450.         Depth       24
  451.         Modes       "1280x1024"
  452.         ViewPort    0 0  # initial origin if mode is smaller than desktop
  453. #        Virtual     1280 1024
  454.     EndSubsection
  455. EndSection

  456. # **********************************************************************
  457. # ServerLayout sections.
  458. # **********************************************************************

  459. # Any number of ServerLayout sections may be present.  Each describes
  460. # the way multiple screens are organised.  A specific ServerLayout
  461. # section may be specified from the X server command line with the
  462. # "-layout" option.  In the absence of this, the first section is used.
  463. # When now ServerLayout section is present, the first Screen section
  464. # is used alone.

  465. Section "ServerLayout"

  466. # The Identifier line must be present
  467.     Identifier  "Server Layout"

  468. # Each Screen line specifies a Screen section name, and optionally
  469. # the relative position of other screens.  The four names after
  470. # primary screen name are the screens to the top, bottom, left and right
  471. # of the primary screen.

  472.     Screen "Screen0"

  473. # Each InputDevice line specifies an InputDevice section name and
  474. # optionally some options to specify the way the device is to be
  475. # used.  Those options include "CorePointer", "CoreKeyboard" and
  476. # "SendCoreEvents".

  477.     InputDevice "Mouse1" "CorePointer"
  478.     InputDevice "Keyboard1" "CoreKeyboard"

  479. EndSection

  480. ### EOF ###
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-9 07:19:23 | 显示全部楼层
汉化:
使用的是苹果Hei.ttf,微软simsun.ttf等
使用simsun字体比较淡,而且有时候会有空格

1)把字体都拷入
/usr/X11R6/lib/X11/fonts/local/
#fc-cache -v -f
修改一下/etc/fonts/fonts.conf
最主要是这部分

  1. <!-- Font directory list configured on  -->

  2.         <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
  3.         [color=red]<dir>/usr/X11R6/lib/X11/fonts/local</dir>[/color]
  4.         <dir>/usr/share/fonts</dir>
  5.         <dir>/usr/local/share/fonts</dir>
  6.         <dir>/usr/X11R6/lib/X11/fonts/75dpi</dir>
  7.         <dir>/usr/X11R6/lib/X11/fonts/100dpi</dir>
  8.         <dir>~/.fonts</dir>

复制代码

但gentoo默认安装了个很难看的中文字体,所以在安装好字体后,需要手动修改字体选项

如果需要安装kde chinese的话就
#export LINGUAS="zh_CN"
#emerge kde-i18n
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-9 07:28:38 | 显示全部楼层
总结一下:
新的gentoo非常好安装,只是编译时间太长
编译完kde几乎总共使用了12个小时
如果可以同时使用两个电脑的话,会比较好;不然的话,可能会觉得非常无聊
第二个电脑也能用来求救
回复 支持 反对

使用道具 举报

发表于 2005-10-9 15:09:32 | 显示全部楼层
只用了苹果的黑和simsun?
还是会出现空格?
回复 支持 反对

使用道具 举报

发表于 2005-10-10 08:31:42 | 显示全部楼层
晕哪!不懂E文。
回复 支持 反对

使用道具 举报

发表于 2005-10-10 20:17:23 | 显示全部楼层
Post by zonzi
总结一下:
新的gentoo非常好安装,只是编译时间太长
编译完kde几乎总共使用了12个小时
如果可以同时使用两个电脑的话,会比较好;不然的话,可能会觉得非常无聊
第二个电脑也能用来求救

本来一直在准备安装gentoo 的amd64版,但看你安装kde的时间,。。。。。。。
我的配置还不如你的,看来还是算了,继续用debian得了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-11 01:15:08 | 显示全部楼层
Post by druggo
只用了苹果的黑和simsun?
还是会出现空格?

用了两款不同的苹果黑体和simsun
现在字体颜色很深,而且没有空格
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-11 01:19:14 | 显示全部楼层
Post by gkp
本来一直在准备安装gentoo 的amd64版,但看你安装kde的时间,。。。。。。。
我的配置还不如你的,看来还是算了,继续用debian得了。

不过 debian for amd64看上去不像正式版呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-11 01:20:15 | 显示全部楼层
Post by 小楼东风
晕哪!不懂E文。

不懂就学,没人生下来就都懂的...............
回复 支持 反对

使用道具 举报

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

本版积分规则

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