Basically, follow guide at https://wiki.lineageos.org/devices/bacon/install
- LineageOS rom: https://download.lineageos.org/bacon
- custom recovery: https://dl.twrp.me/bacon/
- g-apps: https://wiki.lineageos.org/gapps.html
- su addon: https://download.lineageos.org/extras
# enable usb debugging on device (developer settings)
$ ./adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5d61e8f9 device
$ ./adb reboot bootloader
$ sudo -s
$ ./fastboot devices
5d61e8f9 fastboot
$ ./fastboot oem unlock
...
OKAY [ 0.021s]
finished. total time: 0.021s
# now we wait forever while the device tells us it is deleting everything ...
# (this takes forever)
# re-enable usb debugging
$ ./adb reboot bootloader
$ ./fastboot devices
5d61e8f9 fastboot
$ ./fastboot flash recovery twrp-3.1.1-0-bacon.img
target reported max download size of 1073741824 bytes
sending 'recovery' (13972 KB)...
OKAY [ 0.440s]
writing 'recovery'...
OKAY [ 0.184s]
finished. total time: 0.624s
$ ./adb push lineage-14.1-20171016-nightly-bacon-signed.zip /sdcard/
5909 KB/s (332698899 bytes in 54.976s)
$ ./adb push open_gapps-arm-7.1-nano-20171017.zip /sdcard/
4953 KB/s (190085862 bytes in 37.474s)
$ ./adb push addonsu-14.1-arm-signed.zip /sdcard/
10335 KB/s (566692 bytes in 0.053s)
# wipe Cache, System and Data partitions
# install lineage
# install gapps
# install addonsu
# reboot