
私は Ubuntu 13.04 を実行している koding ターミナルで作業しており、x-screen を必要とするアプリケーション (ターミナル モードで実行する場合でも) を実行しようとしています。
x11 転送で接続できないのですが、このアプリケーション (lmms) を実行できる回避策があるかどうか知りたいです。
$ lmms -v
lmms: cannot connect to X server
$ uname -a
Linux vm-2.masd.koding.kd.io 3.9.0-0-generic #4userns5 SMP Mon May 13 06:15:34 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
前もって感謝します!
答え1
Xvfb はまさに私が探していたものです:http://en.wikipedia.org/wiki/Xvfb
Wikipediaからの抜粋:
Xvfb または X 仮想フレームバッファは、X11 ディスプレイ サーバー プロトコルを実装するディスプレイ サーバーです。クライアントの観点から見ると、他の X ディスプレイ サーバーとまったく同じように動作し、要求に応え、必要に応じてイベントとエラーを送信します。ただし、出力は表示されません。この仮想サーバーは、実行されているコンピューターに画面や入力デバイスさえも必要としません。
このコマンドセットで問題は解決しました:
Xvfb :1 &
export DISPLAY=:1
私のコマンドは機能します:
$ lmms -v
Linux MultiMedia Studio 0.4.14-rc1
Copyright (c) 2004-2008 LMMS developers.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
Try "lmms --help" for more information.
答え2
ディスプレイを開いて、X アプリケーションを許可してみてくださいlmms
。これは、 コマンドを使用して実行できますxhost
。
例
$ xhost +