単純な「キオスク」 - 1つのアプリケーションを持つStartXは、指定されたプロトコルがないことを意味します。

単純な「キオスク」 - 1つのアプリケーションを持つStartXは、指定されたプロトコルがないことを意味します。

私の目標は、アプリケーションを実行し、ユーザーがマウスやキーボードを使用できないUbuntuノートブックを持つことです。

最初に行うことは、プログラムを起動するコマンドを見つけることです。これがコマンドです。

export DISPLAY=:0 && pidof cvlc 2>/dev/null >/dev/null || cvlc --fullscreen --no-video-title-show rtsp://192.168.1.2:554/onvif

その後、自動ログインを停止してGUIをロードしてみました。

# /etc/init/lightdm.override
manual

だから私がしたい場合は、startx -- :0単純な背景を表示します。素晴らしいです。ただし、このトピックの最初のコマンドを実行すると、次の結果が表示されます。

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x1a26bf8] inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: No protocol specified
No protocol specified
Autolaunch error: X11 initialization failed.

[0x1a26bf8] main interface error: no suitable interface module
No protocol specified
[0x1a26a38] main interface error: no suitable interface module
[0x17f7108] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1a26bf8] dummy interface: using the dummy interface module...
[0x7ff654002a58] live555 demux error: SETUP of'video/H264' failed 500 Internal Server Error
[0x7ff654002a58] live555 demux error: SETUP of'audio/PCMA' failed 500 Internal Server Error

startxが起動しない場合はこれを取得します。

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x1037bf8] inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0x1037bf8] main interface error: no suitable interface module
[0x1037a38] main interface error: no suitable interface module
[0xe08108] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1037a38] dummy interface: using the dummy interface module...
[0x7f05ec0010d8] live555 demux error: SETUP of'video/H264' failed 500 Internal Server Error
[0x7f05ec0010d8] live555 demux error: SETUP of'audio/PCMA' failed 500 Internal Server Error

自動ログインを有効にしてcrontabを介してvlcプレーヤーを起動すると、成功した起動です。

* * * * * export DISPLAY=:0 && pidof cvlc 2>/dev/null >/dev/null || cvlc --fullscreen --no-video-title-show rtsp://192.168.1.2:554/onvif

出力は小さいですが、すべてがうまく機能します。

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x24df238] dummy interface: using the dummy interface module...

この問題を解決する方法を知っている人はいますか?

Ubuntu 12.04.5 LTS(Precise Pangolin)ノートブック。

ベストアンサー1

おすすめ記事