启动无 GUI 的 xserver + Libreoffice

启动无 GUI 的 xserver + Libreoffice

我想知道如何从 tty1 启动 tty8 中的 libreoffice。

我试过

启动x--:1

但是我该如何启动 libreoffice 呢?

使用上述命令是否可以选择 tty9-12?

答案1

是的。转到 tty1 ( ++ Ctrl) ,使用您的用户名和密码登录,输入,您将被转移到 tty8。如果您在 tty8 中没有/看不到 unity 启动器,请使用++启动终端,然后在终端中输入,就这样 - 您在 tty8 中就有了 Libreoffice。AltF1startxCtrlAltTlibreoffice

答案2

如果我理解正确的话,您想要从已在运行的 X 服务器(tty7)中启动的 tty 启动 X 应用程序。

您可以使用以下方式实现该设置DISPLAY

$ DISPLAY=:0 libreoffice # just for the current command
$ # or to all the following commands.
$ export DISPLAY=:0
$ libreoffice

相关内容