Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Vycid on May 11, 2013, 08:04:14 AM



Title: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 08:04:14 AM
Hey there! Just as the title says. Keep in mind there are other, faster ways to go about this - this guide is geared toward being accessible rather than efficient.

Before we begin, two very important things:

1) YOU are responsible for making sure this is a profitable venture. Don't spend money you can't afford to lose. If it's too good to be true, it probably is. Etc etc etc.

2) This guide involves executing a bash script that I wrote to set up the instances in one easy step. DO NOT EXECUTE THIS FILE WITHOUT MAKING SURE IT'S SAFE WITH A TEXT FILE EDITOR FIRST (nano, vim, etc). You don't know what kind of nasty things I could have put in there, and you can never be too safe.


Ok, let's get started!

First, go to Amazon Web Services (http://aws.amazon.com), open an account, and set up a payment method. If you can't figure this out, you probably shouldn't be running servers  ;)

Once that's done, go to the AWS Management Console. You should see this:

http://www.zimagez.com/miniature/screenshot-05112013-071950am.php (http://www.zimagez.com/zimage/screenshot-05112013-071950am.php)

Click the EC2 link. You'll see something like this, although you may be in a different region and you won't have key pairs/placement groups/security groups yet:

http://www.zimagez.com/miniature/screenshot-05112013-072303am.php (http://www.zimagez.com/zimage/screenshot-05112013-072303am.php)

Now, click Spot Requests on the left sidebar, and click the "request spot instances" button. Select Ubuntu 12.04.1 LTS for Cluster Instances (Ubuntu for servers should work fine also).

http://www.zimagez.com/miniature/screenshot-05112013-072705am.php (http://www.zimagez.com/zimage/screenshot-05112013-072705am.php)

I'm going to do this demo with a cc2.8xlarge instance, which has 88 ECU (a measure of computing power) and makes about 750kh/s. You should do your own cost analysis and choose the cheapest type of instance. You may also want to get more than one instance.

http://www.zimagez.com/miniature/screenshot-05112013-073355am.php (http://www.zimagez.com/zimage/screenshot-05112013-073355am.php)

One of the most important fields here is the maximum dollars you are willing to pay per hour. I entered 0.35. Again, do your own analysis. Keep in mind - if the market rate exceeds this amount, your instance will be terminated and any YAC you haven't withdrawn from the wallet on your server will go along with it. Click continue. If you're launching more than one server, make sure to create a placement group on the next page. Otherwise, just click continue again. Click continue on the Storage Device Configuration page.

The Key Pair page is important. You want your servers to be secure - create a new keypair, give it a name, and download it somewhere you won't lose it. Click continue.

http://www.zimagez.com/miniature/screenshot-05112013-073847am.php (http://www.zimagez.com/zimage/screenshot-05112013-073847am.php)

This next step requires you to know your local IP. Type "my IP" into Google. Make it look like the image below (make sure you select SSH), then click "add rule" and click continue.

http://www.zimagez.com/miniature/screenshot-05112013-074404am.php (http://www.zimagez.com/zimage/screenshot-05112013-074404am.php)

There will be a confirmation screen. Make sure everything is correct, then click continue.

You should now see a screen like this (without the terminated instances, of course):

http://www.zimagez.com/miniature/screenshot-05112013-074712am.php (http://www.zimagez.com/zimage/screenshot-05112013-074712am.php)

Wait until the instance is confirmed (circle turns from yellow to green). You will have to click the refresh arrow a few times, and it might take a couple minutes. Then go to the Instances page (link in the left bar). You'll see the following:

http://www.zimagez.com/miniature/screenshot-05112013-074940am.php (http://www.zimagez.com/zimage/screenshot-05112013-074940am.php)

Wait for "initializing" to disappear under "status checks" and be replaced by "2/2 checks passed". Then, right click the instance, and click "connect". You'll get a dialog like the one below. Follow the instructions - an SSH session will appear. It will tell you it can't verify authenticity - type "yes" and press enter. You will not need to do this the next time you connect.

http://www.zimagez.com/miniature/screenshot-05112013-075207am.php (http://www.zimagez.com/zimage/screenshot-05112013-075207am.php)

You should see this once you're logged in:

http://www.zimagez.com/miniature/screenshot-05112013-075430am.php (http://www.zimagez.com/zimage/screenshot-05112013-075430am.php)

Enter the following lines of code into the console.

Code:
wget https://downloads.sourceforge.net/project/vycid/setupunix.sh?r=&ts=1368081732&use_mirror=master

You'll see this:

http://www.zimagez.com/miniature/screenshot-05112013-075810am.php (http://www.zimagez.com/zimage/screenshot-05112013-075810am.php)

It may appear that you didn't get the prompt back. Don't worry, just enter the next line in.

Code:
chmod +x setupunix.sh?r=

You'll see this:

http://www.zimagez.com/miniature/screenshot-05112013-075848am.php (http://www.zimagez.com/zimage/screenshot-05112013-075848am.php)

Just one more step between you and mining! Enter the following, then sit on your hands and wait for your terminal to look like the image below. DO NOT CLOSE THE SSH SESSION!

Code:
./setupunix.sh?r=

http://www.zimagez.com/miniature/screenshot-05112013-080357am.php (http://www.zimagez.com/zimage/screenshot-05112013-080357am.php)

Okay, you're off! The server will download the blockchain (it's short, won't take too long), then start mining. Here's 3 commands you'll need:

Code:
./yacoind getbalance
- gets the balance of your miner account

Code:
./yacoind sendtoaddress <address> <amount>
- use this often to get the YAC out of your server's wallet. Remember this is a spot instance, so it can be closed at any time if the market rate goes above your maximum rate, and you'll lose any YAC currently in the wallet. You can write a script to empty it periodically, but I can't help you with that.

Make sure the amount you send is at least 0.01 YAC less than the getbalance amount to allow for the transaction fee.

Keep in mind the blockchain has to be downloaded before any blocks can be found. This won't take long, since it's still quite short. You can check the estimated hashrate with
Code:
./yacoind gethashespersec




If this guide helped you, maybe kick some of the YAC you mine over to me at Y2JcwhZu9m6cqPZ3Jv8iKspcJYNY5wa5zc   ;)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 08:19:49 AM
Reserved.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Sondey10mg on May 11, 2013, 09:02:38 AM
Nice guide! If only I had the money  ::)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: tobobit on May 11, 2013, 09:22:40 AM
if only this were posted a couple days ago!
thanks for sharing


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Adamlm on May 11, 2013, 09:32:41 AM
I think with today's diff it's better to use EC2 for pool mining. Just compile your minerd (you can try this info: http://cryptocointalk.com/topic/25-cpuminer-for-yacoin-on-ubuntu-12/) and put this command:

Code:
nohup ./minerd -a scrypt-jane -o http://yac.dontmine.me:8080 -u user -p pass -t 16 -r 9999


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: aikklond on May 11, 2013, 09:41:14 AM

with the one-year free program can I mine at all? @ what kh/s level?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Adamlm on May 11, 2013, 09:44:49 AM
this free-program will give you only one micro instance - it's equivalent of one core in shared environment, I guess max. 10-15 kh/s. I used this to mine Litecoins in 2011 because it was completely free trial; now those LTCs are worth something :)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: saigo on May 11, 2013, 10:24:48 AM

i get compile errors very early on after the setup script is running make

Code:
I/home/saigo/yacoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
g++: internal compiler error: Killed (program cc1plus)g++: internal compiler error: Killed (program cc1plus)

Im on a slightly different OS version than you mention above i think
Quote
Ubuntu quantal (12.10)



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 10:27:20 AM

i get compile errors very early on after the setup script is running make

Code:
I/home/saigo/yacoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
g++: internal compiler error: Killed (program cc1plus)g++: internal compiler error: Killed (program cc1plus)

Im on a slightly different OS version than you mention above i think
Quote
Ubuntu quantal (12.10)



Can't offer support for any OS other than Ubuntu 12.04.1 LTC. I tested the walkthrough as I wrote it so I know 12.04.1 LTC works fine...


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: saigo on May 11, 2013, 10:29:12 AM

i get compile errors very early on after the setup script is running make

Code:
I/home/saigo/yacoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
g++: internal compiler error: Killed (program cc1plus)g++: internal compiler error: Killed (program cc1plus)

Im on a slightly different OS version than you mention above i think
Quote
Ubuntu quantal (12.10)



Can't offer support for any OS other than Ubuntu 12.04.1 LTC. I tested the walkthrough as I wrote it so I know 12.04.1 LTC works fine...


yeah, understood.. no worries  ;D 



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Puycheval on May 11, 2013, 11:42:40 AM

with the one-year free program can I mine at all? @ what kh/s level?

You get 3.5 kH/s on average


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Caesar V on May 11, 2013, 11:48:24 AM
Nice guide, I'm guessing you're one of the guys that had 14,000 KH/s?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: shaal on May 11, 2013, 12:05:43 PM
How long do you usually wait for a spot request to go live, i've put one in and it's been in pending-review for 2 and a half hours now. the price was 0.350 per h as well.




Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: bitrain on May 11, 2013, 12:26:12 PM
A good way to increase price - make people use expensive Amazon services for mining...


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: saigo on May 11, 2013, 01:01:49 PM

be careful out there kids.. bitcointalk.org/index.php?topic=202047.0


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: spoid on May 11, 2013, 01:22:53 PM
Seems to become quite annoying as a Non-US-Citizen since they require a US tax ID, no? :(


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 05:12:15 PM
Nice guide, I'm guessing you're one of the guys that had 14,000 KH/s?

30 MH/s. Wishing now I'd started earlier (I was busy the day the YAC post went up), I'd be getting myself a new car...

How long do you usually wait for a spot request to go live, i've put one in and it's been in pending-review for 2 and a half hours now. the price was 0.350 per h as well.


That's an unusually long time... Not sure what's up there.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 06:36:39 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Lowlander on May 11, 2013, 06:40:46 PM
Vycid, love u man :)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: msm595 on May 11, 2013, 07:00:19 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.
How many yacoin does 750 kh/s get you per day?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: theking on May 11, 2013, 07:05:52 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.
How many yacoin does 750 kh/s get you per day?

looking at the pool, about 80yac/day at current diff (4.558)
diff is increasing quite often though, it could be 6 in 24 hours, likely higher


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: anonynonanony on May 11, 2013, 07:07:07 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.
How many yacoin does 750 kh/s get you per day?

my rough math... probably 80 or so at current diff.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 07:07:21 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.
How many yacoin does 750 kh/s get you per day?

Depends completely on the difficulty, which is changing rapidly. One way to tell the relationship between kh/s and yacoins/hr is to go to a yacoin pool and divide the hashrate by the average number of blocks found per hour, then multiply by the block reward.

I haven't got data for it right now, maybe someone else can help you.

EDIT: sounds like the number is 80/day  ;)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Aggrophobia on May 11, 2013, 07:34:02 PM
CreditCard requirement prevents me, buying instances -.-
quite unusual in Germany

