11 KiB
| title | description |
|---|---|
| DIY PiKVM V1 quickstart guide | Getting started with PiKVM V1 |
DIY PiKVM V1 quickstart guide
!!! tip "So many choices!"
There are many different options with sub-items, so you can choose what will suit you.
However, we marked the recommended way by sign ✮ ✮ ✮
Required parts
-
MicroSD card minimum 8Gb class 10.
-
Raspberry Pi board:
- ✮ ✮ ✮ Raspberry Pi 3.
- ... or Raspberry Pi 2.
Does not support H.264 even with HDMI-CSI bridge. - ... or Raspberry Pi Zero 2 W.
Compact and cheap, but not so reliable solution because of lack of the wired Ethernet. Note that the better way to use Pi Zero is making PiKVM V2 - it supports more USB features.
- ✮ ✮ ✮ Raspberry Pi 3.
-
Video capture device:
- ✮ ✮ ✮ HDMI-CSI bridge based on TC358743 chip.
Supports H.264 video encoding on Raspberry Pi 3, automatic resolution selection and the lowest possible latency. - ... or HDMI-USB dongle.
Only heavy MJPEG video, no resolution detection, big latency compared to HDMI-CSI. Some users report hardware problems: the dongle may not work in the BIOS or simply stop working after a while. It's a black box, and no one knows what's inside it. If you have problems with it, it will not be possible to fix them.
- ✮ ✮ ✮ HDMI-CSI bridge based on TC358743 chip.
-
The Pico HID Keyboard & mouse emulator:
{!_pico_hid_parts.md!}
-
Board-specific parts:
!!! success "✮ ✮ ✮ "Nothing special for Raspberry Pi 2 or 3"
??? note "Raspberry Pi Zero 2 W"
??? note "✮ ✮ ✮ HDMI-CSI bridge" * *x1* [Raspberry Pi Zero Camera Cable](https://www.amazon.com/Arducam-Raspberry-Camera-Ribbon-Extension/dp/B085RW9K13). *Not compatible with Auvidea B101*. ??? note "... or HDMI-USB dongle" * *x1* USB-A socket to USB-Micro adapter (female-male). -
Optional features:
??? success "✮ ✮ ✮ ATX controller to manage the target host's power"
{!_diy_parts_atx.md!}??? note "PS/2 Keyboard & mouse"
The use of PS/2 is intended for advanced users. Check out the additional list of details in advance in the [corresponding paragraph](pico_hid.md#ps2-keyboard-mouse) of the Pico HID manual.??? note "VGA video capture"
If you want to capture VGA from your server instead of HDMI, buy the [VGA-to-HDMI converter](https://aliexpress.com/item/3256801728005613.html). Some converters have issues with not supporting all resolutions and refresh rates.
Setting up the hardware
-
Video capture device:
??? success "✮ ✮ ✮ HDMI-CSI bridge"
{!_diy_setup_video_csi.md!}??? note "... or HDMI-USB dongle"
??? note "Raspberry Pi 2 & 3" {!_diy_setup_video_usb.md!} ??? note "Raspberry Pi Zero 2 W" Connect the USB dongle to USB-to-Micro adapter, and connect it to the USB port marked as `USB` (not `PWR`) on the Pi Zero board: <img src="../_diy/usbcap_zero2w.jpg" width="400"/> -
The Pico HID and ATX controller:
Connect all the parts according to this scheme:
??? success "✮ ✮ ✮ With ATX controller"
??? example "Simple wiring diagram" <img src="../v1/v1_breadboard.png" /> ??? example "Electrical schematic diagram for advanced users" <a target="_blank" href="../v1/v1_scheme.png"><img src="../v1/v1_scheme.png" /></a>??? note "... or without ATX controller"
??? example "Simple wiring diagram" <img src="../pico_hid/basic_breadboard.png" /> ??? example "Electrical schematic diagram for advanced users" <img src="../pico_hid/basic_scheme.png" /> -
Flash firmware to the Pico HID.{target=_blank}
-
Flash the memory card with PiKVM OS{target=_blank} and insert it to Raspberry Pi.
Wiring
!!! warning Double check that the circuit is assembled correctly to avoid any damage of the hardware.
PiKVM V1 requires several items available separately:
-
Ethernet cable (Raspberry Pi 2 and 3 only)
-
HDMI cable
Let's connect all the wires before you power up the device.
-
Connect the HDMI video capture device to the video output port on the target host.
-
Connect the Pico HID to the USB port on the target host.
-
Raspberry Pi 2/3: connect Ethernet to the network, e.g., to the Wi-Fi router.
-
??? example "Connect the ATX controller if you built it"
{!_diy_wiring_atx.md!}
Power up
If everything is assembled correctly, attach the power supply to the Raspberry Pi.
After turning on the power, PiKVM OS generates unique SSH keys and certificates and performs all necessary operations on the memory card. It takes a few minutes.
Do not turn off the device until it's fully booted for the first time.
Configure the display
The operating system on your remote computer will treat PiKVM as an additional display and use it in the Extend mode by default. That's why you will see an empty desktop when you first connect.
To avoid that, go to the display settings in your remote computer's operating system and enable the mirror mode for the external screen that you operating system identifies as PiKVM. Refer to your operating system's documentation on that.
Access PiKVM
You need to know PiKVM's IP address in the network to be able to access it. Unlike PiKVM V3 and V4, PiKVM V1 doesn't have an OLED to display the IP address it receives automatically. You need to discover it manually. There are several ways to do that.
- Common way: Open the web interface of your router and find the list of issued IP addresses there.
- Linux-only: Use the
arp-scan --localnetcommand. - Linux, MacOS, Windows: Download and run Angry IP Scanner.
- Windows PowerShell: Use the
arp -acommand.
Let's assume that PiKVM has received the address 192.168.0.26 and has also been assigned a hostname pikvm.
Type the URL in the browser's address bar and press Enter: https://192.168.0.26/ or https://pikvm/.
Submit the default credentials and click Login:
- Username:
admin - Password:
admin - 2FA Code: disabled by default, skip this field
You will see the initial dashboard screen of the PiKVM where you can access the remote host, connect to the PiKVM command line, or log out:
Change the default passwords
For security's sake, it's best to change the default passwords immediately after running PiKVM for the first time.
!!! danger "Passwords are important!" Please ensure that you change both passwords: for Web UI access and for the Linux superuser (root).
To do that:
-
On the initial dashboard screen, click the Terminal button to open the web terminal. You will see this command line interface:
-
Gain Linux superuser privileges:
$ su -When prompted for password, use
root. -
Run
rwto change the access to the SD card to the write mode:[root@pikvm ~]# rw -
Change the password for the Linux superuser:
[root@pikvm ~]# passwd rootSubmit the new password, retype it the second time to confirm, press Enter, and you should see this:
passwd: password updated successfully -
Change the password for web access:
[root@pikvm ~]# kvmd-htpasswd set adminSubmit the new password, retype it the second time to confirm, and press Enter.
-
Run
roto change the access to the SD card back to the read-only mode:[root@pikvm ~]# ro -
Press Ctrl+D or type "exit" and press Enter to drop the root privileges.
-
Go back one page in the browser. You should be back to the initial dashboard screen.
Access the remote system
-
On the initial dashboard screen, click the KVM button to access the remote host.
-
You should now see the host system's display and interact with it remotely using a keyboard and a mouse.
Important next steps
-
We strongly recommend to update the PiKVM OS after the first launch:
{!_update_os.md!}
-
Learn about basics of PiKVM OS Configuration: where to find configs, how to edit the, etc.
{!_config.md!}
-
Get to know PiKVM Web UI: read this help section to better understand all the possibilities of the web user interface.
-
Tune the HDMI dongle capture device if you're using it:
??? note "Persistent HDMI cable connection with USB dongle"
Many USB video capture devices tell the server's video card that the HDMI cable is supposedly disconnected. This may lead to the fact that if you boot the server without an active stream, the server will not detect your capture card. This is easy to fix: * Switch filesystem to RW-mode: ```console [root@pikvm ~]# rw ``` * Edit file `/etc/kvmd/override.yaml` and add these lines: ```yaml kvmd: streamer: forever: true cmd_append: [--slowdown] ``` * Finish: ```console [root@pikvm ~]# ro [root@pikvm ~]# systemctl restart kvmd ``` * Check that everything is working.
Further recommendations
- Harden the remote access by enabling 2FA and setting session expiration time.
- Configure access to PiKVM from the Internet using port forwarding or Tailscale VPN.
- Learn how configuration files are structured.
- Read how PiKVM is identified on the target host.
Known issues and limitations
- Max resolution.
PiKVM V1 with CSI bridge can only handle the maximum resolution 1920x1080@50Hz, 60Hz is not supported due hardware limitation. You can use any other resolution less than the specified one, for example 1280x720@60Hz. If you have any problems with video on CSI bridge, follow this guide.
Basic troubleshooting
{!_basic_troubleshooting.md!}
Getting user support
If something doesn't work, check out our FAQ. Otherwise, head straight to our Support.



