backslash7 / winbox-linux-installer

Simple script to install Winbox for Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

winbox-linux-installer

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:

Kudos to them 🙏

Requirements

  • wine (for Winbox runtime itself)
  • curl (for downloading latest version of Winbox)
  • xdg-utils package (for xdg-desktop-menu and xdg-icon-resource)

Install

  1. Clone the repository
    cd /tmp && git clone https://github.com/backslash7/winbox-linux-installer.git
  2. 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.

Uninstall

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

About

Simple script to install Winbox for Linux

License:MIT License


Languages

Language:Shell 100.0%