{"id":75,"date":"2022-01-06T14:54:02","date_gmt":"2022-01-06T22:54:02","guid":{"rendered":"https:\/\/www.liljegrens.org\/?p=75"},"modified":"2023-08-08T10:45:25","modified_gmt":"2023-08-08T18:45:25","slug":"build-unifi-controller-on-amazon-web-server","status":"publish","type":"post","link":"https:\/\/www.liljegrens.org\/?p=75","title":{"rendered":"Build Unifi Controller on Amazon Web Server"},"content":{"rendered":"\n<p>Set up account in AWS and navigate to EC2 console.  Here we will create a new instance, look at the left menu bar for &#8220;Instances&#8221;.  At top right click &#8220;Launch Instances&#8221;.  Following are the Amazon steps to create instance:<\/p>\n\n\n\n<p>Step 1: Chose an AMI &#8211; Select Ubuntu Server 20.04 LTS &#8211; this should be Free tier eligible.<\/p>\n\n\n\n<p>Step 2: Chose an Instance Type &#8211;  t2.micro runs Unifi fine with a few sites and devices<\/p>\n\n\n\n<p>Step 3 Configure Instance Details &#8211; not much to do here, leave as default<\/p>\n\n\n\n<p>Step 4: Add Storage &#8211; use 30gb<\/p>\n\n\n\n<p>Step 5: Add Tags &#8211; no need<\/p>\n\n\n\n<p>Step 6: Configure Security Groups &#8211; select the group you created<\/p>\n\n\n\n<p>Finish and launch:  Chose a key pair you already own<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>ssh into instance<\/p>\n\n\n\n<p>Update Ubuntu<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/pre>\n\n\n\n<p>Check java version &#8211; remove java if present<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -version<\/code><\/pre>\n\n\n\n<p>install java 8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install openjdk-8-jre-headless<\/code><\/pre>\n\n\n\n<p>install certs<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install ca-certificates apt-transport-https<\/code><\/pre>\n\n\n\n<p>add new source list<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'deb https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti' | sudo tee \/etc\/apt\/sources.list.d\/100-ubnt-unfi.list<\/code><\/pre>\n\n\n\n<p>add gpg keys<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo wget -O \/etc\/apt\/trusted.gpg.d\/unifi-repo.gpg https:\/\/dl.ui.com\/unifi\/unifi-repo.gpg<\/code><\/pre>\n\n\n\n<p>hold java 11 install<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-mark hold openjdk-11-*<\/code><\/pre>\n\n\n\n<p>update with apt-get and install unifi<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get install unifi<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set up account in AWS and navigate to EC2 console. Here we will create a new instance, look at the<\/p>\n<p><a href=\"https:\/\/www.liljegrens.org\/?p=75\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Build Unifi Controller on Amazon Web Server<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/posts\/75"}],"collection":[{"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=75"}],"version-history":[{"count":1,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liljegrens.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}