-
-
Save juliangruber/e69c75fb81df9a5d635a05fc4fbdb88c 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
# 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