ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to install the Ubiquiti UniFi Controller on Debian 9.1

    IT Discussion
    unifi unifi controller ubnt ubiquiti install guide debian 9.1
    13
    73
    22.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bigbearB
      bigbear
      last edited by

      Now that the controller has taken over I lost my second WAN port. Christ...

      JaredBuschJ 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @bigbear
        last edited by

        @bigbear said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

        Now that the controller has taken over I lost my second WAN port. Christ...

        Dual WAN? I would never even attempt to use a USG in that scenario. Not even sure it can.

        1 Reply Last reply Reply Quote 0
        • bigbearB
          bigbear
          last edited by

          Second LAN port, typo...

          I was using the lan/wan as a second port and once provisioning USG decided it would be disabled.

          1 Reply Last reply Reply Quote 0
          • hobbit666H
            hobbit666
            last edited by

            When I run this command

            apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
            

            I get this message:-

            Executing: /tmp/apt-key-gpghome.8Iu0CA5dVp/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
            gpg: keyserver receive failed: No keyserver available
            1 Reply Last reply Reply Quote 0
            • hobbit666H
              hobbit666
              last edited by

              Maybe should add installing on Debian9 (followed Jared's guide) on internal VM internally.

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @hobbit666
                last edited by

                @hobbit666 said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                Maybe should add installing on Debian9 (followed Jared's guide) on internal VM internally.

                Did you run this as root or use sudo?

                hobbit666H 2 Replies Last reply Reply Quote 0
                • hobbit666H
                  hobbit666 @JaredBusch
                  last edited by

                  @jaredbusch ur yes lol.

                  1 Reply Last reply Reply Quote 0
                  • hobbit666H
                    hobbit666 @JaredBusch
                    last edited by

                    @jaredbusch
                    SSH into my server via putty. Logged in as the user unifi01 when at the prompt did the

                    su -
                    

                    ran all the commands above but had the error on the key import.

                    I'll try running direct on the VM console.

                    hobbit666H 1 Reply Last reply Reply Quote 0
                    • hobbit666H
                      hobbit666 @hobbit666
                      last edited by

                      Still the same on console

                      JaredBuschJ 2 Replies Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @hobbit666
                        last edited by

                        @hobbit666 said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                        Still the same on console

                        Very odd as it works jsut fine for me even with sudo.

                        jbusch@deb9-demo:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
                        [sudo] password for jbusch: 
                        Executing: /tmp/apt-key-gpghome.DyMKqzXPlf/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
                        gpg: key 06E85760C0A52C50: "UniFi Developers <unifi-dev@ubnt.com>" not changed
                        gpg: Total number processed: 1
                        gpg:              unchanged: 1
                        jbusch@deb9-demo:~$ 
                        
                        1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @hobbit666
                          last edited by

                          @hobbit666 let me blow this system back to snapshot and do it again.

                          Side note: I said to su - to root because you cannot cat the apt list file from sudo and there are so few commands to set this up. Technically it can all be done from your user with sudo if you use nano or vi to create the list file.

                          1 Reply Last reply Reply Quote 0
                          • hobbit666H
                            hobbit666
                            last edited by

                            SOLVED!!!!
                            Changed the router, firewall must of been blocking.

                            1 Reply Last reply Reply Quote 1
                            • CCWTechC
                              CCWTech
                              last edited by CCWTech

                              When using Vultr is it just https://unifi.hostname.vultr.com:8443 ?

                              dbeatoD 1 Reply Last reply Reply Quote 0
                              • dbeatoD
                                dbeato @CCWTech
                                last edited by

                                @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                When using Vultr is it just https:\unifi.hostname.vultr.com:8443 ?

                                If you have a vultr hostname then yes, otherwise you create a DNS record pointing to your Vultr WAN IP.

                                1 Reply Last reply Reply Quote 1
                                • CCWTechC
                                  CCWTech
                                  last edited by CCWTech

                                  Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                                  dbeatoD 2 Replies Last reply Reply Quote 0
                                  • dbeatoD
                                    dbeato @CCWTech
                                    last edited by

                                    @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                    Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                                    It should as long as Unifi service is started, ports listening internally and Vultr fireewall allowing it.

                                    1 Reply Last reply Reply Quote 1
                                    • dbeatoD
                                      dbeato @CCWTech
                                      last edited by

                                      @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                      Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                                      @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                      Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                                      What is the result of the following:

                                      Service unifi status
                                      
                                      
                                      CCWTechC 1 Reply Last reply Reply Quote 1
                                      • CCWTechC
                                        CCWTech @dbeato
                                        last edited by

                                        @dbeato

                                        root@UBNT_Controller:~# service unifi status
                                        ● unifi.service - unifi
                                        Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: en
                                        Active: active (running) since Sun 2017-12-17 19:56:30 UTC; 1h 45min ago
                                        Main PID: 15614 (jsvc)
                                        CGroup: /system.slice/unifi.service
                                        ├─15614 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                        ├─15616 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                        ├─15617 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                        ├─15628 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1024M -XX:
                                        └─16476 bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --uni

                                        Dec 17 19:56:29 UBNT_Controller systemd[1]: Starting unifi...
                                        Dec 17 19:56:30 UBNT_Controller unifi.init[15558]: Starting Ubiquiti UniFi Contr
                                        Dec 17 19:56:30 UBNT_Controller systemd[1]: Started unifi.

                                        dbeatoD 2 Replies Last reply Reply Quote 0
                                        • dbeatoD
                                          dbeato @CCWTech
                                          last edited by

                                          @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                          @dbeato

                                          root@UBNT_Controller:~# service unifi status
                                          ● unifi.service - unifi
                                          Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: en
                                          Active: active (running) since Sun 2017-12-17 19:56:30 UTC; 1h 45min ago
                                          Main PID: 15614 (jsvc)
                                          CGroup: /system.slice/unifi.service
                                          ├─15614 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                          ├─15616 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                          ├─15617 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                          ├─15628 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1024M -XX:
                                          └─16476 bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --uni

                                          Dec 17 19:56:29 UBNT_Controller systemd[1]: Starting unifi...
                                          Dec 17 19:56:30 UBNT_Controller unifi.init[15558]: Starting Ubiquiti UniFi Control
                                          Dec 17 19:56:30 UBNT_Controller systemd[1]: Started unifi.

                                          Wat about this now
                                          netstat -ano | grep listening

                                          CCWTechC 1 Reply Last reply Reply Quote 0
                                          • dbeatoD
                                            dbeato @CCWTech
                                            last edited by

                                            @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                            @dbeato

                                            root@UBNT_Controller:~# service unifi status
                                            ● unifi.service - unifi
                                            Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: en
                                            Active: active (running) since Sun 2017-12-17 19:56:30 UTC; 1h 45min ago
                                            Main PID: 15614 (jsvc)
                                            CGroup: /system.slice/unifi.service
                                            ├─15614 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                            ├─15616 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                            ├─15617 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
                                            ├─15628 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1024M -XX:
                                            └─16476 bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --uni

                                            Dec 17 19:56:29 UBNT_Controller systemd[1]: Starting unifi...
                                            Dec 17 19:56:30 UBNT_Controller unifi.init[15558]: Starting Ubiquiti UniFi Contr
                                            Dec 17 19:56:30 UBNT_Controller systemd[1]: Started unifi.

                                            Also it looks like it is running.

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post