This tutorial focus on hardcore users with terminal skills
My true intention was to do everything using adb, however i never figured out how to do that, so i gave up and used heimdall instead
Personally i think this part is the trickiest...
install heimdall (Link)
Arch:
sudo pacman -S heimdall
it should be similar with other distributions... (if you are using Windows, use Odin)
Download the latest TWRP image for your phone: Link to TRWP webpage
Reboot phone into download mode (My Samsung phone uses: home+volume down+start)
Or maybe this command works...
adb reboot bootloader
as su run:
heimdall flash --RECOVERY /path/to/recovery/file/on/your/computer
First reboot into recovery mode, you can do that with:
adb reboot recovery
Now do a clean cache/factory reset
Install LineageOS with:
adb sideload /path/to/rom/file
DONE!
*If you want to reflash your rom, only do this step and skip the recovery part.