Want to automatically launch a full-screen Chrome browser on your Raspberry Pi after it reboots?
If so, then this guide is for you.
Keep in mind, there are a number of different ways to do this. We still want the ability to use the Raspberry PI OS desktop like normal so this is the route we’ve chosen to go with. It’s far the easiest method we could find and is one of the cheapest ways to create a dashboard in your house without needing to hook up an extra computer.
Raspberry Pi Auto Open Website Use Cases
There are a number of reasons you might want to automatically launch a website on startup. This works for both internal URL’s and actual websites.
Here’s some examples:
- View security cameras via URL
- Display SharpTools or Actiontiles dashboard
- Display Google Calendar
- Slack/Teams dashboard
- Server monitoring dashboard
- Plex/Tautulli dashboard
For purposes of this guide, we are using our Raspberry Pi to display our Microsoft Teams Chats via URL.
You will need a Raspberry Pi device loaded with the latest version of Raspberry Pi OS 32-bit with Desktop and recommended software. If you haven’t installed Raspberry Pi OS yet, you can follow our Raspberry Pi OS Installation guide using Balena Etcher.
You also need to connect your raspberry pi to your network/internet.
If you want to purchase the parts separately, here is what we recommend:Amazon product
If you want to purchase everything as a kit, here’s what we recommend:
- KEEP YOUR PROCESSOR COOL: The busier a processor gets, the more it heats up, leading to suboptimal performance. To prevent this common issue, we’ve included a pre-installed and ready-to-connect fan...
- SIZABLE RAM: This Raspberry Pi 4 comes equipped with 4GB of RAM, which is the same amount of RAM many mainstream laptops contain. With 2GB of RAM, your processor will be capable of running retro...
Step by Guide To Automatically Launch URL On Startup with Raspberry PI Os
Before following this guide, we recommend opening this URL from the Chromium web browser on the Raspberry Pi.
Doing that will allow you to copy/paste the code below instead of manually typing it out.
Update your Raspberry PI
1. To update your Rasberry Pi OS, open a terminal and type. Hit enter after the first line.
sudo apt update sudo apt full-upgrade
2. Next, you’ll need to configure the Chromium browser to open websites in full screen. Open a terminal and type this to get to the configuration setting:
3. That should open the hidden configuration directory in your Pi user directory. Next, create the lxsession and lxde-pi directories. If you receive an error, then this folder already exists but if you’re setting up a brand new Pi – it won’t be there yet.
sudo mkdir -p lxsession/LXDE-pi
4. This next line opens a folder called autostart.
sudo nano lxsession/LXDE-pi/autostart
5. Paste the code below into the nano text editor. On the very last line, change the URL to the website you want to automatically open on startup or after a reboot.
@lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi #@xscreensaver -no-splash point-rpi @chromium-browser --start-fullscreen --start-maximized https://teams.microsoft.com/
5. Press CTRL+X to exit the nano text editor. Then press Y, then Enter to accept and save the “autostart” file.
Set default URL in Chromium Settings
During our test, we were able to get Chromium to launch in full screen with the website we specified. If you plan on changing the URL frequently, another route is to NOT specify a URL in the configuration but instead manage it through the Chrome browser.
To do this, you can change the default Chromium URL to https://teams.microsoft.com.
- Open Chromium. (If already maximized, click the X first.)
- Click the 3 dots on the far right to Customize and control Chromium.
- Settings > On Startup > Open a specific set of pages.
- Site Url: https://teams.microsoft.com
Test Automatically Opening Website On Raspberry Pi On Startup
After you’ve created the autostart file and set the default webpage, it’s time to test it out by rebooting your device.
To reboot your Raspberry Pi, click the raspberry icon in the top left corner > Shutdown > Restart.
If all goes well – the URL you specified should launch automatically in a full screen Chromium browser window! You can now display any website in the world as a dashboard for your smarthome, office, or garage.
Now that you are able to get your Raspberry Pi to automatically launch a webpage after it reboots, the last step is to disable screenblanking or turn off the sleep settings.
Other Helpful Articles
- Enable Webmin in Raspberry Pi OS for Remote Administration
- How to stop “Can’t Update Chromium” Message on Raspberry Pi
My Homelab Equipment
Here is some of the gear I use in my Homelab. I highly recommend each of them.
- Server 2019 w/ Hyper-V
- Case: Fractal Design Node 804
- Graphics Card: NVIDEA Quadro K600
- CPU: AMD Ryzen 7 2700
The full list of server components I use can be found on my Equipment List page.