tried some VPS with getting 30-70 khashes 100% stales -.- (got money refunded :) )


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: super3 on May 11, 2013, 07:42:09 PM
Quick update for anyone still thinking about getting in on this:

cc2.8xlarge are still $0.253/hr each in Oregon and $0.270/hr in N. Virginia. That's 750 kh/s each.
How many yacoin does 750 kh/s get you per day?
Around 78.4243872 yac/day by my estimates.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: seleme on May 11, 2013, 07:53:21 PM
That's not profitable anymore unless you can get it for free.. current biggest hash power on dontmineme pool is 100 000 KH and it's estimation is 10 000 coins per day.

You would need to pay approx 6000$ in 24 hours to run that farm (windows servers, linux is bit cheaper) and you would have to sell those 10 000 at 150 LTC/1k to break even


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: bitcrazy11 on May 11, 2013, 07:55:57 PM
Thanks for the interesting read. Very cool!


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: eule on May 11, 2013, 08:00:15 PM
LOL Amazon is expensive! Getting 300kH out of my shitty VPS running 10 of 12 cores... and it only costs 15€ per month (which IS an amazing deal, i know). So for 100,000 kH i'd have to rent 300 of those for 4500€ per month.
1 day Amazon or one month noname?  ::)
edit: Ofcourse i know it's all about flexibility. But if you plan on mining for a bit longer, go for the real thing imo.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: jimhsu on May 11, 2013, 08:01:06 PM
LOL Amazon is expensive! Getting 300kH out of my shitty VPS running 10 of 12 cores... and it only costs 15€ per month (which IS an amazing deal, i know). So for 100,000 kH i'd have to rent 300 of those for 4500€ per month.
1 day Amazon or one month noname?  ::)

