Skip to content

Instantly share code, notes, and snippets.

@bliotti
Last active February 2, 2023 01:17
Show Gist options
  • Save bliotti/a89320827d3171ebd6676026fe02e379 to your computer and use it in GitHub Desktop.
Save bliotti/a89320827d3171ebd6676026fe02e379 to your computer and use it in GitHub Desktop.
#!/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