Last active
August 13, 2026 22:42
-
-
Save Omar-Salem/7fdf44ba5a404368884574e6ad9baf94 to your computer and use it in GitHub Desktop.
PIKVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://files.pikvm.org/images/v2-hdmi-rpi4/aarch64/v2-hdmi-rpi4-aarch64-latest.img.xz PI4 | |
| # https://files.pikvm.org/images/v2-hdmi-zero2w/arm/v2-hdmi-zero2w-arm-latest.img.xz ZERO 2W | |
| # NO FILTERING | |
| # Use custom | |
| # Reinsert sd card | |
| #after burning image | |
| ####### ZERO 2W does not have 5G ! | |
| echo "WIFI_ESSID='TP-Link_90F6' | |
| WIFI_PASSWD='****'">> /Volumes/PIBOOT/pikvm.txt | |
| cat /Volumes/PIBOOT/pikvm.txt && diskutil unmount /Volumes/PIBOOT | |
| # Get ip from router wirless clients | |
| ######## DOUBLE CHECK ON SAME WIFI!! | |
| ping <ip> | |
| ssh-keygen -R <ip> | |
| #from web terminal (admin, admin) | |
| su - #password is root | |
| rw | |
| passwd root | |
| kvmd-htpasswd set admin | |
| #exit webpage, then, from client | |
| cat ~/.ssh/config #double check ip | |
| ssh-copy-id -o StrictHostKeyChecking=accept-new root@pikvm | |
| sudo mkdir -p /var/log/journal | |
| sudo systemd-tmpfiles --create --prefix /var/log/journal | |
| sudo systemctl restart systemd-journald | |
| journalctl --disk-usage | |
| timedatectl set-timezone Australia/Victoria | |
| sed -i 's/^#\?Storage=.*/Storage=persistent/' /etc/systemd/journald.conf && sudo systemctl restart systemd-journald | |
| echo " | |
| kvmd: | |
| atx: | |
| type: disabled | |
| hid: | |
| jiggler: | |
| active: true | |
| enabled: true | |
| kvm: | |
| msd: | |
| type: disabled | |
| otg: | |
| manufacturer: Corsair | |
| product: Corsair Gaming RGB | |
| vendor_id: 0x6940 | |
| product_id: 0x6973 | |
| serial:" > /etc/kvmd/override.yaml | |
| echo 'export PROMPT_COMMAND="history -a"' >> /root/.bashrc | |
| kvmd-edidconf --set-monitor-name=TOSHIBA --set-mfc-id=TTP --set-product-id=34953 --set-serial=2290649089 --apply | |
| pacman -Syu --disable-download-timeout --noconfirm | |
| pacman -S --noconfirm pikvm-os-updater | |
| pikvm-update | |
| ### MAY REBOOT HERE | |
| rw | |
| pacman -Sy tailscale-pikvm --noconfirm | |
| systemctl enable tailscaled --now | |
| tailscale up | |
| sudo sysctl -w net.ipv4.ip_forward=1 | |
| sudo sysctl -w net.ipv6.conf.all.forwarding=1 | |
| sysctl net.ipv4.ip_forward and sysctl net.ipv6.conf.all.forwarding | |
| sudo tee /etc/systemd/system/wifi-power-save-off.service > /dev/null << 'EOF' | |
| [Unit] | |
| Description=Disable WiFi Power Save | |
| After=network.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/iw dev wlan0 set power_save off | |
| RemainAfterExit=true | |
| [Install] | |
| WantedBy=multi-user.target | |
| EOF | |
| sudo systemctl daemon-reexec | |
| sudo systemctl enable wifi-power-save-off.service | |
| sudo systemctl start wifi-power-save-off.service | |
| iw wlan0 get power_save | |
| #https://login.tailscale.com/admin/machines | |
| #Open the DNS page | |
| #Enable MagicDNS | |
| #Under HTTPS Certificates, select Enable HTTPS | |
| #Machines->pikvm->Machine settings->Disable key expiry | |
| tailscale netcheck | |
| ############################vv LATER UPDATES | |
| #Update tailscale | |
| rw | |
| pacman -Syu tailscale-pikvm --noconfirm | |
| #Update wifi | |
| sudo echo "network={ | |
| ssid="YourWiFiNetworkName" | |
| psk="YourNewWiFiPassword" | |
| freq_list=5180 5200 5220 5240 | |
| }">> /etc/wpa_supplicant/wpa_supplicant-wlan0.conf | |
| #-Advanced->Network->LAN Settings->Address Reservation (all the way down) | |
| # -Add pikvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment