root以外のユーザーとしてヘッドレスXサーバーを起動する

root以外のユーザーとしてヘッドレスXサーバーを起動する

次のコマンドを使用して、Centos 7システムのsshセッションで非rootユーザーとしてヘッドレスXサーバー(xorg-x11-drv-dummyパッケージの「Dummy」ドライバ)を起動します。

$ nohup Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile /my/log/file -config /my/config/file :9 >> /my/log/x.out 2>&1 &

...ルート以外の条件を除いて、すべてが機能します。この場合、ログファイルで見つかりました。

(EE) Fatal server error: (EE) PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? (EE)

...このヘッドレスXサーバーは単にセレンテストを実行するためのものであり、実際には「コンソール」(またはウィンドウマネージャ)を必要としません。

これらの構成にどのような問題があるのか​​ご存知ですか?

現在使用されている構成ファイルを追加します。

Section "Device"
  Identifier  "Configured Video Device"
  Driver      "dummy"
EndSection

Section "Monitor"
  Identifier  "Configured Monitor"
  HorizSync 31.5-48.5
  VertRefresh 50-70
EndSection

Section "Screen"
  Identifier  "Default Screen"
  Monitor     "Configured Monitor"
  Device      "Configured Video Device"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "1024x800"
  EndSubSection
EndSection

ベストアンサー1

おすすめ記事