Install TP-Link Omada SDN Controller on Ubuntu 20.04

In this tutorial I will show you how to Install the latest TP-Link Omada SDN Controller on Ubuntu 20.04. Tp-Link Omada is very similar to the Unifi Controller so the transition between the two wouldn’t be that difficult. 

The current version of TP-Link Omada SDN Controller that we will be installing is 4.2.11. Of course new packages will be released and they can be found on there Omada Software Download Page. You can copy the new URL and append the commands with the new installation package URL.

 

Lets Get Started

Prerequisites

  • A physical server / computer or VM with Ubuntu 20.04 Installed.
  • Access to the internet.
  1. Make sure to have Install Ubuntu 20.04 on your physical server or VM.
  2. Once the server is available, log into your Ubuntu 20.04 server using SSH.
  3. To SSH into the server we will be using Putty. Download and install Putty.
  4. Open up putty and type in the IPv4 address of your server and click open. 
  5. Log into your Ubuntu server with the user name and pw you provided. (Would be best if you used the root user.) How To Enable Root Login And SSH For Ubuntu 20.04
  6. Now lets get started with making sure we have the latest updates installed.
sudo apt-get update
sudo apt upgrade
sudo reboot

7. One your server is back up and your logged in again lets install Mongo DB using the following command.

sudo apt-get install mongodb

8. Install Java Application with the following command.

sudo apt-get install jsvc

9. Now lets install JDK v8. This is important because TP-Link Omada currently only works with JDK v8.

sudo apt-get install openjdk-8-jdk

10. In this step we will change the version of JDK we want Ubuntu 20.04 to use as default. 

sudo update-alternatives --config java

11. You should see mode 0, 1 and 2. Type in the selection 2.

12. Lets install gdebi which is better at executing .deb installations.

sudo apt install gdebi-core

13. Lets have some fun and get started with downloading TP-Link Omada 4.2.11 with the following command.

cd
sudo wget https://static.tp-link.com/2021/202102/20210209/Omada_SDN_Controller_v4.2.11_linux_x64.deb

14. Now we want to install the TP-Link Omada SDN Controller package by using the following command.

cd
sudo -i gdebi Omada_SDN_Controller_v4.2.11_linux_x64.deb

 

Yes! We are complete! You should now be able to access your controller using https://<Local IP Address>:8043 and adopt your devices.

 

I hope this article was helpful, if you have any questions please feel free to contact me. If you would like to be notified of when I create a new post you can subscribe to my blog alert.


Discover more from Patrick Domingues

Subscribe to get the latest posts sent to your email.

author avatar
Patrick Domingues

