{"id":9,"date":"2024-09-21T15:11:15","date_gmt":"2024-09-21T06:11:15","guid":{"rendered":"https:\/\/yhk.im\/?p=9"},"modified":"2024-09-29T14:27:02","modified_gmt":"2024-09-29T05:27:02","slug":"%ec%9a%b0%eb%b6%84%ed%88%ac22-04%ec%97%90-unifi-controller-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/yhk.im\/?p=9","title":{"rendered":"\uc6b0\ubd84\ud22c22.04\uc5d0 Unifi Controller \uc124\uce58\ud558\uae30"},"content":{"rendered":"\n<p>\u200b<\/p>\n\n\n\n<p>#Check your Ubuntu version<\/p>\n\n\n\n<p>#Installing Unifi Repo<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"lsb_release -a\nsudo apt-get update &amp;&amp; sudo apt-get install ca-certificates apt-transport-https\necho 'deb [ arch=amd64,arm64 ] https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti' | sudo tee \/etc\/apt\/sources.list.d\/100-ubnt-unifi.list\nsudo wget -O \/etc\/apt\/trusted.gpg.d\/unifi-repo.gpg https:\/\/dl.ui.com\/unifi\/unifi-repo.gpg\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">lsb_release <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">sudo apt<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">get update <\/span><span style=\"color: #F97583\">&amp;&amp;<\/span><span style=\"color: #E1E4E8\"> sudo apt<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">get install ca<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">certificates apt<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">transport<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">https<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">echo <\/span><span style=\"color: #9ECBFF\">&#39;deb [ arch=amd64,arm64 ] https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti&#39;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">|<\/span><span style=\"color: #E1E4E8\"> sudo tee <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">etc<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">apt<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">sources.list.d<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #79B8FF\">100<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">ubnt<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">unifi.list<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">sudo wget <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">O<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">etc<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">apt<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">trusted.gpg.d<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">unifi<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">repo.gpg <\/span><span style=\"color: #B392F0\">https<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #6A737D\">\/\/dl.ui.com\/unifi\/unifi-repo.gpg<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>#Alternativly download the package directly<\/p>\n\n\n\n<p>#Fixing the dependencies<\/p>\n\n\n\n<p>wget http:\/\/archive.ubuntu.com\/ubuntu\/pool\/main\/o\/openssl\/libssl1.1_1.1.1f-1ubuntu2_amd64.deb -O libssl1.1.deb<\/p>\n\n\n\n<p>sudo dpkg -i libssl1.1.deb<\/p>\n\n\n\n<p>curl https:\/\/pgp.mongodb.com\/server-4.4.asc | sudo gpg &#8211;dearmor | sudo tee \/usr\/share\/keyrings\/mongodb-org-server-4.4-archive-keyring.gpg &gt;\/dev\/null<\/p>\n\n\n\n<p>echo &#8216;deb [arch=amd64,arm64 signed-by=\/usr\/share\/keyrings\/mongodb-org-server-4.4-archive-keyring.gpg] https:\/\/repo.mongodb.org\/apt\/ubuntu focal\/mongodb-org\/4.4 multiverse&#8217; | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-4.4.list &gt; \/dev\/null<\/p>\n\n\n\n<p>sudo apt update &amp;&amp; sudo apt install -y mongodb-org-server<\/p>\n\n\n\n<p>sudo systemctl enable mongod &amp;&amp; sudo systemctl start mongod<\/p>\n\n\n\n<p>#Installing Unifi<\/p>\n\n\n\n<p>sudo apt-get update &amp;&amp; sudo apt-get install unifi -y<\/p>\n\n\n\n<p>sudo systemctl enable unifi &amp;&amp; sudo systemctl restart unifi<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u200b #Check your Ubuntu version #Installing Unifi Repo #Alternativly download the package directly #Fixing the dependencies wget http:\/\/archive.ubuntu.com\/ubuntu\/pool\/main\/o\/openssl\/libssl1.1_1.1.1f-1ubuntu2_amd64.deb -O libssl1.1.deb sudo dpkg -i libssl1.1.deb curl https:\/\/pgp.mongodb.com\/server-4.4.asc | sudo gpg &#8211;dearmor | sudo tee \/usr\/share\/keyrings\/mongodb-org-server-4.4-archive-keyring.gpg&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yhk.im\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9"}],"version-history":[{"count":6,"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/yhk.im\/index.php?rest_route=\/wp\/v2\/posts\/9\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/yhk.im\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yhk.im\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yhk.im\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}