Last active
November 3, 2021 03:49
-
-
Save Ernillew/691b5e4b6867425ef4f821aacc2790a4 to your computer and use it in GitHub Desktop.
Script for install monerod 0.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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