AP 接管
確保裝置是處於出廠預設狀態。您可以參考 UniFi 裝置 LED 狀態指南。
透過 SSH 登入裝置。您可以參考如何使用 SSH 登入的指南。
發出以下命令:set-inform http://ip-of-host:8080/inform
現在將會出現UniFi 裝置以供接管,且可視為標準 L2 接管。
預設憑證
在設定/接管之前,裝置具有的預設憑證。
UniFi OS 主控台 — root / ubnt
UniFi 閘道器 — root / ubnt
UniFi 裝置 — ubnt / ubnt
https://help.tw.ui.com/articles/204909754/
參考資料:
Unifi Controller環境要求
Operating system:
Linux: Ubuntu Desktop / Server 22.04; Debian 11 "Bullseye"
Windows: Windows 10; Windows Server 2016
macOS: Mavericks 10.9, 10.10 Yosemite, 10.11 El Capitan, 10.12 Sierra, 10.13 High Sierra, 10.14 Mojave, 10.15 Catalina.
CPU: x86-64 Processor (Intel / AMD x64 Processors)
RAM: 2GB
Network: 100Mbps Wired Ethernet
HDD: Minimum 10GB free (20GB or more preferred)
Java: Java Runtime Environment (JRE) 8
Web Browser: Google Chrome
MongoDB: version 3.2 or later. Mongo is offered bundled: default is 2.4.14 (for macOS and Windows only).
Raspberry Pi 3B
作業系統
Release date: September 22nd 2022
System: 32-bit
Kernel version: 5.15
Debian version: 11 (bullseye)
相關套件
雖然現在Raspbian已有 64 bit版本,但目前 Unifi Controller 還是只能在32bit的環境上建置,否則會卡在MongoDB的錯誤訊息
Depends: mongodb-server (>= 2.4.10) but it is not installable or
mongodb-10gen (>= 2.4.14) but it is not installable or
mongodb-org-server (>= 2.6.0) but it is not installable
Depends: mongodb-server (< 1:4.0.0) but it is not installable or
mongodb-10gen (< 4.0.0) but it is not installable or
mongodb-org-server (< 4.0.0) but it is not installable
mongodb-clients : Depends: libboost-chrono1.62.0 but it is not installable
Depends: libboost-filesystem1.62.0 but it is not installable
Depends: libboost-program-options1.62.0 but it is not installable
Depends: libboost-regex1.62.0 but it is not installable
Depends: libboost-system1.62.0 but it is not installable
Depends: libboost-thread1.62.0 but it is not installable
Depends: libyaml-cpp0.5v5 but it is not installable
Recommends: mongo-tools but it is not installable
mongodb-server : Depends: libboost-chrono1.62.0 but it is not installable
Depends: libboost-filesystem1.62.0 but it is not installable
Depends: libboost-program-options1.62.0 but it is not installable
Depends: libboost-regex1.62.0 but it is not installable
Depends: libboost-system1.62.0 but it is not installable
Depends: libboost-thread1.62.0 but it is not installable
Depends: libyaml-cpp0.5v5 but it is not installable
E: Unable to correct problems, you have held broken packages.
apt-get install -f libboost-all-dev
https://www.mongodb.com/download-center/community/releases/archive
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu-tarball/
更新與升級
sudo apt update
sudo apt upgrade
安裝 Java
apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' && apt-get -y update && apt-get -y upgrade
apt install openjdk-8-jre-headless jsvc libcommons-daemon-java -y
查看 Java 版本
java -version
3.安裝Mongodb
echo 'deb http://archive.raspbian.org/raspbian stretch main contrib non-free rpi' | sudo tee /etc/apt/sources.list.d/raspbian_stretch_for_mongodb.list
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt-get autoclean -y
sudo apt install mongodb-server mongodb-clients -y
查看版本
mongo --version
安裝Unifi Controller
1. Use the link with the wget command to download the Controller installation package.
wget https://dl.ui.com/unifi/7.2.94/unifi_sysvinit_all.deb
2. Install UniFi and its dependencies.
sudo dpkg -i unifi_sysvinit_all.deb; sudo apt install -f -y
資料來源:
sudo dpkg -i unifi_sysvinit_all.deb
sudo apt-get install -f
ssh-keygen -R hostname
sudo apt-get install aptitude
sudo aptitude install libboost-all-dev
sudo apt-get purge libboost-all-dev
for deleting the package with all attached files and then use
sudo apt-get install -f libboost-all-dev
apt-get install software-properties-common -y
安裝完畢之後
apt-get update
udo nano /etc/wpa_supplicant/wpa_supplicant.conf
指令解釋
[使用root權限][空格][使用nano編輯器][空格][開啟路徑上的檔案]
對比
這是一般正常的設定
network={
ssid="wifi 的 SSID"
psk="wifi 的密碼"
key_mgmt=WPA-PSK 加密類型
}
這是要連接隱藏SSID的
network={
ssid="wifi 的 SSID"
scan_ssid=1
psk="wifi 的密碼"
key_mgmt=WPA-PSK 加密類型
}