2

Here is what I am trying to achieve:

When I startup my Pi 3 I would like it to directly launch into Firefox in fullscreen-mode directly. Or more specifically - no edges like toolbars etc., just the webpage.

I´m going to use a screen to show my own calendar and health status. And the idea is not to have a mouse or keyboard connected.

Has anyone done this before?

I´m starting to work on my own solution, but if someone has already done this I would appreciate the help.

techraf
  • 4,353
  • 10
  • 32
  • 43
joedwardson
  • 21
  • 1
  • 1
  • 3

2 Answers2

2

I've done this with chromium, should be similar for firefox.

sudo nano start.py

Contents of new file:

import os
os.system("chromium-browser --kiosk http://localhost/")

Then edit bashrc

sudo nano ~/.bashrc

Added to bottom of file:

DISPLAY=:0 python start.py &

Running

source ~/.bashrc

Should test whether the new file works. Try replacing chromium-browser with firefox. If that doesn't work you could always use chromium.

Tom Lee
  • 33
  • 1
  • 5
1

I have answered this before here

If you are using Jessie then there should already be an existing folder for LX-Session. The folder is the following:

/home/pi/.config/lxsession

if you are using an older version then you can create it using:

mkdir -p /home/pi/.config/lxsession

Now, you can create a file :

nano /home/pi/.config/lxsession/autostart

add the tag in the file of your browser:

 @firefox-esr (@iceweasel) # whichever you are using

press CTRL+O and CTRL+X

then reboot your Pi:

 sudo reboot

This should get your browser working on reboot of Pi.

Notes:

try installing the firefox-esr using:

sudo apt-get install firefox-esr

Try finding autostart file in the lxsession/ folder,

for some Pis it is in

  ~/.config/lxsession/LXDE-pi/

or

   ~/.config/lxsession/LXDE/

To have FireFox perform a clean start up. Need to go to about:config and search for exit then toggle " browser.helperApps.deleteTempFileOnExit " to false on reboot FireFox will open clean.

Shan-Desai
  • 1,541
  • 2
  • 13
  • 28