|
|
简述
HP 541 NE808PA是HP入门级商务笔记本,定位低端市场(适合我等穷人),所以硬件上并没有什么特别新或奇怪的设备,安装起系统来还是很轻松的.除了网卡(无线/有线)在内核配置上较为麻烦一点.
详细的安装步骤本文就不讲了,参考handbook是最明智的,本文主要共享一些关键配置文件.
主要硬件- CPU: Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz
- 00:19.0 Ethernet controller: Intel Corporation 82562GT 10/100 Network Connection (rev 03)
- 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
- 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
- 00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
- 01:00.0 VGA compatible controller: ATI Technologies Inc RV516 [Mobility Radeon X1350]
- 10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
复制代码 原装单根DDR II 667内存,我的自已升级到DDR II 800 X 2
系统环境
- AMD64 Gentoo 2008 desktop Keyword ~amd64
- Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
- =================================================================
- System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5670_@_1.80GHz-with-gentoo-2.0.0
- 桌面环境:KDE-3.5.10
复制代码
系统安装
内核
内核配置过程就不讲了,看附件的配置文件吧,该配置在我的机器上跑了一个多月,没有发现什么问题,当然如果哪位兄台用了该配置因RP不足引起的CPU冒烟,硬盘起火等意外事件,本人概不负责 ^_^
make.conf
- #CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" # For GCC 4.1.X
- #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" # For GCC 4.2.X
- #CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" # For GCC 4.3.X
- CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
- CXXFLAGS="${CFLAGS}"
- CHOST="x86_64-pc-linux-gnu"
- LDFLAGS="-Wl,-O1"
- ACCEPT_KEYWORDS="~amd64"
- MAKEOPTS="-j5" #J5在我实际使用过程中感觉还是可以承受的,编译的同时可以正常使用机器,不会感觉到卡壳
- GENTOO_MIRRORS="http://61.135.158.199"
- SYNC="rsync://192.168.1.8/gentoo-portage" #两台机器,一台从互联网同步portage,另一台从该机器上同步,节省一点带宽和时间.
- INPUT_DEVICES="keyboard mouse synaptics evdev"
- VIDEO_CARDS="vesa fglrx"
- ALSA_CARDS="hda-intel"
- LINGUAS="en_US"
- FEATURES="parallel-fetch"
- DISTDIR="/media/vaio/gentoo/distfiles"
- USE="32bit a52 aac apache2 aspell audiofile auto-completion bash-completion
- cgi cjk corefonts divx dvdread faac faad fame fbcon fbdev ffmpeg firefox3
- flac fontconfig freetype ftp git glib gzip imagemagick imlib iproute2
- java java6 kdeprefix lame laptop mime mjpeg mmx mng mp4 mpeg2 mplayer mysql nfs openntpd openvpn pcmcia php rar real realmedia regexp samba scsi socks5 sse sse2 ssh ssse3 syslog unzip vim-syntax webkit wma wmp x264 xcomposite xft xine xpm xrender xvid xvmc zip -arts -berkdb
- -bluetooth -crypt -eds -emboss -esd -evo -gnome -gstreamer -ipv6 -isdnlog
- -ncurses -openssl -ppds -pppd -pptp"
- source /usr/local/portage/layman/make.conf
- PORTDIR_OVERLAY=" /usr/local/portage/myoverlay $PORTDIR_OVERLAY"
- #overlay的配置,在刚开始安装系统时,需要先注释掉
复制代码
package.use- sys-apps/pciutils -zlib
- media-fonts/acroread-asianfonts linguas_zh_CN linguas_zh_TW
- app-office/openoffice-bin java kde
- sys-devel/gettext emacs
- app-editors/emacs sound
- dev-libs/pwlib ldap sasl
- media-video/mplayer -X -gtk -amrnb -amrwb
- app-editors/emacs -X -gtk
- net-misc/openssh -X
- app-emacs/mpg123-el -vorbis
- media-video/mplayer -X -gtk
- net-p2p/mldonkey -gtk
- dev-java/sun-jdk odbc nsplugin
- net-misc/axel -kde
- media-libs/win32codecs real
- media-libs/realcodecs win32codecs
- net-misc/axel -kde -nls
- app-portage/layman subversion
- dev-util/subversion -kde
- net-wireless/wpa_supplicant -qt3 -qt4
- net-misc/networkmanager dhclient dhcpcd
- x11-libs/libX11 xcb
复制代码
package.mask- <sys-devel/gcc-4.0.0
- >media-video/realplayer-10.0.8-r1
- <app-editors/emacs-22.1-r1
- >app-dicts/stardict-3.0.1-r2
- >x11-themes/gtk-engines-qt-0.8-r2
- =net-im/eva-20080127
- <=net-im/eva-0.4.1
- >app-text/kchmviewer-3.1_p2
- >=kde-base/kdelibs-4.0
- >x11-drivers/ati-drivers-8.582
复制代码
在Gcc升级过程中碰到一点小问题,4.1.x时无法编译4.3.x,只好先升级到4.2.x,再用4.2.x编译4.3.x <--这个可能是因个人RP不足导致的.
myoverlay中放配置的是修改过后的ati-driver的ebuild,8.582版本,恶毒的ATI驱动总是不能和内核同步,不得不自己动手加补丁,修改后的ebuild及补丁看附件.
注意,我的系统用的是英文界面,喜欢中文界面的请自己在make.conf中加入中文支持.
locale.gen
- en_US.UTF-8 UTF-8
- zh_CN GB18030
- zh_CN.UTF-8 UTF-8
- zh_CN.GBK GBK
复制代码
无线网卡
内核中相应的配置不讲了附件中已经配置好,在en.gentoo-wiki.com中也有,管理程序用的是wicd
- emerge wicd -av
- rc-update add wicd default
复制代码
显卡
portage中的ati-drivers 5.582与2.6.29的内核不兼容,需要加入补丁之后才能通过编译.请自行建立overlay并加入附件中修改过后的ati-drivers ebuild,之后执行- emerge ati-drivers -av
- eselect opengl set ati
复制代码 xorg.conf
- Section "ServerLayout"
- Identifier "X.org Configured"
- Screen 0 "aticonfig-Screen[0]-0" 0 0
- InputDevice "Mouse0" "CorePointer"
- InputDevice "Keyboard0" "CoreKeyboard"
- EndSection
- Section "Files"
- ModulePath "/usr/lib64/xorg/modules"
- FontPath "/usr/share/fonts/misc/"
- FontPath "/usr/share/fonts/100dpi/"
- FontPath "/usr/share/fonts/75dpi/"
- FontPath "/usr/share/fonts/arphicfonts/"
- FontPath "/usr/share/fonts/corefonts/"
- FontPath "/usr/share/fonts/default/"
- FontPath "/usr/share/fonts/liberation-fonts/"
- FontPath "/usr/share/fonts/ttf-bitstream-vera/"
- FontPath "/usr/share/fonts/dejavu/"
- FontPath "/usr/share/fonts/unifont/"
- FontPath "/home/fideas/.fonts/"
- EndSection
- Section "Module"
- Load "glx"
- Load "extmod"
- Load "xtrap"
- Load "record"
- Load "dbe"
- Load "dri"
- EndSection
- Section "InputDevice"
- Identifier "Keyboard0"
- Driver "kbd"
- EndSection
- Section "InputDevice"
- Identifier "Mouse0"
- Driver "mouse"
- Option "Protocol" "auto"
- Option "Device" "/dev/input/mice"
- Option "ZAxisMapping" "4 5 6 7"
- EndSection
- Section "Monitor"
- Identifier "aticonfig-Monitor[0]-0"
- Option "VendorName" "ATI Proprietary Driver"
- Option "ModelName" "Generic Autodetecting Monitor"
- Option "DPMS" "true"
- EndSection
- Section "Device"
- Identifier "aticonfig-Device[0]-0"
- Driver "fglrx"
- Option "UseInternalAGPGART" "no"
- Option "TexturedVideo" "on"
- Option "VideoOverlay" "on"
- BusID "PCI:1:0:0"
- EndSection
- Section "Screen"
- Identifier "aticonfig-Screen[0]-0"
- Device "aticonfig-Device[0]-0"
- Monitor "aticonfig-Monitor[0]-0"
- DefaultDepth 24
- SubSection "Display"
- Viewport 0 0
- Depth 24
- EndSubSection
- EndSection
- Section "DRI"
- Mode 0666
- EndSection
- Section "Extensions"
- Option "Composite" "enable"
- EndSection
复制代码
声卡
使用的是内核中的驱动,可以很好工作- emerge alsa-utils
- alsaconf
- rc-update add alsasound default
复制代码 当然你也可以选择使用alsa-drivers,只是个人觉得没什么必要. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|