crwdns2933423:0crwdne2933423:0

Installing PostmarketOS with a Pre-Built Image

    • Open the PostmarketOS Downloads page, and find your device in the device table. You will find options for your device's Stable version, and an option for the Edge version.

    • Edge will have experimental features, but might not be stable, and might make daily driving difficult.

    • Once you've found your device, and have selected which image you will be using, you will be brought to a directory page, where you will be prompted to select a user interface.

    • After selecting your user interface you will be presented with multiple files to download.

    • The first file is your rootfs, and will have your main system partition. This file will be {codename}.img.xz.

    • Depending on the device, you might need to download either the Android Boot Partition, which is the {codename}-boot.img.xz file, or the split boot/root layout file which will be named {codename}-bootpart.img.xz, in addition to the main system partition. This isn't always the case for every device, refer to the device's wiki page.

    • Each file will have a corresponding checksum in sha256 and sha512. The process will be different between operating systems.

    • To compare checksums on Linux open the terminal and use sha256sum path-to-image-file.img.xz and sha512sum path-to-image-file.img.xz.

    • To compare checksums on MacOS open the terminal and use shasum -a 256 path-to-image-file.img.xz and shasum -a 512 path-to-image-file.img.xz.

    • To compare checksums on Windows open the command prompt and use -hashfile image-file.img.xz SHA256 and -hashfile image-file.img.xz SHA512.

    • Compare the checksums on the website with the checksums of your local files. If they don’t match, you’ll need to re-download the files.

    • Since the images you downloaded are compressed you will need to extract them. Mac and Windows will have GUI tools for extracting files. Linux will require you to use the command xz --decompress path-to-image-file.img.xz.

    • On Android devices, the standard OS is divided into system, data, and sometimes super partitions (or A/B slots). The system partition (1-2GB, depending on the device’s age) allows quick OS reverts without data loss.

    • However, some user interfaces require more storage, and you’ll quickly run out of space when installing new software or adding new files.

    • The userdata partition: This is the partition used by Android to store user data. If you install to this partition, your Android data will be reset!

    • SD card: On devices with an external storage slot, you can flash the postmarketOS system image onto an SD card.

    • This is your final opportunity to ensure that all your data has been backed up from your device!

    • The following steps outline the general process of flashing images to your device. However, the PostmarketOS device wikis provide additional information or prerequisites specific to your device.

    • Some devices necessitate flashing a secondary bootloader, such as lk2nd, before flashing the other images.

    • There are a few different options for flashing your SD card, but one of the easiest options is going to be using a software like BalendaEtcher.

    • In Etcher, click "Flash from file" and select the PostmarketOS image you downloaded earlier.

    • Select the USB flash drive as the target device.

    • Double-check to ensure you have selected the correct drive, as the process will erase all data on the selected drive.

    • Click "Flash!" to start the process. Etcher will copy the PostmarketOS to the SD card.

    • This option is best for devices that boot directly from an SD card. PostmarketOS will resize the newly-added partition to fit the entire SD card on first boot.

    • The exact commands vary based on your device and flashing protocol. Ensure your device’s wiki page is open. If there are no specific instructions for flashing to your device’s partition, follow these generic commands.

    • Fastboot:

    • Download fastboot from the Android platform tools or your distro’s package manager.

    • Plug in your device and enter flashing mode.

    • Run fastboot devices to verify device detection. Flash the partition (userdata or system) with fastboot flash PARTITION path-to-rootfs.img.

    • If flashing userdata, wipe the system partition with fastboot erase system.

    • Reboot the device with fastboot reboot to ensure data integrity.

    • This step only applies to Samsung Devices.

    • Heimdall (Samsung Download Mode/Odin):

    • You'll need to get heimdall from your distro’s package manager or if you're feeling adventurous, build it from source. Alternatively, use pmbootstrap’s chroot; run pmbootstrap chroot apk add heimdall, then execute commands as pmbootstrap chroot heimdall.

    • Enter download mode (usually by pressing the Power + Volume Down + Home buttons).

    • Run heimdall print-pit to list partitions: SYSTEM (system partition), USERDATA or DATA (data partition), and BOOT or KERNEL (boot partition).

    • Reboot the device into download mode.

    • Run heimdall flash —PARTITION path-to-rootfs.img, replacing PARTITION with the partition you listed above.

    • If you own an Android device, you’ll probably need to flash the boot image or kernel as well.

    • The process is quite similar to flashing rootfs images to the device, except that ’’system’’ is replaced with ’’boot’’.

crwdns2915888:0crwdne2915888:0

Congratulations on successfully completing the installation process! Once you’ve flashed all the necessary images, reboot the device. If you followed the instructions correctly, you should be greeted with the login screen of your preferred interface. As you finish up you should keep a few things in mind.

Default Username and Password

Default Username: user

Default Password: 147147

Enabling Teletypewriter

TTY/Teletypewriter can be turned on at any point by holding Volume Down and pressing the Power button 3 times.

Downloading Updates

The image you've installed might be out of date slightly, so it is important to run the sudo apk upgrade -U in the terminal to get the latest update.

Using SSH

By default SSH is not enabled from a pre-built image, but can be enabled via the terminal.

Jacob Mehnert

crwdns2935283:010/18/21crwdne2935283:0

39 240 crwdns2915208:0crwdne2915208:0

crwdns2935297:050crwdne2935297:0

crwdns2915084:0crwdne2915084:0

iFanatics crwdns2935289:0iFanaticscrwdne2935289:0

Community

crwdns2931471:061crwdne2931471:0

crwdns2935297:0194crwdne2935297:0

crwdns2947412:00crwdne2947412:0

crwdns2917038:0crwdne2917038:0

crwdns2936625:0crwdne2936625:0:

crwdns2936751:024crwdne2936751:0 7

crwdns2936753:07crwdne2936753:0 32

crwdns2936753:030crwdne2936753:0 162

crwdns2942667:0crwdne2942667:0 680