# Chromium example

**URL:** <https://forums.balena.io/t/chromium-example/5387>\
**Category:** Product support\
**Created:** [February 21, 2019, 10:17pm UTC](https://forums.balena.io/t/chromium-example/5387 "2019-02-21T22:17:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobrosenthal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jacobrosenthal/32/1466_2.png) [@jacobrosenthal](https://forums.balena.io/u/jacobrosenthal)\
**Post date:** [February 21, 2019, 10:17pm UTC](https://forums.balena.io/t/chromium-example/5387/1 "2019-02-21T22:17:45Z")

</div>

Im looking to use a full feature browser, especially around webrtc support, most likely chromium, or possibly firefox, in something like a kiosk mode.

This seems to have been accomplished a few times over the years but none of these seem to work anymore:

Chromium doesnt appear to successfully start or find X?

> **[TechHub/RPiBrowser-resin.io](https://github.com/TechHub/RPiBrowser-resin.io)**
>
> RPi client code to spawn a browser and show the community messages on the display, using Resin.io - TechHub/RPiBrowser-resin.io

```auto
[Logs] [2/18/2019, 7:12:35 PM] [main] Adding user pi to group video
[Logs] [2/18/2019, 7:12:35 PM] [main] root@ec2468a:/usr/src/app# hostname: No address associated with hostname
[Logs] [2/18/2019, 7:12:35 PM] [main] xauth: file /home/pi/.Xauthority does not exist
[Logs] [2/18/2019, 7:12:36 PM] [main] xauth: (stdin):1: bad display name "ec2468a:0" in "add" command
[Logs] [2/18/2019, 7:12:36 PM] [main] 
[Logs] [2/18/2019, 7:12:36 PM] [main] /etc/X11/xinit/xserverrc: 3: exec: /usr/bin/X: not found
[Logs] [2/18/2019, 7:12:51 PM] [main] xinit: giving up
[Logs] [2/18/2019, 7:12:51 PM] [main] xinit: unable to connect to X server: Connection refused
[Logs] [2/18/2019, 7:12:51 PM] [main] xinit: server error
[Logs] [2/18/2019, 7:12:51 PM] [main] xauth: (argv):1: bad display name "ec2468a:0" in "remove" command

```

Firefox Comes up in X with a firefox has crashed window

> **[Jodel/dashboard-viewer](https://github.com/Jodel/dashboard-viewer)**
>
> "kiosk" browser running on resin.io (e.g raspberry pi) for displaying dashboards - Jodel/dashboard-viewer

In the meantime Ive been pointed at an electron implementation but thats not super ideal for me, I am looking for the chromium driver set.

> <https://github.com/balena-io/balena-electronjs/blob/master/Dockerfile.template>

However Im looking to see if theres some modern wizardry around an Xorg server in that dockerfile I can figure out.

If anyone has any more pointers or links Any help appreciated.

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [February 22, 2019, 7:48am UTC](https://forums.balena.io/t/chromium-example/5387/4 "2019-02-22T07:48:05Z")

</div>

Hey there @jacobrosenthal

Can you take a look at [https://github.com/balena-io-playground/x11-window-manager](https://github.com/balena-io-playground/x11-window-manager)

You have to modify the Dockerfile to install chromium, and uncomment line `29`.  
Also change the `autostart` code to run chromium.

Let me know if it works.  
Cheers

---

<div class="post-metadata">

**Author:** ![wwalker](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/wwalker/32/1225_2.png) [@wwalker](https://forums.balena.io/u/wwalker)\
**Post date:** [February 23, 2019, 4:40pm UTC](https://forums.balena.io/t/chromium-example/5387/5 "2019-02-23T16:40:36Z")

</div>

@jacobrosenthal - check out my repo here [https://github.com/willswire/timestations](https://github.com/willswire/timestations)

---

<div class="post-metadata">

**Author:** ![jacobrosenthal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jacobrosenthal/32/1466_2.png) [@jacobrosenthal](https://forums.balena.io/u/jacobrosenthal)\
**Post date:** [February 25, 2019, 12:23am UTC](https://forums.balena.io/t/chromium-example/5387/6 "2019-02-25T00:23:29Z")

</div>

I ended up getting linked to [jayatvars/balena-chromium-kiosk](https://github.com/jayatvars/balena-chromium-kiosk) from @jayatvars and its working great so far.

Thanks all!
