n8n on Ubuntu with npm: local install and first templates
Watch on YouTube ↗ Subscribe on YouTube ↗
Written guide: Self-host n8n on Ubuntu: Docker and Node.js setup
Install n8n on Ubuntu with Node.js and npm, open the editor on localhost, and start a first workflow. The walkthrough predates n8n 3.0, when npm installs became deprecated.
Video summary
Learn how to self-host n8n for free on Ubuntu Linux with this easy-to-follow guide! This video walks you through the entire process, from setting up your Linux environment to installing and running n8n, the powerful automation tool. No prior experience is needed! You will also learn how to get started building automation workflows with free templates provided by N8N.
The video covers 9 parts: Install N8N Locally, Ubuntu Setup Steps, Log In Dashboard, Build Simple Workflow, Use N8N Templates, Viral Video Automation, YouTube Summary Workflow, Free AI Image Generator, and Community And Resources.
What this video covers
What you build
A local n8n instance on Ubuntu started from the terminal, a manual-trigger OpenAI workflow, and imported templates for image generation, video generation and YouTube summaries.
Tools used
Key steps
- 0:45 - Update Ubuntu, install Node.js and the Node package manager, then install and start n8n.
- 1:20 - Open the local dashboard and sign in.
- 2:00 - Create a workflow with a manual trigger and an OpenAI message node.
- 2:45 - Import a free template from the n8n templates site into the local instance.
- 3:30 - Import a daily video generation template, which stops on an unrecognized node and a missing Veo key.
- 4:15 - Try a YouTube summary template, which needs an Apify key.
- 5:00 - Run a free AI image generator template and view the generated island image.
Not covered
- Running n8n on a server with HTTPS, webhooks reachable from the internet or backups.
- Updating n8n or keeping it running after a reboot.
- Whether the quoted cloud price range of $20 to $800 a month is current.
- Posting to Facebook, which needs an access token that is not set up.
In this video
- 0:00 Install N8N Locally
- 0:45 Ubuntu Setup Steps
- 1:20 Log In Dashboard
- 2:00 Build Simple Workflow
- 2:45 Use N8N Templates
- 3:30 Viral Video Automation
- 4:15 YouTube Summary Workflow
- 5:00 Free AI Image Generator
- 5:45 Community And Resources
Questions and answers
Is this the same as the cloud version?
It looks and works like the standard n8n, Mike says, running on a local machine instead of a paid cloud plan.
Do the templates work right away?
Not always. Some need credentials, API keys or nodes that are missing, and Mike shows several that stop for that reason.
Why Linux?
Mike finds it faster than Windows and simpler than setting up Docker on Windows. This is a personal view.
Keep learning
Transcript
Hey there, welcome to the channel. In this video, I'm excited to share with you how to install inn on your local machine. In this case, I'm using the latest version of Abuntu Linux so that you can run it locally rather than spending an arm and a leg on the cloud service version of N, which is anywhere from about $20 up to $800 a month. I've just recently decided to switch over to Linux because it runs a lot faster on my laptop compared to Windows 11.
And it's also much easier to install lots of different open-source software packages on Linux versus Windows, which requires you to use a complicated software like Docker. And I've actually tried it before and I I could never figure it out. But now I've got it installed on Linux. It runs really fast. In order to get started, you're just going to want to search Google for how to install n8n on Abuntu Linux. And here's the instructions as provided by Google Gemini.
Read the rest of the transcript
You can see here you just have to do pseudo app update and upgrade. And then you install Node.js. You install the Node package manager. And then you just install N and run it. And then it will be running on your local host machine right here. So that's exactly what I've done. As you can see in the terminal over here, I'm just running n8n and then it spools up the process and runs it on my local host machine right here.
So now I've got n running on a bunch Linux. So I don't have to pay for the cloud service over here, which is around 20 $20 to $60 all the way up to $800 a month. There's no need for that. It's running locally on my Abuntu system right here. So, I'm just going to log into my account real quick. And it's already saved everything, so I can just log in right away.
I also have all of the pro features as well because I activated the uh API plugin, so that's good to go. And they've just announced these new data tables, which are a much faster way to pull in data basically. Um, and it looks like I will have the option to update to that, but for now, I'm just going to skip it. And in order to get started here, you're just going to want to click on create a workflow in the upper right here.
And then it will drop you into your dashboard. So, as you can see, it looks exactly like the standard n8n. If I just click here, I can add in a trigger. There we go. It's a little bit slow for some reason. And I'm just going to click on trigger manually so I can execute this workflow quickly and easily like so. And by the way, if you want to click and drag, just hold control and click in order to drag around your workspace. Very easy.
And then from here, I can, you know, let's say connect up an AI integration like Google Gemini or OpenAI. In this case, I already have the credentials for OpenAI. So, I'm just going to select message a model here. And that will drop in an open a OpenAI module. And then from here, I can message a model. And I can also choose the model that I want to use here. So I'm going to use GPT4 latest.
And you can obviously enter in the prompt whatever you want here. And then you can just execute that quickly and easily. It's running 100% on my local machine. Keep in mind I'm still relatively new to N as maybe some of you are watching this as well. So if you don't want to do all of this from scratch, you can also choose from some templates. So, if you just click on templates right here, it will open up another website right here.
And this is on the official n8n.io site. As you can see, there's 5800 workflow automation templates available. And you can basically just go through this and find ones that are interesting for you. Here's one to learn the n basics in three steps. So, all I'm going to do is I'm going to click on use for free right here. And I can import this into my self-hosted inst instance right here. As you can see from here, I will need to connect up Gmail.
So I need to connect up the client ID and client secret. That's going to take a little bit of time. So I'm actually just going to skip that for now. And I can show you what the template looks like. So here we are. This is what it looks like. And it's just broken up into nice little modules. So you can watch that.
And then you can also just test this out as well quickly and easily using the done for you template which is completely free inside N. So it works great. I'm just going to leave that without saving and I'll show you some other templates that they have available over here as well. Here's another one that will generate AI viral videos with V3 and upload them to Tik Tok. So, if you want to use this template, it's available also completely for free.
I'm just going to click the button here, import it into my local self-hosted instance. And then, as you can see, I've already connected up the modules here. So, the API keys are already added in. And then I can just click on continue, and it will import that directly into my n8n right here. So, all of the information is here. It just shows you know you have to set up your open AI connection.
You can set up this module all the modules and then you integrate it with V3 and it even provides the URL here as well. So you can just click on this URL but you can take a look through this template here. Basically it's this is just going to start daily. So it will run every day and then it will generate creative videos. So this is the prop we're using right here. It's got the user message and then also the system message down here as well.
And if you want to make this a little bit bigger, you can just open it up. You can see everything right here. Very easy. And if we want to execute this step, we could just click on execute and it should run. It didn't actually output anything. But if I want to run this entire workflow, I could just click on execute workflow and we'll see if this works. unrecognized node type blotto. So blow is basically like an app that they're using for posting on social media.
In this case, Tik Tok. And it looks like I also need to connect up my API for VO3 as well. So there's still some more steps that I have to do to actually get this to run. So I'm just going to go ahead and save this for now. It will save it into my local workflow here. and I'll show you one that's already working. So, this is uh an n8n automation to summarize YouTube videos from a transcript.
If I click on execute workflow here, I can basically just paste in the URL. So, I'm just going to get one of my uh YouTube videos real quick. And we're just going to come over here and input that in as the URL right here. Looks like this one's still not working because it needs an API key for Amplify. That's what it's using for scraping the video and getting the transcript. So, you will need to put your API key in here, I believe.
Although, that should actually be the URL, not the API key. So, I'm not sure why it says API key here. Um, but I'm just going to go back and we can look at another one here. This is a free AI image generator also available over here under the templates. And there it is. That's the free AI image generator using Gemini and ChatgPT. So this is exactly what I'm using. And that's basically just going to create the image and automatically upload it to Facebook.
So that's what this is doing. And if I just click on open chat, I can tell it what I want it to create an image of. So let's just say island. Want it to create an image of an island. So we're going to do that. and it should create the image in a couple seconds here. N is very powerful. It works even better than make in a lot of ways. So there we go.
It just created the image and we should be able to see the output here somewhere. If we take a look at this module, there it is. So we can view the image. If you want to make that bigger, you can just enlarge this. And there we go. So it just created an image. And you can also automatically post this to uh Facebook as well. They have a module right here which is just going to uh post it to Facebook and that's using the graph API.
So you will need to uh once again add your access token and all that stuff here so that it can authenticate with Facebook. Just a few examples of you know automations that you can pull in right away using the done for you templates. And some of these are paid as well, like you have to pay a little bit to get access to some of these templates. But I would encourage you just to start playing around and seeing what you could do in N.
And if you have any questions about installing this locally on your system, uh, just drop them down below. And I would highly recommend using Linux because it makes things a lot easier in terms of locally hosting n8n on your machine. Um, also you can join my Skool community as well. that's growing fast. We've got almost a thousand members in there now. I actually just launched this one today, which is a separate community, but I recommend joining AI Automation Station. Lots of people introducing themselves in here.
And then I also have a classroom as well. I'm going to be building out some more modules in here as well for n8n. So, you're welcome to join the Skool community. You can get access to all of these automations. There's over 2,000 of them here. And I also have them installed on my Linux system as well. Yeah, highly recommend joining school and check out this uh all these automations. And if you have any questions, drop them down below. Thanks so much for watching.
I'll see you in the next one. Signing off.



