You are not logged in.
Hello,
After the latest developments about chrome(-ium) and its privacy, I want to run chromium as a user with /usr/bin/nologin as its shell.
I do the following
# useradd -m -s /usr/bin/nologin chromium
# su -s /bin/sh - chromium
$ export DISPLAY=:0.0
$ chromium
No protocol specified
[3324:3324:0909/212943:ERROR:browser_main_loop.cc(237)] Gtk: cannot open display: :0.0I am not sure as to what to do next to solve my problem.
Offline
Is your $DISPLAY right?
echo $DISPLAYOffline
as user $DISPLAY is :0
as the chromium (no-login) user the $DISPLAY is :0.0
But, as I show at my original paste, I explicitly set it when I change user.
Last edited by redsolja (2015-09-09 19:47:10)
Offline
It's not just the problem with chrome, nothing works in fact with your method.
Offline
I used to have another user set at the system and I was able to switch to that and run chromium and I still can. A possible solution might be to change the login shell of that user to nologin so that I use it just for that, but I would prefer a solution that I actually understand better.
Have you got anything specific to suggest?
Last edited by redsolja (2015-09-09 20:19:48)
Offline
Try executing this before su
xhost +local:Offline