Debian を Windows7 上の VMware にインストールする場合の設定まとめ

VMware のできはとてもよろしいので,新しいPCにインストールするのと同じ感覚で Debian をインストールすることができた.しかし,キーバインドの設定など,若干トラブったので,まとめる.

環境

ネットワークの設定

  • VMware 側で Debian 用のネットワークアダプタの設定を「ブリッジ:物理ネットワークに直接接続」にするのがいいと思う
  • すると,特に Windows 側の設定を変更することなく Debianssh 接続できるようになる(もちろん,openssh-server をインストールしておく必要がある)
  • この場合,WindowsDebian で異なる IP を持つことになることに注意

解像度の設定

  • デフォルトだと,解像度が 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
  • VMware が「vmware-tools (名前はうろ覚え) をインストールしなさい」みたいなメッセージを出すので,インストールする.フルスクリーン表示ができるようになる
  • しかし,フルスクリーンにすると,フォントの DPI が変更されるらしく,フルスクリーン化の前後で起動したアプリケーション間で見た目のフォントサイズが異なる(腹立たしい)
  • KDE のシステム設定:外観:フォント:フォントのDPIを指定する:96 DPI のように設定するとうまくいく

キーバインドを変更する