What host, if you don't mind me asking? I'm so far satisfied with http://ramhost.us, which has some cheap plans but is nearly always sold out for new customers.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 08:02:03 PM
That's not profitable anymore unless you can get it for free.. current biggest hash power on dontmineme pool is 100 000 KH and it's estimation is 10 000 coins per day.

You would need to pay approx 6000$ in 24 hours to run that farm (windows servers, linux is bit cheaper) and you would have to sell those 10 000 at 150 LTC/1k to break even

Using cc2.8xlarge (750 kh/s each) from West Virginia that would require about 133 instances to get 100,000 kh/s:

 at 0.27/hr * 24 * 133 = $861/day for 100,000 KH/s, nowhere near $6000.

So it is still profitable by my calculations.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: eule on May 11, 2013, 08:03:12 PM
What host, if you don't mind me asking? I'm so far satisfied with http://ramhost.us, which has some cheap plans but is nearly always sold out for new customers.
http://host-unlimited.de/vserver
Their "support" sucks, express setup is a lie (takes up to 4 days to get VPS), sometimes i get downtimes. But very strong VPS for a great price.
Edit: Hoping the host machines now don't get raped by (more  ;D) miners. But i got some days left if the company is as slow as always.  ;)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: seleme on May 11, 2013, 08:08:55 PM
That's not profitable anymore unless you can get it for free.. current biggest hash power on dontmineme pool is 100 000 KH and it's estimation is 10 000 coins per day.

