LineageOS: Samsung Galaxy Note 3

Download LineageOS image

wget -P /tmp

Andorid Apps (arm, nano)

wget -P /tmp

Compile Heimdall (tested with v1.4.2)

sudo apt-get install -y build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev
git clone /tmp/Heimdall
cd /tmp/Heimdall
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
# test
cd bin/
./heimdall version

Boot phone to recovery mode
Vol- + Home + Power

Download recovery file

wget -P /tmp

Flash LineageOS

#./heimdall print-pit
./heimdall flash --RECOVERY /tmp/twrp-3.3.1-0-hlte.img --no-reboot
adb sideload /tmp/lineage-*
adb sideload /tmp/open_gapps-arm-*-nano-*.zip
adb reboot

Debug with ADB

adb shell tail -f /tmp/recovery.log

Samsung Galaxy Tab 2 7.0