Pi4 Miner auto-start
Hi, is it possible to make PC-Miner and AVR-Miner to auto-start when i boot my Pi4? I use Raspbian with desktop and i cannot find a way to make it possible.
Hello you may be able to use crontab to do this.
If you are on a RPi, take a look at lxsession - I've used it many times before to automatically start programs on boot for my Raspberry Pis. Let me know if this helped!
Whatever i try it starts for a second at the boot and then closes everytime. I can't make it stay on.
Heres a small tutorial:
- run
sudo apt install screen - configure the PC/AVR miner
- do
sudo nano /etc/rc.localand add a line before exit 0 with following contentcd /home/pi/duino-coin && screen -dmS avr python3 AVR_Miner.py. If you want to use the PC Miner, replace AVR_Miner.py with PC_Miner.py and change avr to pc after screen -S. Then press Ctrl + X and press enter. - On the next (re)start the miner should start. You can see the progress by typing
screen -r avr(for PC_Minerscreen -r pc) into a terminal. Hope this helped you!
Clsoing as this is more or less unrelated, no activity and it should be fixed. Feel free to reopen if needed.