Tuesday, July 7, 2026

Install unifi newest Version

 

1. Update Debian

sudo apt update
sudo apt upgrade -y

2. Instal kebutuhan

sudo apt install -y curl gnupg ca-certificates apt-transport-https

3. Tambah repository MongoDB

curl -fsSL https://pgp.mongodb.com/server-7.0.asc | \
sudo gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | \
sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

4. Tambah repository UniFi

curl -fsSL https://dl.ui.com/unifi/unifi-repo.gpg | \
sudo gpg --dearmor -o /usr/share/keyrings/unifi-repo.gpg
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/unifi-repo.gpg ] https://www.ui.com/downloads/unifi/debian stable ubiquiti" | \
sudo tee /etc/apt/sources.list.d/unifi.list

Langkah repository ini mengikuti metode APT yang disediakan Ubiquiti untuk Debian/Ubuntu.

5. Update dan instal UniFi

sudo apt update
sudo apt install unifi -y

Jika error
bellsoft-java25 but it is not installable or jdk-25 but it is not installable or openjdk-25-jdk but it is not installable or openjdk-25-jre but it is not installable or openjdk-25-jdk-headless but it is not installable or openjdk-25-jre-headless but it is not installable

Lakukan hal berikut:

a. Tambahkan repository Adoptium Temurin

sudo apt update
sudo apt install -y wget apt-transport-https gpg

Tambahkan key:

wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | \
sudo gpg --dearmor -o /usr/share/keyrings/adoptium.gpg

Tambahkan repo:

echo "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" | \
sudo tee /etc/apt/sources.list.d/adoptium.list

Update:

sudo apt update

b. Instal Java 25

sudo apt install temurin-25-jre -y

Cek:

java -version

Harus muncul Java 25.


Selanjutnya dapat diteruskan langkah berikut:


G. Cek service

sudo systemctl status unifi

Jika belum jalan:

sudo systemctl start unifi

Aktif otomatis saat boot:

sudo systemctl enable unifi

7. Buka UniFi Controller

Dari komputer lain buka:

https://IP-DEBIAN:8443

Sunday, November 16, 2025

Updating and Installing Self-Hosted UniFi Network Servers (Linux)

 

Ubuntu or Debian-Based Scripts

Refer to this Community post.

UniFi Network APT Steps

  1. Install required packages before you begin with the following command:
    sudo apt-get update && sudo apt-get install ca-certificates apt-transport-https
  2. Use the following command to add a new source list:
    echo 'deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
  3. Add the GPG Keys.
    1. Method A (Recommended): Install the following trusted key into /etc/apt/trusted.gpg.d:
      sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
    2.  Method B: Using apt-key:
      sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
  4. Install the correct version of MongoDB.
    1. New UniFi Install: Run the following command:
      echo "deb [trusted=yes] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
      sudo apt-get update
      Note: Depending on your Linux distribution, this step may not be necessary. If MongoDB is not included with your distro and isn't available in its repository, refer to the MongoDB installation guide (Ubuntu | Debian). 
    2. Existing Install (UniFi Network v7.5 or Newer): Skip this step.
    3. Existing Install (UniFi Network v7.4 or Prior): Refer to MongoDB's Help Article for instructions on updating MongoDB to v.3.6 or later.
  5. Install and upgrade the UniFi Network application with the following command:
    sudo apt-get update && sudo apt-get install unifi -y
  6. The UniFi Network application should now be accessible at the computer's configured local or public IP address, by typing that IP address in a browser's navigation bar (Chrome is recommended). If it is not launching, use the following command:
    sudo service unifi start

Monday, July 28, 2025

 Upgade Unifi controller


Step in linux version

1. download file newest installer

2. sudo systemctl stop unifi.service

3. sudo systemctl status unifi.service

4. sudo dpkg -i installer file

5. sudo systemctl status unifi.service -> cek status that service already on or not

6. check web service


Easy Installation

Contributor GlennR

1. Copy the link location of the script.

2. SSH into your Ubuntu/Debian machine, and login as root. ( Ubuntu | sudo -i | Debian | su )

3. Make sure the ca-certificates package is installed.

apt-get update; apt-get install ca-certificates curl -y

4. Download and execute the script! (change it to your wanted version)

curl -sO https://get.glennr.nl/unifi/install/unifi-6.5.55.sh && bash unifi-6.5.55.sh