|
前言
每次买台新电脑回来,我都第一时间把预装的系统弄掉,装上 linux,这次也不例外
因为怕经常 emerge 会让机子过热,一开始我装的是 ubuntu hardy
用了几个星期,感觉 ubuntu 用起来没有习惯的 gentoo 爽,终于找到了折磨自己的借口
于是
生命中多了十几个小时的等待
于是
有了这个报告
先是硬件:
HP Pavilion dv6711tx Notebook 皓白特别版
- Hardware
- Product Name dv6711tx
- Product Number KG546PA
- Microprocessor 2.20 GHz Intel Core 2 Duo processor T7500 featuring Intel Centrino Duo processor technology
- Microprocessor Cache 4 MB L2 Cache
- Memory 3072 MB (1 x 1024 MB + 1 x 2048 MB)
- Memory Max Up to 4 GB
- Video Graphics NVIDIA GeForce 8400M GS
- Hard Drive 250 GB (5400 rpm)
- Multimedia Drive HD DVD ROM with SuperMulti DVD±R/RW Double Layer
- Display 15.4” WXGA High Definition BrightView Widescreen (1280 x 800)
- Fax/Modem High speed 56K modem
- Network Card Ethernet 10/100BT integrated network interface
- Wireless Connectivity Intel PRO/Wireless 4965AGN Network Connection
- Bluetooth wireless networking
- Sound Altec Lansing speakers
- Keyboard 101 key compatible
- Pointing Device Touch Pad with On/Off button and dedicated vertical Scroll Up/Down pad, volume control, mute buttons, 2 Quick Launch Buttons
- PC Card Slots
- * One ExpressCard/54 slot (also supports ExpressCard/34)
- External Ports
- * 5-in-1 integrated Digital Media Reader for Secure Digital cards, MultiMedia cards, Memory Stick, Memory Stick Pro, or xD Picture cards
- * 3 USB 2.0
- * 1 VGA port
- * 1 RJ11 modem connector
- * 1 RJ45 ethernet connector
- * Expansion Port 3
- * S-video TV out
- * 2 headphones-out
- * 1 mic-in
- * 1 IEEE 1394
- * Consumer IR
- * AC adapter
- Dimensions 35.70 cm (L) x 25.70 cm (W) x 2.54 cm (min H) / 4.30 cm (max H)
- Weight 2.78 kg
- Security
- * Integrated Fingerprint reader
- Power
- * 90 W AC Power Adapter
- * 6-cell Lithium-Ion (Li-Ion) battery
- What's In The Box HP Pavilion WebCam with Integrated Microphones
复制代码
因为家里我用的台式机是 P4 且只有 512 MB 内存,就不考虑 distcc 了,毛起来直接 emerge...
软件部分
我选的 arch 是 amd64
profile 是 gentoo 2008.0 beta 2
安装时用的内核是 gentoo-source 的 2.6.24-gentoo-r4
我的 /etc/make.conf 配置(有点长,请见谅,因为我习惯了写注解,而且不依赖 profile 默认打开,下同)
- # TODO: change to -march=core2 when gcc 4.3 goes into stable
- CFLAGS="-march=nocona -O2 -pipe"
- CXXFLAGS="${CFLAGS}"
- MAKEOPTS="-j3"
- CHOST="x86_64-pc-linux-gnu"
- FEATURES="collision-protect ccache parallel-fetch userfetch"
- # added to use separete dist dir
- DISTDIR="/var/tmp/distfiles"
- # added for hardware & modular x, Apr 30, 2008
- INPUT_DEVICE="evdev keyboard mouse synaptics"
- VIDEO_CARDS="nvidia"
- ALSA_CARDS="hda-intel"
- # my own overlay...
- # overlay for eyecandies
- PORTDIR_OVERLAY="/usr/local/portage/eyecandy $PORTDIR_OVERLAY"
- # overlay for laptop stuff
- PORTDIR_OVERLAY="/usr/local/portage/laptop $PORTDIR_OVERLAY"
- # added on Apr 30, 2008
- # use for Hardware with Multimedia Instruction
- USE="mmx sse sse2 ssse3 nvidia"
- # use for Desktop Environment
- USE="${USE} X gtk gtk2 gnome hal avahi"
- # use for Chinese Support
- USE="${USE} cjk immqt-bc"
- # use for File Formats Support
- USE="${USE} exif gif jpeg mp3 mng mpeg ogg openexr pdf png svg tiff wma wmf xml xpm"
- # use for Multimedia Support
- USE="${USE} alsa arts cdr cddb cdparanoia css dts dvd dvdr openal opengl v4l v4l2 vcd xv xvmc"
- # use for Codecs
- USE="${USE} a52 aac aalib audiofile cdparanoia dv dvdread encode ffmpeg flac lame live mad quicktime theora vorbis x264 xvid"
- # use for Power Management
- USE="${USE} acpi apm"
- # use for Programming
- USE="${USE} bash-completion csv doc examples glade lua python ruby subversion vim-syntax wxwindows"
- # use for Accounting
- USE="${USE} hbci ofx quotes stock"
- # misc.
- USE="${USE} branding fbsplash samba wifi"
- # TODO: Add this next emerge -e world
- #USE="${USE} xinerama"
- # for layman
- source /usr/portage/local/layman/make.conf
复制代码
这个是 /etc/protage/package.use
- # created on May 1 2008
- # added support for oss, Coz I want to play some games sometimes
- # June 14 2008, don't need this now, using driver in kernel
- #media-sound/alsa-driver oss
- # need this for bug fix, as said on some forums
- app-emulation/emul-linux-x86-soundlibs -arts
- # I know, I set most of them in /etc/make.conf. Add them here just in case some day I will clean up my make.conf
- media-video/mplayer a52 aac dts live mad mp3 real theora vorbis x264 xvid alsa opengl amd64codecs xvmc iconv srt
- media-sound/audacious wma sndfile chardet
- # good old FF
- www-client/mozilla-firefox mozfranding mozdevelop restrict-javascript
- # for Compiz-fusion
- x11-libs/cairo glitz svg
- x11-wm/compiz -kde
- x11-wm/compiz-fusion -kde
- # Wifi via Network Manager
- net-dns/avahi mdnsresponder-compat
- gnome-extra/nm-applet libnotify
- # support for QQ, I don't use it AT ALL, though, NEVER has been, and NEVER will be.
- net-im/pidgin qq
- # I need that, I have a couple of iPods
- media-sound/rhythmbox ipod tagwriting"
- # Almighty network tools
- net-analyzer/wireshark adns gcrypt gnutls profile smi
- # simply need that
- dev-util/git curl
- dev-util/subversion extras
- # conky, never going to spend time to set it up, though
- app-admin/conky -ipv6 audacious hddtemp nano-syntax rss wifi
- # IDEs!! Even that in fact I use Vim more often than them
- dev-util/anjuta devhelp inherit-graph sourceview
- dev-util/codeblocks contrib pch
- dev-util/monodevelop aspnet cxx
- # ah, the one and only (that is, good & free)
- media-gfx/blender blender-game
- # Swig, Swing!
- dev-lang/swig mono
- # for office
- app-office/abiword-plugins grammar libgda math ots thesaurus wordperfect
- # e16
- x11-wm/enlightenment xcomposite
- # for acpi, commented out, leave them, just in case i want to get the hibernation.
- #sys-power/acpi-support hibernate-script
- # no news is good news
- net-news/liferea networkmanager
- # more cjk im
- app-i18n/scim-tables linguas_zh linguas_ja linguas_ko
复制代码
我不是用 ~amd64,所以,需要这个 /etc/portage/package.keywords
- # for compiz-fusion
- dev-python/compizconfig-python
- x11-wm/compiz
- x11-wm/compiz-fusion
- x11-plugins/compiz-fusion-plugins-main
- x11-plugins/compiz-fusion-plugins-extra
- x11-plugins/compiz-fusion-plugins-unsupported
- x11-wm/emerald
- x11-themes/emerald-themes
- x11-apps/ccsm
- x11-libs/libcompizconfig
- x11-libs/compizconfig-backend-gconf
- x11-libs/compizconfig-backend-kconfig
- x11-libs/compiz-bcop
- # for alsa
- # June 14 2008, don't need this now, using driver in kernel
- #media-sound/alsa-driver
- #media-sound/alsa-headers
- # for awn
- gnome-extra/avant-window-navigator
- gnome-extra/avant-window-navigator-extras
- # for gnome-do
- gnome-extra/gnome-do
- dev-dotnet/dbus-glib-sharp
- dev-dotnet/dbus-sharp
- gnome-extra/gnome-do-plugins
- # for nm-applet
- gnome-extra/nm-applet
- net-misc/networkmanager
- sys-apps/hal
- dev-util/gperf
- app-misc/hal-info
- dev-libs/libnl
- dev-python/pyxf86config
- # for bluetooth
- net-wireless/bluez-gnome
- net-wireless/bluez-utils
- net-wireless/bluez-libs
- app-mobilephone/obex-data-server
- gnome-extra/gnome-vfs-obexftp
- # for gnome, need that to compile 2.20, will check again later when I get time
- >=net-misc/curl-7.18.1
- # for productivity
- media-gfx/blender
- # for multimedia
- media-video/ffmpeg
- # for developing
- dev-util/monodevelop
- dev-util/monodoc
- dev-dotnet/mono-addins
- dev-dotnet/xsp
- dev-dotnet/gtksourceview-sharp
- dev-lang/mono
- dev-dotnet/libgdiplus
- dev-util/giggle
- dev-util/scons
- # more ide, like I said before, I actually use them less than vim
- dev-util/wxglade
- dev-util/codeblocks
- # games, to kill time, not much to be killed, though
- games-strategy/glest
- # for screenlets, the ebuild is in my own overlay
- x11-plugins/screenlets **
- # for webcam
- media-video/linux-uvc
- # Haha, nobody can see my face...
- #media-video/cheese
复制代码
另外,安装 gentoo 我有个习惯,就是使用 soft run level
定义一个叫 gui 的 run level
所有有关 X 的,例如 xdm(gdm) 都只 rc-update 到 gui
而 default 则不启动
这样在 grub.conf 里可以设 softlevel=gui 来控制图形界面登录或者直接进文本模式
实在很方便
像以往一样,我是用 minimal 盘 chroot 安装的。
详细安装过程看手册就可以了,下面我具体说说一些硬件驱动的安装
(因为我安装时并没做笔记,凭记忆写出来的,内容难免有错漏,望指正)
附件是内核配置文件 .config (内核版本 2.6.24-gentoo-r8)
我把文件系统 ext2 ext3 reiserfs 支持编译进内核(我的 /boot 用 ext3,其他全部用 reiserfs)
MS 的:vfat 编进内核,ntfs 是模块
另外加了 NFS
alsa 也编进内核,虽然很多人建议编成 module |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|