44 Comments

  1. Where does Mogo DB and the Java apps come from? I’m installing on a raspberry pi 4. Should those two be on the microSD?

  2. Just sucesfully installed the Omada controller on the raspberry pi 3
    Thank you so much Patrick for this tutorial
    It was very helpful for me

  3. Hi,

    After installation on a Ubuntu VPS, I get the following error:

    “136.xxx.xxx” uses an unsupported protocol.
    ERR_SSL_VERSION_OR_CIPHER_MISMATCH

    any idea how to fix this?

  4. mpiercy@drunkenfrenchman:~$ sudo wget https://static.tp-link.com/2021/202102/20210209/Omada_SDN_Controller_v4.2.11_linux_x64.deb
    –2021-12-17 00:02:26– https://static.tp-link.com/2021/202102/20210209/Omada_SDN_Controller_v4.2.11_linux_x64.deb
    Resolving static.tp-link.com (static.tp-link.com)… 13.225.50.15, 13.225.50.74, 13.225.50.73, …
    Connecting to static.tp-link.com (static.tp-link.com)|13.225.50.15|:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 59831776 (57M) [application/octet-stream]
    Saving to: ‘Omada_SDN_Controller_v4.2.11_linux_x64.deb’

    Omada_SDN_Controller_v4.2.11_linux_x 100%[====================================================================>] 57.06M 53.6MB/s in 1.1s

    2021-12-17 00:02:27 (53.6 MB/s) – ‘Omada_SDN_Controller_v4.2.11_linux_x64.deb’ saved [59831776/59831776]

    mpiercy@drunkenfrenchman:~$ cd
    mpiercy@drunkenfrenchman:~$ sudo -i gdebi Omada_SDN_Controller_v4.2.11_linux_x64.deb
    gdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.deb
    mpiercy@drunkenfrenchman:~$ cd
    mpiercy@drunkenfrenchman:~$ sudo -i gdebi Omada_SDN_Controller_v4.2.11_linux_x64.deb
    gdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.deb
    mpiercy@drunkenfrenchman:~$ ls
    Desktop Documents Downloads Music Omada_SDN_Controller_v4.2.11_linux_x64.deb Pictures Public Templates Videos
    mpiercy@drunkenfrenchman:~$ sudo -i gdebi Omada_SDN_Controller_v4.2.11_linux_x64.debgdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.deb
    gdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.debgdebi
    mpiercy@drunkenfrenchman:~$ sudo -H gdebi Omada_SDN_Controller_v4.2.11_linux_x64.debgdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.deb
    gdebi error, file not found: Omada_SDN_Controller_v4.2.11_linux_x64.debgdebi
    mpiercy@drunkenfrenchman:~$

    ?

    1. Hey Mac thanks for the visit. By the looks of it your logging in with a user besides root. Truthfully all this should be done with root and you may want to switch over to that.

      So with the current user you downloaded the package into your home folder.
      you may need to use CD /home to access home folder and then run the command to install.
      This should also work sudo -i gdebi /home/Omada_SDN_Controller_v4.2.11_linux_x64.deb

    1. Hello Enrico, thanks for the visit!

      1. Log into your controller and create a backup just in case.
      2. SSH into your controller.
      3. Use: sudo wget https://static.tp-link.com/upload/software/2022/202201/20220107/Omada_SDN_Controller_v5.0.29_Linux_x64.deb
      4. Now: sudo -i gdebi Omada_SDN_Controller_v5.0.29_Linux_x64.deb
      5. Accept The Install
      5. Done.

  5. Hello

    thanks for the first guide it worked perfectly.

    errors when I upgrade though

    sudo -i gdebi Omada_SDN_Controller_v5.0.30_Linux_x64.deb (command not found even it worked when I install it for the first time)

    sudo -h gdebi Omada_SDN_Controller_v5.0.30_Linux_x64.deb (file not found, even though is there)

    what do you think?

    1. Hey Steven,
      Hard to tell without being logged in and checking it or having a log. Throw a reboot after install gbedi, just in case.
      Now are you logging in as root or a different user? If you’re using a different user use the follow CD /home to access home folder then type in ls if you see the package you downloaded in there use the following /home/ before the package name.

  6. Hello

    Thanks for your response Yeah I can see the package when using ls, stillthe same issue.
    I had to do it differently
    Right cick on omamda.deb and install with another application and select Gdebi package.

    worked like a charm.

  7. The last command line refuses to run on my Linux Ubuntu 20 server. I have run all the other commands successfully. And ideas?

  8. Hello Patrick,

    Everything has being work with my controller ever since I used your article. Today I changed the port from 8043 to 443 and since then I have not being able to access the web GUI. Is there any way I can revert to the old port?

  9. I installed the omada controller with unifi controller on ubuntu 20.04. The unifi controller is working but the omada is not working. Please help. see details below. Big thanks!!

    #tpeap status
    Omada Controller is not running.

    #tpeap start
    check omada
    Starting Omada Controller. Please wait…………………………………… …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………
    Start failed.

    #sudo update-alternatives –config java
    Selection Path Priority Status
    ————————————————————
    0 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 auto mode
    1 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 manual mode
    * 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

    1. Hello Jack,

      Sorry, wish I could be more help but this is not recommended as you will run into a few problems as your experiencing. I believe both controllers my use the same java 8 directory.

    1. Hello Eduardo thank you for the visit! Create a controller backup. Afterwards I suggest starting on step 13
      sudo wget https://static.tp-link.com/upload/software/2022/202205/20220507/Omada_SDN_Controller_v5.3.1_Linux_x64.deb
      sudo -i gdebi Omada_SDN_Controller_v5.3.1_Linux_x64.deb
      Follow the messages for installation.

      1. $ sudo -i gdebi Omada_SDN_Controller_v5.3.1_Linux_x64.deb
        gdebi error, file not found: Omada_SDN_Controller_v5.3.1_Linux_x64.deb

        This is what I am getting after the download.

        Suggestions?

      2. Man, I went around the gdebi thing by.doing it thru dpkg.

        This is the result:

        ubuntu@ip-X-X-X-X:~$ sudo dpkg -i Omada_SDN_Controller_v5.3.1_Linux_x64.deb
        (Reading database … 164152 files and directories currently installed.)
        Preparing to unpack Omada_SDN_Controller_v5.3.1_Linux_x64.deb …
        A previous controller version has been detected.
        Unpacking omadac (5.3.1) over (5.3.1) …
        Setting up omadac (5.3.1) …
        Install Omada Controller succeeded!
        ==========================
        data dir is not empty.
        current data is not empty
        Omada Controller will start up with system boot. You can also control it by [/usr/bin/tpeap].
        check omada
        Starting Omada Controller. Please wait………………………………….
        Start failed.
        ========================
        Processing triggers for systemd (245.4-4ubuntu3.15) …
        [email protected]:~$

        Maybe you have an idea there!

        Thanks a lot for all your help!

        1. Hello Eduardo, That installer is saying that the latest 5.3.1 is already installed and you are attempting to install over 5.3.1.

          reboot the server and check sudo systemctl start tpeap also make sure your running all these commands with root user.

          1. ubuntu@ip-172-31-11-35:~$ sudo systemctl start tpeap
            Job for tpeap.service failed because a timeout was exceeded.
            See “systemctl status tpeap.service” and “journalctl -xe” for details.
            ubuntu@ip-172-31-11-35:~$

            It doesnt look good…

  10. Hi there
    Great article. Just getting started with OMADA and was thinking of installing the controller in a vm. I am assuming all the data in stored in Mongo db. If something goes wrong after I configure the whole network and i lose the installation, what would happen to the whole configuration.
    Am I better off getting an OC200 instead and just keep everything in hardware?

    Thanks
    Elo

  11. Hello Patrick. Is there any way to change the logo of omado controller software installed in in the ubuntu 20 OS?

  12. Hi. I have followed this guide to the letter on Vultr VM. I have ubiquiti on another instance and that works perfectly. All the way to the bottom of the guide and the SSH says starting omada etc. I even get “you can now access your server on …….. but when I try to goto the IP
    http://(IP):8043 i get nothing.

    Have tried https://
    both variations with 8088 as the port but it just doesn’t work. Happy to supply any logs but not sure how.

    Any advice?

    Thanks in advance

    1. sudo -i gdebi is attempting to execute and looking for the file. Are you logged in as root?
      If you type in ls do you see the file you downloaded?
      If you logged in as admin or any other user you may need to add the absolute path from where ever it downloaded to sudo -i gdebi /example/Omada_sdn_example.deb
      It may be within cd /home/ type ls to see if you find the file there. or it may be within the user folder you are logged in with.

      additionally this is the latest release: wget https://static.tp-link.com/upload/software/2023/202302/20230227/Omada_SDN_Controller_v5.9.9_Linux_x64.deb

  13. First I want to thank you, this is a great piece.
    Then I would like to ask how to remedy the error below and still keep my controller settings so I can
    ‘E:The package omadac needs to be reinstalled, but I can’t find an archive for it.’

    I have forcibly removed it >sudo dpkg –remove –force-remove-reinstreq omadac
    and reinstalled > sudo apt-get clean
    > sudo apt-get update

    To no avail.

  14. Preparing to unpack Omada_SDN_Controller_v5.13.30.8_linux_x64.deb …
    Unpacking omadac (5.13.30.8) …
    Setting up omadac (5.13.30.8) …
    Install Omada Controller succeeded!
    ==========================
    current data is empty
    Omada Controller will start up with system boot. You can also control it by [/usr/bin/tpeap].
    check omada
    Starting Omada Controller. Please wait.Cannot find any VM in Java Home /usr/lib/jvm/java-11-openjdk-amd64/

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.