1

so i'm trying to make it so i can just plug in my raspberry pi. It will automatically login to the user "pi" then run a script which starts a screen under a certain name and runs a python file within that screen.

I have followed this tutorial, but am unsure weather or not it has worked and not sure how to test it.

I edited /etc/profile and added the line

. /home/pi/autoStartSafeMonitor.sh

to it and in that sh file i have

#!/bin/bash -e
screen -d -m -S SAFE /home/pi/CONTROL-AUTO.py

I rebooted my pi and the script detected an rfid scanner input and changed a servo, this script works when i run it manually but it does not seem to be activated when the pi boots up. Any help?

migrated from serverfault.com Jun 1 '17 at 6:29

This question came from our site for system and network administrators.

1

My recommendation is to install your script as a service on the system and not disable login.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.