User:⬡hexa: Difference between revisions
No edit summary |
|||
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Hello! I'm Edward (Jones), a thoughtful, more in-tro-verted vegetarian gentleman. | 👋 Hello! I'm Edward (Jones), a thoughtful, more in-tro-verted vegetarian gentleman. | ||
* I have been living from 2002. | * I have been living from 2002. | ||
Line 5: | Line 5: | ||
* I studied for GCSEs in 2018 and my life changed with MH problems since that time. | * I studied for GCSEs in 2018 and my life changed with MH problems since that time. | ||
* I have postmarketOS on my [[Fairphone 4 (fairphone-fp4)|FairPhone4]]. | * I have used postmarketOS on my [[Fairphone 4 (fairphone-fp4)|FairPhone4]]. | ||
* Written [[USB_Network#Share_device_TCP%2FIP_ports_through_the_PC]] | * Written [[USB_Network#Share_device_TCP%2FIP_ports_through_the_PC]] | ||
* Written [https://wiki.postmarketos.org/index.php?title=Apk&redirect=no the Alpine Package Keeper redirect page]. Search for ''Apk''! | * Written [https://wiki.postmarketos.org/index.php?title=Apk&redirect=no the Alpine Package Keeper redirect page]. Search for ''Apk''! | ||
* [[Special:Contributions/⬡hexa|Other contributions from me]]. | |||
<br> | |||
'''This is my look into the technical community of (people who share) the postmarketOS project and what people can do to change the system on a mobile device, testing what can be done with devices.''' | |||
== How I have used then broken my Fairphone 4 == | |||
in my usefully informative writing to Customer Support. | |||
:Hello! 👋 I'm Edward Jones. | |||
: | |||
:I have my FairPhone 4 and a laptop computer. | |||
:I used [https://source.android.com/docs/core/architecture/bootloader/fastbootd Android bootloader] (''fastboot'') commands on the laptop to flash install ''postmarketOS'', then ''Ubuntu Touch'', operating systems on the phone, '''then back to the Fairphone OS to use with a QEMU virtual machine image of postmarketOS in a Termux (terminal emulator app) Linux container''' on that Android system. | |||
: | |||
:I have installed Fairphone OS and then I deleted (''fastboot erase'') the recovery mode partition for security, slots A and B. | |||
:Then I locked the device from flashing changes with fastboot. | |||
: | |||
:Now in FastBoot Mode when starting this device, the bootloader cannot start anything (OSes), with power key or "fastboot boot". | |||
: | |||
: What can I do? | |||
:Can you [help] unlock the bootloader with my unlock code and some OEM fastboot commands? | |||
: | |||
:Thank you, please help! | |||
: | |||
== postmarketOS through the Termux Android app == | |||
# Install Termux. | |||
# [https://wiki.postmarketos.org/wiki/Category:QEMU Build an image] with ''pmbootstrap'', initialized for the QEMU device with an architecture of the Android device, '''or an architecture Termux can install the QEMU emulated machine for this''' | |||
# Install the QEMU machine emulator in Termux - from the official ''termux-main'' repository ''qemu-'' packages. | |||
# Then (I think), install ''pmbootstrap'' - and ''virglrenderer-android'' in Termux and the Android app ''Termux X11'', use the QEMU image through X11 and QEMU from the host Termux system. | |||
[https://ivonblog.com/en-us/posts/termux-virglrenderer/ GPU hardware acceleration in Termux tutorial from Ivon's Blog] | |||
[https://ivonblog.com/en-us/posts/how-to-use-termux/#4-how-do-you-learn-termux Things to learn with Termux (simple tutorial for beginners) from Ivon's Blog] | |||
== TTYEscape HKDM configuration: == | == TTYEscape HKDM configuration: == | ||
Line 29: | Line 65: | ||
command = "/usr/bin/togglevt.sh inc" | command = "/usr/bin/togglevt.sh inc" | ||
[[events]] | [[events]] | ||
name = "start" | |||
event_type = "EV_KEY" | event_type = "EV_KEY" | ||
key_state = "pressed" | key_state = "pressed" | ||
Line 70: | Line 107: | ||
<nowiki> | <nowiki> | ||
ej-fairphone-4:~$ sudo apk del tinydm | ej-fairphone-4:~$ sudo apk del tinydm | ||
[sudo] password for user: [...] | |||
World updated, but the following packages are not removed due to: | World updated, but the following packages are not removed due to: | ||
tinydm: postmarketos-ui-sxmo | tinydm: postmarketos-ui-sxmo | ||
Line 96: | Line 134: | ||
<nowiki> | <nowiki> | ||
sudo rc-update add polkit boot | |||
sudo rc-update add hkdm boot | |||
sudo rc-update add tinydm boot</nowiki> | |||
== Add IP addresses to the Alpine Linux device's network interfaces == | |||
To use networks from other computers, edits to ''/etc/network/interfaces'' can be needed. | |||
To put IP information into that, you can do: | |||
<syntaxhighlight lang="shell-session"> | |||
$ echo $'echo -e \'[line of file]\' >> /etc/network/interfaces' | sudo "$SHELL" -s | |||
</syntaxhighlight> | |||
and use the page [https://wiki.alpinelinux.org/wiki/Configure_Networking#IPv4_Static_Address_Configuration Configure Networking - Alpine Linux (IPv4 Static Address Configuration)]. | |||
== * == | == * == | ||
[https://wiki.archlinux.org/title/Nano Arch Linux - console-based "intuitive" Nano text editor] | |||
[https://wiki.alpinelinux.org/wiki/Tutorials_and_Howtos Tutorials and Howtos - Alpine Linux] | |||
[https://wiki.alpinelinux.org/wiki/TTY_Autologin Alpine Linux TTY (Virtual Terminal) setup page] | [https://wiki.alpinelinux.org/wiki/TTY_Autologin Alpine Linux TTY (Virtual Terminal) setup page] | ||
[https://wiki.alpinelinux.org/wiki/TTY_Autologin#By_making_your_own_autologin_wrapper Making your own auto-login wrapper script — TTY Autologin - Alpine Linux] | [https://wiki.alpinelinux.org/wiki/TTY_Autologin#By_making_your_own_autologin_wrapper Making your own auto-login wrapper script — TTY Autologin - Alpine Linux] | ||
[https://github.com/swaywm/sway#configuration Configuration - swaywm/sway: i3-compatible Wayland compositor] | |||
=== UBports Ubuntu Touch 20.04 === | |||
Created a config file to run [https://github.com/swaywm/sway#from-packages Sway WM] application from terminal. | |||
'''I have done this:''' | |||
* (''<nowiki>/bin/bash</nowiki>'' in Terminal ''libertine'' container) | |||
<nowiki> | |||
fakeroot apt update | |||
fakeroot apt install sway</nowiki> | |||
* use OpenStore ''tedit'' text editor app to write desktop entry, | |||
<nowiki> | |||
Version=1.0 | |||
Type=Application | |||
Terminal=false | |||
Exec=libertine-launch -i [container name] /bin/bash -c "{ sway & gtk-launch [app desktop entry name]; }" | |||
Name=Sway app window manager, i3 compatible WM | |||
X-Lomiri-Touch=true | |||
X-Lomiri-Default-Department-ID=accessories | |||
X-Ubuntu-Touch=true | |||
X-Ubuntu-Default-Department-ID=accessories</nowiki> | |||
* and then, | |||
<nowiki> | |||
cp -v ~/.local/share/tedit.danfro/libertine-application-container-sway.desktop.txt ~/.local/share/applications/libertine-application-container-sway.desktop</nowiki> | |||
<div style="display: none;"> <!-- this prevents empty space showing up where the templates would be added --> | <div style="display: none;"> <!-- this prevents empty space showing up where the templates would be added --> | ||
{{Owns device|Fairphone_4_(fairphone-fp4)}} | {{Owns device|Fairphone_4_(fairphone-fp4)}} | ||
</div> | </div> |
Latest revision as of 19:06, 21 March 2025
👋 Hello! I'm Edward (Jones), a thoughtful, more in-tro-verted vegetarian gentleman.
- I have been living from 2002.
- I studied for GCSEs in 2018 and my life changed with MH problems since that time.
- I have used postmarketOS on my FairPhone4.
- Written the Alpine Package Keeper redirect page. Search for Apk!
This is my look into the technical community of (people who share) the postmarketOS project and what people can do to change the system on a mobile device, testing what can be done with devices.
How I have used then broken my Fairphone 4
in my usefully informative writing to Customer Support.
- Hello! 👋 I'm Edward Jones.
- I have my FairPhone 4 and a laptop computer.
- I used Android bootloader (fastboot) commands on the laptop to flash install postmarketOS, then Ubuntu Touch, operating systems on the phone, then back to the Fairphone OS to use with a QEMU virtual machine image of postmarketOS in a Termux (terminal emulator app) Linux container on that Android system.
- I have installed Fairphone OS and then I deleted (fastboot erase) the recovery mode partition for security, slots A and B.
- Then I locked the device from flashing changes with fastboot.
- Now in FastBoot Mode when starting this device, the bootloader cannot start anything (OSes), with power key or "fastboot boot".
- What can I do?
- Can you [help] unlock the bootloader with my unlock code and some OEM fastboot commands?
- Thank you, please help!
postmarketOS through the Termux Android app
- Install Termux.
- Build an image with pmbootstrap, initialized for the QEMU device with an architecture of the Android device, or an architecture Termux can install the QEMU emulated machine for this
- Install the QEMU machine emulator in Termux - from the official termux-main repository qemu- packages.
- Then (I think), install pmbootstrap - and virglrenderer-android in Termux and the Android app Termux X11, use the QEMU image through X11 and QEMU from the host Termux system.
GPU hardware acceleration in Termux tutorial from Ivon's Blog
Things to learn with Termux (simple tutorial for beginners) from Ivon's Blog
TTYEscape HKDM configuration:
sudo mv -T /etc/hkdm/config.d/ttyescape.toml ~/Documents/ttyescape-hkdm.toml sudo cp -s ~/Documents/ttyescape-hkdm.toml /etc/hkdm/config.d/ttyescape.toml sudo $EDITOR ~/Documents/ttyescape-hkdm.toml sudo rc-service hkdm restart
My ttyescape-hkdm.toml:
[[events]] name = "increment" event_type = "EV_KEY" key_state = "released" keys = ["KEY_VOLUMEDOWN", "KEY_VOLUMEUP"] command = "/usr/bin/togglevt.sh inc" [[events]] name = "start" event_type = "EV_KEY" key_state = "pressed" keys = ["KEY_VOLUMEUP"] command = "/usr/bin/togglevt.sh start" [[events]] name = "reset" event_type = "EV_KEY" key_state = "released" keys = ["KEY_VOLUMEUP"] command = "/usr/bin/togglevt.sh reset"
My tinydm (DM service) "user-session.desktop"
[Desktop Entry] Name=Sxmo Sway (Wayland) session Comment=Sxmo session in Sway WM (Wayland UI). Exec=/usr/bin/sh -c "DISPLAY=:0.0 gtk-launch /usr/share/wayland-sessions/swmo.desktop;" Keywords=launch;
- sudo tinydm-unset-session [default session file]
- sudo tinydm-set-session -f -s ~/Documents/user-session.desktop
- sudo service tinydm -v restart
- rc-status
I have worked out that Wayland uses Super (Windows or Cmd) key [❖] with mouse 🖱🖲 to move an app window.
To have a display:
A display server using the Wayland protocol is called a compositor.
- Not to use tinyDisplayManager - not official support for Sway, a tiling Wayland compositor.
- Shell TTY Auto-login to auto-start Sxmo graphical interface, with the Wayland compositor Sway.
- gtk-launch /usr/share/wayland-sessions/swmo.desktop
Put Waydroid or Android, on Sway, in postmarketOS system on my FairPhone.
ej-fairphone-4:~$ sudo apk del tinydm [sudo] password for user: [...] World updated, but the following packages are not removed due to: tinydm: postmarketos-ui-sxmo After this operation, 0 B of additional disk space will be used. OK: 3229 MiB in 1283 packages ej-fairphone-4:~$ ej-fairphone-4:~$ sudo tinydm-unset-session -f -s ~/Documents/user-session.desktop ej-fairphone-4:~$ sudo tinydm-unset-session /var/lib/tinydm/default-session.desktop ej-fairphone-4:~$ sudo rc-update del tinydm boot * service tinydm deleted from runlevel boot ej-fairphone-4:~$ ej-fairphone-4:~$ sudo $EDITOR ~/Documents/user-autologin #!/bin/sh exec login -f user ej-fairphone-4:~$ sudo chmod +x ~/Documents/user-autologin ej-fairphone-4:~$ sudo $EDITOR /etc/inittab
(Alpine Linux Wiki > TTY_Autologin > #Editing_/etc/inittab, with custom login /home/ [username] /Documents/user-autologin)
OpenRC services
sudo rc-update add polkit boot sudo rc-update add hkdm boot sudo rc-update add tinydm boot
Add IP addresses to the Alpine Linux device's network interfaces
To use networks from other computers, edits to /etc/network/interfaces can be needed.
To put IP information into that, you can do:
$ echo $'echo -e \'[line of file]\' >> /etc/network/interfaces' | sudo "$SHELL" -s
and use the page Configure Networking - Alpine Linux (IPv4 Static Address Configuration).
*
Arch Linux - console-based "intuitive" Nano text editor
Tutorials and Howtos - Alpine Linux
Alpine Linux TTY (Virtual Terminal) setup page
Making your own auto-login wrapper script — TTY Autologin - Alpine Linux
Configuration - swaywm/sway: i3-compatible Wayland compositor
UBports Ubuntu Touch 20.04
Created a config file to run Sway WM application from terminal.
I have done this:
- (/bin/bash in Terminal libertine container)
fakeroot apt update fakeroot apt install sway
- use OpenStore tedit text editor app to write desktop entry,
Version=1.0 Type=Application Terminal=false Exec=libertine-launch -i [container name] /bin/bash -c "{ sway & gtk-launch [app desktop entry name]; }" Name=Sway app window manager, i3 compatible WM X-Lomiri-Touch=true X-Lomiri-Default-Department-ID=accessories X-Ubuntu-Touch=true X-Ubuntu-Default-Department-ID=accessories
- and then,
cp -v ~/.local/share/tedit.danfro/libertine-application-container-sway.desktop.txt ~/.local/share/applications/libertine-application-container-sway.desktop