modified on 11 December 2011 at 18:01 ••• 66,952 views

MikroTik for Mac

From MikroTik Wiki

Jump to: navigation, search

There are several possibilities to use Winbox on Apple Mac computers:

  1. Winbox wrapper v1.4 by Ivan Tiukov (ivan@tiukov.com)
  2. Winbox in Winebottler by SomniusX (hellasproject.com)
  3. Install your own Wine (see below)

Contents

Darwine

To use WinBox under Mac OS X (possible on Intel-based Macs only), you have to install Darwine, a port of Wine and other supporting tools that allows Darwin and Mac OS X users to run Windows applications. Wine is an Open Source implementation of the Windows API on top of X and Unix.

Installation instructions for Mac OS X Leopard 10.5

You can use a combined Darwine package that includes fonts and creates the symlinks. Read about it and download the latest version here: http://thisismyinter.net/?p=47

Once installed, simply run Winbox.exe from anywhere.

Darwine installation instructions on Mac OS X Tiger 10.4

It is possible to get WinBox running on Intel based Mac's running Mac OS X Tiger (10.4) however there are a few things that are important:

  1. Install X11. It's on the DVD that came with your Mac.
  2. Install XCode. It's on the same DVD as X11.
  3. Download Darwine for Tiger from http://thisismyinter.net/?p=29 or http://www.kronenberg.org/darwine/ - Both of these builds have FreeType built in, however you should still install [1] if you use the build from Kronenberg.org.

After this, you should be able to run Winbox.exe from wherever you wish to place it.

WinBox running on Mac OSX 10.4.6

MacPorts and wine

If you cannot get Darwine to work, you can install Wine using Mac Ports at http://guide.macports.org/ Once MacPorts is installed open terminal and type the following:

# sudo port install wine

This will take quite a while to download and compile all the relevant packages needed. When finished you can type the following into a terminal window to start Winbox. I'm assuming here that you copied a version of winbox.exe to the /Applications folder

Note For Snow Leopard Users in 64 bit mode:

  • install wine-devel instead of wine
  • as for Nov 2009, there is a bug in wine-devel, so don't forget to add +universal when installing wine.
  • the correct command will be: sudo port install wine-devel +universal


# /opt/local/bin/wine /Applications/winbox.exe

If that works then you are good to go. As a little plus you can download the following automator application that will run the above piece of script but with the benefit of being an application. You can just double click on it to start winbox. The file is at http://www.mediafire.com/file/3wdywhmmnhy/Winbox.zip. Unzip and view in automator if you want to check the contents before running.

Making Home/End/PgUp/PgDown work in Terminal.app

It really annoys me that by default you have no Home/End functionality in terminal.app. Editing large RouterOS scripts or just trying to modify already typed command can become a tedious task without these. So here is a quick guide how to fix this.

  1. Open Terminal.app
  2. Go to Terminal->Window settings
  3. Choose "Keyboard" from the drop down menu
  4. Set action of the "home", "end", "page down" and "page up" keys to "send string to shell" and set the string the following values:
:: end -- "<esc>[4~"
:: home -- "<esc>[1~"
:: pg up -- "<esc>[5~"
:: pg down -- "<esc>[6~"

<esc> -- means you have to actually press the [esc] key

How to capture RouterOS sniffer stream on Mac

To capture MT sniffer stream on Mac you can use Wireshark. For instructions on how to set up sniffing with Wireshark, see Ethereal/Wireshark

Mac-How /Eugene