RHEL 6.2 を使用するデスクトップ クライアント (mydesktop) から RHEL 5.8 をインストールしたサーバー (myserver) に ssh しようとしています。グループでリモート サーバーに「X Window」をインストールしました。リモート サーバーの DISPLAY 変数も localhost:0.0 に設定されていますが、まだ Firefox を起動できません。接続するコマンドは
$ ssh -X -l myname myserver
エラーメッセージは
$ firefox
Error: cannot open display: localhost:0.0
以下のmyserverでコマンドを実行しようとしました
$ xhost +localhost
しかし、エラーメッセージが表示されます
xhost: unable to open display "localhost:0.0"
私が言及したい3つの現象があります
- mydesktop の別のユーザーは、myserver にログインした後、Firefox を起動できます。
- 別のサーバー myserver2 にリモートでログインすると、Firefox を起動できました。
- firefox はほんの一例です。通常、x ウィンドウ プログラムを起動できません。
何が起こっているのかわかりません。私を助けてください。
これは私の問題の更新です。問題は「部分的に」解決されました。私がしたことは、「.bashrc」ファイルから「export DISPLAY==localhost:0.0」を削除し、ログアウトしてから再度ログインすることで、Firefox を起動できます!!!
しかし、これで話は終わりではありません。新しい問題があります: $ sudo wireshark
動作しません。エラーメッセージは次のとおりです。
[myself@myserver ~]$ sudo wireshark
debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 46595
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 46596
debug1: channel 2: new [x11]
debug1: confirm x11
X11 connection rejected because of wrong authentication.
debug1: channel 2: free: x11, nchannels 3
The application 'wireshark' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
debug1: channel 1: FORCE input drain
sudo で x ウィンドウを起動できないのはなぜですか?