Bitcoin Forum
November 22, 2017, 01:20:25 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 »  All
  Print  
Author Topic: [YAC] Illustrated, step-by-step guide to starting your own AWS YAC server farm!  (Read 13393 times)
Vycid
Sr. Member
****
Offline Offline

Activity: 294


♫ the AM bear who cares ♫


View Profile
May 11, 2013, 08:04:14 AM
 #1

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  Wink

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



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:



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).



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.



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.



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.



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):



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:



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.



You should see this once you're logged in:



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:



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:



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=



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   Wink

1511356825
Hero Member
*
Offline Offline

Posts: 1511356825

View Profile Personal Message (Offline)

Ignore
1511356825
Reply with quote  #2

1511356825
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511356825
Hero Member
*
Offline Offline

Posts: 1511356825

View Profile Personal Message (Offline)

Ignore
1511356825
Reply with quote  #2

1511356825
Report to moderator
1511356825
Hero Member
*
Offline Offline

Posts: 1511356825

View Profile Personal Message (Offline)

Ignore
1511356825
Reply with quote  #2

1511356825
Report to moderator
Vycid
Sr. Member
****
Offline Offline

Activity: 294


♫ the AM bear who cares ♫


View Profile
May 11, 2013, 08:19:49 AM
 #2

Reserved.

Sondey10mg
Sr. Member
****
Offline Offline

Activity: 294


View Profile
May 11, 2013, 09:02:38 AM
 #3

Nice guide! If only I had the money  Roll Eyes

 *Image Removed*
 *Image Removed*
tobobit
Full Member
***
Offline Offline

Activity: 140



View Profile
May 11, 2013, 09:22:40 AM
 #4

if only this were posted a couple days ago!
thanks for sharing
Adamlm
Hero Member
*****
Offline Offline

Activity: 804



View Profile WWW
May 11, 2013, 09:32:41 AM
 #5

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

aikklond
Hero Member
*****
Offline Offline

Activity: 826


CrowdWiz


View Profile
May 11, 2013, 09:41:14 AM
 #6


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



           ▄███▄
        ▄█████████▄
     ▄██████████▀  ██▄
  ▄████████▀█▀   ▄██████▄
█▀▀▀███████   ▄████████▀▀▀█
██▄   ▀████▄▄▄▄█████▀   ▄██
█████▄   ▀███████▀   ▄█████
████████▄   ▀█▀   ▄████████
▀██████████▄   ▄███████████
   ▀████████▌ ▐█████ ██████
██▄   ▀█ ███▌ ▐████   ▀████
█████▄    ██▌ ▐███▄▄ ▐█████
████████ ▄██▌ ▐█████ ▐█████
████████▄███▌ ▐█████ ▐█████
  ▀█████████▌ ▐█████ ▐██▀
     ▀██████▌ ▐██████▀
        ▀███▌ ▐███▀
           ▀███▀

╲╲╲╲╲╲╲╲▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
  THE FIRST    OF ITS KIND
  SELF-GOVERNED    ECOSYSTEM

╱╱╱╱╱╱╱╱▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
   


           ▄███▄
        ▄█████████▄
     ▄██████████▀  ██▄
  ▄████████▀█▀   ▄██████▄
█▀▀▀███████   ▄████████▀▀▀█
██▄   ▀████▄▄▄▄█████▀   ▄██
█████▄   ▀███████▀   ▄█████
████████▄   ▀█▀   ▄████████
▀██████████▄   ▄███████████
   ▀████████▌ ▐█████ ██████
██▄   ▀█ ███▌ ▐████   ▀████
█████▄    ██▌ ▐███▄▄ ▐█████
████████ ▄██▌ ▐█████ ▐█████
████████▄███▌ ▐█████ ▐█████
  ▀█████████▌ ▐█████ ▐██▀
     ▀██████▌ ▐██████▀
        ▀███▌ ▐███▀
           ▀███▀

Adamlm
Hero Member
*****
Offline Offline

Activity: 804



View Profile WWW
May 11, 2013, 09:44:49 AM
 #7

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 Smiley

saigo
Full Member
***
Offline Offline

Activity: 126



View Profile
May 11, 2013, 10:24:48 AM
 #8


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)


Saigō Takamori : ( 1828 – 1877) was one of the most influential samurai in Japanese history. He has been dubbed the last true samurai.
Vycid
Sr. Member
****
Offline Offline

Activity: 294


♫ the AM bear who cares ♫


View Profile
May 11, 2013, 10:27:20 AM
 #9


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...

saigo
Full Member
***
Offline Offline

Activity: 126



View Profile
May 11, 2013, 10:29:12 AM
 #10


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  Grin 


Saigō Takamori : ( 1828 – 1877) was one of the most influential samurai in Japanese history. He has been dubbed the last true samurai.
Puycheval
Member
**
Offline Offline

Activity: 95


View Profile
May 11, 2013, 11:42:40 AM
 #11


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

You get 3.5 kH/s on average

Caesar V
Sr. Member
****
Offline Offline

Activity: 354



View Profile
May 11, 2013, 11:48:24 AM
 #12

Nice guide, I'm guessing you're one of the guys that had 14,000 KH/s?
shaal
Member
**
Offline Offline

Activity: 112


View Profile
May 11, 2013, 12:05:43 PM
 #13

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.


bitrain
Sr. Member
****
Offline Offline

Activity: 462


View Profile
May 11, 2013, 12:26:12 PM
 #14

A good way to increase price - make people use expensive Amazon services for mining...

◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
ICO starts 1st Nov.
◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
 
████████████████████████ PLAYKEY: DECENTRALIZED CLOUD GAMING PLATFORM ████████████████████████
█████████████ Getting lost in the sea of cryptocurrencies? Choose Playkey token! █████████████
Website | BitcoinTalk | Slack | Twitter | LinkedIn | Medium | Facebook | Reddit | Telegram
 
◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
ICO starts 1st Nov.
◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
saigo
Full Member
***
Offline Offline

Activity: 126



View Profile
May 11, 2013, 01:01:49 PM
 #15


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

Saigō Takamori : ( 1828 – 1877) was one of the most influential samurai in Japanese history. He has been dubbed the last true samurai.
spoid
Hero Member
*****
Offline Offline

Activity: 490


bearded, drunk, fat, naked


View Profile
May 11, 2013, 01:22:53 PM
 #16

Seems to become quite annoying as a Non-US-Citizen since they require a US tax ID, no? Sad

with great beard comes great liver. Reputation Thread: https://bitcointalk.org/index.php?topic=195803.0
Vycid
Sr. Member
****
Offline Offline

Activity: 294


♫ the AM bear who cares ♫


View Profile
May 11, 2013, 05:12:15 PM
 #17

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.

Vycid
Sr. Member
****
Offline Offline

Activity: 294


♫ the AM bear who cares ♫


View Profile
May 11, 2013, 06:36:39 PM
 #18

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.

Lowlander
Full Member
***
Offline Offline

Activity: 126



View Profile
May 11, 2013, 06:40:46 PM
 #19

Vycid, love u man Smiley
msm595
Full Member
***
Offline Offline

Activity: 185


View Profile
May 11, 2013, 07:00:19 PM
 #20

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?

Pages: [1] 2 3 4 5 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!