shindonism
Posts: 20
Joined: Tue Sep 16, 2014 2:34 pm

How to open terminal then run a python program on startup?

Thu Feb 12, 2015 8:10 am

Hello! How do I run the terminal on startup then run

Code: Select all

sudo python /home/pi/Desktop/final/project.py
My project needs to be headless, and I've searched for other how-tos but I can't seem to use my numeric keypad (maybe because program is not run on terminal?)

What I wanted to happen is as soon as the pi boots, the terminal will open then run the program.

BradL
Posts: 2
Joined: Thu Feb 12, 2015 5:26 pm

Re: How to open terminal then run a python program on startu

Thu Feb 12, 2015 8:47 pm

You didn't specify which operating system you are using. If its Raspian, this link may help:

http://www.raspberrypi-spy.co.uk/2014/0 ... e-desktop/

jimallyn
Posts: 51
Joined: Wed Nov 12, 2014 9:13 am

Re: How to open terminal then run a python program on startu

Thu Feb 12, 2015 9:19 pm

This will give you a couple of ways to do it:

http://raspberrywebserver.com/serveradm ... rt-up.html
“So you say you love the poor? Name them.” - Gustavo Gutierrez

Return to “Beginners”