BitShares Forum

Other => Graveyard => BitShares PTS => Topic started by: JohnD on November 16, 2013, 12:08:58 pm

Title: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: JohnD on November 16, 2013, 12:08:58 pm
Hello,

Regarding to my personal experience: Ubuntu is about 5-10% faster compared to Windows Server and it is easier (just faster) to setup the miner.

Quick Guide:

1) Register for Windows Azure Trial (you need a credit card) and login on the portal (manage.windowsazure.com)

2) Create an extra large (8 core, 14 GB RAM) Ubuntu 13.10 server (it takes about 5 minutes until it is online). You can also create directly 2 extra large and one large machine (20 core maximum for the trial).

3) Click on the virtual machine --> Dashboard and look for the public IP. Connect with putty (or another SSH client). Username: azureuser .

4) Setting up ypool miner:

Code: [Select]
sudo -s
apt-get install -y build-essential git screen htop
git clone https://github.com/Tydus/jhProtominer -b linux-port
cd jhProtominer/src/jhProtominer
make CFLAGS="-O3 -march=native"
screen
./jhProtominer -O ypool.net:8081 -u [UserName.Workername] -p [password] -m512 -t 8

You can detach the screen with Control+A - Control+D (directly after each other).
You can resume the screen to check if the worker is still running with "screen -r" on the terminal.
The command htop shows you the cpu usage.

The whole process takes about 10 minutes.

Edit:
Coyote Fallback if ypool is down

You can switch to coyote easily if ypool is down:

Code: [Select]
screen
wget http://the-iland.net/static/downloads/ubuntu12_coyote_miner.0.3.0.tar.gz
tar -xzvf ubuntu12_coyote_miner.0.3.0.tar.gz
./ubuntu12_coyote_miner.0.3.0 162.243.45.158 [YourPayoutAddress] 8
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: BartV on November 16, 2013, 05:33:00 pm
A very small correction ;)

to use 'screen':
when in screen you need to press ctrl+a to be able to send command to screen itself, after ctrl+a, pressing d detaches (not ctrl+d).
I you want multiple terminals use c as command (always first ctrl+a)
to switch between screen terminals use p (again, after ctrl+a)

Nice guide.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: solaaire on November 16, 2013, 05:34:11 pm
thank you so much for the guide! sent a small donation your way :-)

i am very new to linux and cloud mining in general. After i had successfully gotten a few debian digital ocean miners up and running, thanks to a guide, i got a bit cocky and decided to sign up for the azure trial a couple of days ago... after trying and failing miserably for hours to adapt the terminal commands to work on ubuntu i had finally given up on doing it myself. this is a lifesaver! thanks again.

edit: just wanted to add that after fiddling with the 'screen' command, i must say it is quite useful!
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: JohnD on November 17, 2013, 10:17:38 am
A very small correction ;)

to use 'screen':
when in screen you need to press ctrl+a to be able to send command to screen itself, after ctrl+a, pressing d detaches (not ctrl+d).
I you want multiple terminals use c as command (always first ctrl+a)
to switch between screen terminals use p (again, after ctrl+a)

Nice guide.

Thanks for the correction :)
I am using screen everyday for 8 years now and just noticed that i have obviously no idea what my fingers are doing there  ;) .

@solaaire
Thanks for your donation.

 
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: smokim11 on November 17, 2013, 01:15:28 pm
Awesome guide, I figured out how to run ypool on linux but forgot to save the commands on a notepad. Glad you posted them.

I think you should also post for the new miner listed on ypool also. Heard it was faster giving 10% extra col/min.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: BartV on November 17, 2013, 02:04:26 pm
Awesome guide, I figured out how to run ypool on linux but forgot to save the commands on a notepad. Glad you posted them.

I think you should also post for the new miner listed on ypool also. Heard it was faster giving 10% extra col/min.

Which one are you talking about? Can you link to the post?

If it is just another branch of Tydus, you can normally just replace
Code: [Select]
git clone https://github.com/Tydus/jhProtominer -b linux-portby
Code: [Select]
git clone https://github.com/Tydus/jhProtominer -b branchname
branchname can be  any on https://github.com/Tydus/jhProtominer/branches so  I guess you mean sph?
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: timegrinder on November 17, 2013, 02:33:23 pm
It's this one here:
https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz (https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz)

It's optimised to your CPU (I'm assuming it does some instruction stuff above normal) and comes in 8M-1024M flavours for Windows, and 8M-2048MB flavours for linux it seems.

On my machine (Core-i7 (no AVX)) I get ~98Col/min with Tydus on 4096M but this one on 1024 gives me 140col/min.

