Arch-Linux(x86) GUI環境(Xfce4)構築メモ:(ノートPC:Sony VAIO type F/VGN-FS52B編)
ちょっと古いノートPC(Sony VAIO type F/VGN-FS52B)なので
古過ぎてスペック足りずでGUIとかXサーバが起動しないかもだけどまあやってみよう。
まずはXのインストールから。
pacman -S xorg-server xorg-server-utils xorg-xinit dbus acpid
忘れずにデーモンを/etc/rc.confに追記しておく。
※xorg-xinitは[startx]したいので入れる。
VGAドライバはintelの915というやつ。
なので……"intel"なドライバがこれ
タッチパッドとキーボードと普通のマウスはsynapticsとevdevか?よくわからんけど
VGA:pacman -S xf86-video-intel
Mouse&KBD:pacman -S xf86-input-evdev xf86-input-synaptics
※補足:intelドライバを入れるとこんなのが表示されたから後で追記する。
// Add to the device section in /etc/X11/xorg.conf
// Option "AccelMethod" "sna
ついでに[mesa-progs](glxinfoとか使えるように)入れておく
そしていよいよGUIを選ぶわけだが、
今回は、軽量で高速なXfce4を結局選択した(KDEなどは動かないと思う)。
pacman -S xfce4 xfce4-goodies
goodiesは追加のアプリらしい。
日本語入力もしたいから、
pacman -S ibus anthy
などもやっておく。
[~/.xinitrc]
# Setting export XMODIFIEEERS="@im=ibus" export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XIM="ibus" export USE_XOPENIM="ibus" export DEFAULT_IM_MODULE="ibus" # Locale export LANG=ja_JP.UTF-8 export LC_ALL=ja_JP.UTF-8 # IM-Program to Launch ibus-daemon -d -x # Launch GUI with Power-Management exec ck-launch-session startxfce4
このままだとキーボードがまともに機能しないので設定を変える
[/etc/X11/xorg.conf.d/10-evdev.conf]
XkbModelのところをjp106 XkbLayoutをjp
本題の設定ファイル。
[/etc/X11/xorg.conf]
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/OTF/" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/75dpi/" EndSection Section "Module" Load "dri2" Load "dri" Load "dbe" Load "record" Load "glx" Load "extmod" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "evdev" EndSection Section "InputDevice" Identifier "Mouse0" Driver "synaptics" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" 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", ### <percent>: "<f>%" ### [arg]: arg optional #Option "AccelMethod" # <str> #Option "DRI" # [<bool>] #Option "ColorKey" # <i> #Option "VideoKey" # <i> #Option "Tiling" # [<bool>] #Option "LinearFramebuffer" # [<bool>] #Option "SwapbuffersWait" # [<bool>] #Option "XvPreferOverlay" # [<bool>] #Option "HotPlug" # [<bool>] #Option "RelaxedFencing" # [<bool>] #Option "Throttle" # [<bool>] #Option "ZaphodHeads" # <str> #Option "DelayedFlush" # [<bool>] #Option "TearFree" # [<bool>] #Option "PerCrtcPixmaps" # [<bool>] #Option "FallbackDebug" # [<bool>] #Option "DebugFlushBatches" # [<bool>] #Option "DebugFlushCaches" # [<bool>] #Option "DebugWait" # [<bool>] #Option "BufferCache" # [<bool>] #Option "TripleBuffer" # [<bool>] Identifier "Card0" Driver "intel" BusID "PCI:0:0:0" Option "AccelMethod" "sna" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz", ### <percent>: "<f>%" ### [arg]: arg optional #Option "AccelMethod" # <str> #Option "DRI" # [<bool>] #Option "ColorKey" # <i> #Option "VideoKey" # <i> #Option "Tiling" # [<bool>] #Option "LinearFramebuffer" # [<bool>] #Option "SwapbuffersWait" # [<bool>] #Option "XvPreferOverlay" # [<bool>] #Option "HotPlug" # [<bool>] #Option "RelaxedFencing" # [<bool>] #Option "Throttle" # [<bool>] #Option "ZaphodHeads" # <str> #Option "DelayedFlush" # [<bool>] #Option "TearFree" # [<bool>] #Option "PerCrtcPixmaps" # [<bool>] #Option "FallbackDebug" # [<bool>] #Option "DebugFlushBatches" # [<bool>] #Option "DebugFlushCaches" # [<bool>] #Option "DebugWait" # [<bool>] #Option "BufferCache" # [<bool>] #Option "TripleBuffer" # [<bool>] Identifier "Card1" Driver "intel" BusID "PCI:0:2:0" Option "AccelMethod" "sna" Option "Shadow" "True" EndSection # BusID "PCI:0:2:1" Section "Screen" Identifier "Screen0" Device "Card1" Monitor "Monitor0" DefaultDepth 16 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 Modes "1280x800" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" mode 0666 EndSection Section "Extensions" Option "AIGLX" "Enable" Option "Composite" "Enable" Option "Damage" "Enable" Option "RENDER" "Enable" EndSection
また右クリックメニューを出すために以下を実施
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0
一般ユーザで
$ startx
これで一応起動確認。
見事グラフィカルな環境がスタートした!
おおざっぱなのであれだが、後はアンチエイリアスの利くTTF(Migu 1M, IPA,etc)フォントを入れて設定(mkfontsdirとかで使用できるようにする)して適用です。
カスタマイズするだけ。Aquaな感じとかWindowsな感じとか色々できるみたい。
古いノートPC(Sony VAIO type F/VGN-FS52B)だけど、まだ現役で使えそうです。
Webページ見るのにFirefoxとかも入れたほうがいいね。