BitShares Forum

Other => Graveyard => BitShares PTS => Topic started by: Hurlie on December 14, 2013, 03:31:37 pm

Title: Cloud Mining under Debian / DigitalOcean
Post by: Hurlie on December 14, 2013, 03:31:37 pm
Hello,

I'm a newbie from germany, using windows.
Excuse my english (Sometimes missed the school:)

It was a little bit tricky for me, to start the machine on DigitalOcean.
But finally I succeded:)
The machine is running now under Debian 7.

I have the following questions:

1.
I use the program "putty", to establish a connection to my machine.
This seems to be the "standard" program, to make a ssh connection?

Over this connection I can start the miner. Works pretty well.
But after a few hours (sometimes after a few minutes), the connection coincidentally breaks down
with a network error. I'he tried it at home and at the office.

I assume, that  this causes the miner to stop.
Because: When I establish a new connection and type "top" in the console,
no miner is running.

That's frustrating, for I pay for the time, I own the machine, and not for the time,
the miner is running.

My Question:

Is there a way, to keep the miner running, even, when there is no connection?

Thanks a lot for your help.

Hurlie

















Title: Re: Cloud Mining under Debian / DigitalOcean
Post by: Gekko on December 14, 2013, 04:01:19 pm
Add "nohup" to your command line.
e.g.:
if you type
miner.sh -option1 -option2
you instead type
nohup miner.sh -option1 -option2
Title: Re: Cloud Mining under Debian / DigitalOcean
Post by: r05 on December 14, 2013, 04:18:47 pm
Hello,

I'm a newbie from germany, using windows.
Excuse my english (Sometimes missed the school:)

It was a little bit tricky for me, to start the machine on DigitalOcean.
But finally I succeded:)
The machine is running now under Debian 7.

I have the following questions:

1.
I use the program "putty", to establish a connection to my machine.
This seems to be the "standard" program, to make a ssh connection?

Over this connection I can start the miner. Works pretty well.
But after a few hours (sometimes after a few minutes), the connection coincidentally breaks down
with a network error. I'he tried it at home and at the office.

I assume, that  this causes the miner to stop.
Because: When I establish a new connection and type "top" in the console,
no miner is running.

That's frustrating, for I pay for the time, I own the machine, and not for the time,
the miner is running.

My Question:

Is there a way, to keep the miner running, even, when there is no connection?

Thanks a lot for your help.

Hurlie
Hello again Hurlie,
Like the above poster said, you can use the Linux command "nohup" to send the command to the background. However another way - and arguably a more accessible way (if you wanted to quickly access or monitor the miner) is to use "screen".

Quote
screen ./ptsminer <wallet id> 4

This would start the miner in a new screen.

To 'minimize' this screen, press CTRL+A and then CTRL+D. The screen should minimize dropping you to a normal shell prompt. To recall the screen, type "screen -r" and hit enter. This will recall it again, as if you never closed the window.

Normal practice would be to SSH in using PuTTY, do the "screen ./ptsminer.........." command and then CTRL+A and CTRL+D to minimize it, and then quit PuTTY. The miner will run and you can SSH in and recall it with "screen -r" at any time to check on its status.
Title: Re: Cloud Mining under Debian / DigitalOcean
Post by: Hurlie on December 14, 2013, 04:57:04 pm
Hello r05,

Thanks, that helps a lot.

Another question from a Debian newbie.

When calling the miner, I change to the scr-directory by: cd ~/ptsminer/src
Then I start the miner by ./ptsminer <...> 4

What does the "./" stand for.
Under Windows it is the current directory.
So under windows also :ptsminer <...> 4 will work.

But under Debian I got the message "command not found".

If I type "ls -lh" , there is, beside the sourcefiles, a file called  "-rwxr-xr-x ... ptsminer", without extensions.

But where is the executable?

Sincerly

Hurlie


Title: Re: Cloud Mining under Debian / DigitalOcean
Post by: sva_h4cky0 on December 14, 2013, 05:49:01 pm
Hello r05,

Thanks, that helps a lot.

Another question from a Debian newbie.

When calling the miner, I change to the scr-directory by: cd ~/ptsminer/src
Then I start the miner by ./ptsminer <...> 4

What does the "./" stand for.
Under Windows it is the current directory.
So under windows also :ptsminer <...> 4 will work.

But under Debian I got the message "command not found".

If I type "ls -lh" , there is, beside the sourcefiles, a file called  "-rwxr-xr-x ... ptsminer", without extensions.

But where is the executable?

Sincerly

Hurlie


well that's to avoid path problem
let say, you put ptsminer binary on /home/username/ptsminer/src/
there's several ways to run binary

"/home/username/ptsminer/src/ptsminer <command options>"
similar to
"~/ptsminer/src/ptsminer <command options>"

or
"cd /home/username/ptsminer/src" then "./ptsminer <command options>"
dot (.) here represent /home/username/ptsminer/src

or
copy your binary to /usr/bin/ then run "ptsminer <command options>"

unix binary dont have extension like windows (.exe)

btw im using tmux instead of screen.
login to your vps, run tmux, run your miner, then detach tmux by ctrl+b+d, exit putty
next time you just simply login to your vps then run "tmux attach" to open last session where your miner still running all the time.
Title: Re: Cloud Mining under Debian / DigitalOcean
Post by: Hurlie on December 15, 2013, 12:02:36 pm
Hello ro5,

Tnx again.

I'm now using tmux. Works good for me:)

Yet another question:
 I'm running a droplet with 8GB / 4 CPUs.

The miner is downloaded with: git clone https://github.com/thbaumbach/ptsminer

I'm running the miner with 4 threads and got about 45-50 c/m.
Is this a good value?

Makes it sense, to encrease the number of threads?

What is your speed?

At home I'm running now an Intel I7-3770T at 2.5 GHz.
Here the speed is 110 c/m with 8 threads.
Thats more than the double speed.

Have a nice sunday,


Hurlie