Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script for install monerod 0.11
# Ergil Osin 2017
# Donate XMR 4FRyuEftwbeGToYJY6hcmTeFCEQufop63QDLPpabYcx9Ju78jqKdNvS99QNmWryLdobo1o7XocACES84LHzN8Guj5M82kEK79jUK6HG2ax
sudo apt update
sudo apt -y install wget curl git build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libcurl4-openssl-dev libgtest-dev
cd /usr/src/gtest
sudo cmake .
sudo make
sudo mv libg* /usr/lib/
cd /usr/local/src
sudo git clone
cd monero
sudo git checkout release-v0.11.0.0
make -j$(nproc)
sudo cp monero.service /lib/systemd/system/
sudo useradd -m monerodaemon -d /home/monerodaemon
BLOCKCHAIN_DOWNLOAD_DIR=$(sudo -u monerodaemon mktemp -d)
sudo -u monerodaemon wget -O $BLOCKCHAIN_DOWNLOAD_DIR/blockchain.raw
sudo -u monerodaemon /usr/local/src/monero/build/release/bin/monero-blockchain-import --input-file $BLOCKCHAIN_DOWNLOAD_DIR/blockchain.raw --batch-size 20000 --database lmdb#fastest --verify off --data-dir /home/monerodaemon/.bitmonero
sudo -u monerodaemon rm -rf $BLOCKCHAIN_DOWNLOAD_DIR
sudo systemctl daemon-reload
sudo systemctl enable monero
sudo systemctl start monero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment