Last active
February 2, 2023 01:17
-
-
Save bliotti/a89320827d3171ebd6676026fe02e379 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
# docker run -it -v "$(pwd)":/mnt --name ordy debian | |
# Debian GNU/Linux 11 (bullseye) | |
# apt update && apt install curl | |
set -x | |
apt update -y | |
apt upgrade -y | |
apt install -y curl wget git vim sudo man-db file htop | |
# Install Rust | |
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y | |
source /root/.bashrc | |
# Install bitcoind | |
cd /tmp | |
wget https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz | |
tar -xvf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz | |
install -m 0755 -o root -g root -t /usr/local/bin bitcoin-24.0.1/bin/* | |
bitcoind -daemon -signet -txindex | |
# Install Ord | |
apt install -y libssl-dev build-essential | |
git clone https://github.com/casey/ord.git | |
cd ord | |
cargo build | |
install -m 0755 -o root -g root -t /usr/local/bin target/debug/* | |
adduser --gecos "" --disabled-password --shell /bin/bash --ingroup sudo admin | |
echo "admin:pass" | chpasswd | |
su - admin | |
echo "DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment