gentoo / 未分类 · 2012年4月15日

gentoo之二 ~~~~ xorg and gnome 安装

提高Gentoo的安装软件速度
安装快速下载工具axel
代码:
emerge axel
安装后修改make.conf
vim /etc/make.conf
FETCHCOMMAND='/usr/bin/axel -a -S4 -o "${DISTDIR}/${FILE}" "${URI}"'
RESUMECOMMAND="${FETCHCOMMAND}"

http://www.gentoo.org/doc/en/xorg-config.xml
###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg
/etc/make.conf文件中添加相应的设置:
(对鼠标于键盘的支持)
INPUT_DEVICES=”keyboard mouse”
##or
INPUT_DEVICES=”synaptics keyboard mouse evdev”
VIDEO_CARDS=”radeon”
for x in plugdev cdrom cdrw usb ; do gpasswd -a evan $x ; done
首先,您需要知道您的声卡用什么驱动。大多数情况下,声卡(板载和独立声卡)基于PCI总线,lspci将帮助您获取所需的信息。如果您没有安装lspci,请emerge sys-apps/pciutils
安装lspci软件看 显卡
RS690[Radeon X1200 Series
http://www.gentoo.org/doc/en/ati-faq.xml
media-libs/gstreamer
localhost xorg.conf.d # pwd
/etc/X11/xorg.conf.d
localhost xorg.conf.d # cat 30-keymap.conf
Section “InputClass”
Identifier “keyboard-all”
Driver “evdev”
Option “XkbLayout” “us,cz”
Option “XkbModel” “logitech_g15”
Option “XkbRules” “xorg”
Option “XkbOptions” “grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_alt_bksp”
Option “XkbVariant” “,qwerty”
MatchIsKeyboard “on”
EndSection
localhost xorg.conf.d # cat
cat catchsegv
localhost xorg.conf.d # cat 40-monitor.conf
Section “Device”
Identifier “Radeon X1200”
Option “Monitor-DVI-0” “DVI screen”
EndSection
Section “Monitor”
Identifier “DVI screen”
Option “PreferredMode” “1440×900″
EndSection
localhost xorg.conf.d #
RS690 [Radeon X1200 Series]
emerge xorg-server –autounmask-write
mount -t tmpfs none /usr/tmp/portage -o size=500M
localhost portage # pwd
/usr/tmp/portage
env-update
source /etc/profile
cd /etc/X11/
87 vim /etc/X11/xorg.conf.d/40-monitor.conf
88 vim /etc/X11/xorg.conf.d/30-keymap.conf
cp ~/xorg.conf.new xorg.conf
localhost X11 # pwd
/etc/X11
eselect opengl list
X -configure
cp /root/xorg.conf.new /etc/X11/xorg.conf
###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg###xorg
#####gnome##### #####gnome##### #####gnome#####
一定要按文档进行,不然可能无法自动挂载USB设备, dbus什么 鬼东西
gnome 安装
#http://www.gentoo.org/doc/en/gnome-config.xml
##gnome3 etc
http://www.gentoo.org/proj/en/desktop/gnome/howtos/gnome-3.2-upgrade.xml
vim /etc/make.conf
USE=”-qt4 -kde X dbus gtk gnome”
echo “gnome-base/gnome-session branding” >> /etc/portage/package.use
emerge gnome #
emerge gnome-light
env-update && source /etc/profile
/etc/init.d/dbus start
rc-update add dbus default
##如果不存在groupadd plugdev
getent group plugdev
gpasswd -a yourUserName plugdev
rc-update add xdm default
##登录管理器
emerge gdm lxdm lightdm
##两个 选择一个
vim /etc/conf.d/xdm
DISPLAYMANAGER=”gdm”
DISPLAYMANAGER=”lxdm”
##启动级
vim /etc/inittab