Last active
March 4, 2025 20:50
-
-
Save Sclafus/9823cc863ad4d007d0ccfef048fa4942 to your computer and use it in GitHub Desktop.
Install n8n on raspberry pi (natively)
This file contains 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
#!/bin/bash | |
# updating system | |
sudo apt update | |
sudo apt upgrade -y | |
# installing build tools and python | |
sudo apt install build-essential python | |
# installing nodejs | |
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | |
sudo apt install nodejs | |
# install n8n globally | |
npm install n8n -g | |
# adding systemd entry | |
sudo echo "[Unit] | |
Description=n8n - Easily automate tasks across different services. | |
After=network.target | |
[Service] | |
Type=simple | |
User=pi | |
ExecStart=/usr/bin/n8n start --tunnel | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target" > /etc/systemd/system/multi-user.target.wants/n8n.service | |
# reloading, enabling on boot and starting n8n | |
sudo systemctl daemon-reload | |
sudo systemctl enable n8n | |
sudo systemctl start n8n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @caldeusrp 👋
The
echo
command from line 17 to 29 may have failed, are you running it withsudo
? Looks like a permission error to redirect the output to/usr/...
You are right indeed, I will correct it, thanks.
That's pretty odd, have you tried running it without
sudo
?