You would need to pay approx 6000$ in 24 hours to run that farm (windows servers, linux is bit cheaper) and you would have to sell those 10 000 at 150 LTC/1k to break even

Using cc2.8xlarge (750 kh/s each) from West Virginia that would require about 133 instances to get 100,000 kh/s:

 at 0.27/hr * 24 * 133 = $861/day for 100,000 KH/s, nowhere near $6000.

So it is still profitable by my calculations.

On that price it is though not for long, I haven't found it though but may be because I was not interested in linux, don't have a clue about it.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: alex_fun on May 11, 2013, 08:12:40 PM
1 cc2 got 2 x Intel Xeon E5-2670, eight-core so u claiming each of them got 100,000/133/2 375khas interesting :) also amazon limits to 20 such large instances per region ;) plus orphans, plus can you even post exact calculations then to show how 100,000 KH produde 10K at current diff :P or hey if thats the case well done man you are makings tons of yacs :) hehe

That's not profitable anymore unless you can get it for free.. current biggest hash power on dontmineme pool is 100 000 KH and it's estimation is 10 000 coins per day.

You would need to pay approx 6000$ in 24 hours to run that farm (windows servers, linux is bit cheaper) and you would have to sell those 10 000 at 150 LTC/1k to break even

Using cc2.8xlarge (750 kh/s each) from West Virginia that would require about 133 instances to get 100,000 kh/s:

 at 0.27/hr * 24 * 133 = $861/day for 100,000 KH/s, nowhere near $6000.

