Coder Social home page Coder Social logo

akraycek / bitcoinautonode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geopaymeinc/bitcoinautonode

0.0 1.0 0.0 149 KB

A script to run (ideally just after starting up a new server/vps) to automatically setup bitcoind and have it start on boot. It is not intended you use the same machine for anything other than as a node.

Shell 100.00%

bitcoinautonode's Introduction

BitcoinAutoNode

A script to run (ideally just after starting up a new server/vps) to automatically setup bitcoind and have it start on boot.

This script runs bitcoind under the bitcoin user. An alias (btc) is added to the current user's .bashrc. Where you'd normally type bitcoin-cli you can type btc, eg: btc getinfo.

It has been tested on Ubuntu Server 14.04 and 15.04. It is intended for use only on these distros.

One Liner

wget https://raw.github.com/XertroV/BitcoinAutoNode/master/bitcoinAutoNode.sh ; sudo bash bitcoinAutoNode.sh

You should really check out the code before running that though.

Super Lazy Method

If you want to run one command then disconnect (nearly) straight away, use this:

wget https://raw.github.com/XertroV/BitcoinAutoNode/master/stub.sh ; sudo bash stub.sh ; exit

It should drop the connection once it's started. You can view the setup with screen -r bitcoinInstaller and detach (when viewing) with Ctrl+a d.

Notes

Currently Bitcoin XT is cloned from git and compiled. If you would like to set use Bitcoin Core instead you can find the last version to support installing from PPA here.

Previously, the script would prompt you to change your password and would install the ufw (and allow ports 8333 and 22). However, I've removed that. All that happens now is installing bitcoind and dependencies.

Pruning is used and by default set to a maximum of ~60% of the / volume, ensuring it can be run on a small VPS. For this reason a 2 GB swap file is also instantiated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.