Omada SDN on Raspberry pi

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Omada SDN on Raspberry pi
Omada SDN on Raspberry pi
2021-10-23 16:10:34 - last edited 2021-11-10 03:03:27
Hardware Version: V4
Firmware Version:

I have started and play with raspberry pi in that connection I wonder if anyone has the commands to install omada sdn controller on it,

I have installed unifi controller pihole and several other things without problems but I can not figure out how to do it with omada sdn.

 

Does anyone have setup on this, i need command by command as i am pretty new to raspberry pi

I have raspberry pi 3 Model B + with rapberry pi os lite 32 bit

it now runs unifi controller pihole no-ip, but there should be nothing in the way of running omda sdn on it in addition I would think.

 

 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Omada SDN on Raspberry pi-Solution
2021-11-09 10:55:43 - last edited 2021-11-10 03:03:27

After a bit of back and forth, I have come up with a solution that works well,

 

prerequisites: Install Ubunu 18.04 sett fixed ip and enable ssh

 

link to image that I have used on Raspberry Pi 3 and 4

 

http://nl.archive.ubuntu.com/ubuntu-cdimages/18.04/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi4.img.xz
http://nl.archive.ubuntu.com/ubuntu-cdimages/18.04/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi3.img.xz

Create image with Raspberry pi imager
 

mark everything between ### including the blank line at the bottom, paste in the ssh session and have a cup of coffee while everything is installed.

 

run sudo -s before install

#######  copy everything included the empty line in bottom and past to your SSH Session  ############

sudo apt update && sudo apt upgrade -y && sudo apt install openjdk-8-jre-headless -y && 
sudo wget -qO - https://www.mongodb.org/static/pgp/server-3.4.asc | sudo apt-key add - && 
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list && 
sudo apt update && 
sudo apt-get install -y mongodb-org=3.4.17 mongodb-org-server=3.4.17 mongodb-org-shell=3.4.17 mongodb-org-mongos=3.4.17 mongodb-org-tools=3.4.17 &&
sudo apt-get install jsvc -y && sudo apt-get install curl && sudo apt-get install haveged -y && 
sudo apt update && sudo apt upgrade -y && 
curl -o "tplink.deb" https://static.tp-link.com/upload/software/2021/202110/20211011/Omada_SDN_Controller_v4.4.6_Linux_x64.deb && 
sudo dpkg -i tplink.deb

 

###########################################

 

 

To upgrade later , find the link on tp-link and edit https path

sudo -s

curl -o "tplink.deb" https://static.tp-link.com/upload/software/2021/202110/20211011/Omada_SDN_Controller_vx.x.x_Linux_x64.deb

sudo dpkg -i tplink.deb

 

and new verion is on place.

 

 

###Swapp file ######

 

On Raspberry Pi3 with only 1gb ram its a smart to create a swap file.
this is done like this

 

sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile


sudo nano /etc/fstab

Copy and paste the following line:

 

/etc/fstab
/swapfile swap swap defaults 0 0

 

Verify that the swap is active by using either the swapon or the free command , as shown below:
sudo swapon --show

 

show ram and swapp
sudo free -h
 

 

Recommended Solution
  1  
  1  
#3
Options
6 Reply
Re:Omada SDN on Raspberry pi
2021-10-24 18:10:34

@shberge download the install package to the pi and them "dpkg -i <your-package-name-here>

  0  
  0  
#2
Options
Re:Omada SDN on Raspberry pi-Solution
2021-11-09 10:55:43 - last edited 2021-11-10 03:03:27

After a bit of back and forth, I have come up with a solution that works well,

 

prerequisites: Install Ubunu 18.04 sett fixed ip and enable ssh

 

link to image that I have used on Raspberry Pi 3 and 4

 

http://nl.archive.ubuntu.com/ubuntu-cdimages/18.04/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi4.img.xz
http://nl.archive.ubuntu.com/ubuntu-cdimages/18.04/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi3.img.xz

Create image with Raspberry pi imager
 

mark everything between ### including the blank line at the bottom, paste in the ssh session and have a cup of coffee while everything is installed.

 