So it is still profitable by my calculations.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: fishboy on May 11, 2013, 08:37:25 PM
how many threads are those ? <--- stupid me didn't see the post about minerd earlier.... lol


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: anonynonanony on May 11, 2013, 09:16:53 PM
if you wanna take the pooled mining approach, run these off a fresh install

Code:
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev git make automake
git clone https://github.com/ali1234/cpuminer
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
sudo make
sudo make install
./minerd -a scrypt-jane -o server:port -O user:pass


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 11, 2013, 10:56:46 PM
1 cc2 got 2 x Intel Xeon E5-2670, eight-core so u claiming each of them got 100,000/133/2 375khas interesting :) also amazon limits to 20 such large instances per region ;) plus orphans, plus can you even post exact calculations then to show how 100,000 KH produde 10K at current diff :P or hey if thats the case well done man you are makings tons of yacs :) hehe

That's not profitable anymore unless you can get it for free.. current biggest hash power on dontmineme pool is 100 000 KH and it's estimation is 10 000 coins per day.

You would need to pay approx 6000$ in 24 hours to run that farm (windows servers, linux is bit cheaper) and you would have to sell those 10 000 at 150 LTC/1k to break even

Using cc2.8xlarge (750 kh/s each) from West Virginia that would require about 133 instances to get 100,000 kh/s:

 at 0.27/hr * 24 * 133 = $861/day for 100,000 KH/s, nowhere near $6000.

So it is still profitable by my calculations.

You're right, I was limited to 40 instances total (2 regions). But I was really making 750kh/s each - if you don't believe me, look at my sales history on the google docs exchange.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: mvrak on May 12, 2013, 01:46:33 AM
to use this script on regular ubuntu just add install of libssl-dev


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 02:07:20 AM
Hey man, you are brilliant for creating this.

One thing, I did all the steps, it says mining has begun, but when I put ./yacoind gethashespersec it shows 0. What do you think?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 12, 2013, 02:11:56 AM
Hey man, you are brilliant for creating this.

One thing, I did all the steps, it says mining has begun, but when I put ./yacoind gethashespersec it shows 0. What do you think?

It needs to download the blockchain before it can start mining. Give it a minute or two and check again.

It'll also tend to vary each time you check the hashrate, so take the average of several measurements.

If you're really concerned it's actually not working, do the following:

Code:
./yacoind stop
./yacoind -server -gen -daemon -addnode=82.211.30.212 -addnode=76.115.8.101 -addnode=192.168.1.237 -addnode=54.217.249.235 -addnode=54.217.249.230 -addnode=54.217.249.229 -addnode=54.217.249.139 -addnode=54.217.249.230


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 02:19:25 AM
Ok it's working, you sir are a legend!  8)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: wmikrut on May 12, 2013, 03:40:17 AM
Here is a script to automatically send the YAC to you from the AWS Instance.
I have created this as an executable file named "schedule.sh"

