Arch Linux on OnePlus X

https://github.com/meefik/busybox
https://github.com/meefik/linuxdeploy
https://github.com/pelya/xserver-xsdl
https://archlinuxarm.org

http://x2go.org
http://tigervnc.org

md5sum -c twrp-x-onyx.img.md5
md5sum -c purity-x-onyx.zip.md5
md5sum -c blu_spark_x-CM_onyx_x.zip.md5

Settings > About phone
tap on Build number 7 times
Settings > Developer options
check OEM unlocking
check Android debugging

[host root mode]
OnePlus Drivers/adb_config_Linux_OSX.sh
+ authorize your computer’s RSA key fingerprint
reboot fastboot

[fastboot mode]
fastboot devices
fastboot oem unlock
Yes
Settings > About phone
tap on Build number 7 times
Settings > Developer options
check Android debugging
+ authorize your computer’s RSA key fingerprint
reboot fastboot

[fastboot mode]
fastboot devices
fastboot flash recovery twrp.img
fastboot boot twrp.img

Backup >
Storage: MicroSD Card
+ Enable compression

+ System
+ Data
+ Boot
+ Cache
+ Persist
+ Boot
+ Recovery
+ EFS
Swipe to Back Up

Reboot Recovery
[recovery mode]
Wipe > Advanced Wipe > + Cache Format File system > F2FS
Wipe > Advanced Wipe > + Dalvik Cache
Wipe > Advanced Wipe > + System Cache
Wipe > Advanced Wipe > + Data Format File system > F2FS
Wipe > Advanced Wipe > + Micro SDCard Format File system > F2FS
Advanced > ADB Sideload > Swipe to Start Sideload

[host root mode]
adb devices
List of devices attached
xxxxxxx sideload
adb sideload purity-x-onyx.zip
adb sideload blu_spark_x-CM_onyx_x.zip
adb sideload BETA-SuperSU-vx.zip

Reboot System

Settings > About phone
tap on Build number 7 times
Settings > Developer options
check OEM unlocking
check Android debugging