Bitcoin Forum

Bitcoin => Mining support => Topic started by: Pablito89 on September 26, 2013, 01:21:15 PM



Title: How to autostart bfgminer at Raspberrypi start
Post by: Pablito89 on September 26, 2013, 01:21:15 PM
Hey guys, i usually do these commands into the terminal for get bfgminer starts on Raspbian on my Raspberry:

cd
cd bfgminer
sudo ./bfgminer url -u user -p pass -S all

How could i automatize that?


Thanks :)


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Zanatos666 on September 26, 2013, 04:43:03 PM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Pablito89 on September 26, 2013, 07:26:21 PM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I

I did the first step, but "systemctl" command is not found


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Zanatos666 on September 26, 2013, 07:36:53 PM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I

I did the first step, but "systemctl" command is not found

Try this first

sudo apt-get update
sudo apt-get install systemd

Once you do that, try running those commands again.


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Pablito89 on September 26, 2013, 07:43:28 PM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I

I did the first step, but "systemctl" command is not found

Try this first

sudo apt-get update
sudo apt-get install systemd

Once you do that, try running those commands again.

Now on

sudo systemctl enable bfgminer.service

Operation failed: No such file or directory


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Zanatos666 on September 26, 2013, 08:10:28 PM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I

I did the first step, but "systemctl" command is not found

Try this first

sudo apt-get update
sudo apt-get install systemd

Once you do that, try running those commands again.

Now on

sudo systemctl enable bfgminer.service

Operation failed: No such file or directory

Odd....try:

sudo unmask bfgminer.service

Then try and enable and start it agian.  If not, then its over my head.


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: Pablito89 on September 27, 2013, 07:35:13 AM
First I would run bfgminer as you stated above, then once its started type S to display the settings, then type W to write a config file.  This should save it for you so next time all you have to do is just start bfgminer without the -S all afterwards (I could be wrong, never done it that way, but seems like what you would do).

Now, auto starting is the next step. I know this works for Minepeon, but I dont know about Raspbian, but they are similar so why not give it a try.

Try:

sudo systemctl enable bfgminer.service
sudo systemctl start bfgminer.service

Reboot and see if that works.  I

I did the first step, but "systemctl" command is not found

Try this first

sudo apt-get update
sudo apt-get install systemd

Once you do that, try running those commands again.

Now on

sudo systemctl enable bfgminer.service

Operation failed: No such file or directory

Odd....try:

sudo unmask bfgminer.service

Then try and enable and start it agian.  If not, then its over my head.

command not found.
ty anyway bro.


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: wetjet43 on November 02, 2013, 02:27:17 AM
What is the right way to start bfgminer as a service? "systemctl enable bfgminer.service" doesn't work.
Thanks.


Title: Re: How to autostart bfgminer at Raspberrypi start
Post by: poonasor on February 14, 2022, 07:19:43 AM
has anyone found a way to do this?

tried using a shell script to start the miner

Code:
#!/bin/bash
/home/pi/moonlander2/bfgminer_5.4.2-futurebit2_linux_armv6/start_moonlander2.sh

but all I keep getting this:

Code:
 ./bfgminer: No such file or directory

it works fine when I try to start
Code:
./start_moonlander2.sh
inside the directory but just wont start with the shell script