Reply
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello,

 

Could you run the following command, and then run the commands I posted in a previous post.

 rm /etc/apt/sources.list.d/mongodb*

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
New Member
Posts: 3
Registered: ‎12-06-2016

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

that fixed it, thanks!
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @thadude3,

 

Thanks for feedback and using my scripts!

Goodluck on your site!

 

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
New Member
Posts: 15
Registered: ‎01-28-2016
Kudos: 1
Solutions: 1

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Thanks for the life saver! You've earned yourself another Kudos.

 

Not a Linux guy myself, so after a fresh server install I couldn't really figure out what was going on untill I noticed that with the official instructions it installs Java 9.

 

Too bad Ubiquiti only provides some guidance to installing their software (which was fine before Java and Mongo got newer versions), yet fail to provide an official install-script like yours.

ER-X-SFP, USW-8-150, UAP-AC-LR
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @greyhound,

 

Thanks for your feedback! much appreciated!

Goodluck with your controller Man Happy

 

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
Emerging Member
Posts: 48
Registered: ‎12-27-2014
Kudos: 2

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hi how many sites I can create on a digital ocean 1gig $5 month VM?

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @jorgenekah,

 

I don't use digitalocean myself, but im sure it can handle some sites.

I recommend taking a look at this.

 

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
New Member
Posts: 2
Registered: ‎07-26-2018

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hi there.

 

The script installed great but I'm having a problem with the web interface.  When I open it, it just shows a few blocks in the top left corner of the page. I've attached a screenshot.

 

Any ideas?

 

Divan

Screenshot from 2018-07-26 20-56-08.png
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

[ Edited ]

Hello @divandutoit,

 

Welcome to the community forums!

 

Thank you for using my scripts! You will need to add HTTPS infront of the URL. (TIP set a static IP for your controller.)

https://192.168.0.127:8443

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
New Member
Posts: 2
Registered: ‎07-26-2018

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Awesome.  Works.  Thanks

New Member
Posts: 7
Registered: ‎03-18-2014
Kudos: 1

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Thanks, worked awesome on a Pi

 

But i ran into problems on a OrangePi with a H3 cpu under Ubuntu 18.04.1 LTS

 

during MongoDB installation i get this error and the script stops:

 

N: Skipping acquire of configured file ‚multiverse/binary-armhf/Packages‘ as repository ‚http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease‘ does not support architecture ‚armhf‘

 

 

any idea?

 

thanks

Willi

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @Willi_Butz,

 

Could you try to see if this installer works?

 

Regards,

Glenn R.

 

__________________________________

 

Change the version numbers to the ones your are using!

 

1. Copy the link location of your wanted script.

2. SSH into your Ubuntu Server, and login as root.

3. Type the following (wget + link location && chmod +x unifi-version.sh)

wget https://get.glennr.nl/unifi/5.8.24/U1604/unifi-5.8.24.sh && chmod +x unifi-5.8.24.sh

4. After you make the script executable you need to run it by using the following command:

./unifi-5.8.24.sh

5. After the script completed running you can access the UniFi Controller Man Happy.

https://IpOfYourServer:8443

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
New Member
Posts: 10
Registered: ‎05-09-2017
Solutions: 2

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

does your 16.04 5.8.x script work on ubuntu 14.04 too? or should i first upgrade to 16.04?

 

Currently running 5.6.29 on ubuntu 14.04 and would like to upgrade to 5.8.24

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @xinput,

 

They do not work on 14.04 you could upgrade manually though..

BUT I would recommend updating the OS aswell.

 

UniFi manually upgrade to 5.8.24

wget https://dl.ubnt.com/unifi/5.8.24/unifi_sysvinit_all.deb
dpkg -i unifi_sysvinit_all.deb
rm unifi_sysvinit_all.deb
service unifi start

 

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
New Member
Posts: 7
Registered: ‎03-18-2014
Kudos: 1

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Glenn, thanks!

 

That script generatesd even more errors.

In the meantime i found out that there is no MongoDB version for the architecture of this OrangePI (arm7I). So end of this project ;-)

 

 

Thanks 

Willi

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @Willi_Butz,

 

Allright, glad you found out!

Thanks for the feedback anyways!

 

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
New Member
Posts: 4
Registered: ‎02-02-2018

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

[ Edited ]

Thanks for the scripts!

 

I get an error on a fresh 18.04 running the 1804 UniFi 5.8.24 script.

 

-----

E: Unable to locate package jsvc

E: Unable to locate package libcommons-daemon-java

Error.. aborting script...

-----

 

Running "sudo apt install jsvc libscommons-daemon-java -y returns the same error.

 

 

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

[ Edited ]

Hello @DrHHH,

 

Thats strange... Just tried the same script on a fresh install, and it worked fine.

Could you give the following a try?

apt update
apt install jsvc libcommons-daemon-java -y

If that doesn't work reboot the server and see if the issue is still present after the restart.

 

 

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
New Member
Posts: 4
Registered: ‎02-02-2018

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Thanks for the quick reply.

 

Tried reboot, apt update, apt-get update, but still....

"E: unable to locate package jsvc"

"E: unable to locate package libcommons-daemon-java"

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @DrHHH,

 

What is the output of the following command.

apt-cache search jsvc

Make sure you're running it as root.

 

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