Things I've written down that I might want to reference later.
Log | Files | Refs | README

commit 94076ec6689210f4bcf560b9caee126846735e0b
parent 6b68540626b02e5b4636858b7007eb851bb2ee51
Author: Robbie D <>
Date:   Thu, 28 Mar 2019 22:54:16 -0500

Some notes on setting up Ubiquiti/Unifi

Diffstat: | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/ b/ @@ -0,0 +1,26 @@ +Setting up a Ubiquiti Network +----------------------------- + +Created 2019-03-28 + +This may sound crazy, but believe it or not, I am an IT professional. But my home network doesn't really show that. I have a Dlink can router/ap running dd-wrt. DNS is managed by a pi-hole (That is also my dhcp server) but otherwise, I have crappy wifi, and a router that overheats and bogs down my connection. + +Well not anymore. I purchased a Ubiquiti EdgeRouter-X and Unifi acces point. Finally, I'll have some semi-professional gear. I've used Ubiquiti in the past and I must say it's very nice, and fairly easy to set up, espeically if you spring for the Cloud Key. In my home use case, I didn't really want to, so I wanted tory running it on my pi-hole, which just sits around doing nothing most of the day (and will still do nothing MOST of the day). + +TODO: Setting up the ER-X +Installing Unifi on pihole +Setting it up +From [this post]( I got the following: + + # apt install oracle-java8-jdk -y + # update-alternatives --config java + +As of right now, I absolutely cannot get the service to work properly. I have tried editing /usr/lib/unifi/bin/unifi.init and setting the JVM_MAX_HEAP_SIZE and JVM_INIT_HEAP_SIZE variables, I have tried setting unifi.xms in (By the way, I don't know if I believe that doing anything in that file has any effect if it doesn't already exist), and nothing. + +BUT there is a light at the end of the tunnel. If I create the jvm myself, Iit will run. I can do the following: + + java -Xmx512M -jar /usr/lib/unifi/lib/ace.jar start + +The controller starts, and all is well! Not sure why I can't just make the unifi service create a usable jvm, but I'll try opening a ticket with ubnt tomorrow. + +Extra thanks to osunifi at the forums. It was their comment about Java using too much memory that lead me to that command to start the JVM manually.