This is a simple script to install Winbox - a tool for managing devices running RouterOS by Mikrotik. This installer was inspiried by mriza/winbox-installer, but it installs the launcher and icons just for the user running the installation script to his XDG directories. This seems like more sensible way of installing third party EXE files.
Bits and parts of this script were put together from these inspirative sources:
- How to write safe Bash script with perfect basic function
- https://github.com/jordansissel/sysadvent/blob/master/2009/08/cronhelper.sh
- https://gist.github.com/montanaflynn/e1e754784749fd2aaca7
Kudos to them 🙏
wine
(for Winbox runtime itself)curl
(for downloading latest version of Winbox)- xdg-utils package (for
xdg-desktop-menu
andxdg-icon-resource
)
- Clone the repository
cd /tmp && git clone https://github.com/backslash7/winbox-linux-installer.git
- Run the install script
cd winbox-linux-installer && ./install.sh
You may select which flavour (32 or 64-bit) of Winbox you wish to install -
./install.sh -f 32
or ./install.sh -f 64
. The script defaults to download
the 64-bit flavour.
Just remove the launcher, the binary and icons. Then refresh XDG resources. Like this:
find ~/.local/share/icons/hicolor -t f -name winbox.png -delete
rm -f ~/.local/bin/winbox.exe
rm -f ~/.local/share/applications/winbox.desktop
xdg-icon-resource forceupdate
xdg-desktop-menu forceupdate