Megaleecher.Net

Making technology work for you...

Get Your Free Subscription By Email:

Starting Applications and Services On Raspberry Pi Boot

Autostarting Applications and Scripts After Launch Of LXDE GUI

We can launch applications and scripts as services during boot at various Linux run-levels as demonstrated earlier, however at-times we need to launch applications or perform scripted tasks only after the Graphical interface is loaded. For example in my usage scenario with Debian running on a Raspberry Pi, few services were failing to work as expected when launched using inti.d method as they require the host to be properly connected to the internet which only happened (in my usage scenario) after the GUI started loading.

Here is another handy way to auto-launch applications and scripts in a similar manner to "autostart" in Windows, we will be using LXDE "/home/pi/.config/autostart" folder to create shortcuts which will launch our executable after GUI starts loading.

LXDE autostart

Launching Scripts and Applications on Raspberry Pi Boot

Users world-over are tweaking there way into Raspberry Pi making multitudes of things, like low energy consuming dedicated downloader, media center, Network Attached File-server (NAS), weather station, home-automation and robotics. To do all this tinkering, you will frequently need to make sure applications are launched when the Raspberry Pi is restarted.

Follow this simple tutorial to create services which will automatically launch at Debian boot. We will be using the Linux standard init.d method to launch our applications as services during various run-levels.

init.d folder
This is just one of the many helpful tips we have posted, You can find more stories here,
Do subscribe to updates using your favorite RSS feed reader or using the secure FeedBurner email update form on top of this post.