LineageOS: Samsung Galaxy Note 3

Download LineageOS image
https://download.lineageos.org/hlte

wget https://mirrorbits.lineageos.org/full/hlte/20190827/lineage-16.0-20190827-nightly-hlte-signed.zip

Andorid Apps
https://opengapps.org/?api=9.0&variant=nano

wget https://liquidtelecom.dl.sourceforge.net/project/opengapps/arm/20190827/open_gapps-arm-9.0-full-20190827.zip

Compile Heimdall 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 https://gitlab.com/BenjaminDobell/Heimdall.git
cd Heimdall
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
 
# test
cd bin/
./heimdall version

Boot phone to recovery mode

Flash LineageOS
https://wiki.lineageos.org/devices/hlte/install

./heimdall print-pit
./heimdall flash --RECOVERY /tmp/recovery.img --no-reboot
adb sideload /tmp/lineage-16.0-20190827-nightly-hlte-signed.zip 
adb sideload /tmp/open_gapps-arm-9.0-nano-20190827.zip 
adb reboot

Links
https://gitlab.com/BenjaminDobell/Heimdall