(If you like this script... don't donate to me... use/improve the script!)


#!/bin/bash

# Set the threshold to the minimum amount you want to have sent to you.  Make sure it's more than 0.01000000
# Set the address to your address, or I will get all your YAC!

threshold="0.20000000"
address="Y4B3S6dVVAFwex6Fio6JprFQkWgwU5E3uf"

#########################################################################
# Don't edit below this line unless you REALLY know what you're doing
#########################################################################
yac=`./yacoind getbalance`
if echo $yac $threshold | awk '{exit !( $1 > $2)}'; then
   ./yacoind sendtoaddress $address $yac
else
   echo "Not enough YAC to send yet!"
fi                                                                                                                         fi                                                                                                                                                                                                                                                                                                                                                                                                 


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: miaviator on May 12, 2013, 04:03:27 AM
Just to jump in late.

If you stick your or a wallet.dat on each of the servers (the same wallet.dat on every server) won't they all generate coins directly to the wallet preventing you from having to transfer funds out?



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: saberu on May 12, 2013, 04:03:49 AM
Be careful guys, this is NOT profitable at current difficulty and price of running a cluster.

This guy obviously must have profited from this method and now that it's no longer profitable he is happy to share it with the forum for some rep.

If you think the price of YAC is going to go up 10 fold in the next 10 weeks (very unlikely) then by all means invest your money in the knowledge you will be making a loss at current prices.

I for one would not want to take the risk, especially now there are so many alts. If alts were reliable then FTC would not be trading as low as it is right now.

Maybe some people (creator?) have been dumping all their FTC over time to keep the price this low. Just makes me suspicious about trusting the price of other alt coins including YACoin.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 12, 2013, 04:11:32 AM
Just to jump in late.

If you stick your or a wallet.dat on each of the servers (the same wallet.dat on every server) won't they all generate coins directly to the wallet preventing you from having to transfer funds out?



That is correct. It would be quite a bit easier to do it this way - this guide was just written to be as easy as possible. Anyone that can import the wallet.dat to all their servers already knows what they're doing.

Be careful guys, this is NOT profitable at current difficulty and price of running a cluster.

This guy obviously must have profited from this method and now that it's no longer profitable he is happy to share it with the forum for some rep.

If you think the price of YAC is going to go up 10 fold in the next 10 weeks (very unlikely) then by all means invest your money in the knowledge you will be making a loss at current prices.

I for one would not want to take the risk, especially now there are so many alts. If alts were reliable then FTC would not be trading as low as it is right now.

Maybe some people (creator?) have been dumping all their FTC over time to keep the price this low. Just makes me suspicious about trusting the price of other alt coins including YACoin.

Whoa! Hold on, when I released this guide it was DEFINITELY still profitable. I'm not accountable for the inevitable increase in difficulty!

It IS true that I did quite a bit of mining before releasing the guide, but it really wasn't the first thing on my mind to write a guide as soon as I got my servers running - I've got a life, and this guide represented a significant time investment.

I'll come clean: my primary motivation for writing the guide was that I might get a few tips for helping people out. Haven't gotten any yet  :(


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: BrewCrewFan on May 12, 2013, 04:16:30 AM


I'll come clean: my primary motivation for writing the guide was that I might get a few tips for helping people out. Haven't gotten any yet  :(

There you go. A present. Its a small amount but that takes me 3 days at the difficulty to mine on my  xeon and Q6600


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 12, 2013, 04:19:55 AM


I'll come clean: my primary motivation for writing the guide was that I might get a few tips for helping people out. Haven't gotten any yet  :(

There you go. A present. Its a small amount but that takes me 3 days at the difficulty to mine on my  xeon and Q6600

Aw, thanks. I appreciate the gesture regardless of the quantity.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 04:32:23 AM
Oh I have every intention of tipping, haven't gotten any coins yet, hopefully will have some by morning.  :)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 04:54:20 AM
How can I shoot these servers over to a pool?  Or are they better off solo mining?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 12, 2013, 05:01:15 AM
Oh I have every intention of tipping, haven't gotten any coins yet, hopefully will have some by morning.  :)

I haven't done the math recently, but based on market rate and difficulty it's my suspicion this is no longer profitable. You should double-check.

How can I shoot these servers over to a pool?  Or are they better off solo mining?

You could use minerd. I never did, but then again I had enough servers that I didn't really need a pool.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 05:19:31 AM
I want to do it just for a few day and see.  I have 4 servers now, but they all have 0 coins.  I'd like to try them at the pool, I have the minerd avx script that another user put together on here.  Is there by chance a quick easy way to get it doing this?  :)  I just don't know how.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: joee on May 12, 2013, 05:31:38 AM
I want to do it just for a few day and see.  I have 4 servers now, but they all have 0 coins.  I'd like to try them at the pool, I have the minerd avx script that another user put together on here.  Is there by chance a quick easy way to get it doing this?  :)  I just don't know how.

Try this:

Code:
sudo apt-get -y install git automake build-essential libcurl4-openssl-dev
git clone https://github.com/ali1234/cpuminer
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3 -march=native"
sudo make
sudo make install
./minerd -o POOL:PORT -u WORKER -p PASS -a scrypt-jane

You should get about 790kh/s with an cc2.8xlarge instance.

edit:
If you use 'screen' you don't have to keep the terminal window open:
(use the following command instead of the last line above)

Code:
screen -S miner ./minerd -o POOL:PORT -u WORKER -p PASS -a scrypt-jane

To detach the session press 'Ctrl'+'A' then 'D'.

Afterwards you can re-attach the session if needed:

Code:
screen -r miner




Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 05:40:28 AM
Where does that code go though? 


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: joee on May 12, 2013, 05:50:21 AM
You have to enter (copy/paste) it line by line into your terminal window, in the last line you have to enter your mining pool url & user.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 12, 2013, 06:05:28 AM
You guys are awesome, it's working :D  I was entering the code all at once and that's why it wasn't working before.  I know I know :)  Many many thanks and you both will be getting tips tomorrow from me.  :D


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: joee on May 12, 2013, 06:07:41 AM
You're welcome, enjoy your minig :)
(... and you have to leave the terminal window open)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: AndNorTar on May 12, 2013, 09:45:01 AM
Thanks for both the guide and the minerd command sequence! :)

Interestingly, the hashrate appears to fluctuate quite a bit - when viewed directly, all instances report a very solid ~730 Kh/s, and when I went to bed 9 hours ago, the pool consistently reported around this figure for all instances. Then after 11 hours of runtime, the estimated average hashrate seems to have dropped down to about 330, or slightly less than half. So that's interesting, but still a pretty fun experiment!


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Adamlm on May 12, 2013, 10:38:20 AM
You're welcome, enjoy your minig :)
(... and you have to leave the terminal window open)
Not necessarily: you can start the minderd process with nohup command and disconnect from terminal, something like this:

Code:
nohup ./minerd -a scrypt-jane -o http://yac.dontmine.me:8080 -u user -p x -t 16 -r 9999 2>&1 &

then you can login at any time and check if it's still running:

Code:
ps -ef | grep minerd



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: tyrion70 on May 12, 2013, 10:43:00 AM
Even better, start it with the screen command..

You can then logon and enter screen -ls to see the screen number and screen -r to get it back to your terminal.

Also, you can convert to the key to a putty key with puttygen and open the session in putty


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: donjonson on May 12, 2013, 11:05:28 AM
Great work! Thanks for the contribution. ;)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: donjonson on May 12, 2013, 11:06:55 AM
100 YACs on your way :)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: cycloid on May 12, 2013, 05:18:39 PM
Amazing guide and although not profitable now ... I see how it can be profitable long term


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: vlaoou321 on May 12, 2013, 05:33:44 PM
Amazing guide and although not profitable now ... I see how it can be profitable long term
SUP


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Vycid on May 12, 2013, 10:51:47 PM
100 YACs on your way :)

