Hot answers tagged

47

I have a Raspberry Pi 2 running Raspbian Jessie with Chromium 45 installed. I found that you need to copy the existing autostart file to your local: mkdir -p /home/pi/.config/lxsession/LXDE-pi/ cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart So edit this local version: nano /home/pi/.config/lxsession/LXDE-pi/autostart ...


30

I've got it! Use --app=your.url For example: chromium-browser --kiosk --app=http://your.url.here


19

There's a fairly plausible sounding explanation for your problem in this thread on the raspberrypi.org forums. /etc/xdg/lxsession/LXDE-pi/autostart That is the global autostart file, and works for all users... unless they have a user autostart. If the user has an autostart file the global one is ignored and the personal autostart is used. User ...


11

It's certainly possible, but it'll require additional hardware. Once the RPi loses power, that's it. Just like your desktop, there's no magical way for the RPi to do anything (like send a notification) once the power is gone. You could add a small UPS to the RPi. There are a few that are even designed specifically for the RPi, like this one. If the power ...


11

Experienced the same issue. Here are my findings: Check if the /home/pi/.config/lxsession/LXDE-pi/autostart file exists. If it exists, it will be used instead of /etc/xdg/lxsession/LXDE-pi/autostart. View logs (after reboot) in /home/pi/.xsession-errors: $ cat .xsession-errors Xsession: X session started for pi at Sat 30 Jul 23:14:04 UTC 2016 localuser:pi ...


6

1) I dunno why --disable-infobars didn't work for you. This works well for me: chromium-browser --kiosk --disable-infobars \ http://URL1 \ http://URL2 \ http://URL3 2) A better way to refresh the browser (contents) would be to sent it Control-R? e.g. in your browser startup script, do: (while sleep 200; do xdotool key ctrl+R; done) & (I also send ...


5

By default the Pi the auto-logon X environment is done with credentials of the pi user. The config setting's of the Xserver environment of this user is in /home/pi/.config/lxsession/LXDE-pi/autostart, NOT in /etc/xdg/lxsession/LXDE-pi/autostart (this is the environment for the root user).


5

