> For the complete documentation index, see [llms.txt](https://neupokoev-n.gitbook.io/pxe-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neupokoev-n.gitbook.io/pxe-boot/install-raspberry-pi-os.md).

# Install Raspberry Pi OS

First you need an operating system on the server

Just follow the official tutorial: <https://www.raspberrypi.org/documentation/installation/installing-images/linux.md>

## Linux

It's simple on Linux. Here is my one-liner:

```bash
unzip -p 2022-01-28-raspios-bullseye-arm64.zip \
  | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress
```

Or if you install something like LibreELEC

```bash
gzip -d -c LibreELEC-RPi4.arm-10.0.1.img.gz \
  | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress
```

Or if you install something like Manjaro

```bash
xz -d -c Manjaro-ARM-xfce-rpi4-21.12.img.xz \
  | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress
```

\
Source: <https://raspberrypi.stackexchange.com/questions/32200/how-do-i-write-the-retropie-img-file-to-my-sd-card>

## Windows

It's simple on Windows.

![Raspberry Pi Imager](https://2057935627-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgijcJsMt_u29hmRxl8%2Fuploads%2FW6sWnHWubl28O8oM35CS%2F2022-07-02%2022_37_47-Raspberry%20Pi%20Imager%20v1.4.png?alt=media\&token=20387838-14c7-4f50-9811-d779c28932dc)

Images downloaded by **Raspberry Pi Imager** are stored in `C:\Users\YOUR_USER_NAME\AppData\Local\Raspberry Pi\Imager\cache`. It stores only the last image by the name `lastdownload.cache`
