Jump to content

Close
Photo
- - - - -

Easy One Line of Code CPU Pool Mining Setup DigitalOcean VPS Instructions

Mining Bitcoin DigitalOcean Instructions

  • Please log in to reply
9 replies to this topic

#1 derrend

derrend

    New Member

  • MEMBER
  • Pip
  • 8 posts
  • 4 topics
    • Time Online: 5h 3m 4s

Posted 29 July 2013 - 03:28 PM

### IMPORTANT NOTES:
## If you do not have an address to send the coins you are mining to, you can download the clients from their respective websites if one is available or by cloning the directory tree from GitHub and following the instructions. You can even use google to look for an online wallet if one exists but you usually CANNOT send them directly to your trading wallets on sites such as 'Cryptsy' Taken from cryptsy website --> "Notice: Do NOT use p2pool to deposit directly to your Cryptsy wallets, as it will not show the address in our wallet and we will be unable to credit your account."

## Signing up for multiple accounts using the same info is against their terms of service. If you do this you may have your account removed by DigitalOcean and lose access to any coins you've mined.

## I have tested this script on the "Ubuntu 12.04.3 x64" droplet without a problem so I suggest you use that one. It's just as good as any other version, trust me.

## What this script will do:
# Ultimately, it will configure a freshly instantiated droplet ready for CPU pool mining right out of the box regardless of size.
# Prompt you to change the root password to something more memorable.
# Prompt you to create a non-privileged user with sudo privileges and set a password for it.
# Create a swap file and add it to your fstab for persistence over reboots.
# Download and install all required software plus some extra functionality such as ability to download megalinks with "megatools" for example.
# Download and compile a multi-threaded CPU pool miner compatible with the Litecoin, Bitcoin and Quarkcoin algorithms.
# End with you logged in as the new non-privileged user you created earlier located in the same folder as your compiled miner all ready for launch.

## Remember:
# Digitalocean still charges for droplets even if they are switched off, they must be destroyed to avoid fees.
# To save yourself having to rebuild droplets from scratch all the time, you should take a snapshot of an already setup droplet and just restore it whenever you need a new one.
# Digitalocean dont charge for snapshots.

## If you would like to inspect the source code it is available here


### INSTRUCTIONS:
## 01) Go to DigitalOcean and sign up for an account. <- Please use this link to earn me some credits for making this guide, better they go to someone rather than to waste :)
# Or you can 'tip me' at the following BTC address:
Tip_Me_QR.png
# 1TipMe1CTQ1igpqfspn6chAMKix8wVDxD

## 02) Create an Ubuntu 12.04.3 x64 droplet with the size you want.

## 03) You will be emailed an IP address and password with instructions on how to SSH into your new instance.

## 04) Copy and paste this single line of code directly into the root terminal window as soon as you log into a new droplet and press [ENTER].
wget -O setup.sh http://pastebin.com/raw.php?i=dZHyqRY9 && sed 's/'"$(printf '\015')"'//g' setup.sh > setup.sh.tmp && mv setup.sh.tmp setup.sh && chmod +x setup.sh && ./setup.sh
## 05) Once the script has finished you should find an executable file name 'minerd' in your current directory, this is your CPU miner!

## 06) Find a mining pool of your choice using google. 'P2Pool' isn't bad. It's on sites like these that you can find settings for mining pools, usernames, passwords, IP addresses so you know where to point your miner, etc.

## 07) The syntax for the miner is this. (when you are located in the same directory as 'minerd' that is).
./minerd --url http://whatever.poolyouwant.com:Port/ --userpass USERNAME:password
# So to mine litecoins using the settings displayed on p2pool.org would be:
./minerd --url http://p2pool.org:9327/ --userpass <YOUR-LITECOIN-ADDRESS>:Anything
# You can also specify a particular number of processor cores to use with the '-t N' option where N is the number of cores you wish to dedicate, this may be useful if using your home computer to mine for example. Leaving out the '-t' option uses all available cores by default.
./minerd -t N --url http://whatever.poolyouwant.com:Port/ --userpass USERNAME:password
## All done. Good luck in your mining endeavours. If the first pool you try returns errors try connecting again or try your miner on a few more pools before concluding your miner is broken. I find errors on mining pools are sometimes not uncommon.

