Introduction: Start Applications Automatically in Raspberry Pi

This tutorial demonstrates 4 different methods to run GUI/ Non-GUI based application when the Raspberry Pi boots up.

1. Crontab

2. rc.local

3. _file_.desktop

4. init.d folder

test.jar application used in the tutorial : https://goo.gl/tO4sWg

########################

Commands::

1. Crontab:

$ sudo nano cronatb -e Add the following lines @reboot /usr/bin/java -jar /home/pi/Desktop/test.jar

2. rc.local

$sudo nano /etc/rc.local

3. _file_.desktop

Contents:. https://goo.gl/tO4sWg

4. init.d folder:

$cd /etc/init.d

$sudo nano app

app Contentes: https://goo.gl/tO4sWg

$sudo chmod +x app

$sudo rc-update.d app defaults

___________________________________________

Subscribe : http://goo.gl/gM134X

Guys Subscribe to my channel for latest contents into your inbox. Support me to keep going. ___________________________________________

Step 1:

Comments

DIY Hacks and How Tos (author)2016-08-20

Nice raspberry pi tutorial.

Thanks...

About This Instructable

422views

10favorites

License:

Bio: Basically i am a developer. I do work in both hardware and software.I like working on electronics and programming pretty much.Right now i ... More »
More by WearGenius:Getting Started With Onion Omega 2 Using Expansion Dock and Web Interface.Install LUBUNTU OS on Orange Pi Zero | Orange Pi Fetch Data From Websites Using XPATH and PHP
Add instructable to: