Page 1 of 1

Start a webpage at startup without autologin

Posted: Mon Jul 13, 2020 9:06 pm
by ahd
Hi everyone,

I want to run the chromium-browser command automatically at startup. But when I try to start chromium-browser I get "cannot open display" error.
I can open a webpage by autologin with the following commands.
How can I show a web page with chromium-browser without desktop autologin?

Code: Select all

sudo nano .config/lxsession/LXDE-pi/autostart

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@chromium-browser --start-fullscreen http://google.com

Re: Start a webpage at startup without autologin

Posted: Mon Jul 13, 2020 10:21 pm
by klricks
ahd wrote:
Mon Jul 13, 2020 9:06 pm
..........
How can I show a web page with chromium-browser without desktop autologin?
...
Use the GUI Raspberry pi config tool or sudo raspi-config to disable auto login.
The OS will then wait for you to enter your password before starting the desktop and running the autostart.
Make sure you did not choose boot to the CLI.

Re: Start a webpage at startup without autologin

Posted: Mon Jul 13, 2020 10:36 pm
by ahd
klricks wrote:
Mon Jul 13, 2020 10:21 pm
ahd wrote:
Mon Jul 13, 2020 9:06 pm
..........
How can I show a web page with chromium-browser without desktop autologin?
...
Use the GUI Raspberry pi config tool or sudo raspi-config to disable auto login.
The OS will then wait for you to enter your password before starting the desktop and running the autostart.
Make sure you did not choose boot to the CLI.
Thanks for your answer. However, I want to open the webpage without manual login or autologin.

Re: Start a webpage at startup without autologin

Posted: Mon Jul 13, 2020 10:41 pm
by DougieLawson
ahd wrote:
Mon Jul 13, 2020 10:36 pm
klricks wrote:
Mon Jul 13, 2020 10:21 pm
ahd wrote:
Mon Jul 13, 2020 9:06 pm
..........
How can I show a web page with chromium-browser without desktop autologin?
...
Use the GUI Raspberry pi config tool or sudo raspi-config to disable auto login.
The OS will then wait for you to enter your password before starting the desktop and running the autostart.
Make sure you did not choose boot to the CLI.
Thanks for your answer. However, I want to open the webpage without manual login or autologin.
You can't do that. The Xwindows system either needs an autologin or a manual login.

You can login with ANY valid userid, including one with restricted privileges.