Thanks!  ;D


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: cycloid on May 13, 2013, 08:07:25 AM
Just incase anyone runs in to problems with this command :

Code:
sudo apt-get install libcurl4-openssl-dev automake make

Run this first :

Code:
sudo apt-get update

Try again :)

Kept getting 403 Forbidden errors .


Also this gets the highest hashrate :

Code:
screen -S miner ./minerd -o http://yac.dontmine.me:8080 -u user -p pass -a scrypt-jane -r 9999 

dont add -t argument


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: ElusiveMiner on May 13, 2013, 10:39:32 AM
Hello, I just order 4 servers, and followed the guide precisely. How do I know if they are running, They are all in the same security and placement group, I connected to solo mining using one of the instances, does this mean all the 4 servers are connected and mining?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: ElusiveMiner on May 13, 2013, 10:45:25 AM
Or in other words, when ive started mining on one SSH session can I close it down, or do I need to have 4 SSH clients running?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Quartx on May 13, 2013, 10:58:16 AM
Or in other words, when ive started mining on one SSH session can I close it down, or do I need to have 4 SSH clients running?

Just to add to this guide, if anyone tried this, you would have noticed that when you are mining , if you close the ssh session, when you ssh back in, u realise that the mining stops, the solution :

Use tmux, it allows you to continue mining even if ssh is off.

