模拟x屏?

Tyz*_*oid 7 ssh ubuntu x11

我在一个运行 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
Run Code Online (Sandbox Code Playgroud)

提前致谢!

Tyz*_*oid 10

Xvfb 正是我要找的:http : //en.wikipedia.org/wiki/Xvfb

维基百科的摘录:

Xvfb 或 X 虚拟帧缓冲区是一个实现 X11 显示服务器协议的显示服务器......从客户端的角度来看,它的行为与任何其他 X 显示服务器完全一样,为请求提供服务并发送适当的事件和错误。但是,没有显示输出。这个虚拟服务器甚至不需要它运行的计算机有屏幕或任何输入设备。

这组命令解决了我的问题:

Xvfb :1 &
export DISPLAY=:1
Run Code Online (Sandbox Code Playgroud)

然后我的命令有效:

$ 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.
Run Code Online (Sandbox Code Playgroud)