duino-coin icon indicating copy to clipboard operation
duino-coin copied to clipboard

Pi4 Miner auto-start

Open link3384 opened this issue 5 years ago • 5 comments

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.

link3384 avatar Oct 23 '21 18:10 link3384

Hello you may be able to use crontab to do this.

primitt avatar Oct 23 '21 20:10 primitt

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!

Tech1k avatar Oct 23 '21 22:10 Tech1k

Whatever i try it starts for a second at the boot and then closes everytime. I can't make it stay on.

link3384 avatar Oct 24 '21 09:10 link3384

Heres a small tutorial:

  1. run sudo apt install screen
  2. configure the PC/AVR miner
  3. do sudo nano /etc/rc.local and add a line before exit 0 with following content cd /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.
  4. On the next (re)start the miner should start. You can see the progress by typing screen -r avr(for PC_Miner screen -r pc) into a terminal. Hope this helped you!

BastelPichi avatar Oct 29 '21 14:10 BastelPichi

Clsoing as this is more or less unrelated, no activity and it should be fixed. Feel free to reopen if needed.

BastelPichi avatar Nov 04 '21 17:11 BastelPichi