Omada SDN on Raspberry pi
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.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
@shberge download the install package to the pi and them "dpkg -i <your-package-name-here>
- Copy Link
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
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
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 3817
Replies: 6
Voters 0
No one has voted for it yet.