
Ubuntu 13.04を実行しているkoding端末で作業していて、x画面が必要なアプリケーションを実行しようとしています(ターミナルモードでも)。
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 Virtual Framebuffer は、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 +