2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-08 19:10:24 +00:00
pikvm/pages/flashing_os.md

62 lines
3.5 KiB
Markdown
Raw Normal View History

2020-08-02 01:12:05 +00:00
# Flashing the OS image
Download the appropriate memory card image from https://pikvm.org/download.html. Select it based on the board, platform, and the video capture device you are using. For example: choose **v2-hdmi-rpi4.img.bz2** for Raspberry Pi 4 with HDMI-to-CSI capture bridge.
Note: right now, pre-compiled images are only available for the Raspberry Pi 4. In all other cases, you will need to build the operating system yourself. But don't worry, it's [very simple](building_os.md).
2020-08-02 02:25:45 +00:00
## Using Linux CLI
2020-08-07 01:58:27 +00:00
Decompress and flash image and follow to the [final steps](#the-final-steps). Be careful when choosing your device path:
2020-08-02 01:12:05 +00:00
```bash
2020-08-10 22:54:15 +00:00
# bzip2 -d v2-hdmi-rpi4.img.bz2
# dd if=v2-hdmi-rpi4.img of=/dev/mmcblkX
2020-08-02 01:12:05 +00:00
```
2020-08-02 02:25:45 +00:00
## Using Balena Etcher (Linux, MacOS and Windows)
1. Download and install [Balena Etcher](https://www.balena.io/etcher).
2020-08-07 01:59:52 +00:00
2. Decomress the image using your File Manager. If you don't have an archiver (on Windows for example) - the [7-Zip](https://www.7-zip.org) is a great choice. Please note: Balena Etcher have ability to flash compressed images directly, but it is much slower and the process consumes a huge amount of RAM. We strongly recommend you to decompress the image first.
2020-08-02 01:12:05 +00:00
2020-08-02 02:25:45 +00:00
3. Run Balena Etcher:
2020-08-02 01:14:06 +00:00
2020-08-02 01:12:05 +00:00
<img src="../img/balena-1.png" alt="drawing" height="300"/>
2020-08-07 02:00:24 +00:00
4. Press **Flash from file** and choose the image:
2020-08-02 01:14:06 +00:00
2020-08-02 01:12:05 +00:00
<img src="../img/balena-2.png" alt="drawing" height="300"/>
2020-08-02 02:25:45 +00:00
5. Insert memory card to the card reader. Press **Select target** and choose your memory card:
2020-08-02 01:14:06 +00:00
2020-08-02 01:12:05 +00:00
<img src="../img/balena-3.png" alt="drawing" height="300"/>
2020-08-02 01:14:06 +00:00
2020-08-02 02:25:45 +00:00
6. Press **Flash!** button.
2020-08-02 01:14:06 +00:00
2020-08-02 01:14:49 +00:00
<img src="../img/balena-4.png" alt="drawing" height="300"/>
2020-08-02 01:58:37 +00:00
2020-08-02 02:25:45 +00:00
7. Wait for the finish. If an error occurs during flashing, repeat the process:
2020-08-02 01:58:37 +00:00
2020-08-02 01:12:05 +00:00
<img src="../img/balena-5.png" alt="drawing" height="300"/>
2020-08-02 02:25:45 +00:00
## The final steps
1. When the process is complete, pull out the memory card and insert it into the Raspberry Pi. Turn the power on. Your device will obtain the IP address via DHCP automatically.
2. After power-up, Pi-KVM OS generates unique SSH keys and certificates. Do not turn off the Raspberry Pi until it's fully booted.
2020-08-02 01:12:05 +00:00
2020-08-02 02:53:30 +00:00
3. Congratulations! Your Pi-KVM will be available via SSH (`ssh root@<addr>` with password `root` by default) and HTTPS (try to open in a browser the URL `https://<addr>`, the login `admin` and password `admin` by default). For HTTPS a self-signed certificate is used by default.
2020-08-02 01:12:05 +00:00
2020-08-28 15:08:06 +00:00
4. To change the root password use command `passwd` via SSH or webterm. To change Pi-KVM web password use `kvmd-htpasswd set admin`. As indicated on the login screen use `rw` to make the root filesystem writable, before issuing these commands. After making changes, make sure to run the command `ro`.
2020-08-02 01:12:05 +00:00
2020-08-07 02:01:00 +00:00
5. After installation, we recommend you to update your operating system:
2020-08-02 01:12:05 +00:00
```shell
# rw
# pacman -Syu
# reboot
```
2020-08-27 09:49:07 +00:00
2020-08-27 15:06:00 +00:00
6. **27.08.2020 note about systemd**: the latest version of Arch Linux has a slightly broken systemd. The problem is that SSH to the Pi-KVM host may not work the first time, but the second or third. The Pi-KVM build environment contains a workaround for this problem: in the file `/etc/pam.d/system-login` line `-session optional pam_systemd.so` is commented. This does not have any negative impact on the PI-KVM functionality, but if you want to, after fixing the systemd (in a couple of months with the next update), you can uncomment this line.
2020-08-02 01:12:05 +00:00
If you have any problems or questions, contact us using Discord: https://discord.gg/bpmXfz5
2020-09-03 08:27:54 +00:00
Subscribe to our Subreddit to follow news and releases: https://www.reddit.com/r/pikvm