GNU+Linux command memo

Install UBports (or Fairphone Open OS) on Fairphone 2

Installer UBports sur FP2.

1. Flash UBports

$ su (1)
# vi /etc/udev/rules.d/51-android.rules (2)
# /etc/init.d/udev reload
# exit
$ groups (3)
XXX cdrom floppy audio dip video plugdev netdev lpadmin scanner bluetooth
$ wget (4)
$ ./ubports-installer.0.4.18-beta.AppImage
$ # Plug your device and carefully follow the graphical instructions (5)
1 Become root, to add a udev rule to access your device from a regular user (or stay root)
2 Add the following line in the file : SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", MODE="0666", GROUP="plugdev" check that your idVendor and idProduct are the ones found in your /var/log/syslog while pluging the device (it differs if you’re booting in fastboot mode, recovery / bootloader mode and regular mode, so you’ll have to update your file and reload udev during the installation).
3 Check that your current unix user is member of the plugdev group
4 Check for the last version of the .AppImage here :
5 You’ll have to reboot the phone in fastboot mode (holding volume-down button while booting, and then in bootloader mode (holding volume-up button while booting) don’t mix up !

As of 2020-06-28 :

  • WiFi and web navigation is working

  • Wikipedia offline is proposed via Kiwix, from stock OpenStore

  • Offline GPS navigation is proposed (using 3 apps, from stock OpenStore : UT Tweak, OSM Scout, Pure Maps)

  • APN is working with stock Camera app, but the flash light is not operated

  • No radio app found

  • The stock OpenStore counts 899 apps, in 22 categories (maybe overlapping)

  • Found : Weather ; Stellarium ; ePub, PDF and ODF readers ; stock terminal with SSH

  • Regular desktop application are installable, like deltachat-desktop (via Libertine Container)

  • Android apps should run via Anbox emulation.

2. Flash Fairphone Open OS

Official documentation :

$ wget (1)
$ unzip
$ export PATH="$PATH:/path/to/unzipped/folder/platform-tools:" (2)
$ wget (3)
$ unzip
$ sh (4)
1 You may have to accept terms and conditions here before :
2 Add your newly downloaded fastboot binary to your $PATH.
3 Check for the last version here :
4 If stuck for more than a minute with no output, something is not going as expected, check /var/log/syslog, udev permissions…