The linux one run on one of Azure's virtuals (4 thread 1024M) gets 52, whereas Tydus' linux-port was only giving me ~35.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: hjlow on November 18, 2013, 12:52:12 am
It's this one here:
https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz (https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz)

It's optimised to your CPU (I'm assuming it does some instruction stuff above normal) and comes in 8M-1024M flavours for Windows, and 8M-2048MB flavours for linux it seems.

On my machine (Core-i7 (no AVX)) I get ~98Col/min with Tydus on 4096M but this one on 1024 gives me 140col/min.

The linux one run on one of Azure's virtuals (4 thread 1024M) gets 52, whereas Tydus' linux-port was only giving me ~35.

can someone post mirror please?
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: m0rph on November 18, 2013, 12:45:28 pm
It's this one here:
https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz (https://www.dropbox.com/sh/jvp4wwek8jpohj7/RlW6hzYqTz)

It's optimised to your CPU (I'm assuming it does some instruction stuff above normal) and comes in 8M-1024M flavours for Windows, and 8M-2048MB flavours for linux it seems.

On my machine (Core-i7 (no AVX)) I get ~98Col/min with Tydus on 4096M but this one on 1024 gives me 140col/min.

The linux one run on one of Azure's virtuals (4 thread 1024M) gets 52, whereas Tydus' linux-port was only giving me ~35.

can someone post mirror please?

Here you go:

I've only got the one I downloaded to begin with (Core i7, no AVX) which contains multiple binaries based on memory footprint per thread.

http://www.filedropper.com/jhprotominer-yvg1900-m7c-win64-corei7 (http://www.filedropper.com/jhprotominer-yvg1900-m7c-win64-corei7)

If you're not on a recent (ish) Core-i architecture this probably won't work / be useful for you.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: JohnD on November 18, 2013, 01:29:44 pm
Does somebody have the AMD versions of the optimized miner?
I made a mistake and lost my one...
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: m0rph on November 18, 2013, 02:16:52 pm
Does somebody have the AMD versions of the optimized miner?
I made a mistake and lost my one...

I'm really hoping for this as well.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: timegrinder on November 18, 2013, 02:20:37 pm
Hopefully someone over at yPool has noticed that the link to their miner is down and fixes it.

The original set included a full range of AMD/Intel optimised miners, though if anyone knows how to contact yvg1900 you might want to let them know.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: BartV on November 18, 2013, 02:39:57 pm
They did:
see http://bitsharestalk.org/index.php?topic=449.msg8476#msg8476
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: Polke on November 19, 2013, 04:05:04 pm
Great post.

Is there a way to update the protominer?
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: solaaire on November 19, 2013, 06:13:13 pm
any tips to get beeeeer's pool working on azure? i tried transplanting and frankensteining commands I was using on AWS (running ubuntu 13.10 as well) but I cannot figure it out! 
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: JohnD on November 19, 2013, 06:15:27 pm
any tips to get beeeeer's pool working on azure? i tried transplanting and frankensteining commands I was using on AWS (running ubuntu 13.10 as well) but I cannot figure it out!

Setup with Debian 7.

edit:

Howto setup on Debian 7 (copied from another thread)
Code: [Select]
sudo apt-get update
sudo apt-get install -y git make g++ build-essential libminiupnpc-dev
sudo apt-get install -y libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix

git clone https://github.com/thbaumbach/ptsminer
cd ~/ptsminer/src
make -f makefile.unix
./ptsminer <your PTS address> <number of threads>
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: solaaire on November 19, 2013, 06:49:22 pm
Thanks again! I didn't even realize you could upload your own images to azure... makes a lot of sense in retrospect. The commands even worked on  ubuntu 13.10 servers i already had running.

The most embarrassing part is that i have actually been using the commands you just posted to mine on debian via digital ocean for the last week. DOH!

EDIT: Ha! Figured out my problem.. Turns out I had tried these commands before however I had an extremely out of date version of ptsminer so the -f makefile command wasn't working. Updated to v.06 of the miner and it's all good now :)
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: kenpodragon on November 19, 2013, 07:33:31 pm
Here's a quick way to get coyote running on your ubuntu server. There are some library dependancies in there you need.

Code: [Select]
sudo apt-get install -y git make g++ build-essential libminiupnpc-dev git build-essential htop libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev libminiupnpc-dev git libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix screen
wget -O ub http://the-iland.net/static/downloads/ubuntu12_coyote_miner.0.3.0.tar.gz
tar xvzf ub
screen -d -m -S ubuntu12_coyote_miner.0.3.0 COYOTESERVER YOURWALLETID `cat /proc/cpuinfo | grep processor | wc -l`
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: runderwo on November 23, 2013, 11:18:33 pm
The free trial says $200 worth but for 29 days... is it just time limited or will they begin silently charging at some point as well?

