Bitcoin Forum

Bitcoin => Mining => Topic started by: derrend on July 29, 2013, 08:23:43 PM



Title: Mine Bitcoin Using DigitalOcean (VPS) Instructions.
Post by: derrend on July 29, 2013, 08:23:43 PM
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 (https://www.digitalocean.com/?refcode=9039094f0a5c) 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 :)

#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 <USERNAME>
#06) Add the new user to the 'sudoers' file to be able to execute root privilege level commands as that user.
Code:
	echo '<USERNAME>    ALL=(ALL:ALL) ALL' >> /etc/sudoers
#07) Change into the new user user.
Code:
	su <USERNAME>
#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=<UNIQUE_USERNAME>' | 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 <UNIQUE_USERNAME>
# Send bitcoins to another address.
Code:
	sendtoaddress <BITCOINADDRESS> <AMOUNT>
# General information.
Code:
	bitcoind getinfo
# Mining information.
Code:
	bitcoind getmininginfo


Title: Re: Mine Bitcoin Using DigitalOcean (VPS) Instructions.
Post by: mungjeezy on July 30, 2013, 02:33:57 AM
I highly doubt this is profitable.


Title: Re: Mine Bitcoin Using DigitalOcean (VPS) Instructions.
Post by: bitspill on July 30, 2013, 02:39:02 AM
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.


Title: Re: Mine Bitcoin Using DigitalOcean (VPS) Instructions.
Post by: bitpop on January 04, 2014, 01:49:25 PM
Man I was expecting the date of the post to say 2009. But this is a great way to run a node.