ClarDold
Posts: 2
Joined: Mon Dec 10, 2018 7:00 am

Launch Chromium remotely, not at boot, for "kiosk-like" display?

Fri Feb 01, 2019 5:15 pm

I have a Raspberry Pi running some software at boot.
Occasionally, I would like to display a Chromium status screen on the local HDMI monitor.
I want to log in remotely via ssh, and do something like startx, but I can't run that without being on the console.

I don't want to display GUI on my remote machine. I know how to do that.
I don't want the Pi GUI to start on every boot. I know how to do that.
I want to occasionally log in remotely, and launch Chromium to run on the local monitor.

Maybe I should just set it to run on every boot, but I don't want to ;-)

fruitoftheloom
Posts: 20123
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Launch Chromium remotely, not at boot, for "kiosk-like" display?

Fri Feb 01, 2019 5:24 pm

ClarDold wrote:
Fri Feb 01, 2019 5:15 pm
I have a Raspberry Pi running some software at boot.
Occasionally, I would like to display a Chromium status screen on the local HDMI monitor.
I want to log in remotely via ssh, and do something like startx, but I can't run that without being on the console.

I don't want to display GUI on my remote machine. I know how to do that.
I don't want the Pi GUI to start on every boot. I know how to do that.
I want to occasionally log in remotely, and launch Chromium to run on the local monitor.

Maybe I should just set it to run on every boot, but I don't want to ;-)

RealVNC Connect included with Raspbian Stretch has a " Virtual Desktop"

VNC Server can create a virtual desktop for you, giving you graphical remote access on demand. This virtual desktop exists only in your Raspberry Pi's memory:

https://www.raspberrypi.org/documentati ... /README.md
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

klricks
Posts: 6495
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Launch Chromium remotely, not at boot, for "kiosk-like" display?

Fri Feb 01, 2019 6:17 pm

At SSH command prompt:

Code: Select all

DISPLAY=:0 chromium-browser
Or to run in background and give control back to ssh command prompt:

Code: Select all

DISPLAY=:0 chromium-browser &
The command DISPLAY=:0 will start GUI applications on the local screen from a remote SSH terminal.
Note that the RPi must already be booted to desktop. Not clear if that is what you wanted?
Last edited by klricks on Sat Feb 02, 2019 12:25 am, edited 1 time in total.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

User avatar
sconemad
Posts: 227
Joined: Thu Apr 28, 2016 1:47 pm
Location: Cambridge, UK
Contact: Website

Re: Launch Chromium remotely, not at boot, for "kiosk-like" display?

Fri Feb 01, 2019 10:45 pm

It sounds like you want to disable lightdm so it doesn't start automatically on boot. But, configure lightdm to auto login (in lightdm.conf), and configure chromium to autostart when the desktop starts (in ~/.config/lxsession/LXDE-pi/autostart).

Then, from ssh do "systemctl start lightdm" when you want to start the graphical display.

Return to “Raspbian”