Last updated 4:30am 2016-02-11 GMT.
Changes:
- Update to first official Classic release
- Added upgrade instructions
Running a full node can help the Bitcoin network significantly.
There's lots of benefits to running your own node and most people can run one at home.
For those who can't, or for those that want to run an extra one, the options are usually limited to virtual private servers (VPS) or dedicated servers (expensive).
Enter seedboxes - usually inexpensive, but provide plenty of disk space and resources to run a full node. This gist provides a list of seedbox providers that you can run a full node on, confirmed and unconfirmed. It also provides instructions for setting up a full node as a regular user on these services. The instructions work on Feral Hosting, but should work just fine on a different seedbox provider or a VPS, dedicated server or AWS instance.
Security on seedboxes, as with most shared Linux boxes, is usually adequate for most users, but please note that I recommend against using a seedbox with wallets you care about. You can, and most of the time you won't run into issues, but in general you should never put your wallet on a server that other people have access to. Use at your own risk!
Also note that if someone else is running a Bitcoin daemon on the same box as you, you won't be able to run your full node on the default port (8333). You can get around this by setting a custom port. However, having two nodes running on the same box is not particularly useful, as running your node on a non-standard port will greatly limit how many other clients will connect to you.
These providers have been confirmed to work with the instructions below.
- Feral Hosting's Helium plan (1TB), £10/month
Please contact me if you can add to the list or confirm whether a provider works with this gist.
These providers should work, but have not been tested yet.
- Kimsufi KS-1 (500GB), $5/month (dedicated server, not seedbox, so may require more setup)
- Hudson Valley Host Plan4 (100GB), $7/month (25% off first month with code 25offfirst)
- BaconSeed Pork Rind (125GB), €8/month
- Big Slice Box's Baby Box 130 (130GB), €12/month
- NOC Room - Promo Plan (200GB HD), $14.99/month
Whatbox Flex (360GB), $15/monthDoes NOT work.
Please contact me if you can add to the list or confirm whether a provider works with this gist.
- Provision a seedbox from a provider of your choice (I use Feral Hosting).
- Get your login details and connect to your server - username, password, hostname/address.
- Log into the seedbox.
- On Linux/OS X, use a terminal application and run "ssh [email protected]"
- On Windows, download and open PuTTy and connect. Look for a PuTTy tutorial if you have trouble.
- Create and enter a "bitcoin" directory to hold things.
- mkdir bitcoin
- cd bitcoin
- Pull down the Bitcoin Classic binaries with wget
- Extract the Classic binaries
- tar xf bitcoin-0.11.2-linux64.tar.gz
- Run the Classic Bitcoin daemon for the first time.
- ./bitcoin-0.11.2/bin/bitcoind --daemon
- You'll be given credentials for rpcuser and rpcpassword. Copy them, then open bitcoin.conf with nano.
- nano ~/.bitcoin/bitcoin.conf
- Paste the credentials into nano - Command-V if on OS X, Ctrl-V if on Linux, right-click if on Windows.
- Hit Ctrl+X once, then type "Y", then hit enter to save the file in nano.
- Change the permissions to the conf file you just created in order to help secure it.
- chmod 400 ~/.bitcoin/bitcoin.conf
- Finally, start the Bitcoin Classic daemon again.
- ./bitcoin-0.11.2/bin/bitcoind --daemon
It should simply say "Bitcoin server starting" and then fork off to the background. You're done!
- If you want to see the node working, you can run the "disk use" command (du) and see the blockchain getting bigger on the disk.
- du -h ~/.bitcoin/
- Once the total in the bottom left hits ~64GB (as of today) your node is fully synced up.
- Check connectivity your node
- Visit https://bitnodes.21.co/nodes/ and go to the bottom left, and enter your seedbox address. Click "check node".
- If your node is up and reachable, a green bar with your node's IP should pop up.
If you're having issues, here are some common problems and solutions.
You can check for other users running Bitcoin daemons on your box by running this command
- netstat -anp | grep LISTEN | grep 8333
If that command returns some results, you should ask to be moved to a different box.
If your node is showing as "Unreachable" on the Bitnodes check node tool, you may not have port 8333 open.
To open it, use iptables or equivalent.
- sudo iptables -I INPUT -p tcp --dport 8333 -j ACCEPT
- sudo service iptables save
If you downloaded Bitcoin Classic beta 2 during the testing period, or even Bitcoin Core, you might want to upgrade to the first official release. Changing versions is easy, and in most cases you'll be able to reuse your existing blockchain. Your folders/files may be named differently, so watch for that and change the commands appropriately. Here's how to upgrade:
- Log into your seedbox
- Change to the "bitcoin" directory
- cd bitcoin
- Stop Bitcoin
- ./bitcoin-0.11.2/bin/bitcoin-cli stop
- Remove the old version
- rm -r bitcoin-0.11.2
- rm bitcoin-0.11.2-linux64.tar.gz
- Download the new version
- wget https://github.com/bitcoinclassic/bitcoinclassic/releases/download/v0.11.2.cl1/bitcoin-0.11.2-linux64.tar.gz
- Extract the new version
- tar xf bitcoin-0.11.2-linux64.tar.gz
- Run the new version
- ./bitcoin-0.11.2/bin/bitcoind --daemon
It should simply say "Bitcoin server starting" and then fork off to the background. You're done (again)!
FYI, Whatbox specifically bans "mining applications". Whether or not that includes somebody just running a full node, I don't know.