run sudo -s before install

#######  copy everything included the empty line in bottom and past to your SSH Session  ############

sudo apt update && sudo apt upgrade -y && sudo apt install openjdk-8-jre-headless -y && 
sudo wget -qO - https://www.mongodb.org/static/pgp/server-3.4.asc | sudo apt-key add - && 
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list && 
sudo apt update && 
sudo apt-get install -y mongodb-org=3.4.17 mongodb-org-server=3.4.17 mongodb-org-shell=3.4.17 mongodb-org-mongos=3.4.17 mongodb-org-tools=3.4.17 &&
sudo apt-get install jsvc -y && sudo apt-get install curl && sudo apt-get install haveged -y && 
sudo apt update && sudo apt upgrade -y && 
curl -o "tplink.deb" https://static.tp-link.com/upload/software/2021/202110/20211011/Omada_SDN_Controller_v4.4.6_Linux_x64.deb && 
sudo dpkg -i tplink.deb

 

###########################################

 

 

To upgrade later , find the link on tp-link and edit https path

sudo -s

curl -o "tplink.deb" https://static.tp-link.com/upload/software/2021/202110/20211011/Omada_SDN_Controller_vx.x.x_Linux_x64.deb

sudo dpkg -i tplink.deb

 

and new verion is on place.

 

 

###Swapp file ######

 

On Raspberry Pi3 with only 1gb ram its a smart to create a swap file.
this is done like this

 

sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile


sudo nano /etc/fstab

Copy and paste the following line:

 

/etc/fstab
/swapfile swap swap defaults 0 0

 

Verify that the swap is active by using either the swapon or the free command , as shown below:
sudo swapon --show

 

show ram and swapp
sudo free -h
 

 

Recommended Solution
  1  
  1  
#3
Options
Re:Omada SDN on Raspberry pi
2021-11-16 14:29:10
Thanks for the detailed instructions. Can you find out what advantages it has over the OC200?
  0  
  0  
#4
Options
Re:Omada SDN on Raspberry pi
2021-11-16 14:43:45 - last edited 2021-11-16 14:49:14

@mur77 

 

 

cheaper, faster, more control, multiple apps on the same device. i run omda controller, unifi controller pihole, no-ip ++ on the same device. and much more fun to work with :-)

 

I connected in addition to a 1TB disk and use RPi4 as a file server as well

 

 

  0  
  0  
#5
Options
Re:Omada SDN on Raspberry pi
2022-01-04 20:58:49

@shberge 

Hello ! I have a Raspi 4 with Unifi Controller (docker), I first tried to Omada controller on the top of it, following

https://community.tp-link.com/en/business/forum/topic/261734

but then Unifi stopped working. Since Omada controller is for another site in future anyway, I didn't try to push harder, just used another SD card for Omada. How did you install both of them in one machine (or, one card) and made both of them work ? I'm very interested.

  0  
  0  
#6
Options
Re:Omada SDN on Raspberry pi
2022-01-04 23:10:55 - last edited 2022-01-05 08:14:34

@doremifajb

 

This is quite simple, you need to install Omada first with the instructions above, then you need to change the HTTP Portal port to 8844 in omada so, stop and start omada controller with tpeap stop and then tpepa start

 

To verify your port configuration use this command

 

sudo lsof -i -P -n | grep LISTEN

 

There should not be any port with 8043 before you install unifi.

 

 

 

 

Now you can install unifi this way

 

cd /tmp
curl -o "unifi_sysvinit_all.deb" https://dl.ui.com/unifi/6.5.55/unifi_sysvinit_all.deb

sudo dpkg -i unifi_sysvinit_all.deb

 

sometime install fail, then use this command to fix

 

apt --fix-broken installation

 

 

Thats it Enjoy:-)

 

you do not try this on pi3 with 1 GB ram you have to do it pi4. with a minimum of 2 GB

 

 

 

 

  0  
  0  
#7
Options

Information

Helpful: 0

Views: 1286

Replies: 6

Related Articles