Debian を Windows7 上の VMware にインストールする場合の設定まとめ
VMware のできはとてもよろしいので,新しいPCにインストールするのと同じ感覚で Debian をインストールすることができた.しかし,キーバインドの設定など,若干トラブったので,まとめる.
環境
ネットワークの設定
解像度の設定
- デフォルトだと,解像度が 640x480 しかできない
- KDE のシステム設定で変更しても,ログオフするともとに戻ってしまう
- /etc/X11/xorg.conf を下のように書けばうまくいった(割とてきとう)
Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Generic Keyboard" InputDevice "Configured Mouse" "CorePointer" EndSection Section "Files" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "unix/:7100" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/local/share/fonts" FontPath "/usr/share/fonts" EndSection Section "Module" Load "bitmap" Load "dbe" Load "ddc" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "record" Load "type1" Load "vbe" EndSection Section "ServerFlags" Option "Xinerama" "0" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "jp106" Option "XkbLayout" "jp" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "Emulate3Buttons" "true" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 1.0 - 1000.0 VertRefresh 1.0 - 1000.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "vmware" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection
キーバインドを変更する
- まず Windows 上でレジストリをいじって Ctrl と CapsLock をスワップしておく(重要)
- 参考: Windows VistaでCaps LockキーとCtrlキーを入れ替えるには(Windows7 でも同じ方法でいけた)
- 余談だが,私は Windows7 上で yamy を起動していくつかのキーバインドを変更している(参考:Windows 7でCtrlとCapsLockを入れ替える方法).しかし,これは Debian には影響しない
- Debian 上では xmodmap を使って,好きなようにキーバインドを設定する
- NOTE: もし Windows 側で Ctrl と CapsLock をスワップせずに xmodmap でスワップさせようとすると,たぶん失敗する(同じ現象が報告されている.e.g.ubuntu on vmwareのインストールとキーマップの変更失敗)