Boot directly into Chromium browser

Moderators: mdrjr, odroid

Boot directly into Chromium browser

Unread postby xu4Deluxe » Mon Jul 17, 2017 11:01 pm

What is the best way to boot Odroid XU4 (Ubuntu 16.04.2) directly into Chromium browser (kiosk mode) without X11 server overhead?
So i need a very lightweight and fast kiosk system based on chromium browser to render an HTML5 app.

------

This seems to work:

disable X11
sudo systemctl set-default multi-user.target

append to /etc/rc.local
xinit /home/odroid/chromium.sh

content of /home/odroid/chromium.sh
#!/bin/sh
chromium-browser --no-sandbox --kiosk --use-gl=egl --ignore-gpu-blacklist "https://forum.odroid.com/"


The first problem is i have to run chromium with the flag --no-sandbox :(
otherwise i get this message:
Please start Chromium as a normal user. if you need to run as a root for development, rerun with the --no-sandbox flag.

The second problem is that the screen has black borders so it is not 100% full screen
xu4Deluxe
 
Posts: 2
Joined: Thu Jul 13, 2017 4:26 pm
languages_spoken: german, russian, english
ODROIDs: ODROID-XU4

Re: Boot directly into Chromium browser

Unread postby robroy » Tue Jul 18, 2017 8:41 am

Please start Chromium as a normal user. if you need to run as a root for development, rerun with the --no-sandbox flag.

/etc/rc.local by default runs as the root user. I *think* you can add an "su" command right before the xinit command in order to switch over to a non-root user.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)
User avatar
robroy
 
Posts: 3349
Joined: Mon Feb 25, 2013 2:29 am
Location: San Francisco, California
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 6 guests