Difference between revisions of "Installing TP-Link Omada SDN Controller on a Debian-based LXC"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "<br> {{{!}} class="wikitable" style="float: right; width: 322px;" border="2" {{!}}+ Proven on: {{!}}- --="" debian="" {{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]] {{!}} style="text-align: center; width: 40px;" {{!}} 12 (bookworm) {{!}} (Debian 12, 4GB RAM, 4 cores) <br> {{!}}} == <span style="color: rgb(132, 63, 161);">Start with the prerequisites:</span> == *...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}+ Proven on:
Line 5: Line 4:
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 12 (bookworm)
{{!}} style="text-align: center; width: 40px;" {{!}} 12 (bookworm)
{{!}} (Debian 12, 4GB RAM, 4 cores)
{{!}} 4 cores, 4GB RAM, 8GB storage
<br>
{{!}}}
{{!}}}


Line 23: Line 21:
== <span style="color: rgb(132, 63, 161);">Install SDN:</span> ==
== <span style="color: rgb(132, 63, 161);">Install SDN:</span> ==


* <code>sudo wget wget <nowiki>https://static.tp-link.com/upload/software/2023/202312/20231201/Omada_SDN_Controller_v5.13.22_Linux_x64.tar.gz</nowiki></code>
NOTE: The download page (to check current versions etc...) fails to show the Linux versions if you let it redirect to country-local versions. Actua, functional download page is [https://www.tp-link.com/en/support/download/omada-software-controller/#Controller_Software here].
 
* <code>sudo wget wget <nowiki>https://static.tp-link.com/upload/software/2024/202402/20240227/Omada_SDN_Controller_v5.13.30.8_linux_x64.tar.gz</nowiki></code>
* <code>tar zxvf Omada_SDN_Controller_v5.12.7_linux_x64.tar.gz</code>
* <code>tar zxvf Omada_SDN_Controller_v5.12.7_linux_x64.tar.gz</code>
* <code>cd Omada_SDN_Controller_v5.12.7_linux_x64</code>
* <code>cd Omada_SDN_Controller_v5.12.7_linux_x64</code>
Line 29: Line 29:
or (Tho this seems to fail weirdly whenever they update the version while the tar.gz version doesn't):
or (Tho this seems to fail weirdly whenever they update the version while the tar.gz version doesn't):


* <code>wget <nowiki>https://static.tp-link.com/upload/software/2023/202312/20231201/Omada_SDN_Controller_v5.13.22_Linux_x64.deb</nowiki></code>
* <code>wget <nowiki>https://static.tp-link.com/upload/software/2024/202402/20240227/Omada_SDN_Controller_v5.13.30.8_linux_x64.deb</nowiki></code>
* <code>sudo dpkg -i ./Omada_SDN_Controller_v5.13.22_Linux_x64.deb</code>
* <code>sudo dpkg -i ./Omada_SDN_Controller_v5.13.22_Linux_x64.deb</code>
Upon install, Omada Controller will start up. Eventually. It does seem to take a VERY long time for it's first start...
Upon install, Omada Controller will start up. Eventually. It does seem to take a VERY long time for it's first start...
Line 40: Line 40:


(Really, just Part B, Step 1 at that link.)
(Really, just Part B, Step 1 at that link.)
* <code>openssl pkcs12 -export -out '''YOURFQDN'''.pfx -inkey '''YOURKEY.key''' -in '''YOURCERT.crt''' -certfile '''YOURCERT.crt'''</code>
Where:
* '''YOURFQDN'''
** is the name of your Omada server
* '''YOURKEY.key'''
** Is your key file
* '''YOURCERT.crt'''
** is your certificate file


Then install/update via the UI & fully reboot the server/VM/LXC to activate it... :(
Then install/update via the UI & fully reboot the server/VM/LXC to activate it... :(

Latest revision as of 13:57, 8 June 2024

Proven on:
Logo Debian.png
12 (bookworm) 4 cores, 4GB RAM, 8GB storage

Start with the prerequisites:

  • sudo apt update && sudo apt install openjdk-17-jre-headless jsvc curl gnupg -y
    • wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
    • sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
  • curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
  • echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
  • sudo apt update && sudo apt install mongodb-org
  • sudo systemctl start mongod.service
  • sudo systemctl status mongod
  • sudo systemctl enable mongod

Install SDN:

NOTE: The download page (to check current versions etc...) fails to show the Linux versions if you let it redirect to country-local versions. Actua, functional download page is here.

  • sudo wget wget https://static.tp-link.com/upload/software/2024/202402/20240227/Omada_SDN_Controller_v5.13.30.8_linux_x64.tar.gz
  • tar zxvf Omada_SDN_Controller_v5.12.7_linux_x64.tar.gz
  • cd Omada_SDN_Controller_v5.12.7_linux_x64
  • sudo bash ./install.sh

or (Tho this seems to fail weirdly whenever they update the version while the tar.gz version doesn't):

  • wget https://static.tp-link.com/upload/software/2024/202402/20240227/Omada_SDN_Controller_v5.13.30.8_linux_x64.deb
  • sudo dpkg -i ./Omada_SDN_Controller_v5.13.22_Linux_x64.deb

Upon install, Omada Controller will start up. Eventually. It does seem to take a VERY long time for it's first start...

https://SERVERADDRESS:8043/

CERTS!!!

You'll need to have your proper certs downloaded & then mess with making a .PFX file from them...

(Really, just Part B, Step 1 at that link.)

  • openssl pkcs12 -export -out YOURFQDN.pfx -inkey YOURKEY.key -in YOURCERT.crt -certfile YOURCERT.crt

Where:

  • YOURFQDN
    • is the name of your Omada server
  • YOURKEY.key
    • Is your key file
  • YOURCERT.crt
    • is your certificate file

Then install/update via the UI & fully reboot the server/VM/LXC to activate it... :(