Raspberry Pi - run program at start-up Get your Raspberry Pi to start a script (in my case xmrig) when it started-up, so I wouldn't have to remember to start it every time it was powered up. For details on how to C PU Mining on Raspberry Pi , and more info on setting up a Cluster on Raspberry Pi There are loads of ways of running a command at start-up in Linux but my favoured approach is to create an initialisation script in /etc/init.d and register it using update-rc.d. This way the application is started and stopped automatically when the system boots / shutdowns. Create script in /etc/init.d sudo nano /etc/init.d/NameOfYourScript The following is an example based on starting up the no-ip service [/usr/local/bin/noip], but change the name of the script and the command to start and stop it and it would work for any command. #! /bin/sh # /etc/init.d/NameofYourScript ### BEGIN INIT INFO # Provides: mine # Required-Start: $remote_fs $syslog # Required-Stop:
- Get link
- Other Apps