Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Systemd #4

wants to merge 3 commits into from

Conversation

jacobrosenthal
Copy link

Close #1 #2 and maybe #3

Copy link

@kazazes kazazes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still had to set the DBUS address manually in the start script to stop a bunch of errors:

export DISPLAY=:0.0
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket

Got xf86OpenConsole: Cannot open virtual console 8 (Permission denied) and fixed with this. Note adding chromium to tty group as well.

# changing xwrapper config to run for any user
echo "allowed_users=anybody" >/etc/X11/Xwrapper.config
echo "needs_root_rights=yes" >>/etc/X11/Xwrapper.config

useradd chromium -m -s /bin/bash -G root,tty

Also, on buster and jessie (which is what the balena template gives me) the package is chromium not -browser

@jacobrosenthal
Copy link
Author

jacobrosenthal commented Jul 27, 2019 via email

@kazazes
Copy link

kazazes commented Jul 27, 2019

@jacobrosenthal it handles inter-process comms for the entire device.

Also, forgot to say I had to add chromium-sandbox to run as non-root.

@jacobrosenthal
Copy link
Author

jacobrosenthal commented Jul 27, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chromium crashes after boot.
2 participants