I learned about nodm today from this answer, to a question that is only a slight variation on this one. "Nodm" sounds clever and likely works on almost any distro; I notice the Arch linux wiki has a page about it with some additional useful information -- most significantly the point about disabling (other) display managers (this is not a recommendation to ...


5

For those arriving here from Google: The best way to now perform this task, without having to use incognito, is to adjust two settings in the Chromium preferences. They are: exited_cleanly exit_type From what I have gathered from personal tests, just changing the "exited_cleanly" setting may not always work at preventing the Chromium prompt on ...


4

If you google around you'll find several. The first that comes to my mind is slice. I would argue that it's not an optimal platform for a commercial product, but it's clearly possible and has been done.


4

I know this doesn't really solve the issue - but as a work-around - it did the trick for me. I made sure Chrome was shut down cleanly... Opened terminal cd .config/chromium/Default chattr +i Preferences This makes the file immutable... strictly read-only, Chrome can crash as much as it likes - it wont show the popup as the Preferences file can no longer ...


3

Are there any way to make X server to load/show its root window already with an image in it? Probably not completely, but keep reading. Although the 3 is the fastest pi, it is still not something that is on a par with, e.g., current x86-64 processors. You could compare this to your smartphone. I have a fairly new, fairly fast, Snapdragon "octocore" (8 ...


3

I was quite amused and surprised to find a Raspberry Pi sitting in the rack-mountable case for a PBX I recently bought— it's the XorCom Spark CXS1000. It handles calls over VoIP and Analog phone lines for a small business. You can see the Pi in the PDF getting started guide on the final page, the Pi is the board on the right (you can just make out the ...


3

Yesterday I downloaded NOOBS and created a new micro SD installer. After Raspian installation everything looked OK at first until I looked at autostart. I found that the folder /home/pi/.config/lxsession did not exist so I created it and the folder /home/pi/.config/lxsession/LXDE-pi. I then created the file autostart as an empty file and added my autostart ...


3

I finally managed to find a good guide to get Jessie Lite up and running without booting to desktop as default. You still need to run Xserver to managed the windows, and you can use LightDM to manage the startup process. There are some other driver installs which optimize video performance on the ARM processor. The big thing to pay attention to is that the ...


3

Ok so there is virtually no info about how to successfully pair xscreensaver and omxplayer, so I took it as a challenge and came up with a workaround, that actually works. :D What needs to be done: Set xscreensaver to blank and set the "Blank After" to time you want the screensaver to kick in... http://i.imgur.com/ZCrVO78.png Create a small script and ...


3

Perhaps the easiest solution would be to install an auto refresh extension in chromium itself. Alternatively, this SO answer suggests the following JS code to reload current page every 15 minutes: javascript:_x=setInterval(function(){open(location.href, 'otherWindow')}, 1000*60*15) Copy this code into your address bar and hit Enter. To stop refreshing, ...


3

I've found the solution. If you want to remove the 4 raspberry logos on startup: - Open the file /boot/cmdline.txt. - Add a space and logo.nologo to the end. If anybody wants to remove the Pixel wallpaper at the startup, remove the "splash" word in the same file. And also you can make console=tty4 if you want to push the logs to the fourth virtual ...


3

By definition, Kiosk mode only allows for one tab and no access to the browser chrome. Possible Solutions: The easiest way around this would probably be to create your own webpage that has HTML tabs and embeds your vendor pages in iframes. Create a browser plugin (or utilize something like greasemonkey) that inserts the solution or something that ...


3

The Unit file looks very good for a program to start as service. systemd runs services automatically in the background. But your script is sending unclutter and chromium-browser to the background additional using &. After doing that the bash script terminates successful with exit code 0 and that is what systemctl status show you with: Process: 1417 ...


3

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. ...


2

You should edit ~/.config/lxsession/<profile>/autostart if you have it, or make sure it is removed if you need a global LXSession configuration for all users. If you happen to have both files, the global configuration will be ignored: Commands globally executed are stored in the /etc/xdg/lxsession//autostart file, and in addition, other commands can ...


2

I was able to solve the problem with a cron task. First I installed the packages: sudo apt-get install gnome-schedule The I edited the crontab via: crontab -e I added a task after each reboot where I put the browser startup: @reboot /home/pi/startupscript &


2

According to feh's documentation, the solution is fairly simple. If you add the parameter -R n (where n is an integer), it will automatically reload from the specified directory every n seconds.


2

The way I have set up my Pi to run Iceweasel fullscreen on startup is to use xdotool to simulate the F11 key (fullscreen mode). Edit ~/.config/lxsession/LXDE-pi/autostart. Mine looks like this: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @sh /home/pi/start.sh In start.sh I created a script that launches ...


2

I posted this question on Unix SE too in case it wasn't Pi-specific enough or people there had an idea. There was an answer from Gilles that is the only solution so far I've had work. I'm re-posting it here for others: taken from https://unix.stackexchange.com/a/272726/84496 Firefox stores the size of the last window in the profile. As of Iceweasel 38, the ...


2

there are several addons for firefox that give you the features your probably need like fullscreen, no url bar and more... for example try this addon: r-kiosk the browser will start in fullscreen and or without controls you can easily setup the plugin to get use of a bunch of features. just give it a try.


2

I get it. The matchbox-keyboard has to be call with --daemon parameter: matchbox-keyboard --daemon &


2

I resolved the problem in half. In order to display an image on the framebuffer console when raspberry pi boots you need to compile the kernel with your image. The default image is located at: ~/linux/drivers/video/logo/logo_linux_clut224.ppm You need to have your image in jpeg/png etc. then you need to use netpbm to convert the image to ppm. Use the ...


2

I use Arch Linux + Openbox + Crontab + Surf + OMXPlayer. In my case (video-advertising installed inside gyms, shops, ..) I have customers ads spots running over an HTML page used as background with news, weather info and date-time. Automated Power On Steps: - wifi connection - login - start Openbox - start surf (browser) in fullscreen mode - run omxplayer ...


Only top voted, non community-wiki answers of a minimum length are eligible