Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start "Chromium" automatically on booting the Pi3 with Raspbian JESSIE

I have a problem.

My goal is that the browser will automatically start up in fullscreenmode and don't go to screensaver mode when I reboot the Pi.

The Pi OS: Raspbian Jessie Version: September 2016 Kernel Version: 4.4

I already tried with:

Adding:

@/usr/bin/chromium --kiosk --ignore-certificate-errors --disable-restore-session-state "http://www.domain.com"

to the end of ~/.config/lxsession/LXDE-pi/autostart

and

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

@chromium –kiosk http://www.domain.com

@xset s noblank

@xset s off

@xset –dpms

But nothing worked. And everything I found doesn't work :(

Can someone help me pls.

like image 469
derMatt Avatar asked Nov 08 '16 07:11

derMatt


People also ask

How do I open Chromium on startup?

To make Chromium launch full screen you just need to add --kiosk or use xautomation to send F11. Careful : with this solution, the desktop can be disabled. To keep the desktop on background, you are probably using NOOBs, so you may need to use the LXDE-pi folder : sudo nano /etc/xdg/lxsession/LXDE-pi/autostart.


2 Answers

Okay I fixed it like this now:

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

@xset s noblank

@xset s off

@xset –dpms

@chromium-browser --incognito --kiosk http://www.domain.com

and it works. The funnyest thing is: I tried this allready but then it didn't work. xD

like image 56
derMatt Avatar answered Oct 10 '22 08:10

derMatt


cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart

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

Edit it as

#@xscreensaver -no-splash  # comment this line out to disable screensaver
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --incognito --kiosk http://localhost/ 

Then, reboot it.

sudo reboot
like image 43
onlykalu Avatar answered Oct 10 '22 10:10

onlykalu