2024-07-23 14:52:48 +01:00
# Raspberry Pi Imager
2020-03-04 16:55:40 +01:00
Raspberry Pi Imaging Utility
2020-09-18 00:08:56 +01:00
- To install on Raspberry Pi OS, use `sudo apt update && sudo apt install rpi-imager` .
2024-07-23 14:52:48 +01:00
- Download the latest version for Windows, macOS and Ubuntu from the [Raspberry Pi downloads page ](https://www.raspberrypi.com/software/ ).
2020-09-17 09:31:51 +01:00
2023-11-21 11:03:41 +00:00
# How to use Raspberry Pi Imager
Please see our [official documentation ](https://www.raspberrypi.com/documentation/computers/getting-started.html#raspberry-pi-imager ).
2020-03-04 16:55:40 +01:00
2024-07-23 14:52:48 +01:00
## Contributing
2020-03-04 16:55:40 +01:00
2024-09-11 17:07:16 +01:00
### Linux
2020-03-04 16:55:40 +01:00
#### Get dependencies
2024-09-11 17:07:16 +01:00
- Install the build dependencies (Debian used as an example):
2020-03-04 16:55:40 +01:00
2024-09-12 14:23:04 -04:00
```sh
2024-07-23 14:52:48 +01:00
sudo apt install --no-install-recommends build-essential cmake git libgnutls28-dev
2020-03-04 16:55:40 +01:00
```
2024-07-23 14:52:48 +01:00
- Get the Qt online installer from: https://www.qt.io/download-open-source
- During installation, choose Qt 6.7, CMake and Qt Creator.
2020-03-04 16:55:40 +01:00
#### Get the source
2024-09-12 14:23:04 -04:00
```sh
2020-03-09 16:53:55 +01:00
git clone --depth 1 https://github.com/raspberrypi/rpi-imager
2020-03-04 16:55:40 +01:00
```
2024-09-11 17:07:16 +01:00
#### Build the AppImage
Modify appimagecraft.yml:
- First, you _must_ set Qt6_ROOT (as a extra_variables item under build/cmake) to the root of your Qt6 installation
- Second, you _must_ set QMAKE (as a raw_environment variable of the linuxdeploy plugin) to the full path of qmake inside that Qt6 installation.
2020-03-04 16:55:40 +01:00
2024-09-12 14:23:04 -04:00
```sh
2020-03-09 16:53:55 +01:00
cd rpi-imager
2024-09-11 17:07:16 +01:00
export LD_LIBRARY_PATH=${your_Qt6_install_path}/lib
./${your_platform_appimagecraft_AppImage_name}
2020-03-04 16:55:40 +01:00
```
2024-09-11 17:07:16 +01:00
Now mark the AppImage as executable, and run it:
2020-03-04 16:55:40 +01:00
2024-09-12 14:23:04 -04:00
```sh
2024-09-11 17:07:16 +01:00
chmod +x ./Raspberry_Pi_Imager-*.AppImage
./Raspberry_Pi_Imager-*.AppImage
2020-03-04 16:55:40 +01:00
```
### Windows
#### Get dependencies
- Get the Qt online installer from: https://www.qt.io/download-open-source
2024-09-11 17:07:16 +01:00
During installation, choose Qt 6.7 with Mingw64 64-bit toolchain, CMake and Qt Creator.
2020-03-04 16:55:40 +01:00
2024-07-23 14:52:48 +01:00
- For building the installer, get Nullsoft scriptable install system: https://nsis.sourceforge.io/Download
2020-03-04 16:55:40 +01:00
2024-09-11 17:07:16 +01:00
- It is assumed you already have a valid code signing certificate, and the Windows 10 Kit (SDK) installed.
2020-03-04 16:55:40 +01:00
#### Building
2024-07-23 14:52:48 +01:00
Building Raspberry Pi Imager on Windows is best done with the Qt Creator GUI.
2020-03-04 16:55:40 +01:00
- Download source .zip from github and extract it to a folder on disk
2024-07-23 14:52:48 +01:00
- Open src/CMakeLists.txt in Qt Creator.
- For builds you distribute to others, make sure you choose "Release" in the toolchain settings and not the Debug configuration.
2020-03-04 16:55:40 +01:00
- Menu "Build" -> "Build all"
2022-02-14 10:06:21 +01:00
- Result will be in build_rpi-imager_someversion
2020-03-04 16:55:40 +01:00
- Go to the BUILD folder, right click on the .nsi script "Compile NSIS script", to create installer.
2022-04-28 03:09:37 -07:00
### macOS
2020-03-04 16:55:40 +01:00
#### Get dependencies
- Get the Qt online installer from: https://www.qt.io/download-open-source
2024-07-23 14:52:48 +01:00
During installation, choose Qt 6.7, CMake and Qt Creator.
2024-09-11 17:07:16 +01:00
- It is assumed you have an Apple developer subscription, and already have a "Developer ID" code signing certificate for distribution outside the Mac Store.
2020-03-04 16:55:40 +01:00
#### Building
- Download source .zip from github and extract it to a folder on disk
2024-09-11 17:07:16 +01:00
- Start Qt Creator and open src/CMakeLists.txt
2020-03-04 16:55:40 +01:00
- Menu "Build" -> "Build all"
2022-02-14 10:06:21 +01:00
- Result will be in build_rpi-imager_someversion
2024-09-11 17:07:16 +01:00
- For distribution to others:
- Use the IMAGER_SIGNED_APP flag to enable Application signing
- Use the IMAGER_SIGNING_IDENTITY string to specify the Developer ID certificate Common Name
- Use the IMAGER_NOTARIZE_APP flag to enable notarization as part of the build
- Use the IMAGER_NOTARIZE_KEYCHAIN_PROFILE string to specify the name of the keychain item containing your Apple ID credentials for notarizing.
2020-03-04 17:05:00 +01:00
2022-02-14 11:03:37 +01:00
### Linux embedded (netboot) build
The embedded build runs under a minimalistic Linux distribution compiled by buildroot.
To build:
- You must be running a Linux system, and have the buildroot dependencies installed as listed in the buildroot manual: https://buildroot.org/downloads/manual/manual.html#requirement
- Run:
2024-09-12 14:23:04 -04:00
```sh
2022-02-14 11:03:37 +01:00
cd rpi-imager/embedded
./build.sh
```
The result will be in the "output" directory.
The files can be copied to a FAT32 formatted SD card, and inserted in a Pi for testing.
If you would like to build a (signed) netboot image there are tools for that at: https://github.com/raspberrypi/usbboot/tree/master/tools
2020-03-04 16:55:40 +01:00
## Other notes
### Custom repository
2020-03-05 15:40:38 +01:00
If the application is started with "--repo [your own URL]" it will use a custom image repository.
2020-03-04 16:55:40 +01:00
So can simply create another 'start menu shortcut' to the application with that parameter to use the application with your own images.
2020-12-07 11:36:28 +00:00
### Telemetry
2022-02-18 06:49:25 +00:00
In order to understand usage of the application (e.g. uptake of Raspberry Pi Imager versions and which images and operating systems are most popular) when using the default image repository, the URL, operating system name and category (if present) of a selected image are sent along with the running version of Raspberry Pi Imager, your operating system, CPU architecture, locale and Raspberry Pi revision (if applicable) to https://rpi-imager-stats.raspberrypi.com by downloadstatstelemetry.cpp.
2020-12-07 11:36:28 +00:00
This web service is hosted by [Heroku ](https://www.heroku.com ) and only stores an incrementing counter using a [Redis Sorted Set ](https://redis.io/topics/data-types#sorted-sets ) for each URL, operating system name and category per day in the `eu-west-1` region and does not associate any personal data with those counts. This allows us to query the number of downloads over time and nothing else.
2021-03-12 11:13:03 +00:00
The last 1,500 requests to the service are logged for one week before expiring as this is the [minimum log retention period for Heroku ](https://devcenter.heroku.com/articles/logging#log-history-limits ).
2020-12-07 11:36:28 +00:00
On Windows, you can opt out of telemetry by disabling it in the Registry:
2024-09-12 14:23:04 -04:00
```pwsh
2020-12-07 13:57:21 +01:00
reg add "HKCU\Software\Raspberry Pi\Imager" /v telemetry /t REG_DWORD /d 0
2020-12-07 11:36:28 +00:00
```
2020-12-07 13:57:21 +01:00
On Linux, run `rpi-imager --disable-telemetry` or add the following to `~/.config/Raspberry Pi/Imager.conf` :
2020-12-07 11:36:28 +00:00
```ini
2020-12-07 13:57:21 +01:00
[General]
telemetry=false
2020-12-07 11:36:28 +00:00
```
On macOS, disable it by editing the property list for the application:
2024-09-12 14:23:04 -04:00
```sh
2020-12-07 13:57:21 +01:00
defaults write org.raspberrypi.Imager.plist telemetry -bool NO
2020-12-07 11:36:28 +00:00
```
2021-08-13 15:07:55 -07:00
2024-07-23 14:52:48 +01:00
### License
2021-08-13 15:07:55 -07:00
2024-07-23 14:52:48 +01:00
The main code of the Imaging Utility is made available under the terms of the Apache license.
See license.txt and files in "src/dependencies" folder for more information about the various open source licenses that apply to the third-party dependencies used such as Qt, libarchive, drivelist, mountutils and libcurl.
2024-09-11 17:07:16 +01:00
For the embedded (netboot) build see also "embedded/legal-info" for more information about the extra system software included in that.