Last active
August 4, 2025 05:12
-
-
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://docs.pikvm.org/flashing_os/ | |
#after burning image | |
echo "WIFI_ESSID='mynet' | |
WIFI_PASSWD='****'">> /Volumes/PIBOOT/pikvm.txt | |
#from web terminal | |
su - #password is root | |
rw | |
timedatectl set-timezone Australia/Victoria | |
passwd root | |
kvmd-htpasswd set admin | |
echo " | |
kvmd: | |
atx: | |
type: disabled | |
hid: | |
jiggler: | |
active: 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 | |
#2FA | |
kvmd-totp init | |
#tailscale | |
pacman -Syu --disable-download-timeout --noconfirm | |
pacman -S pikvm-os-updater | |
pikvm-update | |
pacman -S tailscale-pikvm | |
systemctl enable --now tailscaled | |
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 | |
#in tailscale admin console | |
#Open the DNS page | |
#Enable MagicDNS | |
#Under HTTPS Certificates, select Enable HTTPS | |
#Machines->pikvm->Machine settings->Disable key expiry | |
#from client | |
# optional, remove last IP from vim /Users/omar.salem/.ssh/known_hosts | |
ssh-copy-id root@pikvm && tailscale netcheck | |
#Update wifi | |
sudo echo "network={ | |
ssid="YourWiFiNetworkName" | |
psk="YourNewWiFiPassword" | |
freq_list=5180 5200 5220 5240 | |
}">> /etc/wpa_supplicant/wpa_supplicant.conf | |
#-Advanced->Network->LAN Settings->Address Reservation (all the way down) | |
# -Add pikvm | |
# -Add Macbook pro | |
#-Advanced->NAT forwarding->Virtual servers->Add | |
# Service Type: Macbook pro meetings | |
# External Port: 5000 | |
# Internal IP: Your device IP | |
# Internal Port: 5000 | |
# Protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment