How to install Omada Software Controller on Debian 11 "bullseye" (amd64)

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

How to install Omada Software Controller on Debian 11 "bullseye" (amd64)

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
How to install Omada Software Controller on Debian 11 "bullseye" (amd64)
How to install Omada Software Controller on Debian 11 "bullseye" (amd64)
2022-08-21 03:06:31 - last edited 2022-10-13 11:57:42
Hardware Version:
Firmware Version:

This guide covers only installation of Omada Software Controller on Debian 11. Script was used to create amazon virtual machine on AWS. For how to create EC2 instance setup, you can follow quick guide how to install on amazon linux where you choose Debian 11 instead of Amazon Linux. You can also simply look up in aws documentation.

 

If you are looking for other guides tested with Amazon AWS free tier:

 

Other guides:

 

At the time of creation of this guide Omada Software Controller for linux v5.4.6 is used.

 

For Debian 11 mongodb and jsvc are not available, mongodb downloaded debian package is used and jsvc has to be manually compiled that is why for this guide Java11 is used.

 

Script below works with free tier on amazon aws, but Debian 11 requires additional ram, 1GB is not enough. For this guide we resolve it by creating swap file that is why it is first step in this guide.

 

Please copy and paste from script file in attachment of this post. If you decide to copy directly from here, then please be aware:

AS LONG AS URLS IN BOLD ARE NOT WHITELISTED FOR THIS FORUM, PLEASE DO NOT COPY AND PASTE ANYTHING FROM TEXT BELLOW WHICH IS IN BOLD AND SMALLER TEXT SIZE. I HAD TO USE CUSTOM FONT ON THOSE LINES FOR ABILITY TO POST AS THIS FORUMS SOFTWARE MARKS THEM AS ILLEGAL LINKS

 

# 1. Create swap file
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
cat <<EOF_fstab | tee -a /etc/fstab
/swapfile     swap     swap     defaults     0     0
EOF_fstab
cat <<EOF_sysctl | tee -a /etc/sysctl.conf
vm.swappiness=10
EOF_sysctl

 

# 2. Update apt and upgrade system
apt update && apt upgrade -y

 

# 3. Install omada dependencies
apt install -y openjdk-11-jdk-headless curl autoconf make gcc

 

# 4. Install MongoDB
wget 𝐡𝐭𝐭𝐩𝐬://𝐫𝐞𝐩𝐨.𝐦𝐨𝐧𝐠𝐨𝐝𝐛.𝐨𝐫𝐠/𝐚𝐩𝐭/𝐝𝐞𝐛𝐢𝐚𝐧/𝐝𝐢𝐬𝐭𝐬/𝐛𝐮𝐬𝐭𝐞𝐫/𝐦𝐨𝐧𝐠𝐨𝐝𝐛-𝐨𝐫𝐠/𝟒.𝟒/𝐦𝐚𝐢𝐧/𝐛𝐢𝐧𝐚𝐫𝐲-𝐚𝐦𝐝𝟔𝟒/𝐦𝐨𝐧𝐠𝐨𝐝𝐛-𝐨𝐫𝐠-𝐬𝐞𝐫𝐯𝐞𝐫_𝟒.𝟒.𝟏𝟔_𝐚𝐦𝐝𝟔𝟒.𝐝𝐞𝐛
apt install -y ./𝐦𝐨𝐧𝐠𝐨𝐝𝐛-𝐨𝐫𝐠-𝐬𝐞𝐫𝐯𝐞𝐫_𝟒.𝟒.𝟏𝟔_𝐚𝐦𝐝𝟔𝟒.𝐝𝐞𝐛

 

# 5. Compile and install jsvc
mkdir -p /opt/tplink-sources && cd /opt/tplink-sources
# download source
wget -c 𝐡𝐭𝐭𝐩𝐬://𝐝𝐥𝐜𝐝𝐧.𝐚𝐩𝐚𝐜𝐡𝐞.𝐨𝐫𝐠/𝐜𝐨𝐦𝐦𝐨𝐧𝐬/𝐝𝐚𝐞𝐦𝐨𝐧/𝐬𝐨𝐮𝐫𝐜𝐞/𝐜𝐨𝐦𝐦𝐨𝐧𝐬-𝐝𝐚𝐞𝐦𝐨𝐧-𝟏.𝟑.𝟏-𝐬𝐫𝐜.𝐭𝐚𝐫.𝐠𝐳 -O - | tar -xz 
# configure and compile
cd commons-daemon-1.3.1-src/src/native/unix
sh support/buildconf.sh
# "/usr/lib/jvm/java-11-openjdk-amd64" is the default installation path of OpenJDK-11.
./configure --with-java=/usr/lib/jvm/java-11-openjdk-amd64
make
# Create a soft link from your JSVC path
ln -s /opt/tplink-sources/commons-daemon-1.3.1-src/src/native/unix/jsvc /usr/bin/

 

# 6. Download and install Omada Controller Software

cd /opt/tplink-sources

wget https://static.tp-link.com/upload/software/2022/202207/20220729/Omada_SDN_Controller_v5.4.6_Linux_x64.deb
dpkg --ignore-depends=jsvc -i ./𝐎𝐦𝐚𝐝𝐚_𝐒𝐃𝐍_𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫_𝐯𝟓.𝟒.𝟔_𝐋𝐢𝐧𝐮𝐱_𝐱𝟔𝟒.𝐝𝐞𝐛

File:
Install-Omada-on-debian11-simple-java11.zipDownload
  1      
  1      
#1
Options
1 Reply
Re:How to install Omada Software Controller on Debian 11 "bullseye" (amd64)
2022-10-13 10:39:13

  @Fae / @Hank21 please lock this thread, there will be no further replies from OP.

  0  
  0  
#2
Options