Existing Alpine installation: Difference between revisions
Appearance
Update the repo and repo key URL |
LongnoseRob (talk | contribs) update to gitlab.postmarketos.org |
||
(16 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{{warning|This process is not supported and might leave your device in a weird state. Here be dragons.}} | |||
To turn Alpine into postmarketOS: | To turn Alpine into postmarketOS: | ||
* Install Alpine Linux | * Install Alpine Linux | ||
* Add [https://gitlab. | * Enable the community repository | ||
* Add this | * Add one of these [https://postmarketos.org/mirrors/ mirrors] to the top of <code>/etc/apk/repositories</code>, Change master to the correct release for your alpine version (eg: postmarketos v22.06 on alpine 3.16, see [[releases]]): | ||
<syntaxhighlight lang="text"> | |||
https://mirror.postmarketos.org/postmarketos/master | |||
</syntaxhighlight> | |||
* Add [https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/raw/master/pmb/data/keys/build.postmarketos.org.rsa.pub this key] as a file called "build.postmarketos.org.rsa.pub" into <code>/etc/apk/keys</code> | |||
or | |||
* Add postmarketOS public key with apk: | |||
<syntaxhighlight lang="shell-session"> | |||
# apk add -u --allow-untrusted postmarketos-keys | |||
</syntaxhighlight> | |||
* Use your device package kernel for your device: (skip this if installing onto a desktop\laptop computer) | |||
<syntaxhighlight lang="shell-session"> | |||
# apk add -u postmarketos-base device-nokia-n900 | |||
</syntaxhighlight> | |||
* Install the packages for the UI you want, for example: | |||
< | <syntaxhighlight lang="shell-session"> | ||
# apk add -u postmarketos-ui-xfce4 | |||
</syntaxhighlight> | |||
or | |||
<syntaxhighlight lang="shell-session"> | |||
# apk add -u postmarketos-ui-weston | |||
</syntaxhighlight> | |||
(Use <code>device-qemu-amd64</code> for a x86_64 virtual machine installation, but this will also install a kernel -- maybe it makes sense to introduce a new "docker device" without any kernel, you could experiment with that if you want.) | |||
(Use <code>device-qemu-amd64</code> for a x86_64 installation, but this will also install a kernel -- maybe it makes sense to introduce a new "docker device" without any kernel, you could experiment with that if you want.) | |||
If you want to use the postmarketOS initramfs, make sure that you adjust the [[Partition-layout|partition labels]] accordingly. | If you want to use the postmarketOS initramfs, make sure that you adjust the [[Partition-layout|partition labels]] accordingly. | ||
Note that alpine users start at 1000 and postmarketos users start at 10000. Some files provided by postmarketos-base may not match the existing system. eg: /etc/conf.d/tinydm | |||
== See also == | == See also == |
Latest revision as of 06:51, 3 November 2024
WARNING: This process is not supported and might leave your device in a weird state. Here be dragons. |
To turn Alpine into postmarketOS:
- Install Alpine Linux
- Enable the community repository
- Add one of these mirrors to the top of
/etc/apk/repositories
, Change master to the correct release for your alpine version (eg: postmarketos v22.06 on alpine 3.16, see releases):
https://mirror.postmarketos.org/postmarketos/master
- Add this key as a file called "build.postmarketos.org.rsa.pub" into
/etc/apk/keys
or
- Add postmarketOS public key with apk:
# apk add -u --allow-untrusted postmarketos-keys
- Use your device package kernel for your device: (skip this if installing onto a desktop\laptop computer)
# apk add -u postmarketos-base device-nokia-n900
- Install the packages for the UI you want, for example:
# apk add -u postmarketos-ui-xfce4
or
# apk add -u postmarketos-ui-weston
(Use device-qemu-amd64
for a x86_64 virtual machine installation, but this will also install a kernel -- maybe it makes sense to introduce a new "docker device" without any kernel, you could experiment with that if you want.)
If you want to use the postmarketOS initramfs, make sure that you adjust the partition labels accordingly.
Note that alpine users start at 1000 and postmarketos users start at 10000. Some files provided by postmarketos-base may not match the existing system. eg: /etc/conf.d/tinydm
See also
- pmaports#106 Turning an existing x86_64 Alpine Linux installation into a postmarketOS one fails
- pmaports#66 troubleshooting the first installation which was done this way