Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Last active November 16, 2020 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliangruber/e69c75fb81df9a5d635a05fc4fbdb88c to your computer and use it in GitHub Desktop.
Save juliangruber/e69c75fb81df9a5d635a05fc4fbdb88c to your computer and use it in GitHub Desktop.
# 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