Bitcoin Forum
May 25, 2024, 04:18:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mine Bitcoin Using DigitalOcean (VPS) Instructions.  (Read 3693 times)
derrend (OP)
Hero Member
*****
Offline Offline

Activity: 707
Merit: 505



View Profile WWW
July 29, 2013, 08:23:43 PM
 #1

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 <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
mungjeezy
Newbie
*
Offline Offline

Activity: 13
Merit: 0



View Profile
July 30, 2013, 02:33:57 AM
 #2

I highly doubt this is profitable.
bitspill
Legendary
*
Offline Offline

Activity: 2072
Merit: 1015



View Profile
July 30, 2013, 02:39:02 AM
 #3

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.

{ BitSpill }
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 04, 2014, 01:49:25 PM
 #4

Man I was expecting the date of the post to say 2009. But this is a great way to run a node.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!