ahd
Posts: 3
Joined: Thu Apr 09, 2020 11:15 pm

Start a webpage at startup without autologin

Mon Jul 13, 2020 9:06 pm

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

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Start a webpage at startup without autologin

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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

ahd
Posts: 3
Joined: Thu Apr 09, 2020 11:15 pm

Re: Start a webpage at startup without autologin

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.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Start a webpage at startup without autologin

Mon Jul 13, 2020 10:41 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”