1

I am trying to open and view a website in chromium on the startup of the Pi. Currently, I have it in the /.config/lxsession/LXDE-pi/autostart file to open chromium when the system starts, but this happens much too late. It shows the normal desktop for several seconds before the browser opens up.

I'm not dependent on chrome if that is an issue, I just need a browser that can open the site without showing anything on the desktop. Is there a way to achieve this effect?

Edit:
It should be noted, I followed this tutorial but nothing displayed correctly and just generally wasn't doing what I wanted it to do.

  • 1
    You need to config the raspberry pi in kiosk mode. Follow this procedure to achieve this goal. The link you added has some problems. – M. Rostami Jan 24 at 16:46
  • @M.Rostami Thanks for the response, but that doesn't solve my issue. Following that procedure, the desktop screen still shows up before chromium launches. – Tmello225 Jan 24 at 19:43
  • 1
    If your goal is to show the desktop for as short a time as possible (preferably zero seconds), you'd be better off using Raspbian Lite. With Lite you can install a minimal window manager, such as icewm, twm, etc. These window managers are might lighter weight than Raspbian desktop, so they will start more quickly, and some of them can be configured to have little, if any, bits showing on the desktop. – bls Jan 26 at 16:11
0

Following on with a comment and one possible real answer. First, you didn't say whether this was for a dedicated configuration (e.g., only runs the browser) or a general purpose case, where you simply care about how fast the browser starts. I assumed a dedicated configuration, based on your description. This answer addresses the dedicated configuration.

First, install a minimal X11 configuration and browser: sudo apt install xserver-xorg xserver-xorg-core xserver-common icewm icewm-themes xterm x11-apps xfonts-base xfonts-100dpi xfonts-75dpi xfonts-scalable chromium-browser firefox-esr

I'm suggesting that you use icewm for a window manager because it's lightweight and configurable. There are several good window managers, so feel free to use a different one.

Next, in your login directory (e.g., /home/pi for the pi user):

mkdir .icewm
cd .icewm
echo "ShowTaskBar=0" > preferences
echo "#!/bin/bash" > startup
echo "firefox & " >> startup     # Change the browser command as desired
chmod 755 startup

To get it all started, type startx after you login.

If you'd rather no use a window manager at all, you can create the file ~/.xinitrc with the contents exec firefox (or other browser). This will start the X11 server running the browser (and nothing else).

Of course, you may want to have the graphical environment come up automtically when you start the system. If that's the case, there's a bit more to do. Please clarify the completely problem you're trying to solve.

| improve this answer | |
0

I think is the best option to install raspbian lite, without desktop. you can launch chromium, without showing desktop. Also you can hide all boot messages and make custom splash screen.

| improve this answer | |
  • How can this be done? – Ingo Mar 9 at 10:15
  • I can past you a link, where some people allready done that. If any further info is needed, please ask. Raspbian lite: die-antwort.eu/techblog/… Remove splash screen, custom splash screen: scribles.net/customizing-boot-up-screen-on-raspberry-pi – douce Mar 9 at 11:37
  • 1
    We're looking for long answers that provide some explanation and context. Whilst this may theoretically answer the question, it is preferable to include the essential parts of the answer here, and provide the link for reference. Please edit so that the answer stands on its own should the link break in the future. – Ingo Mar 9 at 11:49
  • It can be done. You want to run the Xorg server with a xinit.rc or equivalent that starts only one application (the browser) rather than the desktop environment, which is actually a layer on top of Xorg, and not compulsory to use (plain X is a black screen with a mouse pointer). – goldilocks Mar 9 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.