UniFi Controller on ReadyNAS 6.7.5 (Installation Guide)

I followed Snooker's Guide here, but had to manually install Java as installing via apt-get didn't work for me.  These instructions are step-by-step, for those people who not familar with Linux.

Install UniFi Controller on ReadyNAS 6.7.5

Enable SSH on System/Settings Screen

SSH into your server using an application like Putty.  Once you are logged in follow the instructions below.

Make sure the ReadyNAS is fully updated:
apt-get update

Manually install Java 7 SDK

Download Java 7 SDK (jdk-7u80-linux-i586.tar.gz)

I downloaded off this site as Oracle wants me to register to download (Nope!)

Copy the file to the Documents Share on ReadyNAS

cd /opt
mkdir jdk
cd jdk
mv /media/Documents/jdk-7u80-linux-i586.tar.gz .

Extract the tarball
tar -zxf jdk-7u80-linux-i586.tar.gz -C /opt/jdk

Java will be installed in:  jdk1.7.0_80

To set it as the default JVM on your machine:
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.7.0_80/bin/java 100


update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.7.0_80/bin/javac 100

Verify the Java has been successfully Installed:

update-alternatives --display java

Outout should be:
java - auto mode
link currently points to /opt/jdk/jdk1.7.0_80/bin/java
/opt/jdk/jdk1.7.0_80/bin/java - priority 100
Current 'best' version is '/opt/jdk/jdk1.7.0_80/bin/java'.


update-alternatives --display javac

Outout should be:
javac - auto mode
link currently points to /opt/jdk/jdk1.7.0_80/bin/javac
/opt/jdk/jdk1.7.0_80/bin/javac - priority 100
Current 'best' version is '/opt/jdk/jdk1.7.0_80/bin/javac'.

Install UniFi Controller

Add Ubiquiti Repository:
echo "deb unifi5 ubiquiti" | tee /etc/apt/sources.list.d/100-ubnt.list

Add Ubiquiti Key:
apt-key adv --keyserver --recv C0A52C50

Output Should be (if everything was done correctly):

Executing: /tmp/tmp.KlgnXZZ9mK/ --keyserver
gpg: requesting key C0A52C50 from hkp server
gpg: key C0A52C50: public key "UniFi Developers <>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

Make sure the ReadyNAS has loaded the new repository:
apt-get update

Now we are ready to download and install UniFi:
apt-get install unifi

Press "Y" and <ENTER> to continue

Unifi Controller will now download and install.  This will take a few minutes.

Copy the origional systemd service file to /etc/systemd/system so it will start on boot:
cp -p /lib/systemd/system/unifi.service /etc/systemd/system

Move unifi (located at /var/lib) to an area with more diskspace:
cd /var/lib
mv unifi /apps
ln -s /apps/unifi unifi

Start the UniFi Controller:
systemctl start unifi.service

Access the UniFi Controller User Interface via a web browser:

The UniFi Setup Wizard should now be displayed

Before proceeding, lets enable log rotation so your server's diskspace doesn't fill up!

Stop the UniFi Service:
systemctl stop unifi.service

Now paste the following:

bash -c 'cat >> /etc/logrotate.d/unifi << EOF
/var/log/unifi/*.log {
    rotate 5

Then press <ENTER>

You will not get any sort of message.  Just the typical bash prompt.

Restart UniFi or better yet, restart your ReadyNAS and validate the UniFi Service starts automatically and begin configuring the UniFi Controller and adding access points!

--Good Luck--

3x ReadyNAS Pro 6, running OS6
3x ReadyNAS Ultra 6, running OS6
1x ReadyNAS Ultra 4, running OS6
1x Ubuntu Server, 55Tb at RAID6 - Plex Server
Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 2 kudos
  • 1 in conversation