Difference between revisions of "Tips and tricks"

From postmarketOS
Jump to: navigation, search
(added VNC connection)
(Update architecture of device)
Line 19: Line 19:
 
Using x11vnc, which is in the Alpine repos. You need a running X server (e.g. running XFCE), then you just run x11vnc on the device in a terminal/tty and connect to it. From there, you can manipulate the previously running X server.
 
Using x11vnc, which is in the Alpine repos. You need a running X server (e.g. running XFCE), then you just run x11vnc on the device in a terminal/tty and connect to it. From there, you can manipulate the previously running X server.
 
You might need to specify the X server if x11vnc does not detect it (e.g. by passing -display :0 to it or doing a export DISPLAY=:0 before running it, assuming the display is at :0)
 
You might need to specify the X server if x11vnc does not detect it (e.g. by passing -display :0 to it or doing a export DISPLAY=:0 before running it, assuming the display is at :0)
 +
 +
=== Update the architecture of your device ===
 +
 +
Some devices have the armhf-architecture but the device supports armv7. Some Interfaces can not be built for armhf, so it could be useful to update the architecture:
 +
* Update the architecture in the following files:
 +
<source>
 +
device/device-samsung-foo/APKBUILD
 +
device/device-samsung-foo/deviceinfo
 +
device/linux-samsung-foo/APKBUILD
 +
</source>
 +
 +
* Update the name of the config-wiki-example.armhf in device/linux-wiki-example
 +
 +
* Create new Checksums, build the kernel and boot.
  
 
=== Misc ===
 
=== Misc ===

Revision as of 12:39, 31 December 2019

SSH Config

When postmarketOS is reinstalled, a new ssh host key will be generated. Your SSH client will detect this, and refuse to connect, requiring you to run ssh-keygen -R 172.16.42.1 each time a new host key is generated.

To disable this check, and to allow you to connect by running ssh postmarketos, add the following to your ~/.ssh/config:

Host postmarketos
    HostName 172.16.42.1
    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null
Warning: Ignoring host keys could leave you vulnerable to a Man-in-the-middle attack

Some interesting ideas

Here are some interesting ideas that you can do with your device with postmarketOS

  • Use it as a mini retro handheld gaming device. As there are many good retro emulator that ccan make your device one great gaming device.
  • Use it as a mini penetration testing device. As postmarketOS is a pure linux os, you can run Wireshark and other penetration testing software with it.
  • You can run full Desktop Environment, with Inkscape, GIMP and full desktop browser(not mobile version) with extension in your device, .

VNC connection

Using x11vnc, which is in the Alpine repos. You need a running X server (e.g. running XFCE), then you just run x11vnc on the device in a terminal/tty and connect to it. From there, you can manipulate the previously running X server. You might need to specify the X server if x11vnc does not detect it (e.g. by passing -display :0 to it or doing a export DISPLAY=:0 before running it, assuming the display is at :0)

Update the architecture of your device

Some devices have the armhf-architecture but the device supports armv7. Some Interfaces can not be built for armhf, so it could be useful to update the architecture:

  • Update the architecture in the following files:
device/device-samsung-foo/APKBUILD
device/device-samsung-foo/deviceinfo
device/linux-samsung-foo/APKBUILD
  • Update the name of the config-wiki-example.armhf in device/linux-wiki-example
  • Create new Checksums, build the kernel and boot.

Misc

  • The splash screen is highly configurable (scroll down for an example)!
  • Browse the Linux source with links to all references here
  • Qualcomm and maybe some other Androids can simply reboot from postmarketOS (or any Linux distro) into your bootloader or recovery with reboot -f bootloader and reboot -f recovery
  • Battery capacity can be monitored to trigger low battery actions. See Battery capacity monitoring for more information.