LoginSignup
0
0

More than 1 year has passed since last update.

UbuntuでsudoするとX serverに接続拒否されるとき

Posted at

CASAのパイプラインを自前のサーバーで走らせようとしたときに、sudo でCASA開くとX serverに接続拒否されて困ったのでメモ。

non-root userで

xauth list $DISPLAY

で表示される文字列をすべてコピーしておき、

sudo -s

でログイン後

xauth add [上でコピーした文字列]

でOK。ここで xauth: file /root/.Xauthority does not exist みたいなエラー吐くときは touch /root/.Xauthority してから xauth add をやる。以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0