Installing Omada Controller 3.2.4 on FreeBSD

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

Installing Omada Controller 3.2.4 on FreeBSD

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
17 Reply
Re:Installing Omada Controller 3.2.4 on FreeBSD
2020-04-20 20:04:45

@R1D2 thanks for the info, so it looks like there's at least a stop-gap measure in the interim. Hopefully TP-Link replies shortly about any future plans here.

  0  
  0  
#12
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2020-04-20 21:23:21 - last edited 2020-04-20 21:25:19

@emaste, in my opinion the split between Windows and Linux Java classes in Omada controller v3.0.2 was wrong and unnecessary. It even introduces double work for TP-Link's engineering to create distribution packages. Unfortunately, so far I couldn't convince engineering to revert those platform tests in the Java classes.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#13
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2021-01-01 19:22:50

Since about 5 minutes the latest Omada Controller is running locally on FreeBSD. 

I followed the initial information mentioned by @elmado 

 

 

 

After some bytecode editing (1 String) the set is working fine.

 

Best regards 

  0  
  0  
#14
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2021-01-08 14:26:34

@chrisSLDS That's great!  Could you post a little guide on how-to make that edit?

  0  
  0  
#16
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2021-01-08 20:10:36 - last edited 2021-01-08 20:12:05

First of all, download the package of Omada Controller you like (Linux of course). Then take the bytecode editor of you choice. I choose Recaf.

 

EAPController/bin: (Not necessary if always started manually)

If you want to use it as deamon you have to generate a rc file in /usr/local/etc/rc.d/

with nearly the same content as in control.sh 

 

EAPController/lib:

Open 'eap-infrastructure-X.X.XX.jar' in Recaf. Navigate to classes->com->tp_link->eap->util->m->a. Somewhere there is a function defined as 'public static boolean c()'

In this method, the check if the system is linux.

 

BTW: The correct check should be "freebsd" || "nux".

 

But here is only "linux" ... this should be changed for freebsd usage to 'freebsd'

( Right click on method definition -> Edit with assembler  => EDIT => [Ctrl] + [S] )

 

File -> Export ... Save as same filename

 

EAPController/lib:

mongodb.properties: 
change line to :  eap.linux.mongod="/usr/local/bin/mongod"
change line to :  eap.linux.mongo="/usr/local/bin/mongo"

 

I think thats all

 

 

 

 

  1  
  1  
#17
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2021-01-09 19:48:59

@chrisSLDS I've done the bytecode edits and properties file changes -- no problems with that, but I can't seem to get the service to startup.  I'm not seeing the architecture errors, but it keeps failing saying that it can't start mongo DB server.

 

in the server.log:

"[main] [WARN]-[SourceFile:78] - com.tp_link.eap.start.a.a: Fail to start mongo DB server"

 

I tried several of the different versions of mongodb on freebsd pkg (mongodb36, mongodb40, mongodb44), but no luck.

 

I noticed one suspicious warning in the mongodb.log:

"W ASIO     [initandlisten] No TransportLayer configured during NetworkInterface startup"

 

But there's no specific file or directory permission error associated with it, so it's unclear if that's an issue.

 

Also, I did not build the apache-commons-daemon from source -- just installed it from pkg.  I'm on FreeBSD 12.2

 

Attaching the configs and log files here in case it's something you've edited in your setup?

 

 

 

File:
logs.zipDownload
  0  
  0  
#18
Options
Re:Installing Omada Controller 3.2.4 on FreeBSD
2021-08-11 05:41:58

Hello there
I was unable to run freebsd omada
I need help
i need installation instruction?

Controller V5.12.43 (Ubuntu) OC200 v1.0 V5.14.26.23 OC300 v1.0 V5.14.26.23 EAP225 v4.0 EAP245 v3.0 EAP110 v4.0 EAP225-Outdoor v1.0 EAP610-Outdoor v1.0
  0  
  0  
#19
Options