Reply
New Member
Posts: 1
Registered: ‎05-22-2017

UniFi - Installing the Controller software on Raspberry Pi (OSMC)

Hi Guys, 

 

Has anyone been able to successfuly install the Unifi Control on the OSMC operating system for Raspberry PI? 

 

I have tried to follow the tutorial below but sadly it did not work for myself or i didnt do something right.

 

http://www.lowefamily.com.au/2016/06/02/installing-ubiquiti-unifi-controller-5-on-raspberry-pi/3/

 

I am able to confirm that the applications service is running but for some reason the port 8443 is not avaliable when i do a netstat. 

 

Any suggestions or help would be much appriated. Man Happy

New Member
Posts: 5
Registered: ‎04-09-2017
Kudos: 2

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

Nope me to got the same problem and used same manual...

 

Manual only working for now on raspbian OS

 

 

Regular Member
Posts: 372
Registered: ‎12-10-2014
Kudos: 58
Solutions: 25

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

@SheldonBM @mmeinen Try changing the port and make sure that the Oracle Java is used. There are been issues associated with Java in the RPi

When you receive a solution to your question/issue, don't forget to mark your thread as solved and to give kudo's to the people who have helped you out!
Paid Remote Support Available!!!
New Member
Posts: 1
Registered: ‎09-07-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

You need to install Oracle Java 8

I used this method:

 

sudo su
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer

 Accept terms and conditions:

 

 lqqqqqqqqqqqqqqqqqqqConfiguring oracle-java8-installerqqqqqqqqqqqqqqqqqqqqqk
 x In order to install this package, you must accept the license terms,     x
 x the "Oracle Binary Code License Agreement for the Java SE Platform       x
 x Products and JavaFX ". Not accepting will cancel the installation.       x
 x                                                                          x
 x Do you accept the Oracle Binary Code license terms?                      x
 x                                                                          x
 x                                                                          x
 tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
 x                       < Yes >            < No  >                         x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Don't know if this is necessary but did it anyway:

 

apt-get install oracle-java8-set-default

It should work now at port 8443

 

 

 

 

 

 

New Member
Posts: 3
Registered: ‎12-06-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

root@raspberrypi:~# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Eb29vSN7Ck --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv C0A52C50
gpg: requesting key C0A52C50 from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

New Member
Posts: 3
Registered: ‎12-06-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

How do I get past the above?

New Member
Posts: 1
Registered: ‎05-03-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

Not sure if you ever got this working, but maybe it'll help someone in the future. I also have the controller installed on my OSMC media player, since it's always on. The lowefamily link worked for me to install it, but port 8443 was not working. The reason for this is that OSMC and the controller both default to port 8080 for non secure connections. 

 

I couldn't figure out where to do it in the controller, so I changed the OSMC web interface to another port, 8081, 8801, anything really... and rebooted and the controller came up right away. You can change the port in Kodi/OSMC in Settings → Services → Control → Allow remote control via HTTP and Port.

 

Hope this helps.

 

Services_control

Highlighted
New Member
Posts: 3
Registered: ‎12-06-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

All I had to do for the above was add "--force-yes" for it to proceed.   But interestingly enough I was doing that one at work and then later at home I was setting it up as well and it went through without that.  I wonder if there had been a server down or something when I tried it earlier at work.

 

So all works great at work and home.

New Member
Posts: 3
Registered: ‎12-22-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

Hi Guys,

 

I have problem with install Unifi Controller on my Raspberry Pi2 (new OSMC app installed).

 

1. Tried install Unifi Controller but i god error:


root@osmc-Preston:/home/osmc# sudo apt-get -y install unifi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
unifi : Depends: mongodb-server (>= 2.4.10) but it is not installable or
mongodb-10gen (>= 2.4.14) but it is not installable or
mongodb-org-server (>= 2.6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

 

2. Tried instal mangodb server manualy but without success.

 

oot@osmc-Preston:/home/osmc# sudo apt-get install mongodb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb-server' has no installation candidate

 

Can somebody help me?

New Member
Posts: 1
Registered: ‎11-10-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

[ Edited ]

 Consider adding the Raspbian Stretch repos:

 

add-apt-repository "deb http://archive.raspbian.org/raspbian stretch main contrib non-free"

Following which, rerun the install of unifi - Mongo should install automatically.

 

If unable to connect to your Unifi after installation, you might want to consider installing Oracle java instead of using openJDK.

New Member
Posts: 3
Registered: ‎12-22-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

It's working Man Happy Thank you 

New Member
Posts: 3
Registered: ‎12-22-2017

Re: UniFi - Installing the Controller software on Raspberry Pi (OSMC)

Hello Guys,

Another question. Do you now where I find Unify Controller LOGs? ( system installed on OSMC)?
Reply