install dependencies execute one from this commands
dnf install wine icoutils imagemagick # fedora 22
apt install wine icoutils imagemagick # ubuntu 16
after that execute sudo -i
and run folowing scripts with root
alternativly you can run this scripts from url like this
# for HeidiSQL
sudo curl -sL https://gist.github.com/thecotne/8ab7031349fbf467def9/raw/HeidiSQL.sh | sudo -E bash -
# for WinSCP
curl -sL https://gist.github.com/thecotne/8ab7031349fbf467def9/raw/WinSCP.sh | sudo -E bash -