Edit: ok used the calculator here.
http://www.windowsazure.com/en-us/pricing/calculator/?scenario=virtual-machines

Looks like you get about 31 hours of 2x8 core + 4 core linux to use up the $200 credit.
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: HCarvalho on November 24, 2013, 12:02:28 am
I got about five days worth of mining in each of azure accounts, 2x8 cores, 1x4 cores, windows 2012
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: runderwo on November 24, 2013, 12:21:26 am
Doh, I calculated with the A7 and A6 prices instead of the XL and L size instances that I actually set up.  Thanks.

Looks like you get .96+.24/hr=1.20/hr  $200/1.20 = ~166 hours
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: jamthedude on November 24, 2013, 04:35:45 pm
I am an absolute beginner to mining/cloud mining, but I was able to get this running as described on the first post. Does anyone have a way to correct this error I'm getting?:

INVALID SHARE - OUTDATED MINER VERSION

I've searched through the forum and found a couple references to it - but any of the fixes/workarounds mentioned are way over my head.. Is there a command I can put into putty to update the miner & which miner should I be updating to?

Sorry if I missed this somewhere else & thanks for any help!
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: JohnD on November 24, 2013, 04:42:03 pm
I am an absolute beginner to mining/cloud mining, but I was able to get this running as described on the first post. Does anyone have a way to correct this error I'm getting?:

INVALID SHARE - OUTDATED MINER VERSION

I've searched through the forum and found a couple references to it - but any of the fixes/workarounds mentioned are way over my head.. Is there a command I can put into putty to update the miner & which miner should I be updating to?

Sorry if I missed this somewhere else & thanks for any help!

Just download an use one of the updated miners here: https://mega.co.nz/#F!h0tkXSxZ!f62uoUXogkxQmP2xO8Ib-g
I did not test it but i guess i it works.

I am using beers pool currently:

Code: [Select]
sudo apt-get update
sudo apt-get install -y git make g++ build-essential libminiupnpc-dev libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix yasm screen htop

git clone https://github.com/thbaumbach/ptsminer
cd ~/ptsminer/src
make -f makefile.unix
screen ./ptsminer <your PTS address> <number of threads>
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: K20 on December 14, 2013, 07:29:34 pm
Have just set this up, but disappointingly only getting 100c/m

I've got 2 VM's running so thats a total of 200c/m.

 Not exactly sure how this works with the billing and the 30 day trial and £130. Seems like its either 30 days free trial use of the servers or $200 credit to use in the same fashion.  I'm currently using all 20 cores to get about 280c/m and my credit hasn't gone down - only the number of days left

Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: ripplexiaoshan on December 15, 2013, 03:05:26 am
Same here, I got 109c/m for each VM. It's confusing because my real PC with I7 4cores /8threads can run up to 220 c/m. Maybe VM is supposed to run slower....

I think the they will charge us in one month's, so we should cancel this service before that if we don't want to pay for 220$? 

Have just set this up, but disappointingly only getting 100c/m

I've got 2 VM's running so thats a total of 200c/m.

 Not exactly sure how this works with the billing and the 30 day trial and £130. Seems like its either 30 days free trial use of the servers or $200 credit to use in the same fashion.  I'm currently using all 20 cores to get about 280c/m and my credit hasn't gone down - only the number of days left
Title: Re: [Quick Guide] Mine on Ypool with Windows Azure Free Trial Servers
Post by: K20 on December 15, 2013, 09:14:57 am
I've had my Azure servers running for 18 hours now and have noticed I've started  being billed

(http://i.imgur.com/HgbVNJh.png)

Looks like the yield has fallen too..

(http://i.imgur.com/jr0xDUm.png)

Same here, I got 109c/m for each VM. It's confusing because my real PC with I7 4cores /8threads can run up to 220 c/m. Maybe VM is supposed to run slower....

I think the they will charge us in one month's, so we should cancel this service before that if we don't want to pay for 220$? 

Have just set this up, but disappointingly only getting 100c/m

I've got 2 VM's running so thats a total of 200c/m.

 Not exactly sure how this works with the billing and the 30 day trial and £130. Seems like its either 30 days free trial use of the servers or $200 credit to use in the same fashion.  I'm currently using all 20 cores to get about 280c/m and my credit hasn't gone down - only the number of days left