XDarwinをstartxで起動してみる
XDarwinをstartxで起動してみる
0.改訂履歴
1.はじめに
このドキュメントでは,XDarwinを,Terminalのコマンドラインからstartxコマンドで起動する手順を説明する.
2.起動手順
- Terminalを起動して,startxコマンドを実行してみる.
Welcome to Darwin!
[localhost:~] shinnai% startx
startx: Command not found.
[localhost:~] shinnai%
|
- Command not foundなので,パスが設定されていないようである.
- パスを確認してみる.
[localhost:~] shinnai% echo $PATH
/Users/shinnai/bin/powerpc-apple-darwin:/Users/shinnai/bin:/usr/local/
bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
[localhost:~] shinnai%
|
- X11へのパスが設定されていないので,追加設定する.
[localhost:~] shinnai% setenv PATH "${PATH}:/usr/X11R6/bin"
[localhost:~] shinnai% echo $PATH
/Users/shinnai/bin/powerpc-apple-darwin:/Users/shinnai/bin:/usr/local/
bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin
[localhost:~]
|
[localhost:~] shinnai% startx &
[1] 2842
[localhost:~] shinnai%
XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your hardware is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Operating System: Darwin
Using keymapping provided in /System/Library/Keyboards/USA.keymapping.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
Display mode: IOKit
Failed to connect to the HID System as the window server!
Fatal server error:
Quit the Mac OS X window server or use the -quartz option.
OsVendorFatalError
AbortDDX
Quitting XDarwin...
X connection to :0.0 broken (explicit kill or server shutdown).
[1] Done startx
[localhost:~] shinnai%
|
- /tmp/.X11-unixファイルのオーナーがrootユーザであるため,アクセス権の関係で起動できないようである.
- 指示通り,-quartzオプションをつけて実行してみる.
[localhost:~] shinnai% startx -- -quartz
waiting for X server to begin accepting connections .
..
..
..
..
..
|
- 待っていると,「..」がどんどん表示される.
- 裏で次のような画面が表示されている.
- [ルートレス]ボタンを押下する.
- Terminalの画面を見る.
..
..
..
..
.2002-07-14 16:43:06.938 XDarwin[2848]
XDarwin 1.1
Running in parallel with Mac OS X Quartz window server.
XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your hardware is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Operating System: Darwin
Using keymapping provided in /System/Library/Keyboards/Japanese.keymapping.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
.
..
..
Display mode: Rootless Quartz
Screen 0 added: 1280x833 @ (0,21)
Screen 0 placed at X11 coordinate (0,0).
cat: /Users/shinnai/.Xauthority: No such file or directory
_XF86BigfontQueryFont: could not attach shm segment
Failed to open input method
Failed to open input method
Failed to open input method
|
- ハードウェアが新しい!といわれている.
- ここで使っているXDarwinがリリースされたのが2002.01なので,2002.05発売のPowerBookは視野に入ってないのかな.
- キーボードマッピングは,Japaneseを使っている.
- しかし,/tmp/.X11-unixファイルについて警告がでている.
- rootユーザにスイッチして,/tmp/.X11-unixを確認してみる.
[localhost:~] shinnai% su root
Password:
[localhost:/Users/shinnai] root# cd /tmp/.X11-unix
[localhost:/tmp/.X11-unix] root# ls -la
total 0
drwxrwxrwt 2 shinnai wheel 24 Jul 14 16:57 .
drwxrwxrwt 12 root wheel 364 Jul 14 16:57 ..
[localhost:/tmp/.X11-unix] root#
|
[localhost:/tmp/.X11-unix] root# cd ..
[localhost:/tmp] root# rm -R .X11-unix
[localhost:/tmp] root#
|
[localhost:/tmp] root# exit
exit
[localhost:/tmp] shinnai% startx -- -quartz
2002-07-14 17:08:25.356 XDarwin[2932]
XDarwin 1.1
Running in parallel with Mac OS X Quartz window server.
XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your hardware is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Operating System: Darwin
Using keymapping provided in /System/Library/Keyboards/Japanese.keymapping.
Display mode: Rootless Quartz
Screen 0 added: 1280x833 @ (0,21)
Screen 0 placed at X11 coordinate (0,0).
cat: /Users/shinnai/.Xauthority: No such file or directory
_XF86BigfontQueryFont: could not attach shm segment
Failed to open input method
Failed to open input method
Failed to open input method
|