Reply
New Member
Posts: 7
Registered: ‎05-16-2017
Kudos: 13

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hi guys, sorry to have to ask but I can't see how to do this - I selected "Email me when someone replies" when I originally replied to this thread and I can't see how to unsubscribe now.  I've unticked that box in posting this message, so maybe that will do it, if not, can anyone help?!  Thanks Man Happy

Senior Member
Posts: 10,063
Registered: ‎08-04-2017
Kudos: 1631
Solutions: 493

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @fuddus,

 

On the left you see Topic Options, choose to unsubscribe from there.

 


Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2 • UCK
Highlighted
Member
Posts: 295
Registered: ‎01-28-2016
Kudos: 64
Solutions: 10

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9


@scporse wrote:
Basically I'm trying have as little unnecessary software running on my machine, as possible. You might call it a philosophy or an obsession of keeping my OS lightweight Man Happy

Could you be a bit more specific as to exactly which services to disable and how to go about it in the easiest way?

@scporse,

 

I would recommend simply downloading the plain Unix zip file and executing the JAR file manually when you want to run it. You can get this zip file here, just change the version number if you want:

 

https://dl.ubnt.com/unifi/5.9.29/UniFi.unix.zip

 

You may also want to check out this Docker project:

 

https://github.com/goofball222/unifi

 

--

Klint

Primary Innovator at Sprocket Technology
Ubiquiti Enterprise Wireless Admin

Setup and secure your UniFi SDN Controller the easy way! Check out the Easy UBNT project and view the source on GitHub. Also, try Vultr for hosting your cloud controller!
Member
Posts: 162
Registered: ‎03-10-2015
Kudos: 26
Solutions: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Do you have a link for setting up the docker controllers? Unless I am missing the instructions in github

New Member
Posts: 29
Registered: ‎04-24-2015
Kudos: 7
Solutions: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hi Glenn,

 

First, I confess not having read all 32 pages, please bear with me.

I'm currently using Ubuntu 16.04 LTS with Unifi installed and would like to upgrade to 18.04.

I haven't done that yet because of the issue with MongoDB on 18.04.

 

Is it correct that your script "downgrades" MongoDB 3.6 to a version that Unifi can use?

If that is the case, wouldn't it be better that UBNT upgrades the Unifi controller to work correctly on 18.04?

 

In my case, what's the recommended way to upgrade: Make a complete backup of Unifi including DB, do a dist-upgrade, run your script and as a last step, restore the Unifi backup?

 

Cheers and a huge thanks for your support. 

Senior Member
Posts: 10,063
Registered: ‎08-04-2017
Kudos: 1631
Solutions: 493

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @Arturo,

 

Download a backup of UniFi and do a releasw upgrade afterwards.

After the upgrade see if your UniFi controller is still running, if not let me know.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2 • UCK
Senior Member
Posts: 10,063
Registered: ‎08-04-2017
Kudos: 1631
Solutions: 493

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @Shadowed,

 

This thread is not for docker, please create a new thread instead.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2 • UCK
Member
Posts: 162
Registered: ‎03-10-2015
Kudos: 26
Solutions: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

I know... hence the fact I was replying to a comment, in this thread, mentioning docker, and asked for just a link... not anything more... cause it isn't a docker thread...

Member
Posts: 295
Registered: ‎01-28-2016
Kudos: 64
Solutions: 10

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9


@Shadowed wrote:
I know... hence the fact I was replying to a comment, in this thread, mentioning docker, and asked for just a link... not anything more... cause it isn't a docker thread...


https://community.ubnt.com/t5/UniFi-Wireless/Easy-UBNT-Install-Update-and-Secure-the-UniFi-SDN-Contr...

 

--

Klint

Primary Innovator at Sprocket Technology
Ubiquiti Enterprise Wireless Admin

Setup and secure your UniFi SDN Controller the easy way! Check out the Easy UBNT project and view the source on GitHub. Also, try Vultr for hosting your cloud controller!
New Member
Posts: 29
Registered: ‎04-24-2015
Kudos: 7
Solutions: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

[ Edited ]

Hi Glenn,

 

I'm up and running thanks to your script. I'll document this for others.

 

First I tried to "fix" the MongoDB 3.6 that runs on Ubuntu 18.04. Sadly, no matter what I tried, when starting Unifi the Mongodb stopped. 

Possibly it was an incompatible database format. The recomendation was to downgrade to 3.4 and set a "feature" parameter.

When I tried that, Bionic complained about not recommended because of a missing key. 

 

At that point I just wanted to get it over with. So used your script and it worked flawless. 

Very good scripting, Unifi even came back with my old data so a restore was not even needed. 

 

I still hope the 3.6 mongo will be supported at some point in time so I can upgrade it. 

 

Cheers and thanks.

Senior Member
Posts: 10,063
Registered: ‎08-04-2017
Kudos: 1631
Solutions: 493

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @Arturo,

 

Awesome! Thanks for reporting back! Ubnt Banana

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2 • UCK
Reply