How to install Omada Software Controller on SUSE Linux Enterprise server 15

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 SUSE Linux Enterprise server 15

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 SUSE Linux Enterprise server 15
How to install Omada Software Controller on SUSE Linux Enterprise server 15
2022-08-21 00:53:49 - last edited 2022-10-13 11:56:48
Hardware Version:
Firmware Version:

This guide covers only installation of Omada Software Controller on SUSE Linux Enterprise server 15. 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 SUSE Linux Enterprise server 15 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 SUSE Linux Enterprise server 15 mongodb and jsvc are not available, mongodb repo can be 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 SUSE Linux Enterprise server 15 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

 

# Set variables (If there is later release, edit OMADAURL variable, same is valid for JS

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

VCURL)

OMADAURL="https://static.tp-link.com/upload/software/2022/202207/20220729/Omada_SDN_Controller_v5.4.6_Linux_x64.tar.gz"

# jsvc source URL from Apache Download Center
JSVCURL="𝐡𝐭𝐭𝐩𝐬://𝐝𝐥𝐜𝐝𝐧.𝐚𝐩𝐚𝐜𝐡𝐞.𝐨𝐫𝐠/𝐜𝐨𝐦𝐦𝐨𝐧𝐬/𝐝𝐚𝐞𝐦𝐨𝐧/𝐬𝐨𝐮𝐫𝐜𝐞/𝐜𝐨𝐦𝐦𝐨𝐧𝐬-𝐝𝐚𝐞𝐦𝐨𝐧-𝟏.𝟑.𝟏-𝐬𝐫𝐜.𝐭𝐚𝐫.𝐠𝐳"

 

# Folders where sources will be downloaded and swap size
OMADASOURCES="/opt/tplink-sources"
APACHESOURCES="/opt/𝐝𝐥𝐜𝐝𝐧.𝐚𝐩𝐚𝐜𝐡𝐞.𝐨𝐫𝐠"

SWAPSIZE="1G"

 

# do not edit following variables if you do not know what you do

OMADATARGZ=$(echo "${OMADAURL}" | awk '{split($0,a,"/"); print a[9]}') && echo "Omada installer filename set: ${OMADATARGZ}"
MYINSTALLERFOLDER=$(echo "${OMADATARGZ}" | sed 's/\.tar\.gz//') && echo "Omada install folder set: ${MYINSTALLERFOLDER}"
MYOMADAVERSION=$(echo "${OMADATARGZ}" | awk '{split($0,a,"_"); print a[4]}') && echo "Omada version: ${MYOMADAVERSION}"

 

# If you use any other instance type with higher ram or simply more than 1GB ram or you already have swap file, then you can skip first step for swap file creation below.

# 1. Create swap file
fallocate -l ${SWAPSIZE} /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. Install MongoDB
rpm --import https://www.mongodb.org/static/pgp/server-4.4.asc
zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/15/mongodb-org/4.4/x86_64/" mongodb

 

# 3. upgrade system then install omada dependencies (mongodb, curl, java11, jsvc build and compilation dependencies)
zypper update -y && zypper -n install -y curl java-11-openjdk-devel mongodb-org autoconf make gcc

 

# 4. Compile and install jsvc
mkdir -p ${APACHESOURCES} && cd ${APACHESOURCES}
# download source
wget -c ${JSVCURL} -O - | tar -xz 
# configure and compile
cd commons-daemon-1.3.1-src/src/native/unix
sh support/buildconf.sh
# "/usr/lib64/jvm/java-11-openjdk-11" is the default installation path of OpenJDK-11 on Suse Enterprise 15.
./configure --with-java=/usr/lib64/jvm/java-11-openjdk-11
make
# Create a soft link from your JSVC path
ln -s ${APACHESOURCES}/commons-daemon-1.3.1-src/src/native/unix/jsvc /usr/bin/

 

# 5. download and install omada installer
mkdir -p ${OMADASOURCES} && cd ${OMADASOURCES}
wget -c ${OMADAURL} -O - | tar -xz 
# Make scripts and binaries executable    
chmod +x ${MYINSTALLERFOLDER}/*.sh
chmod +x ${MYINSTALLERFOLDER}/bin/*

 

# 6. Install omada controller
cd ${MYINSTALLERFOLDER}
./install.sh -y

File:
install-omada-aws-suse-java11.zipDownload
  0      
  0      
#1
Options
1 Reply
Re:How to install Omada Software Controller on SUSE Linux Enterprise server 15
2022-10-13 10:40:49

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

  0  
  0  
#2
Options

Information

Helpful: 0

Views: 361

Replies: 1

Related Articles