ASUS M5200AE を購入しインストールしました。
gentoo dokeymap 22 を選択
# mke2fs -j /dev/hda1 # mkswap /dev/hda2 # mkreiserfs /dev/hda3 # mkreiserfs /dev/hda4 # swapon /dev/hda2 # mount /dev/hda3 /mnt/gentoo # cd /mnt/gentoo/ # rm -rf * # mkdir boot # mount /dev/hda1 boot # rm -rf boot/* # links http://gentoo.oregonstate.edu/releases/x86/2005.1-r1/
stages > pentium3 > stage3-pentium3-2005.1-r1.tar.bz2 をダウンロード
# tar jxf stage3-pentium3-2005.1-r1.tar.bz2
# mirrorselect -i -o -a >> etc/make.conf
# cp /etc/resolv.conf etc/
# mount -t proc /proc/ proc/
# chroot . /bin/bash
# env-update
# source /etc/profile
# emerge --sync
# emerge poxrtage
# ln -sf /usr/share/zoneinfo/Japan /etc/localtime
# nano -w /etc/fstab
# emerge -k gentoo-sources
# emerge -k genkernel
# genkernel --no-clean all
root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc ramdisk_size=8192 vga=791 splash=silent
# emerge syslog-ng
# rc-update add syslog-ng default
# emerge vixie-cron
# rc-update add vixie-cron
# emerge hotplug
# rc-update add hotplug default
# emerge coldplug
# rc-update add coldplug default
# emerge dhcpcd
# rc-update add domainname default
# emerge -k reiserfsprogs
# passwd
# useradd tasuku -m -G users,audio.wheel -s /bin/bash
# passwd tasuku
# echo gentoo > /etc/hostname
# echo linux-life.net > /etc/dnsdomainname
# nano -w /etc/hosts
# nano -w /etc/conf.d/keymaps
KEYMAP="jp106"
SET_WINDOWKEYS="yes"
# nano -w /etc/conf.d/net
iface_eth0="dhcp"
# nano -w /etc/modules.autoload.d/kernel-2.6
8139too
# rc-update add net.eth0 default
# emerge grub
# grub
grub > root (hd0,0)
grub > setup (hd0)
grub > quit
# nano -w /boot/grub/grub.conf
default 0 timeout 5 splashimage=(hd0,0)/grub/splash.xpm.gz title = Gentoo Linux(2.6.14-r5) root (hd0,0) kernel /kernel-genkernel-x86-2.6.14-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/hda3 udev initrd /initramfs-genkernel-x86-2.6.14-gentoo-r5
# rm /stage3-pentium4-2005.1-r1.tar.bz2 # exit # cd / # umount /mnt/gentoo/boot/ /mnt/gentoo/proc/ /mnt/gentoo/ # reboot
再起動後
# emerge -uD world
色々インストールしながら色々変更しているんですが、とりあえずこんな感じ acpi -apm symlink sql kdeenablefinal immqt examples java nsplugin browserplugin mozilla doc ruby -gnome -gtk cjk nls postgres
# emerge -avt xorg-x11 # ln -s /dev/input/mice /dev/mouse # Xorg -configure # X -config xorg.conf.new
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" RgbPath "/usr/lib/X11/rgb" ModulePath "/usr/lib/modules" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/Type1/" #FontPath "/usr/share/fonts/CID/" FontPath "/usr/share/fonts/75dpi/" FontPath "/usr/share/fonts/100dpi/" EndSection Section "Module" Load "record" Load "extmod" Load "dbe" Load "dri" Load "glx" Load "xtrap" Load "freetype" Load "type1" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "jp106" Option "XkbLayout" "jp" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/mouse" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "ShadowFB" # [<bool>] #Option "DefaultRefresh" # [<bool>] Identifier "Card0" Driver "vesa" VendorName "Intel Corp." BoardName "Unknown Board" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection
/etc/make.conf に LINGUAS="ja" を追加。
# emerge -avt kde-meta kde-i18n
# emerge dbus hal ivman # rc-update add dbus default # rc-update add hald default # rc-update add ivman default
/etc/rc.conf を変更
#DISPLAYMANAGER="xdm" DISPLAYMANAGER="kdm"
# rc-update add xdm default # /etc/init.d/xdm start
# emerge -avt scim-qtimm skim scim scim-anthy anthy # emerge -avt kdesdk-meta # emerge -avt kdevelop # emerge -avt koffice-meta
# emerge -avt ifplugd # rc-update add ifplugd default # /etc/init.d/ifplugd startとすると、線が繋がると自動でネットワークを起動してくれる。
gentoo-souce-2.6.14-r5 の設定を色々変えてみます。 取り合えず色々変えるので
# genkernel --no-clean --menuconfig all
でいちいちクリーンしないようにする。
VFS: Cannot open root device "ram0" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)となるので、livecd から立ち上げ直してカーネルの再構築。
Device Drivers ---> Block devices ---> <*> Loopback device support <*> RAM disk support
UDF-fs: No partition found (1) Kernel panic - not syncing: VFS Unable to mount root fs on unknown-block(0,0)
Device Drivers ---> Block devices ---> [*] Initial RAM disk (initrd) support File systems ---> <*> Reiserfs support
Loadable module support ---> [*] Module unloading Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---> PCCARD (PCMCIA/CardBus) support ---> <M> PCCard (PCMCIA/CardBus) support <M> CardBus yenta-compatible bridge support Device Drivers ---> Network device support ---> PCMCIA network device support ---> [*] PCMCIA network device support
# cardctl ident Socket 0: product info: "HONDA ELECTRON", "AH-H407P" manfid: 0xc036, 0x001a function: 2 (serial)yenta_socket がモジュールとして読み込まれ、カードが認識された。
Device Drivers ---> Character devices ---> Serial drivers ---> [*] Console on 8250/16550 and compatible serial port <M> 8250/16550 PCMCIA device supportserial_cs がモジュールとして読み込まれるようになった。
Device Drivers ---> Network device support ---> <M> PPP (point-to-point protocol) support <M> PPP support for async serial ports <M> PPP support for sync tty ports <M> PPP Deflate compression <M> PPP BSD-Compress compressionkppp から接続ができるようになった。
Device Drivers ---> Sound ---> <M> Sound card support Advanced Linux Sound Architecture ---> < > Advanced Linux Sound Architecture Open Sound System ---> < > Open Sound System (DEPRECATED)
# emerge -avt alsa-driver alsa-utils # alsaconf # amixer set PCM 70% unmute # rc-update add alsasound boot
Power management options (ACPI, APM) ---> ACPI (Advanced Configuration and Power Interface) Support ---> [*] ACPI Support <*> AC Adapter <*> Battery <*> Button <*> Video < > Generic Hotkey (EXPERIMENTAL) <*> Fan <*> Processor <*> Thermal Zone < > ASUS/Medion Laptop Extras <*> IBM ThinkPad Laptop Extras < > Toshiba Laptop Extras
# emerge acpid # /etc/init.d/acpid start # rc-update add acpid default # cd /etc/runlevels # cp -a default battery
/etc/acpi/switch_runlevel.sh
#!/bin/bash
RUNLEVEL_AC="default"
RUNLEVEL_BATTERY="battery"
function on_ac () {
if which on_ac_power &> /dev/null
then
on_ac_power
else
grep --quiet on-line /proc/acpi/ac_adapter/*/state
fi
}
function SwitchRunlevel () {
if [ ! -d "/etc/runlevels/${RUNLEVEL_AC}" ]
then
logger "${0}: Runlevel ${RUNLEVEL_AC} does not exist. Aborting."
exit 1
fi
if [ ! -d "/etc/runlevels/${RUNLEVEL_BATTERY}" ]
then
logger "${0}: Runlevel ${RUNLEVEL_BATTERY} does not exist. Aborting."
exit 1
fi
if on_ac
then if [[ "$(cat /var/lib/init.d/softlevel)" != "${RUNLEVEL_AC}" ]]
then
logger "Switching to ${RUNLEVEL_AC} runlevel"
/sbin/rc ${RUNLEVEL_AC}
fi
elif [[ "$(cat /var/lib/init.d/softlevel)" != "${RUNLEVEL_BATTERY}" ]]
then
logger "Switching to ${RUNLEVEL_BATTERY} runlevel"
/sbin/rc ${RUNLEVEL_BATTERY}
fi
}
/etc/acpi/events/pmg_ac_adapter
event=ac_adapter.* action=/etc/acpi/actions/pmg_ac_adapter.sh %e
/etc/acpi/events/pmg_battery
event=battery.* action=/etc/acpi/actions/pmg_battery.sh %e
/etc/acpi/actions/pmg_ac_adapter.sh
#!/bin/bash source /etc/acpi/switch_runlevel.sh SwitchRunlevel
/etc/acpi/actions/pmg_battery.sh
#!/bin/bash source /etc/acpi/switch_runlevel.sh SwitchRunlevel
# emerge powermgmt-base # chmod +x /etc/acpi/switch_runlevel.sh # chmod +x /etc/acpi/actions/pmg_* # /etc/init.d/acpid restart
/etc/conf.d/local.start
# バッテリーで起動中にacpiイベントをだましランレベルを切り替える /etc/acpi/actions/pmg_battery.sh "battery/battery"
Power management options (ACPI, APM) ---> ACPI (Advanced Configuration and Power Interface) Support ---> <*> ASUS/Medion Laptop Extras < > IBM ThinkPad Laptop ExtrasASUSのラップトップなんだけど、上記の設定をすると
Asus ACPI: Error reading LCD statusが大量にシステムログに記録された。 モジュールにして読み込むとシステムログには出ない。なんでだろ。
# modprobe asus_acpi Asus Laptop ACPI Extras version 0.29 unsupported, trying default values, supply the developers with your DSDTKDE の電源管理ソフトをインストール
# emerge -avt klaptopdaemon
# emerge -avt synaptics # ACCEPT_KEYWORDS="~x86" emerge -avt ksynapticsQSynaptics - X11 touch pad driver configuration utility
# echo "app-laptop/acpi4asus ~x86" >> /etc/portage/package.keywords # emerge -avt acpi4asusカーネルモジュールが /lib/modules/`uname -r`/acpi/asus_acpi.ko にコピーされるが、ちょっと上で試したカーネルで作ったものと同じバージョンだった。 起動時に読み込まれないので /etc/modules.autoload.d/kernel-2.6 に下記を追加
asus_acpi/usr/share/doc/acpi4asus-0.29/README.gz を参考に色々設定。
$ mkdir ~/.asus_acpi $ cp -r /usr/share/acpi4asus/sample/* .asus_acpi/ $ cd .asus_acpi/ $ chmod +x hotk*.sh mute.pl $ asus_acpidKDEのログイン時にも起動されるように ~/.xprofile に以下の行を追加
asus_acpid~/.asus_acpi/log を見ながら色々設定してみる。 ~/.asus_acpi/hotk0.sh
kontact~/.asus_acpi/hotk1.sh
konqueror
Power management options (ACPI, APM) ---> CPU Frequency scaling ---> [*] CPU Frequency scaling Default CPUFreq governor (userspace) ---> <*> 'performance' governor <*> 'powersave' governor <*> 'ondemand' cpufreq policy governor <*> 'conservative' cpufreq governor <M> Intel Enhanced SpeedStep [*] Use ACPI tables to decode valid frequency/voltage pairs [*] Built-in tables for Banias CPUs (NEW) <M> Intel Speedstep on ICH-M chipsets (ioport interface) <M> Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface) <M> Intel Pentium 4 clock modulation [*] Relaxed speedstep capability checks
# emerge cpufreqd # rc-update add cpufreqd default # rc-update add cpufreqd battery
# watch -n 1 "grep MHz /proc/cpuinfo"更新されない。
Processor type and features ---> [ ] Symmetric multi-processing support
# watch -n 1 "grep MHz /proc/cpuinfo"更新された。 なんか動作がきびきびしたような気がする。
/etc/init.d/pm.hda
#!/sbin/runscript
start() {
ebegin "Activating Power Management for Hard Drives"
hdparm -q -S12 /dev/hda
eend $?
}
stop () {
ebegin "Deactivating Power Management for Hard Drives"
hdparm -q -S253 /dev/hda
eend $?
}
# chmod +x /etc/init.d/pm.hda # /sbin/depscan.sh # rc-update add pm.hda battery
# emerge -avt laptop-mode-tools # rc-update add laptop_mode battery
Device Drivers ---> USB support ---> [*] USB suspend/resume (EXPERIMENTAL)
Power management options (ACPI, APM) ---> [*] Software Suspend (/dev/hda2) Default resume partitiongrub.conf に以下のパラメータを追加
resume=/dev/hda2動作未確認!
# emerge -avt suspend2-sourcesgentoo-sources 同様に色々変更し、その上
Power management options (ACPI, APM) ---> [*] Suspend2 ---> [*] File Writer [*] Swap Writer (swap:/dev/hda2) Default resume device name Cryptographic options ---> <M> LZF compression algorithm
Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices <*> VESA VGA graphics support VESA driver type (vesafb-tng) ---> (1024x768@70) VESA default mode (NEW) Console display driver support ---> <*> Framebuffer Console supportgrub.conf に以下のパラメータを追加
vga=791
Networking ---> < > Generic IEEE 802.11 Networking Stack Device Drivers ---> Network device support ---> Wireless LAN (non-hamradio) ---> <M> Intel PRO/Wireless 2200BG and 2915ABG Network Connection (NEW) Cryptographic options ---> <M> AES cipher algorithms (i586) <M> ARC4 cipher algorithm <M> Michael MIC keyed digest algorithm
# /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux # emerge -avt ipw2200/etc/conf.d/net に以下の行を追加
iface_eth1="dhcp"
# cd /etc/init.d/ # ln -s net.lo net.eth1
Device Drivers ---> Input device support ---> <M> Joystick interface [*] Joysticks ---> <M> Classic PC analog joysticks and gamepads
# modprove joydev
Device Drivers ---> Multimedia devices ---> <M> Video For Linux USB support ---> <M> USB Philips Cameras
# emerge usb-pwc-reUSE フラグに v4l を追加
# emerge xawtvビルドに失敗する。
# emerge mplayer $ mplayer tv:// -tv driver=v4l:width=176:height=144:device=/dev/video0:noaudio小さいけどカラーで表示された。
# emerge gqcam上3分の1に3つ白黒で表示される。 HOWTO Install a webcam HOWTO logitech quickcam on 2.6.x kernel
# emerge -avt splash-themes-libecdgrub.conf に以下のパラメータを追加
video=vesafb:1024x768-32@72 splash=silent,theme:livecd-2005.1 quiet CONSOLE=/dev/tty1
# emerge -avt prelinkUSE フラグに pic を追加
# emerge -uDavt --newuse world # env-update # prelink -amR/etc/env.d/99kde-env の KDE_IS_PRELINKED=1 を有効に。
$ tar zxf pipsg720-2.6.2.tar.gz $ cd pipsg720-2.6.2 $ ./configure $ make ../lib/libdtr.a(imgdetect_pips.o): In function `OutputMemAtBmp': imgdetect_pips.cc:(.text+0xc8): undefined reference to `__builtin_new' imgdetect_pips.cc:(.text+0x3e4): undefined reference to `__builtin_delete' imgdetect_pips.cc:(.text+0x3f4): undefined reference to `__rethrow' ../lib/libdtr.a(imgdetect.o): In function `FUNC006::~FUNC006(void)': imgdetect.cc:(.text+0x39e): undefined reference to `__builtin_delete' collect2: ld returned 1 exit statusとエラーになる。 pips830-2.5.2のコンパイルが通りません(kernel2.6,gcc3.3.4) を参考に
# emerge -avt lib-compatをして、dtrfilter/Makefile.am を変更
dtrfilter_LDADD = -ldl -lm $(top_srcdir)/lib/libdtr.a -lstdc++-3-libc6.2-2-2.10.0
$ ./configure $ make $ sudo make installCUPSでプリンタを設定し、印刷しようとすると Unable to convert file 0 to printable format と言われ失敗したので ghostscript を入れ直す
# emerge -avt ghostscriptドライバの設定をすると印刷されるようになった。
# gcc-config i686-pc-linux-gnu-3.4.4 # source /etc/profile # emerge --oneshot -av libtool # emerge -e system # emerge -e world
# emerge -avt glibc # emerge -e system # emerge -e world
# emerge -avt postgresql # emerge --config =postgresql-8.0.4 # /etc/init.d/postgresql start # rc-update add postgres default # su - postgres $ createuser -W tasuku Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) n Password: CREATE USERUSE フラグに postgresql を追加。
# emerge -uDavt --newuse worldGUI のツールを試してみる。
# emerge -avt kpogre
# emerge -uDavt --newuse apache # /etc/init.d/apache2 start # rc-update add apache2 defaulthttp://localhost/ で Apache のテストページ(英語)が表示された。 設定ファイルは /etc/apache2/httpd.conf ドキュメントのルートは /var/www/htdocs/ のようだ。
適当に気づいたものを変えてみます。
Processor type and features ---> [*] Local APIC support on uniprocessors [*] IO-APIC support on uniprocessors
Device Drivers ---> Character devices ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) <M> Intel 830M, 845G, 852GM, 855GM, 865G <M> i915 driverxorg-x11-6.8.99.15 をインストール
# echo "=x11-base/xorg-x11-6.8.99.15-r4 ~x86" >> /etc/portage/package.keywords # echo "x11-base/xorg-x11" >> /etc/portage/package.unmask # emerge -avt xorg-x11 [ebuild U ] x11-base/xorg-x11-6.8.99.15-r4 [6.8.2-r6] -3dfx +bitmap-fonts +cjk -debug +doc -font-server -insecure-drivers +ipv6 -minimal +nls -nocxx +opengl +pam -sdk -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv # Xorg -configure # X -config ~/xorg.conf.newxorg.confの設定を変更
Section "Device" Identifier "Card0" Driver "i810" VendorName "Intel Corporation" BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller" BusID "PCI:0:2:0" Option "DisplayInfo" "False" Option "DRI" "True" Option "MonitorLayout" "CRT,LFP" Option "Clone" "True" EndSection Section "Device" Mode 0666 EndSection
Section "Extension" Option "Composite" "Enable" EndSectionKDEのコントロールセンター > デスクトップ > ウィンドウの挙動 > 透光性 で色々設定。 ちょっとかっこいいけど、重くなった。
Device Drivers ---> Graphics support ---> [*] Backlight & LCD device support ---> <M> Lowlevel Backlight controls (NEW) <M> Lowlevel LCD controls (NEW)うーん、モジュールはできるけど、使われていないっぽい。
Device Drivers ---> Graphics support ---> [*] Support for the framebuffer splash
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
30日でできる! OS自作入門
OSってこんな風にできてる(作れる)んです。
★★★★★
Linuxネットワーク管理
TCP/IPの基礎から様々な管理まで、実用的なものがまとまった1冊です。
★★★☆☆
Qt GUIプログラミング
豊富な例と重要なテクニックがぎっしりです。Qt開発者必読。あれもこれも直したい…。
★★★★☆
KDE3.0アプリケーションプログラミング
私はこの本で勉強しました
★★★☆☆
C++プログラミング入門
何度読んでも素晴しい本です。基本をしっかり学びましょう。
★★★★★
Running Linux
Linuxを本格的に使う方は見逃せない一冊です。
★★★★☆
プロ論。
仕事と人生に対する強烈なメッセージ集
★★★★☆
LINUX サーバ HACKS
まじめに勉強しようと思った日にこの本を読みましょう。
★★★★☆
達人に学ぶPerl/CGI道場
汚いソースはもう見たくない!
★★☆☆☆
SELinux徹底ガイド
まだ読んでません
☆☆☆☆☆
30日でできる! OS自作入門
OS作りがこんなにも身近に!
★★★★★
Linuxサーバ構築・設定のすべて
ディストリビューションに依存しないサーバー構築技術を身につけましょう。
★★★★★
はじめてのGentoo Linux
当時は御世話になりました
☆☆☆☆☆
Unixバックアップ&リカバリ
サーバー管理者は必読!自信と安心をこの本で。
★★★★☆
Apacheハンドブック
これで奥の深いApacheも完璧!?
★★★☆☆
からくり儀右衛門
最高の技術で妥協しないものづくり
★★★☆☆
大きな字の地図で東京歩こう
東京で適当にうろうろするにはよい。
★★★☆☆
Rubyデスクトップリファレンス
タイトル通り、「あ、これなんだっけ?」の強い味方です。
★★★★★
入門 Qt 4 プログラミング
Qt4 開発者必携
★★★★★
Effective C++ 原著第3版
C++での開発をしている方は必携です。
★★★★★
プロジェクトX 新・リーダーたちの言葉
読んでください
★★★☆☆
Copyright © 2025 Linux-Life.net