hns - 日記自動生成システム - Version 2.19.9

先月 2010年03月 来月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年03月22日(月) 旧暦 [n年日記] [更新:"2010/03/23 16:32:27"]

#1 [無題] 墓参

八街・小堤(おんづみ)・東金・平和公園・千葉寺
7:00 発、戻りは 12:30 頃
各地で、花が美しく咲いている
連翹(れんぎょう)
桜
梅
もくれん
しもくれん
こぶし
雪柳 (ゆきやなぎ)
しまむら 東金店にも寄ったりして、余分な時間がかかる。
千葉寺では不思議な動物を見てしまった。 たぬき ?

#2 [NetBSD] debug1: Remote: No xauth program; cannot forward with spoofing.

NetBSD 4.0 から NetBSD 5.0.1 に
ssh -X -Y -a -g -v
すると、(色々表示されるが、その最後の方に)
debug1: Remote: No xauth program; cannot forward with spoofing.
となって、xeyes と入力しても、
m08@makoto 19:25:53/100322(~)% xeyes
Error: Can't open display: 
m08@makoto 19:26:00/100322(~)% echo $DISPLAY
となってしまう。pkgsrc からは ssh 関係は入れていない。 /etc/ssh/sshd_config には、次のようなことが書いてある
# If you use xorg from pkgsrc then uncomment the following line.
# XAuthLocation /usr/pkg/bin/xauth
しかし、strings で調べると、
m08@makoto 19:26:05/100322(~)% strings /usr/sbin/sshd| grep xauth
/usr/X11R7/bin/xauth
xauthlocation
maxauthtries
No xauth program; cannot forward with spoofing.
のように、別の PATH が hardcode してある。それで、無理矢理、 次のようにして見る。
m08@makoto 19:27:50/100322(~)% ls /usr/X11R7/bin/
m08@makoto 19:27:57/100322(~)% sudo ln -s  /usr/pkg/bin/xauth /usr/X11R7/bin 
m08@makoto 19:28:14/100322(~)% ls -l /usr/X11R7/bin
total 0
lrwxr-xr-x  1 root  wheel  18 Mar 22 19:28 xauth -> /usr/pkg/bin/xauth
m08@makoto 19:28:17/100322(~)%
これで xeyes が表示されるようになった。
(nork さんへ: 上記は、この前の機械とは違うものです。ありがとう)

上に書いた話は、良く検証していなかった。 上に書いた /usr/X11R7/bin/xauth のリンクは消してから、 /etc/ssh/sshd_config の中の次の行の # を消しておいて、

# XAuthLocation /usr/pkg/bin/xauth
sshd を再起動したら、無事 xeyes を表示した。この時の (host 側の) ssh の版は次の通り
OpenSSH_5.0 NetBSD_Secure_Shell-20080403, OpenSSL 0.9.9-dev 09 May 2008

それで、この前 (3/13 日頃)にうまく行かなかった 5.0 Let's Note R2 から、 この同じ m08 に ssh すると、 やはり No xauth program になってしまう。それで

ssh -o XauthLocation=/usr/pkg/bin/xauth -X -Y -a -v
としたら、xeyes が表示出来るようになった。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)