Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

how to install WinSCP on linux

cotne nazarashvili edited this page Oct 5, 2016 · 4 revisions

install dependencies execute one from this commands

dnf install wine icoutils imagemagick # fedora 22
yum install wine icoutils imagemagick # fedora old
apt-get install wine icoutils imagemagick # ubuntu old
apt install wine icoutils imagemagick # ubuntu 16

install WinSCP (execute as root)

wget http://sourceforge.net/projects/winscp/files/WinSCP/5.9.2/WinSCP-5.9.2-Portable.zip/download -O winscp.zip
mkdir /opt/WinSCP
unzip winscp.zip -d /opt/WinSCP
chmod +x /opt/WinSCP/WinSCP.exe
chmod +x /opt/WinSCP/WinSCP.com 

touch /usr/share/applications/WinSCP.desktop

cat <<EOF > /usr/share/applications/WinSCP.desktop
[Desktop Entry]
Name=WinSCP
Exec=WinSCP
Icon=WinSCP
Type=Application
Categories=GTK;GNOME;Utility;
EOF

ln -s /opt/WinSCP/WinSCP.exe /bin/WinSCP

wrestool -x -n MAINICON /opt/WinSCP/WinSCP.exe > /opt/WinSCP/WinSCP.ico
convert /opt/WinSCP/WinSCP.ico\[0\] /usr/share/icons/WinSCP.png

rm winscp.zip -f
Clone this wiki locally