Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# execute this as root on a fresh ubuntu server
# be sure to change the github user names below if necessary
set -e
# set up user
adduser ubuntu --disabled-password --gecos ""
usermod -aG sudo ubuntu
echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' | EDITOR='tee -a' visudo
su - ubuntu
mkdir ~/.ssh
curl https://github.com/{juliangruber,chartgerink}.keys >> ~/.ssh/authorized_keys
# install nodejs and build tools
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install -y nodejs build-essential
# fix npm permission issues
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:\$PATH" >> ~/.profile
source ~/.profile
# install and start permanent-seeder
npm i -g @geut/permanent-seeder
permanent-seeder config:init
sed -i 's/http:\/\/localhost:3000/https:\/\/vault.hypergraph.xyz\/api\/modules/' permanent-seeder/settings.toml
permanent-seeder start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment