https://www.youtube.com/watch?v=CXBqeis7fgc
wget https://github.com/home-assistant/operating-system/releases/download/16.2/haos_ova-16.2.qcow2.xz
unxz haos_ova-16.2.qcow2.xz
create VM
qm importdisk 400 haos_ova-16.2.qcow2 local-lvm
# Add cloudflare gpg key
mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
# Add this repo to your apt repositories
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main' | tee /etc/apt/sources.list.d/cloudflared.list
# install cloudflared
apt-get update && apt-get install cloudflared
# automatically run your tunnel whenever your machine starts
cloudflared service install eyJhIjoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFeCJ9
# OR run the tunnel manually in your current terminal session only
cloudflared tunnel run --token eyJhIjoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxFeCJ9
root@pve:~# iptables -F
root@pve:~# iptables -t nat -F
root@pve:~# iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8006
root@pve:~# apt install iptables-persistent
pve >> Disks >> ZFS >> Create
pilih disknya, beri nama seperti strorage-pool1
RAID level single disk
compression lz4
# via shell
zfs list
zfs create storage-pool/vmc
zfs create storage-pool/bckp
zfs create storage-pool/iso
Install/Update the UniFi Network application on your Ubuntu/Debian machines.
These scripts was tested on Ubuntu 16.04/18.04/18.10/19.04/19.10/20.04/20.10/21.04/21.10/22.04/22.10/23.04/23.10/24.04/24.10/25.04/25.10 and Debian 8/9/10/11/12/13/14.
Instructions:
1) Copy the link location of the script.
2) SSH into your Ubuntu/Debian machine, and login as root. ( Ubuntu | sudo -i | Debian | su )
2a) Make sure the ca-certificates package is installed.
apt-get update; apt-get install ca-certificates curl -y
3) 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
Install the latest and greatest UniFi Network application with 1 line. ( copy paste )
curl -sO https://get.glennr.nl/unifi/install/install_latest/unifi-latest.sh && bash unifi-latest.sh
The script has multiple options:
Option: --help
Shows script options and information.
Option: --skip
Skip any kind of manual input.
Option: --skip-swap
Skip swap file check/creation.
Option: --add-repository
Add UniFi Repository if --skip is used.
Option: --local-install
Inform script that it's a local setup/application host, to open port 10001/udp ( discovery ).
Option: --custom-url [argument]
Manually provide a UniFi Network application download URL. ( argument is optional )
example: --custom-url https://dl.ui.com/unifi/5.13.29/unifi_sysvinit_all.deb
Option: --v6
Run the Let's Encrypt script in IPv6 mode.
Option: --email [argument]
Specify what email address you want to use for Let's Encrypt renewal notifications.
example: --email [email protected]
Option: --fqdn [argument]
Specify what domain name ( FQDN ) you want to use, you can specify multiple domain names with : as separator,.
Example: --fqdn glennr.nl:www.glennr.nl
Option: --server-ip [argument]
Specify the server IP address manually.
example: --server-ip 1.1.1.1
Option: --custom-acme-server [argument]
Specify a custom ACME server.
example: --custom-acme-server https://acme-staging-v02.api.letsencrypt.org/directory
Option: --retry [argument]
Specify how many times the Let's Encrypt should retry the challenge/hostname resolving.
example: --retry 5
Option: --external-dns [argument]
Use external DNS server to resolve the FQDN.
example: --external-dns 1.1.1.1
Option: --force-renew
Force renew the certificates.
Option: --dns-challenge
Runs the Let's Encrypt script in DNS mode instead of HTTP.
Option: --dns-provider
Specify your DNS server provider.
example: --dns-provider ovh
Supported providers: cloudflare, digitalocean, dnsimple, dnsmadeeasy, gehirn, google, linode, luadns, nsone, ovh, rfc2136, route53, sakuracloud
Please refer to the link above regarding how the credentials file should look like.
Option: --dns-provider-credentials
Specify where the API credentials of your DNS provider are located.
example: --dns-provider-credentials ~/.secrets/EUS/ovh.ini
Option: --private-key [argument]
Specify path to your private key (paid certificate).
Example: --private-key /tmp/PRIVATE.key
Option: --signed-certificate [argument]
Specify path to your signed certificate (paid certificate).
example: --signed-certificate /tmp/SSL_CERTIFICATE.cer
Option: --chain-certificate [argument]
Specify path to your chain certificate (paid certificate).
example: --chain-certificate /tmp/CHAIN.cer
Option: --intermediate-certificate [argument]
Specify path to your intermediate certificate (paid certificate).
example: --intermediate-certificate /tmp/INTERMEDIATE.cer
Option: --own-certificate
Requirement if you want to import your own paid certificates with the use of --skip
Option: --prevent-modify-firewall
Dont automatically open/close port 80 on UniFi Gateway Consoles.
Example command to run the script:
The example command installs the UniFi Network applicationwith Let's Encrypt certificates without any input from the user for glennr.nl and www.glennr.nl with email address [email protected] for the renewal notifications.
bash unifi-5.13.29.sh --skip --fqdn glennr.nl:www.glennr.nl --email [email protected]
4) Once the installation is completed browse to your server IP address.
https://ip.of.your.server:8443
Your UniFi Network Application backup is saved here: /usr/lib/unifi/data/backup/glennr-unifi-backups/
Start PowerShell as Administrator
Paste the following code in PowerShell
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
Press enter and wait till it finishes
apt install npm
npm install -g camera.ui@latest
installed and configured it you can access the interface via http://localhost:8081.
The default username is master and the default password is master.
https://github.com/seydx/camera.ui?tab=readme-ov-file#configuration
Untuk mengoptimalkan penggunaan resource blade server, coba mengimplementasikan proxmox.
Langkah awal 5 blade diinstallkan proxmox dengan satu manajemen server. Proxmox menyebutnya dengan istilah cluster. Singkat cerita, blade sempat restart, dan 4 node lainnya tidak terkoneksi dengan master clusternya. Jika dikonekkan lagi, ada peringatan cluster not ready – no quorum?.
Cara mengatasinya :
Di Master Node
pvecm expected 1
Di Member Node
systemctl restart corosync.service
systemctl restart pve-cluster.service
systemctl restart pvedaemon.service
systemctl restart pveproxy.service
pvecm add IP_MASTER -force