Skip to content

Instantly share code, notes, and snippets.

Last active November 16, 2020 15:22
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{juliangruber,chartgerink}.keys >> ~/.ssh/authorized_keys
# install nodejs and build tools
curl -sL | 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:\/\/\/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