Auto-Install

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Truevoice
Posts: 12
Joined: Tue Nov 21, 2017 10:55 pm

Auto-Install

Post by Truevoice »

Hi I wonder if anyone can direct me I have added auto install software to my dietpi.txt file and it works really well. Is there a way that I can also install addition software that is not included in the software list like write sudo apt-get install python-dev python-rpi.gpio
Or apt-get install python-dev python-rpi.gpio

and sudo apt-get install python- alsaaudio
or apt-get install python- alsaaudio
on RPI 3 apt-get install python-dev python-rpi.gpio or sudo apt-get install python-alsaaudio

And download a myfilename.py and run it on every restart.

Thanks for this stunning software really works well for me
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Auto-Install

Post by k-plan »

Hi,

never try it myself, but have a look here in dietpi.txt:

https://github.com/Fourdee/DietPi/blob/ ... #L104-L108

Code: Select all

#Custom Script | Requires AUTO_Install_Enable=1
#   Allows you to automatically execute a custom script at the end of DietPi installation.
#   Option 1 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically.
#   Option 2 = Host your script online, then use AUTO_CustomScriptURL=http://myweb.com/myscript.sh , it will be downloaded and executed automatically. | 0=disabled
AUTO_CustomScriptURL=0

Truevoice wrote:list like write sudo apt-get install python-dev python-rpi.gpio
Or apt-get install python-dev python-rpi.gpio
No need for sudo, Automation_Custom_Script.sh setup process run as root.
Truevoice wrote:myfilename.py and run it on every restart
Have a look at dietpi-autostart
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Truevoice
Posts: 12
Joined: Tue Nov 21, 2017 10:55 pm

Re: Auto-Install

Post by Truevoice »

Thank you for your help I did see that.....dont know how to write the script can you help me to a simple template I could use? Would really appreciate that
Post Reply