Before you type in the mining code type this

Code:
tmux

You should see a windows with a green line at the bottom of your ssh window

Proceed to type your normal mining code

If you want to close your ssh session, press the following keyboard keys

CRTL-B followed by D

You should see the green bottom bar disappear, do not worry, your mining is still running in the back end

now close your ssh session

When you ssh back in, type the following to reopen the tmux window that is still running your mining

Code:
tmux attach -t 0

RUNNING MINING EVEN WHEN YOU ARE NOT SSHing IN WILL EAT UP ALOT OF "COMPUTE HOURS", if YOU GET CHARGED ALOT BY AMAZON,  I BEAR NO RESPONSIBILITIES.





Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: snipsnoop on May 13, 2013, 11:10:54 AM
Aye, make sure you understand how AWS works.
Could end up costing a you a LOT of $$ if you are not careful.

I was experimenting a fair bit over the weekend and ended up with 800 spot instances running the miner spread out over the 8 data centers.
Now this was just an experiment and I knew it was going to cost me a fair whack..

End result : Around 500 yac.
End cost : $234.

Only ran it for 2 hours.

Now I could have done it a lot cheaper, but I really just wanted to play around with it. Fun fun fun :)




Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: ElusiveMiner on May 13, 2013, 11:32:55 AM
Everything is working great, thanks for the help! Just one last question if I decide to stop mining and terminate these servers completely(so I dont have to pay hourly) Do I just right click on the instance and terminate? or can I pause it somehow. And can I also turn off my computer while these instances are running using the tmux method?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: ImI on May 13, 2013, 11:37:30 AM

I ran 10 instances for 2 hours on saturday but wasnt getting anything. Blocks per day should have been 40 at that time.

Is there any way to check if its working as it should? I had the impression that while it was compliling i saw some error messages.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: anonynonanony on May 13, 2013, 02:43:19 PM
Is this deal still profitable?

right now it seems 750kh/s will yield 1.875 yacs/hr.  or roughly $0.15 /hr.  If you're paying more than that, then no.


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 14, 2013, 08:12:39 PM
If this guide helped you, maybe kick some of the YAC you mine over to me at Y2JcwhZu9m6cqPZ3Jv8iKspcJYNY5wa5zc   ;)

As promised, 100 YAC Sent your way :D  I initially planned to send more but I only got 25% for the estimated rewards from that pool since it was dropping connections constantly.  I should have solo mined! :D

Also Joee I owe you some coins if you post your addy.  :)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 15, 2013, 01:10:02 AM
Now we just need to figure out how to get them deposited automatically to our wallets.



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: blazin8s on May 17, 2013, 02:39:56 AM
How does one kill all screen sessions?  I accidently started a few sessions per server and they all have different numbers, I want to kill them all in one swoop and start over


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Marrs on May 17, 2013, 08:45:05 PM
How does one kill all screen sessions?  I accidently started a few sessions per server and they all have different numbers, I want to kill them all in one swoop and start over


killall screen



Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: cycloid on May 17, 2013, 09:16:32 PM
ctrl+c?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: truckythin on June 07, 2013, 07:56:00 AM
anyone still have AWS mining YAC?

my ubuntu instance only got 99kh/s, even that it got 750kh/s before, i stopped mining for few week ago  :'(

i amazon increase the CPU perfomance to prevent this?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: SALHERO on June 07, 2013, 07:57:22 AM
the N factor is higher.  ;)


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: truckythin on June 07, 2013, 08:13:15 AM
oph, that's why  ;D


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: ivann on November 29, 2013, 03:46:20 PM
What mean 'capacity-oversubscribed' in status? What I need to do?


Title: Re: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!
Post by: Gorgoy on November 30, 2013, 08:39:11 AM
Wow, this is an amazing, talk about step by step. Good Going, wish I would have found it, months ago, going to go and try it out, after I go and get some sleep. Thanks again