Project: Unifi controller running on Linode VPS

My Project

One of my goals this year is setting up a Unifi system by Ubiquiti at the house. Due to overall cost of setup, my going to spread out buy cost of equipment over several months. One of the first things I’ve bought so far was a Unifi Switch 8-60W. Reason I went with that first is because I was starting to run out of ethernet for all my internet-connected devices. Yes, I prefer wired versus WiFi if I can help it.

Ubiquiti

How one manages a Unifi device(s) is via the Unifi controller. First option, you could order the UniFi Cloud Key (newest version is UniFi Cloud Key Gen2). I would say this would have probably be the easiest method. Second option, you could just download the UniFi controller software and install it say like on any computer at your home that is connected all the time so you can get the statics/metrics of your UniFi network. You can also choice to install it say like on a Raspberry Pi 3 or 4, which I was having some difficult time on. Or you can just spin up a Linode Nanode 1GB VPS for $5 (US) per month like I did.

Linode

Linode is cheap and affordable in my oppion and the use of the Linode marketplace community stackscripts makes things really easy with setting up a UniFi controller on Linode.

  • Create a Linode account and/or login to your Linode account
  • Click on ‘Marketplace‘ tab on the left-side. (Screenshot-1).
  • Create from section, select ‘Community Stackscripts‘. (Screenshot-2).
  • In the search box type ‘unifi‘ and select ‘eseelke / Unifi‘. (Screenshot-3).
  • Once you select, scroll below your selection to fill out Unifi Options. (Screenshot-4).
  • In Select an Image section select Debian 9. (Screenshot-5).
  • In Region section, select the location close to you. (Screenshot-6).
  • In Linode Plan section, select Nanode tab and then select Nanode 1GB. (Screenshot-7).
  • In Linode Label section, you can leave default name. (Screenshot-8).
  • In Root Password section, enter a complex password. This is the password you would enter to access via SHH. (Screenshot-9).
  • In the Options add-ins if you would like backups, this would be a good time to set this up. Having backups of your VPS is very nice in case you run into issues, at least you (Screenshot-10).
  • Lastly, select Create. This will create your VPS. (Screenshot-11).
  • Once all setup is complete, you will have a working UniFi controller. (Screenshot-12).

Final Thoughts

From there you should be good to go. Just like any VPS that is public-facing remember to make sure you VPS is secure and only have the appropriate ports open. Linode does over some guidance on that here.

Hopefully this helps you with your UniFi controller setup. Note, this article does contain referrals links, so I might make a bit of commission for you clicking link.

My latest project – How to use an API (Open Weather)

openweather-api-project-Screenshot

One way of couping with the stay-at-home orders, I’ve been trying to learn a new skill(s). One new skill that I wanted to learn about is working with an application programming interface (API). What is an API? API is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service according to the Oxford dictionary. Below is my journey, enjoy!

openweather-api project

I wanted to learn more about working with API to help me with my IT services website that I want to build out and was told by a member of the Reseller Rodeo community to use the API when building the website. So, I was referred to research on how to do that via Google. I came across iEatWebsites YouTube Channel. He has a video called, “Using a Public API for Beginners” (see below).

iEatWebsites video on ‘Using a Public API for beginners’

His over on how to use a pubic API was very simple to understand. Note, you should already know some type of HTML, JavaScript, and CSS. And all I really knew at the start of this project some basic HTML. So, of course, I need to pick up some more knowledge of HTML, JavaScript, and CSS. In doing so, I completed the task at hand.

My project site is up at openweather.davisdre.me.

Since the intial setup, I’ve expanded it.

  • I added my workings to my GitHub page.
  • I’ve added the city name at top of the page.
  • I’ve added text below the API about the project.
  • I believe I’ve made the site mobile-responsive as well.

In the near future, my goal is to either 1) do IP geo-location when you access the site or 2) and a search box. Overall, I’m very satisfied with my openweather-api-project. I hope you enjoy my latest project and encouraged you to learn!