Heimdall Install Method (No Root Required) (on linux PC):

You will need to download and install Heimdall on your PC. On ubuntu you can simply run:

sudo apt-get install heimdall-flash heimdall-flash-frontend

On other distributions you can simply recompile heimdall following the procedure described in the offical github

Once you have Heimdall installed, download the proper .tar file for your device from the download link above and untar it to extract the .img file:

tar -xf twrp-{version}-{device}.img.tar

Power off your device. Turn on your device using the proper key combo to get into download mode and attach the device to your computer via a USB cable. Then run the following command

heimdall flash --RECOVERY recovery.img

Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery and hold the key combo and boot to TWRP right after running the previous command right when the screen turns off. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.