Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script for install monerod 0.11
#!/bin/bash
# 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 https://github.com/monero-project/monero.git
cd monero
sudo git checkout release-v0.11.0.0
make -j$(nproc)
wget https://gist.githubusercontent.com/Ernillew/f0f1d03ed73a70cf26c6b3ba20632db4/raw/c87dbb71a5f990a97d0d72fae6f04d3eabef3e81/monero.service
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 https://downloads.getmonero.org/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