Skip to content

Instantly share code, notes, and snippets.

@BePositiV
Created September 23, 2019 17:34
Show Gist options
  • Save BePositiV/2b223d5bea768e5d4ac794401fdf8169 to your computer and use it in GitHub Desktop.
Save BePositiV/2b223d5bea768e5d4ac794401fdf8169 to your computer and use it in GitHub Desktop.
noia node ubuntu install
sudo iptables -I INPUT -p tcp --dport 8048 -j ACCEPT && sudo iptables -I INPUT -p udp --dport 8058 -j ACCEPT && sudo apt update && sudo apt -y install curl git npm build-essential python-dev && curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - && sudo apt -y install nodejs && git clone https://github.com/noia-network/noia-node-cli.git && cd noia-node-cli && npm install && npm audit fix && npm run build && npm start
cd ~
nano noia.service
[Unit]
Description=noia
[Service]
User=root
WorkingDirectory=/root/noia-node-cli
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=7
[Install]
WantedBy=default.target
sudo cp noia.service /etc/systemd/system/noia.service && sudo systemctl enable noia.service && sudo systemctl start noia.service && sudo journalctl -fu noia.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment