gentoo stage5

===========================tools============================
emerge sys-apps/pciutils usbutils
emerge vim
emerge elinks
rc.config
    rc_logger
    rc_hotplug //?
emerge gentoolkit
emerge eix
emerge genlop
emerge -uavDN world
emerge --depclean
revdep-rebuild
emerge layman
    echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf
    echo 'PORTDIR_OVERLAY="/home/lin/overlay ${PORTDIR} ${PORTDIR_OVERLAY}"' >> /etc/portage/make.conf

useradd -m -G users,wheel,audio -s /bin/bash lin
passwd lin
emerge sudo
===========================wireless============================
emerge    net-wireless/wpa_supplicant  
(opt)emerge    wireless-tools(not to be installed)
(opt)emerge    rfkill
emerge    iw   
emerge    sys-apps/iproute2
#ifconfig: no wlan0 interface
    #Download wireless linux firmware from http://wireless.kernel.org/en/users/Drivers/iwlwifi
    cp iwlwifi-*.ucode /lib/firmware
    Or
    emerge  sys-firmware/iwl1000-ucode

#iwlist wlan0 scan: wlan0 interface doesn't support scanning
    #CONFIG_CFG80211_WEXT is not set (wireless-tools contains iwlist)

vi /etc/conf.d/wpa_supplicant
    wpa_supplicant_args=""
vi /etc/wpa_supplicant/wpa_supplicant.conf
/etc/init.d/wpa_supplicant start

#usbnet
    │                                      {M} Multi-purpose USB Networking Framework                                                   │ │  
      │ │                                      -M-   CDC Ethernet support (smart devices such as cable modems)                                             │ │  
      │ │                                      -M-   Host for RNDIS and ActiveSync devices (EXPERIMENTAL)                                                  │ │  

==========================================================
^ stage5  ^
v stage6  v
===========================X============================
Device Drivers --->
  Input device support --->
  <*>  Event interface
Device Drivers --->
  Graphics support --->
    Support for frame buffer devices --->
    (Disable all drivers, including VGA, Intel, nVidia, and ATI)
    (Further down, enable basic console support. KMS uses this.)
    Console display driver support --->
      <*>  Framebuffer Console Support
vi make.conf
    INPUT_DEVICES="evdev synaptics"
    VIDEO_CARDS="intel"
echo "x11-base/xorg-server udev" >> /etc/portage/package.use
emerge xorg-server
env-update && source /etc/profile
gpasswd -a lin video
===========================gnome-light============================
vi make.conf
    USE="-qt4 -kde X dbus gtk gnome"
emerge gnome-light
env-update && source /etc/profile
/etc/init.d/dbus start
rc-update add dbus default
echo "exec gnome-session" > ~/.xinitrc
sed -i '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc //??

#brightness
    echo 333 > /sys/class/backlight/intel_backlight/brightness
vi .bashrc
    complete -cf sudo
    alias sudo='sudo -E'
#Screen resolution
    emerge xrandr
    cvt 1280 720 60
    xrandr --newmode “1280x1024_60.00″ ...
    xrandr --addmode LVDS1 "1280X720_60.00"
    xrandr --output LVDS1 --mode "1280X720_60.00" or  Monitor setting
#nautilus mount: NOT Authorized
    http://wiki.gentoo.org/wiki/Polkit
===========================ALSA============================

ALAS: http://www.gentoo.org/doc/zh_cn/alsa-guide.xml
===========================usb============================
To do
    EHCI O U
    USB Network Adapters  --->
    HID input / ps2
===========================TurboBoost============================
?diff with Cool'n'Quiet/PowerNow/SpeedStep
===========================todo============================
http://en.gentoo-wiki.com/wiki/Index:Laptops
Locale: http://www.gentoo.org/doc/zh_cn/utf-8.xml
        http://www.gentoo.org/doc/zh_cn/guide-localization.xml
Graphics: http://www.gentoo.org/doc/zh_cn/dri-howto.xml
        https://wiki.gentoo.org/wiki/Intel
GPM: http://www.gentoo.org/doc/zh_cn/gpm.xml
Power: http://www.gentoo.org/doc/en/power-management-guide.xml
        https://wiki.gentoo.org/wiki/ACPI
        http://wiki.gentoo.org/wiki/Power_management/Processor
BT: https://wiki.gentoo.org/wiki/Bluetooth
Intel microcode: http://wiki.gentoo.org/wiki/Intel_microcode
===========================Using the Installation CD kernel============================
#(${KN} is the kernel name, 'gentoo' or 'smp')
cp /mnt/cdrom/isolinux/${KN} /mnt/cdrom/isolinux/${KN}.igz /mnt/gentoo/boot
mkdir -p /mnt/gentoo/lib/modules
cp -Rp /lib/modules/`uname -r` /mnt/gentoo/lib/modules

printf "modules\"" >> /etc/conf.d/modules
cat /proc/modules | cut -d ' ' -f 1 >> /etc/conf.d/modules
printf "\"\n" >> /etc/conf.d/modules

你可能感兴趣的:(系统配置)