## Also be aware that mining for bitcoins with your CPU is not very efficient now that the difficulty level is so high so perhaps targeting a newer alternative coin or 'alt coins' as they are known and exchanging them for bitcoins once the value of that alt coin has increased might be a better strategy since the difficulty level on these should be considerably lower.

Cryptocointalk.com doesn't endorse any ads. Warning: ads my be illegal or untrustworthy in your jurisdiction. Advertising Here.

#2 Traxx187

Traxx187

    Member

  • MEMBER
  • PipPip
  • 57 posts
  • 3 topics
    • Time Online: 18h 48m 39s

Posted 02 December 2013 - 05:57 PM

i get an error when i put this 

 

sudo dd if=/dev/zero of=/swapfile bs=64M count=16; sudo mkswap /swapfile; sudo swapon /swapfilesudo mkswap /swapfilesudo swapon /swapfile

 

error bad syntx can someone help me?



#3 nobodysbusiness

nobodysbusiness

    New Member

  • MEMBER
  • Pip
  • 13 posts
  • 1 topics
    • Time Online: 8h 44m 48s

Posted 02 December 2013 - 07:45 PM

I thought bitcoin mining was dominated by ASICs? Does this Digital Ocean system earn enough with mining to cover the monthly fee?



#4 Traxx187

Traxx187

    Member

  • MEMBER
  • PipPip
  • 57 posts
  • 3 topics
    • Time Online: 18h 48m 39s

Posted 03 December 2013 - 09:39 AM

i dont know yet haha i cant get mine to start running



#5 Beggars

Beggars

    New Member

  • MEMBER
  • Pip
  • 22 posts
  • 6 topics
    • Time Online: 7h 26m 44s

Posted 04 December 2013 - 04:42 PM

Could this guide be adopted to work with other currencies? Mining Litecoin probably comes with a greater chance of making back the monthly fee.



#6 Crypton

Crypton

    New Member

  • MEMBER
  • Pip
  • 14 posts
  • 1 topics
    • Time Online: 2h 39m 33s

Posted 07 December 2013 - 04:20 AM

I thought bitcoin mining was dominated by ASICs? Does this Digital Ocean system earn enough with mining to cover the monthly fee?


Short term, no.
Long term, mining Bitcoin on ANY equipment is worth it if willing to hold.

#7 chanpool

chanpool

    New Member

  • MEMBER
  • Pip
  • 3 posts
  • 0 topics
    • Time Online: 25m 30s

Posted 15 December 2013 - 07:38 PM

Hello !!!!

 

I thin kyou can help me in the Linux command , i use redhat OS. so all comand as: "sudo, git,.." can not found.

 

And i will use it into mining YAC coin!

 

Please help!



#8 mindfox

mindfox

    Unitecoin Team

  • DEVELOPER SUPPORT
  • PipPip
  • 62 posts
  • 16 topics

Posted 16 December 2013 - 05:41 AM

Sorry for taking over this thread, but it is not advisable to use cpu-mining for high-difficulty coins (such as BTC, LTC, NMC, etc).

There is no way to break even... Ever!

 

My oppinion is that those "cloud mining" posts have 2 aspects:

1) Help users understand how to setup a linux-based ecoin daemon (no GUI involved)

2) Get referral bonuses for the thread authors (which I think is the most obvious reason).

 

In other words, don't mine with CPU. It is not cost-efficient 



#9 cannachris

cannachris

    New Member

  • MEMBER
  • Pip
  • 13 posts
  • 0 topics
    • Time Online: 2h 57m 27s

Posted 16 December 2013 - 09:00 PM

Could this be profitable for quarkcoin though?



#10 derrend

derrend

    New Member

  • MEMBER
  • Pip
  • 8 posts
  • 4 topics
    • Time Online: 5h 3m 4s

Posted 17 February 2014 - 11:01 PM

i get an error when i put this 

 

sudo dd if=/dev/zero of=/swapfile bs=64M count=16; sudo mkswap /swapfile; sudo swapon /swapfilesudo mkswap /swapfilesudo swapon /swapfile

 

error bad syntx can someone help me?

"sudo mkswap /swapfilesudo swapon /swapfile" is repeat text and should be removed from the end of the command. I don't know why it repeated in the original post but i've fixed it now. sorry about that ;)







Also tagged with one or more of these keywords: Mining, Bitcoin, DigitalOcean, Instructions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users