gentooで KVM + qemu を動かす
1. linux kernelの設定
Processor type and features > Paravirtualized guest support
- KVM paravirtualized clock
- KVM Guest support
Virtualization
- Kernel-based Virtual Machine (KVM) support
- KVM for Intel processors support
- KVM for AMD processors support
- PCI driver for virtio devices
- Virtio balloon driver
※ Guest supportはいらないかも、processors supportも必要な方だけで良さげ
2. kernel moduleの設定
kvmのモジュール(kvm-intel)を group kvm でロードされるようにする
groupadd kvm
gpasswd -a YOURACCOUNT kvm
cat /etc/udev/rules.d/65-kvm.rules
KERNEL=="kvm", MODE="0660", GROUP="kvm"
ACTION=="add|change", SUBSYSTEM=="dmi", KERNEL=="id", RUN+="/bin/sh -c 'grep -q vmx /proc/cpuinfo && /sbin/modprobe kvm-intel; grep -q svm /proc/cpuinfo && /sbin/modprobe kvm-amd'"
※ 65-kvm.rules は
ebuild /usr/portage/app-emulation/kvm-kmod/kvm-kmod-2.6.32.7.ebuild fetch
でフェッチしたファイルの scripts/65-kvm.rules と一緒
3. qemuのコンパイル
git clone git://git.savannah.nongnu.org/qemu.git
./configure --prefix=/opt --disable-xen --enable-kvm --kerneldir=/usr/src/linux --target-list=x86_64-softmmu,i386-softmmu
make install
※ kerneldirでlinux kernel sourceを指定しないと
#error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS
なエラーが発生する
4. qemuの起動と確認
/opt/bin/qemu -enable-kvm
で実行して、Ctrl+Alt+2 で info kvm を実行してみる
(qemu) info kvm
kvm support: enabled
2010年2月24日水曜日
2010年2月9日火曜日
singleboot gentoo on macbook
結局 Gentoo.
- EFI環境でシングルブートにする。
- インストール時にsyslog-ngのコンパイルでエラーする
- 番外
Anthyをemergeして、export LC_ALL=ja_JP.UTF-8 にしたら
あっさり日本語入力できるようになったんだけど、、、こんなもんだっけw
- EFI環境でシングルブートにする。
- パーティションはpartedで変更
- パーティションタイプはmsdos
- /bootのパーティションはbootフラグを付けておく
- grubのインストールはMBR(/dev/sda)
気を付けるのはこれくらい
- インストール時にsyslog-ngのコンパイルでエラーする
- glibcのコンパイルでエラーになる
- FEATURES="-test" emerge syslog-ng
で ok になる。
- 番外
- xorg起動後、数分で画面が固まる
- Ctrl+Alt+F2 とかで画面を切り替えた後、Ctrl+Alt+F7で戻ると復旧する
現象に遭遇。
何かと思ったら、kernelの設定でGrapgicsの DRI が選択されてなかった
Anthyをemergeして、export LC_ALL=ja_JP.UTF-8 にしたら
あっさり日本語入力できるようになったんだけど、、、こんなもんだっけw
2009年10月27日火曜日
2009年9月1日火曜日
2009年8月30日日曜日
Mac Book on Gentoo amd64 + JFS
なんか、Gentoo調子がイマイチなので、思い切って
インストールし直す。64bitで。悪くなりそうな気しかしないけど。
以下、Quick Install Guideから外れたとこをメモ.
- http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
尚、amd64 では lilo はサポートされていないみたいなので、grubで。
1. パーティションの作成
fdiskは WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
で、パーティションがマトモに読めない(cfdiskでも一緒)ので
livecd ~ # parted /dev/sda
(parted) print free
Model: ATA Hitachi HTS54323 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
17.4kB 20.5kB 3072B Free Space
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 53.8GB 53.6GB hfs+ Apple_HFS_Untitled_1
53.8GB 320GB 266GB Free Space
この状態から
※ print free で Error: /dev/sda: unrecognised disk label となる場合は
(parted) mklabel gpt
でラベルを作成してから以下を行う
(parted) mkpart primary ext3 53.8GB 54.3GB ※ /boot
(parted) toggle 3 boot
(parted) mkpart primary linux-swap 54.3GB 56.3GB ※ swap
(parted) mkpart primary jfs 56.3GB 61.3GB ※ /
(parted) mkpart primary jfs 61.3GB 66.3GB ※ /tmp
(parted) mkpart primary jfs 66.3GB 81.3GB ※ /var
(parted) mkpart primary jfs 81.3GB 161.3GB ※ /usr
(parted) mkpart primary jfs 161GB 320GB ※ /home
(parted) print
Model: ATA Hitachi HTS54323 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 53.8GB 53.6GB hfs+ Apple_HFS_Untitled_1
3 53.8GB 54.3GB 537MB jfs boot
4 54.3GB 56.3GB 2000MB
5 56.3GB 61.3GB 5000MB
6 61.3GB 66.3GB 5000MB
7 66.3GB 81.3GB 15.0GB
8 81.3GB 161GB 80.0GB
9 161GB 320GB 159GB
(parted) quit
reboot
2. フォーマット
livecd ~ # mkfs.ext3 /dev/sda3
livecd ~ # mkswap /dev/sda4
livecd ~ # swapon /dev/sda4
livecd ~ # mkfs.jfs /dev/sda5
livecd ~ # mkfs.jfs /dev/sda6
livecd ~ # mkfs.jfs /dev/sda7
livecd ~ # mkfs.jfs /dev/sda8
livecd ~ # mkfs.jfs /dev/sda9
3. マウント
livecd ~ # mount /dev/sda5 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda3 /mnt/gentoo/boot
livecd ~ # mkdir /mnt/gentoo/tmp
livecd ~ # mount /dev/sda6 /mnt/gentoo/tmp
livecd ~ # mkdir /mnt/gentoo/var
livecd ~ # mount /dev/sda7 /mnt/gentoo/var
livecd ~ # mkdir /mnt/gentoo/usr
livecd ~ # mount /dev/sda8 /mnt/gentoo/usr
livecd ~ # mkdir /mnt/gentoo/home
livecd ~ # mount /dev/sda9 /mnt/gentoo/home
4. get stage3
- wget http://ftp.iij.ad.jp/pub/linux/gentoo/releases/amd64/current-stage3/stage3-amd64-20090827.tar.bz2
- wget http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2
〜
gentoo-sources は jfs が有効になっていないので、チェックを忘れずに.
sys-apps/915resolutionが Masked なので、Frame Buffer関係も
外さないとダメ...orz
〜
5. /etc/fstab
/dev/sda3 /boot ext3 noauto,noatime 1 2
/dev/sda5 / jfs noatime 0 1
/dev/sda4 none swap sw 0 0
/dev/sda6 /tmp jfs noatime 0 1
/dev/sda7 /var jfs noatime 0 1
/dev/sda8 /usr jfs noatime 0 1
/dev/sda9 /home jfs noatime 0 1
6. network
/etc/conf.d/net
config_eth0=( "dhcp" )
7. Install extra tools if required
emerge jfsutils
emerge dhcpcd
emerge grub
8. /boot/grub/menu.lst
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd0,2)
kernel /boot/kernel root=/dev/sda5 ro
9. install grub
grub
grub> root (hd0,2)
grub> setup (hd0,0)
grub> quit
インストールし直す。64bitで。悪くなりそうな気しかしないけど。
以下、Quick Install Guideから外れたとこをメモ.
- http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
尚、amd64 では lilo はサポートされていないみたいなので、grubで。
1. パーティションの作成
fdiskは WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
で、パーティションがマトモに読めない(cfdiskでも一緒)ので
livecd ~ # parted /dev/sda
(parted) print free
Model: ATA Hitachi HTS54323 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
17.4kB 20.5kB 3072B Free Space
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 53.8GB 53.6GB hfs+ Apple_HFS_Untitled_1
53.8GB 320GB 266GB Free Space
この状態から
※ print free で Error: /dev/sda: unrecognised disk label となる場合は
(parted) mklabel gpt
でラベルを作成してから以下を行う
(parted) mkpart primary ext3 53.8GB 54.3GB ※ /boot
(parted) toggle 3 boot
(parted) mkpart primary linux-swap 54.3GB 56.3GB ※ swap
(parted) mkpart primary jfs 56.3GB 61.3GB ※ /
(parted) mkpart primary jfs 61.3GB 66.3GB ※ /tmp
(parted) mkpart primary jfs 66.3GB 81.3GB ※ /var
(parted) mkpart primary jfs 81.3GB 161.3GB ※ /usr
(parted) mkpart primary jfs 161GB 320GB ※ /home
(parted) print
Model: ATA Hitachi HTS54323 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 53.8GB 53.6GB hfs+ Apple_HFS_Untitled_1
3 53.8GB 54.3GB 537MB jfs boot
4 54.3GB 56.3GB 2000MB
5 56.3GB 61.3GB 5000MB
6 61.3GB 66.3GB 5000MB
7 66.3GB 81.3GB 15.0GB
8 81.3GB 161GB 80.0GB
9 161GB 320GB 159GB
(parted) quit
reboot
2. フォーマット
livecd ~ # mkfs.ext3 /dev/sda3
livecd ~ # mkswap /dev/sda4
livecd ~ # swapon /dev/sda4
livecd ~ # mkfs.jfs /dev/sda5
livecd ~ # mkfs.jfs /dev/sda6
livecd ~ # mkfs.jfs /dev/sda7
livecd ~ # mkfs.jfs /dev/sda8
livecd ~ # mkfs.jfs /dev/sda9
3. マウント
livecd ~ # mount /dev/sda5 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda3 /mnt/gentoo/boot
livecd ~ # mkdir /mnt/gentoo/tmp
livecd ~ # mount /dev/sda6 /mnt/gentoo/tmp
livecd ~ # mkdir /mnt/gentoo/var
livecd ~ # mount /dev/sda7 /mnt/gentoo/var
livecd ~ # mkdir /mnt/gentoo/usr
livecd ~ # mount /dev/sda8 /mnt/gentoo/usr
livecd ~ # mkdir /mnt/gentoo/home
livecd ~ # mount /dev/sda9 /mnt/gentoo/home
4. get stage3
- wget http://ftp.iij.ad.jp/pub/linux/gentoo/releases/amd64/current-stage3/stage3-amd64-20090827.tar.bz2
- wget http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2
〜
gentoo-sources は jfs が有効になっていないので、チェックを忘れずに.
sys-apps/915resolutionが Masked なので、Frame Buffer関係も
外さないとダメ...orz
〜
5. /etc/fstab
/dev/sda3 /boot ext3 noauto,noatime 1 2
/dev/sda5 / jfs noatime 0 1
/dev/sda4 none swap sw 0 0
/dev/sda6 /tmp jfs noatime 0 1
/dev/sda7 /var jfs noatime 0 1
/dev/sda8 /usr jfs noatime 0 1
/dev/sda9 /home jfs noatime 0 1
6. network
/etc/conf.d/net
config_eth0=( "dhcp" )
7. Install extra tools if required
emerge jfsutils
emerge dhcpcd
emerge grub
8. /boot/grub/menu.lst
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd0,2)
kernel /boot/kernel root=/dev/sda5 ro
9. install grub
grub
grub> root (hd0,2)
grub> setup (hd0,0)
grub> quit
2009年7月23日木曜日
Android Development Tools (ADT)
Gentooのportageのeclipseだとダメなので、
Eclipse IDE for Java Developers (91 MB)
をダウンロードして、展開(tar zxvf)して、実行(./eclipse)。
GALILEO(3.5)ですが、、、
1. Help > Install New Software...
Add で
Name : Android Development Tools (ADT)
Location : https://dl-ssl.google.com/android/eclipse/
それだけ!!!
2. Window > Preferences.
の Android で SDK をインストールしたパス(toolsのいっこ上)を指定すればOK.
Projectに Android がやっと出た♪
初めの一歩はいつもここから...
http://developer.android.com/guide/tutorials/hello-world.html
動いた♪ すげー、けど、激重
Eclipse IDE for Java Developers (91 MB)
をダウンロードして、展開(tar zxvf)して、実行(./eclipse)。
GALILEO(3.5)ですが、、、
1. Help > Install New Software...
Add で
Name : Android Development Tools (ADT)
Location : https://dl-ssl.google.com/android/eclipse/
それだけ!!!
2. Window > Preferences.
の Android で SDK をインストールしたパス(toolsのいっこ上)を指定すればOK.
Projectに Android がやっと出た♪
初めの一歩はいつもここから...
http://developer.android.com/guide/tutorials/hello-world.html
動いた♪ すげー、けど、激重
2009年7月20日月曜日
android sdk のインストール
Gentooだと ports に入ってるので、/etc/portage/package.keywords に
dev-util/android-sdk ~x86
を書いて、emerge dev-util/android-sdk して、PATHに
/opt/android-sdk-1.5/tools を追加すれば OK.
以下、Eclipseで開発する為の..Android Development Tools (ADT)でハマる。
Gentoo の eclipse-3.2, eclipse-3.4 だと ダメ
- sdkはインストールできるが...
-- Window > Preferencesに android が出てこない.
-- File > New > Project にも出てこない。
結局、Eclipseのサイトから
Eclipse IDE for Java Developers (91 MB)
をダウンロードするのが吉。
以下、gentooで eclipse-3.4 にしたときのメモ
/etc/portage/package.keywords に
dev-util/eclipse-sdk ~x86
を書いて、3.4-r2 にする。で、eclipse-3.4 にしたら、Help->Software Updates で
Cannot launch the Update UI. This installation has not been configured
properly for Software Updates.
って言われるが、、、、
Window->Preferences->General->Capabilities->Classic Update.
をチェックすれば、eclipse-3.3 と同じ方法で update できるけども...
http://developer.android.com/sdk/1.5_r3/installing.html
の 3.3 の手順で基本は ok だけど...依存関係の嵐w
最初に、
Android Development Tools (0.9.1.v200905011822-1621) requires plug-in "org.eclipse.gef".
次は
Android Development Tools (0.9.1.v200905011822-1621) requires plug-in "org.eclipse.wst.sse.core".
コイツは
Dali Java Persistence Tools (2.2.0.v200906100220-7L7OAFFBBoPR9QNdMUt_f) requires feature "org.eclipse.datatools.enablement.feature (1.7.0)", or compatible.
と言われてしまう...ので
1. org.eclipse.gef
http://www.eclipse.org/gef/updates/ より、
Software Update の New Remote Site に
http://download.eclipse.org/tools/gef/updates/releases/
を追加して update
2. org.eclipse.wst.sse.core
http://www.eclipse.org/webtools/
http://download.eclipse.org/webtools/downloads/ より、
Software Update の New Remote Site に
http://download.eclipse.org/webtools/updates/
を追加して update.
Search Resultから
Web Tools Platform(WTP)
-> Eclipse XML Editor and Tools
だけを選択
以上で依存関係が解決して、android sdkはインストール完了するけど...Projectに出てこない...orz
dev-util/android-sdk ~x86
を書いて、emerge dev-util/android-sdk して、PATHに
/opt/android-sdk-1.5/tools を追加すれば OK.
以下、Eclipseで開発する為の..Android Development Tools (ADT)でハマる。
Gentoo の eclipse-3.2, eclipse-3.4 だと ダメ
- sdkはインストールできるが...
-- Window > Preferencesに android が出てこない.
-- File > New > Project にも出てこない。
結局、Eclipseのサイトから
Eclipse IDE for Java Developers (91 MB)
をダウンロードするのが吉。
以下、gentooで eclipse-3.4 にしたときのメモ
/etc/portage/package.keywords に
dev-util/eclipse-sdk ~x86
を書いて、3.4-r2 にする。で、eclipse-3.4 にしたら、Help->Software Updates で
Cannot launch the Update UI. This installation has not been configured
properly for Software Updates.
って言われるが、、、、
Window->Preferences->General->Capabilities->Classic Update.
をチェックすれば、eclipse-3.3 と同じ方法で update できるけども...
http://developer.android.com/sdk/1.5_r3/installing.html
の 3.3 の手順で基本は ok だけど...依存関係の嵐w
最初に、
Android Development Tools (0.9.1.v200905011822-1621) requires plug-in "org.eclipse.gef".
次は
Android Development Tools (0.9.1.v200905011822-1621) requires plug-in "org.eclipse.wst.sse.core".
コイツは
Dali Java Persistence Tools (2.2.0.v200906100220-7L7OAFFBBoPR9QNdMUt_f) requires feature "org.eclipse.datatools.enablement.feature (1.7.0)", or compatible.
と言われてしまう...ので
1. org.eclipse.gef
http://www.eclipse.org/gef/updates/ より、
Software Update の New Remote Site に
http://download.eclipse.org/tools/gef/updates/releases/
を追加して update
2. org.eclipse.wst.sse.core
http://www.eclipse.org/webtools/
http://download.eclipse.org/webtools/downloads/ より、
Software Update の New Remote Site に
http://download.eclipse.org/webtools/updates/
を追加して update.
Search Resultから
Web Tools Platform(WTP)
-> Eclipse XML Editor and Tools
だけを選択
以上で依存関係が解決して、android sdkはインストール完了するけど...Projectに出てこない...orz
eclipse起動時にsymbol lookup error
$ eclipse-3.2
/usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /home/hoge/.eclipse/org\
.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/8/1/.cp/libswt-m\
ozilla-gtk-3235.so: undefined symbol: _ZN4nsID5ParseEPKc
で、落るのだが、MOZILLA_FIVE_HOME の環境変数を設定すると解決する。
$ MOZILLA_FIVE_HOME="/usr/bin/firefox" eclipse-3.2
or
$ MOZILLA_FIVE_HOME="" eclipse-3.2
eclipse-3.4 にしたら、emergeに以下が表示されてたけど、
何も設定しなくてもいけるみたい。
You built swt with xulrunner support. For your custom applications please set
MOZILLA_FIVE_HOME environment variable to /usr/lib/xulrunner-1.9
/usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /home/hoge/.eclipse/org\
.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/8/1/.cp/libswt-m\
ozilla-gtk-3235.so: undefined symbol: _ZN4nsID5ParseEPKc
で、落るのだが、MOZILLA_FIVE_HOME の環境変数を設定すると解決する。
$ MOZILLA_FIVE_HOME="/usr/bin/firefox" eclipse-3.2
or
$ MOZILLA_FIVE_HOME="" eclipse-3.2
eclipse-3.4 にしたら、emergeに以下が表示されてたけど、
何も設定しなくてもいけるみたい。
You built swt with xulrunner support. For your custom applications please set
MOZILLA_FIVE_HOME environment variable to /usr/lib/xulrunner-1.9
2009年6月12日金曜日
Gentoo freeze unloading alsa module
gentoo-sources-2.6.29-r5
alsa-utils-1.0.17
の組み合わせで、shutdown すると
unloading alsa module
以降進まなくなる。
http://bugs.gentoo.org/232875
System hangs at shutdown after message "Killing processes using ALSA"
らしい、とりあえず
emerge --unmerge alsa-utils
でもいいけど、音 出なくなるのもアレなので、
/etc/init.d/alsasound に UNLOAD_ON_STOP="no" を書いて回避
alsa-utils-1.0.17
の組み合わせで、shutdown すると
unloading alsa module
以降進まなくなる。
http://bugs.gentoo.org/232875
System hangs at shutdown after message "Killing processes using ALSA"
らしい、とりあえず
emerge --unmerge alsa-utils
でもいいけど、音 出なくなるのもアレなので、
/etc/init.d/alsasound に UNLOAD_ON_STOP="no" を書いて回避
2009年5月17日日曜日
Gentoo sys-fs/fuse
emerge --update --deep world したら、
>>> Failed to emerge sys-fs/fuse-2.7.4, Log file:
>>> '/var/tmp/portage/sys-fs/fuse-2.7.4/temp/build.log'
* Messages for package sys-fs/fuse-2.7.4:
* You need to build the FUSE module from the kernel source, because your kernel is too new
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Once you have satisfied these options, please try merging
* this package again.
kernelのオプションで、
File systems -> FUSE (Filesystem in Userspace) support
を有効にしないといけないみたい。
make menuconfig でオプション付けて
make && make modules_install
make install
して、再起動してやり直し
>>> Failed to emerge sys-fs/fuse-2.7.4, Log file:
>>> '/var/tmp/portage/sys-fs/fuse-2.7.4/temp/build.log'
* Messages for package sys-fs/fuse-2.7.4:
* You need to build the FUSE module from the kernel source, because your kernel is too new
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Once you have satisfied these options, please try merging
* this package again.
kernelのオプションで、
File systems -> FUSE (Filesystem in Userspace) support
を有効にしないといけないみたい。
make menuconfig でオプション付けて
make && make modules_install
make install
して、再起動してやり直し
2009年4月7日火曜日
gentoo xorg-server-1.5-upgrade
ハマった。
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml
症状.0 i810のドライバがロードできない(そんなものない)
=> Driver "i810" -> "intel" に変更して解決(xorg.conf)
症状.1 synapticsのmoduleがロードできない(undefined imPointerGetMotion)
=> /etc/hal/fdi/policy/ に 11-x11-synaptics.fdi をコピーして解決
症状.2 keyboadが認識されない(AllowEmptyInput on で removeされる)
=> /etc/hal/fdi/policy/ に x11-input.fdi を 10-xinput-configuration.fdi にしてコピーしたあと、、、/etc/init.d/hald restart を実行して解決
(rc-update add hald default)
メモ
1. F1〜F12 は
=> fnキーと一緒 押せば ok.
課題
1. カーソルキーが効いてない
=> xmodmap のせいだった。。。。.xinitrc から xmodmapを外したら ok になった。。。
2. キーボードの配置の変更 Alt とか
謎
1. synapticsは hald が動いてなくても動くが、keyboard はダメ
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml
症状.0 i810のドライバがロードできない(そんなものない)
=> Driver "i810" -> "intel" に変更して解決(xorg.conf)
症状.1 synapticsのmoduleがロードできない(undefined imPointerGetMotion)
=> /etc/hal/fdi/policy/ に 11-x11-synaptics.fdi をコピーして解決
症状.2 keyboadが認識されない(AllowEmptyInput on で removeされる)
=> /etc/hal/fdi/policy/ に x11-input.fdi を 10-xinput-configuration.fdi にしてコピーしたあと、、、/etc/init.d/hald restart を実行して解決
(rc-update add hald default)
メモ
1. F1〜F12 は
=> fnキーと一緒 押せば ok.
課題
1. カーソルキーが効いてない
=> xmodmap のせいだった。。。。.xinitrc から xmodmapを外したら ok になった。。。
2. キーボードの配置の変更 Alt とか
謎
1. synapticsは hald が動いてなくても動くが、keyboard はダメ
2008年10月19日日曜日
Xtermの文字を大きくする
defaultだと小さくて疲れる。
font を emerge
/etc/X11/xorg.conf に FontPath を追加する。
$HOME/.Xresources に以下を追加
256 color
emerge media-fonts/efont-unicode
FontPath "/usr/share/fonts/efont-unicode/"
Xterm*cjkWidth: true
XTerm*utf8: 1
XTerm*wideChars: true
XTerm*locale: true
xterm*fontDoublesize: true
XTerm*background: black
XTerm*foreground: white
XTerm*highlightColor: blue
XTerm*font: -efont-fixed-medium-r-normal--16-160-75-75-c-80-iso10646-1
! Needs for Alt_L=Meta on emacs
XTerm*metaSendsEscape: true
XTerm*eightBitInput: false
! Scrollbar color
XTerm*Scrollbar*thickness: 10
XTerm*Scrollbar*foreground: black
XTerm*Scrollbar*background: white
export TERM=xterm-256color
2008年10月6日月曜日
Gentoo & qemu その2
gentoo gcc-3.4.6 で cvs版の qemu をコンパイルしようとするも...
release_0_9_0/target-i386/ops_sse.h:213: error: this is
the insn:
(insn:HI 36 35 37 3 release_0_9_0/target-i386/ops_sse.h
:207 (parallel [
(set (reg:DI 63 [.q ])
(lshiftrt:DI (reg:DI 63 [.q ])
(subreg:QI (reg/v:SI 60 [ shift ]) 0)))
(clobber (scratch:SI))
(clobber (reg:CC 17 flags))
]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil)))
(expr_list:REG_DEAD (reg/v:SI 60 [ shift ])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (scratch:SI)
(nil)))))
release_0_9_0/target-i386/ops_sse.h:213: 前のエラーにより混乱していますので、脱出します
make[1]: *** [op.o] エラー 1
gentoo の gcc-3.4.6 はダメ?らしい。
http://docs.openmoko.org/trac/ticket/1093
しかたなく...
/etc/portage/package.keywords に sys-devel/gcc:3.3 ~x86 を追加して、
emerge -av sys-devel/gcc:3.3
で、gcc-3.3.6 をインストール。
qemu は ./configure --host-cc=/usr/bin/gcc-3.3.6 --cc=/usr/bin/gcc-3.3.6
で compile できました♪
release_0_9_0/target-i386/ops_sse.h:213: error: this is
the insn:
(insn:HI 36 35 37 3 release_0_9_0/target-i386/ops_sse.h
:207 (parallel [
(set (reg:DI 63 [
(lshiftrt:DI (reg:DI 63 [
(subreg:QI (reg/v:SI 60 [ shift ]) 0)))
(clobber (scratch:SI))
(clobber (reg:CC 17 flags))
]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil)))
(expr_list:REG_DEAD (reg/v:SI 60 [ shift ])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (scratch:SI)
(nil)))))
release_0_9_0/target-i386/ops_sse.h:213: 前のエラーにより混乱していますので、脱出します
make[1]: *** [op.o] エラー 1
gentoo の gcc-3.4.6 はダメ?らしい。
http://docs.openmoko.org/trac/ticket/1093
しかたなく...
/etc/portage/package.keywords に sys-devel/gcc:3.3 ~x86 を追加して、
emerge -av sys-devel/gcc:3.3
で、gcc-3.3.6 をインストール。
qemu は ./configure --host-cc=/usr/bin/gcc-3.3.6 --cc=/usr/bin/gcc-3.3.6
で compile できました♪
2008年9月15日月曜日
Gentoo & qemu
http://gentoo-wiki.com/HOWTO:_Qemu
gcc 4.X だとコンパイルできないので、3.X を持ってくる。
emerge -av sys-devel/gcc:3.4
- x86_64環境で /etc/make.conf に CFLAGS="-O2 -march=core2 -pipe" を書いてる場合は
sudo sh -c "CFLAGS=\"-O2 -pipe\" CXXFLAGS=\"-O2 -pipe\" emerge sys-devel/gcc:3.4"
gcc-3.4 でコンパイル
sudo sh -c "CC=gcc-3.4 emerge qemu-softmmu"
ネットワークに tun を使うならコレも
emerge sys-apps/usermode-utilities
ネットワークに bridge を使うならコレも
emerge net-misc/bridge-utils
kqemuを使うなら
cat /etc/modules.autoload.d/kernel-2.6
kqemu major=0
group qemu に追加
gpasswd -a HOGE qemu
ネットワーク込みの起動スクリブトはこんなのでいいらしい。
もちろん、ネットワークはbridgeで設定してないとダメ。
/etc/init.d/net.eth0 stop
brctl addbr br0
brctl addif br0 eth0
ifconfig eth0 up
ifconfig br0 up
dhcpcd br0
gcc 4.X だとコンパイルできないので、3.X を持ってくる。
emerge -av sys-devel/gcc:3.4
- x86_64環境で /etc/make.conf に CFLAGS="-O2 -march=core2 -pipe" を書いてる場合は
sudo sh -c "CFLAGS=\"-O2 -pipe\" CXXFLAGS=\"-O2 -pipe\" emerge sys-devel/gcc:3.4"
gcc-3.4 でコンパイル
sudo sh -c "CC=gcc-3.4 emerge qemu-softmmu"
ネットワークに tun を使うならコレも
emerge sys-apps/usermode-utilities
ネットワークに bridge を使うならコレも
emerge net-misc/bridge-utils
kqemuを使うなら
cat /etc/modules.autoload.d/kernel-2.6
kqemu major=0
group qemu に追加
gpasswd -a HOGE qemu
ネットワーク込みの起動スクリブトはこんなのでいいらしい。
#!/bin/bash
set -x
User=$USER
TAP=$(sudo tunctl -b -u $User)
sudo /sbin/ifconfig $TAP 0.0.0.0 promisc up
sudo /sbin/brctl addif br0 $TAP
qemu -hda hda.img -net nic -net tap,ifname=$TAP,script=no
sudo tunctl -d $TAP
もちろん、ネットワークはbridgeで設定してないとダメ。
/etc/init.d/net.eth0 stop
brctl addbr br0
brctl addif br0 eth0
ifconfig eth0 up
ifconfig br0 up
dhcpcd br0
2008年8月15日金曜日
gentooでのトラブル?
- grip
- NFS Client
- FirefoxのCtrl+j
フツーにemergeしたらなんかダメだった。
$ grip
(grip:10797): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed
(grip:10797): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed
(grip:10797): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed
(grip:10797): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed
(grip:10797): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed
セグメンテーション違反です
LANG=C grip
なら大丈夫なんだけど... /etc/portage/package.use で -nls ではダメなんですね。
rpc.statd を立ち上げとかないとlockできないとかでダメ.
/etc/init.d/rpc.statd start
or
rc-update add rpc.statd default
skkとぶつかって、使いものにならないので
http://mozilla.dorando.at/
からkeyconfig.xpiをインストールして、Ctrl+jのショートカットを削除。
ついでに、~/.scim/configの
/Hotkeys/FrontEnd/Trigger = Control+space を Shift+space に変更。
...だいぶマシになったかな。
2008年6月2日月曜日
Gentoo Mounting /dev for udev ... oops
Gentooインストールしたら、起動時に
* Mounting /dev for udev ... [oops]
* The "mount" command failed with error
とりあえず、回避する為にはgrubでkernelパラメータに
gentoo=noudev
を付ければ良い。
ちゃんと対処するなら、
emerge udev
して、kernelのコンフィグレーションで以下をチェックしておけば良いらしい。
/proc file system support
Virtual memory file system support (former shm fs)
http://www.gentoo.org/doc/en/udev-guide.xml
* Mounting /dev for udev ... [oops]
* The "mount" command failed with error
とりあえず、回避する為にはgrubでkernelパラメータに
gentoo=noudev
を付ければ良い。
ちゃんと対処するなら、
emerge udev
して、kernelのコンフィグレーションで以下をチェックしておけば良いらしい。
/proc file system support
Virtual memory file system support (former shm fs)
http://www.gentoo.org/doc/en/udev-guide.xml
登録:
投稿 (Atom)