HP B2000 笔记本上安装Gentoo Linux 2008 Beta2版本系统,内核版本为:2.6.24-gentoo-r8。
编译基本系统时,/etc/make.conf 内容如下:
CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" FEATURES="ccache" GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo" MAKEOPTS="-j2"
图形设备,显卡声卡内容如下:
VIDEO_CARDS="i810" INPUT_DEVICES="keyboard mouse" ALSA_TOOLS="intel8x0"
桌面使用KDE,USE参数如下:
#KDE USE="kde qt4 -qt3 immqt-bc accessibility truetype freetype alsa -oss -arts" #Video USE="$USE X opengl fbcon dga directfb dri aiglx" #SYS USE="$USE cups sysfs hal dbus nptl nptlonly pnp threads pthreads bash-completion \ fuse lm_sensors" #I18N USE="$USE nls unicode cjk zh_TW utf8" #Net USE="$USE net network dhcp socks5 samba ssl -ipv6" #Php USE="$USE apache2 bzip2 iconv" #Media USE="$USE win32codecs xvid real dvd aac flac ffmpeg imagemagick x264 mp4" #CPU USE="$USE fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush \ dts acpi mmx fxsr sse sse2 tm pbe up est tm2" #Other USE="$USE -cdr -dvdr"
内核中必须包括以下选项:
一、主板芯片
Intel 828,默认包含。
二、温度检测
Device Drivers ---> <*> Hardware Monitoring support --->
三、网卡
3Com Corporation 3c905C,默认包含。
四、声卡
将声卡直接添加到内核时,ALSA工具无法正常运行,编译成模块后问题解决。
Device Drivers ---> <M> Sound card support <M> Advanced Linux Sound Architecture PCI devices ---> <M> Intel/SiS/nVidia/AMD/ALi AC97 Controller
三、文件系统
File Systems --> DOS/FAT/NT Filesystems ---> <M> NTFS file system support [ ] NTFS debugging support (NEW) [*] NTFS write support Network File Systems ---> <M> CIFS support (advanced network filesystem for Samba, Window and other CIFS Native Language Support --> (utf8) Default NLS Option <*> NLS UTF8
四、Frame Buffer
Device Drivers > Graphics support: > <*> Support for frame buffer devices <*> Intel 830M/845G/852GM/855GM/865G/915G/945G support Console display driver support ---> [*] Video mode selection support <*> Framebuffer Console support [*] Support for the Framebuffer Console Decorations
ALSA可以自动检测声卡类型,并安装相应驱动程序。
emerge -av alsa-utils rc-update add alsasound boot alsaconf
en_US ISO-8859-1 en_US.UTF-8 UTF-8 zh_CN GB18030 zh_CN.GBK GBK zh_CN.GB2312 GB2312 zh_CN.UTF-8 UTF-8
Gentoo用emerge工具来管理包,eix工具可以通过缓存快速查询包,equery工具可以查询更加详细的包信息。
Emerge修改USE标签后,查看那些包需要重新编译
emerge -uDN world -pv --newuse (-N) --update (-u) --deep (-D)
指定包的版本号时,要加上等号(=)。
emerge =x11-libs/qt-3.3.4-r8 -pv
很多软件是直接复制过来的,为了与当前的USE一致,通常在编译内核启动成功后,重新编译整个系统。
emerge -e world
/etc/profile.env 这里也有环境变量
添加别名
echo "alias ll='ls -l'" >> /etc/bash/bashrc
指定GRUB启动画面的背景图片,然后设置Frame Buffer分辨率为1024×768。编辑grub.conf如下:
splashimage=(hd0,5)/grub/splash.xpm.gz title Gentoo-2.6.24-r8 root (hd0,5) kernel /boot/vmlinuz-2.6.24-r8 root=/dev/hda8 vga=792
使用KDE作为桌面,参考以下文档:
The X Server Configuration HOWTO
Emerge安装kde-meta(或者kdebase-meta), xdm和kdm包,编辑/etc/conf.d/xdm文件,修改:
DISPLAYMANAGER="kdm"
然后将xdm设置为默认
rc-update add xdm default
通过X11服务器,可以将远程主机的X程序DISPLAY到本机。为了安全,默认设置不允许X服务器监听网络。
对于KDE,编辑/usr/kde/3.5/share/config/kdm/kdmrc
对于Gnome,运行gdmsetup命令,打开Security属性页,去掉”Deny TCP connections to Xserver”复选框,重新启动gdm后生效。
也可以直接编辑配置文件/etc/X11/gdm/custom.conf,在[security]段中添加:
DisallowTCP=false
sshd X11Forwarding yes
The offical nvidia driver works fine.
Run xorgcfg or xorgxfg -textmode
Comments
There are currently no comments
New Comment