Author

Topic: Mine Bitcoin Using DigitalOcean (VPS) Instructions. (Read 3718 times)

legendary
Activity: 2912
Merit: 1060
Man I was expecting the date of the post to say 2009. But this is a great way to run a node.
legendary
Activity: 2087
Merit: 1015
I highly doubt this is profitable.
5 bucks a month to barely mine a fraction of a bitcoin per year... it is far from profitable for readers of this thread but very profitable for the poster if everyone uses his referral link.
newbie
Activity: 13
Merit: 0
I highly doubt this is profitable.
hero member
Activity: 707
Merit: 505
IMPORTANT NOTES:
----------------

# None of the commands are missing 'sudo', where you need 'sudo' it is there and where you don't it isn't. Also 'sudo' only starts to show up after you change into a non-privileged user because it is not needed before that. I was careful.

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


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 Smiley

#02) Create an Ubuntu 13.04 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) First thing to do once your logged in is to change the root password into something you can remember.
Code:
passwd
#05) Being logged in as the root user is not recommended for various reasons so we will create a non-privileged user, follow the prompts after issuing the command, only username and password are necessary, you may leave the other fields blank if you wish.
Code:
adduser
#06) Add the new user to the 'sudoers' file to be able to execute root privilege level commands as that user.
Code:
echo '    ALL=(ALL:ALL) ALL' >> /etc/sudoers
#07) Change into the new user user.
Code:
su
#08) Relocate into the home directory of the user you have changed into.
Code:
cd
#09) Linux likes having a swap file, so let's create one.
Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16; sudo mkswap /swapfile; sudo swapon /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
#10) Install 'bitcoind' using apt-get.
Code:
sudo apt-get install bitcoind
#11) Launch 'bitcoind'.
Code:
bitcoind &
#12) Launching 'bitcoind' caused the generation of many default files in '~/.bitcoin', we will now stop bitcoind so that we can edit them.
Code:
bitcoind stop
#13) Inject text into the 'bitcoin.conf' file using the commands below.
Code:
echo 'rpcuser=' | cat - ~/.bitcoin/bitcoin.conf > temp && mv temp ~/.bitcoin/bitcoin.conf
echo 'gen=1' >> ~/.bitcoin/bitcoin.conf
echo 'server=1' >> ~/.bitcoin/bitcoin.conf
echo 'daemon=1' >> ~/.bitcoin/bitcoin.conf
#14) Relaunch 'bitcoind'
Code:
bitcoind
All done. Good luck in your mining endeavours!!


OTHER USEFUL COMMANDS:
----------------------

# Show bitcoin wallet balance.
Code:
bitcoind getbalance
# Show bitcoin wallet address.
Code:
bitcoind getaccountaddress
# Send bitcoins to another address.
Code:
sendtoaddress
# General information.
Code:
bitcoind getinfo
# Mining information.
Code:
bitcoind getmininginfo
Jump to: