デスクトップ環境を作る
これをやりたいがために、わざわざVMwareを入れたようなもんなので。
いっちょがんばってみる。
用意
portsを最新版に更新
インストール時に、ゲーム以外のすべてのものを入れたのでports自体は入っていますが、最新版ではないので更新します。
以下の2文を追加
vi /etc/portsnap.conf ------------------------------------------------------------ REFUSE arabic chinese french german hebrew hungarian REFUSE korean polish portuguese russian ukrainian vietnamese ------------------------------------------------------------- portsnap fetch && portsnap extract && portsnap update
Xorgの設定
# Xorg -configure # cp /root/xorg.conf.new /etc/X11/xorg.conf 「+」が追加もしくは修正部分 あとはそのまま。 -------------------------------------------------------------------- # 存在しないパスをコメントアウト Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" ModulePath "/usr/X11R6/lib/modules" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/TTF/" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" + # FontPath "/usr/X11R6/lib/X11/fonts/CID/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" EndSection # 日本語キーボードの設定 Section "InputDevice" Identifier "Keyboard0" Driver "kbd" + Option "XkbModel" "jp106" + Option "XkbLayout" "jp" EndSection # モニタの設定 Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" + HorizSync 31.5-67.0 + VertRefresh 60EndSection EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" + DefaultDepth 24 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 + Modes "1280x800" EndSubSection EndSection
// ここはどうもrootユーザではなく、Xwindowを使いたいユーザでやる模様 % xinit
ここでVMwareの画面が灰色?になる。
一応あっている?らしい。
KDEを試しに入れてみる
入れ方がイマイチよくわからないので、portsで入れることに。
cd /usr/ports/x11/kde3 make install clean
出てくるプロンプトは全部デフォルト。
待つこと30分超。
---------------------------------------------------------------------------- ===> Verifying install for /usr/local/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries /usr/X11R6 exists, but it is not a symlink. Installation cannot proceed. This looks like an incompletely removed old version of X. In the current version, /usr/X11R6 must be a symlink if it exists at all.Please read /usr/ports/UPDATING (entry of 20070519) for the procedure to upgrade X.org related ports.*** Error code 1 Stop in /usr/ports/x11/xorg-libraries. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11/kde3. --------------------------------------------------------------------------------
エラーメッセージどおり、/usr/ports/UPDATINGを見てみる。
vi /usr/ports/UPDATING
ここの20070519のエントリーを見てみると、xorg7.2にアップグレードしろ、なんて書いてある。
なんでFreeBSDを新しく入れたのに、いきなりアップグレードせなあかんねん。。。
しかも、調べてたらどうもムズイ?らしい。
パッケージで入れても同じエラーメッセージが出るので、別に未練もないKDEにおさらば。
代わりにgnome
ってことでデスクトップ環境のもう一つの雄であるgnomeを入れることに。
cd /usr/ports/x11/gnome2/ make install clean
待つこと40分くらい。
長い、と思っていたその矢先。
-------------------------------------------------------------------------------- ===> Verifying install for /usr/local/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries /usr/X11R6 exists, but it is not a symlink. Installation cannot proceed. This looks like an incompletely removed old version of X. In the current version, /usr/X11R6 must be a symlink if it exists at all.Please read /usr/ports/UPDATING (entry of 20070519) for the procedure to upgrade X.org related ports.*** Error code 1 Stop in /usr/ports/x11/xorg-libraries. *** Error code 1 Stop in /usr/ports/devel/dbus. *** Error code 1 Stop in /usr/ports/devel/p5-Net-DBus. *** Error code 1 Stop in /usr/ports/sysutils/system-tools-backends. *** Error code 1 Stop in /usr/ports/x11/gnome-applets. *** Error code 1 Stop in /usr/ports/x11/gnome2. *** Error code 1 Stop in /usr/ports/x11/gnome2. --------------------------------------------------------------------------
ぐはっ!!
最悪。。。
またもや同じエラーメッセージ。
もうだめ。
ダメもとでXorgをいれてみる。
Xorgをアップグレード
嫌な予感はしてた。。。
cd /usr/ports/x11/xorg make install clean
待つこと30分くらい。
------------------------------------------------------------------------------- ../common/vblank.c:306: error: `DRM_VBLANK_SECONDARY' undeclared (first use in this function) ../common/vblank.c:306: error: (Each undeclared identifier is reported only once ../common/vblank.c:306: error: for each function it appears in.) ../common/vblank.c: In function `driWaitForVBlank': ../common/vblank.c:363: error: `DRM_VBLANK_SECONDARY' undeclared (first use in this function) gmake[6]: *** [../common/vblank.o] Error 1 gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1/src/mesa/drivers/dri/i810' gmake[5]: *** [subdirs] Error 1 gmake[5]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1/src/mesa/drivers/dri' gmake[4]: *** [linux-solo] Error 2 gmake[4]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1/src/mesa' gmake[3]: *** [default] Error 2 gmake[3]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1/src/mesa' gmake[2]: *** [subdirs] Error 1 gmake[2]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1/src' gmake[1]: *** [default] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.0.1' gmake: *** [freebsd-dri-x86] Error 2 *** Error code 2 Stop in /usr/ports/graphics/dri. *** Error code 1 Stop in /usr/ports/x11/xorg. ------------------------------------------------------------------------
はうっ!!
もうイヤ。。。
で、.xinitrcをgnome2用に編集
--------------------------------------------------------------- # start some nice programs # twm & コメントアウト # xclock -geometry 50x50-1+1 & コメントアウト # xterm -geometry 80x50+494+51 & コメントアウト # xterm -geometry 80x20+494-0 & コメントアウト # exec xterm -geometry 80x66+0+0 -name login コメントアウト exec gnome-session ------------------------------------------------------------------ % xinit ----------------------------------------------------------------- This is a pre-release version of the X server from The X.Org Foundation. It is not supported in any way. Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. Select the "xorg" product for bugs you find in this release. Before reporting bugs in pre-release versions please check the latest version in the X.Org Foundation CVS repository. See http://wiki.x.org/wiki/CvsPage for CVS access instructions. X Window System Version 6.8.99.903 (6.9.0 RC 3) Release Date: 03 December 2005 + cvs X Protocol Version 11, Revision 0, Release 6.8.99.903 Build Operating System: FreeBSD 6.2 i386 [ELF] Current Operating System: FreeBSD local.freebsd.ne.jp 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 Build Date: 16 October 2006 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 18 23:52:35 2008 (==) Using config file: "/etc/X11/xorg.conf" /libexec/ld-elf.so.1: Shared object "libintl.so.6" not found, required by "gnome-session" waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. -------------------------------------------------------------------------------------
今度は何やねん。。。
調べてみると、どうもgettextを入れるとたまになるらしい。
解決方法は簡単で、すでにあるlibintl.so.8のシンボリックリンクをlibintl.so.6に貼ってやることで解決した。
cd /usr/local/lib ln -s libintl.so.8 libintl.so.6
で、再度、
% xinit
キターーーーーーーー!!
やっとできました。