madwulf

unifi8

Feb 10th, 2024
10,629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. #Check your Ubuntu version
  2. lsb_release -a
  3.  
  4. #Installing Unifi Repo
  5. sudo apt-get update && sudo apt-get install ca-certificates apt-transport-https
  6. 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
  7. sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
  8.  
  9. #Alternativly download the package directly
  10.  
  11. https://dl.ui.com/unifi/8.0.28/unifi_sysvinit_all.deb
  12.  
  13. #Fixing the dependencies
  14. wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb -O libssl1.1.deb
  15. sudo dpkg -i libssl1.1.deb
  16.  
  17. curl https://pgp.mongodb.com/server-4.4.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/mongodb-org-server-4.4-archive-keyring.gpg >/dev/null
  18. echo 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-org-server-4.4-archive-keyring.gpg] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse' | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list > /dev/null
  19.  
  20. sudo apt update && sudo apt install -y mongodb-org-server
  21. sudo systemctl enable mongod && sudo systemctl start mongod
  22.  
  23. #Installing Unifi
  24. sudo apt-get update && sudo apt-get install unifi -y
  25. sudo systemctl enable unifi && sudo systemctl restart unifi
Tags: Ubutu
Advertisement
Add Comment
Please, Sign In to add comment