[Galaxy Note 4 General] lucaoldb:
Caveat: I tested this how-to with Ubuntu 14.04 and a Lenovo pc, I obviously don't know if it'll work for different linux versions, computers, note 4 phones. Just take everything as it is and please don't blame me if your phone gets bricked. Heimdall is as risky as Odin and you can void your warranty or even hard brick your phone if you don't know how to use it. I am a beginner myself with this software and don't ask me how to use it, just because I still have to learn most commands:)

Edit 1/12/16: I tested this software and I successfully flashed a TWRP recovery and eventually rooted my phone.

Most credit goes to Fattire and to the people at Github who are still mantaining and forking this software.(see why below).

I am a linux only user and I've been such for the latest 10 months at least. and, while I was previously a guy who played a lot with his own gadgets, the absolute lack of spare time and the lack of windows and Odin as well has prevented me from rooting and modding my last device.

As most of you should know, Heimdall is something like an open source versione of Odin, which works for Windows, Linux and Mac too. Anyway, Heimdall is this thing https://github.com/Benjamin-Dobell/Heimdall

Most threads here are very old and not very useful in order to get a fully functional Heimdall for Note 4 smartphones. I thought myself it was outdated and no more useful.

Yesterday I saw a post of [MENTION=3041959]fattire[/MENTION] http://xdaforums.com/note-4/snapdra...3-0-910f-g-t3243386/post64090942#post64090942 that linked to another post of his that linked to a thread of Github.

Well, I had some free time and it took not more than an hour to get everything working.

As Fattire himself wrote in the thread I linked, it is slightly technical, but it's not that difficult (I am a hobbyst, I am a lawyer and not a professional developer, and, as I said above, it took me less than a hour for everything to work).

So I want to share a simple how-to. It'll be not very well written since I have no spare time for now, but I hope it can be useful just the same.

First of all, the version of Heimdall that you can install this way

sudo apt-get install heimdall-flash

does not work:(

You need to clone the Github repo by SaburoJiro

Well, first of all, you've got to

sudo apt-get install git

then you have got to clone the repo but, unless you have already got a Github account or you want to join to it, you cannot type

git clone git@github.com/SaburoJiro/Heimdall.git

since you'll get a warning about your public key not beeing accepted

on the other side, you just have to use https instead of the previuos command this way (while being sure you are in your own user home directory)

git clone https://github.com/SaburoJiro/Heimdall.git

then it will took some time, also depending on the speed of your data connection and, after that time delay, you should have got the sources in /Heimdall

In any case, if the the path should be different, please look yourself for the directory where the sources are.

So, still as sudo su, type

cd Heimdall/libpit

Now you have got to compile the sources. If you have already compiled other biniaries, you should already have got the build essentials, if you have not compiled anything yet, you have very likely to

sudo apt-get install build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev

then you just have got to type (see also here https://wiki.cyanogenmod.org/w/Install_and_compile_Heimdall)

cmake -DCMAKE_BUILD_TYPE=Release ..

make

sudo cp bin/* /usr/local/bin

Now you should have a working heimdall!

To check if it works, just put your phone in download mode, connect it to your computer via usb, and type

heimdall print-pit

that's what you should get

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna

http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is

encouraged.

If you appreciate this software and you would like to support future

development please consider donating:

http://www.glassechidna.com.au/donate/

Initialising connection...

Detecting device...

Claiming interface...

Attempt failed. Detaching driver...

Claiming interface again...

Setting up interface...

Initialising protocol...

Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.

Please be patient!

Session begun.

Downloading device's PIT file...

PIT file download successful.

etc.

and finally

Ending session...

Rebooting device...

Releasing device interface...

Re-attaching kernel driver...

Well, now it works and I should be able to flash a recovery or a kernel without any hassle:) but for now I've got to work, so I cannot go any further:(