- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
UniFi Controller on ReadyNAS 6.7.5 (Installation Guide)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!)
http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/
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
and
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'.
and
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 http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti" | tee /etc/apt/sources.list.d/100-ubnt.list
Add Ubiquiti Key:
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
Output Should be (if everything was done correctly):
Executing: /tmp/tmp.KlgnXZZ9mK/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv
C0A52C50
gpg: requesting key C0A52C50 from hkp server keyserver.ubuntu.com
gpg: key C0A52C50: public key "UniFi Developers <unifi-dev@ubnt.com>" 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:
https://<IP_of_your_ReadyNAS>:8443
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
daily
missingok
notifempty
compress
delaycompress
copytruncate
}
EOF'
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--