If it is for flashing an entire Samsung Firmware, i would advise to use Odin3 windows, or Odin4 linux, or Galaxy-Flasher (that include Thor and Odin4linux)
If it is for flashing a custom recovery, it will be clearly easier using Heimdall (for recent devices like your’s, prefer Heimdall v2.1.0 New Heimdall version 2.x.x
as your linux-mint is debian based, i think you can use the one i have builded for my ubuntu
Download Heimdall_2.1.0_Ubuntu.zip (custom android builds)
The real Trick is to reboot directly into recovery mode just after to have flashing the custom recovery.