Home » Documentation » Running in Linux using Wine

Running in Linux using Wine

SMS Enabler can be run in Linux using WINE compatibility layer. Follow the below instructions to install, configure and run it in Linux.

  1. Installing Wine
  2. Creating a 32-bit Wine prefix on a 64-bit system
  3. Creating a serial port link
  4. Installing and running SMS Enabler
  5. Configuring connection to a modem/dongle in SMS Enabler
  6. Using SMS-to-Database under Wine

1. Installing Wine

It is better not to use Wine packages that are included with your Linux distribution. Such packages are usually old. If you already have such packages installed in your system, uninstall them.

To install Wine on Ubuntu, Mint or other Ubuntu-based distributions follow the instructions in the "Installing WineHQ packages" chapter here: https://wiki.winehq.org/Ubuntu

For other Linux distributions, you can find links to instructions here: https://www.winehq.org/download

2. Creating a 32-bit Wine prefix on a 64-bit system

SMS Enabler is a 32-bit application. Therefore, if you are on a 64-bit Linux, you need to create a 32-bit wineprefix after having installed Wine. If you are on a 32-bit Linux system, skip this chapter.

A wineprefix is the directory where the virtual Windows installation is located. This is where your virtual drive C: is located (named "drive_c"). By default, it's in the ~./wine directory.

To create a 32-bit wineprefix, type in a terminal:

WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg

The winecfg application will open. Just close it.

~/.wine32 is your new 32-bit wineprefix.

3. Creating a serial port link

First, you should find the Unix device (listed in /dev ) that represents the serial port of your modem in Linux.

For USB modems, it usually looks like: /dev/ttyUSB0 or /dev/ttyUSB1 etc.

For modems connected via a hardware serial port: /dev/ttyS0 or /dev/ttyS1 etc.

Note: this document does not describe how to install a modem/dongle in Linux and how to find out its corresponding Unix device. You will have to find that information yourself.

To create the link, run the follwog commands in a terminal:

On a 64-bit system

cd ~/.wine32/dosdevices

On a 32-bit system

cd ~/.wine/dosdevices

Then run the following command:

ln -s <device_path> COM1

Replace <device_path> with your actual Unix device's path, eg. /dev/ttyUSB0

ln -s /dev/ttyUSB0 COM1

Then, add yourself to the dialout group with this command:

sudo usermod -a -G dialout <your_username>

4. Installing and running SMS Enabler

4.1 Installing

Download SMS Enabler's installer. Run it using Wine:

On a 64-bit system type in a terminal

WINEPREFIX=~/.wine32 wine smsenabler_install.exe

On a 32-bit system type in a terminal

wine smsenabler_install.exe

Don't change the default installation path.

4.2 Running

On Mint or Ubuntu, afer running the installer, you will have a desktop shortcut for running SMS Enabler. If such a shortcut is not created for you, you can run it using this command:

On a 64-bit system:

WINEPREFIX=~/.wine32 wine ~/.wine32/drive_c/Program\ Files/SMSENABLER.com/SMS\ Enabler\smsenabler.exe

On a 32-bit system:

wine ~/.wine/drive_c/Program\ Files/SMSENABLER.com/SMS\ Enabler\smsenabler.exe

5. Configuring connection to a modem/dongle in SMS Enabler

In the Setting Dialog box in SMS Enabler, in the Connection tab page, enter the name of the symbolic link that you created in step 3 of this document. For example: COM1

6. Using SMS-to-Database under Wine

To use the SMS-to-Database feature under Wine you need first to install MDAC (Microsoft Data Access Components). You install MDAC under Wine using winetrics

First, you need to install winetrics. See here how to install winetrics: https://wiki.winehq.org/Winetricks

Next, you need to install MDAC using winetrics. To do that type this command:

On a 64-bit system

WINEPREFIX=~/.wine32 winetricks mdac28

On a 32-bit system

winetricks mdac28

Note: the winetrics executable may not be in the PATH variable, so you may need to specify the full or relative path to it in the command line.

After having installed MDAC, you need to instal a windows driver for your database.

Installing a driver for MySQL

Download a 32-bit (even if you are on a 64-bit system) ODBC MySql driver and install it using this command:

On a 64-bit system

WINEPREFIX=~/.wine32 wine start mysql-connector-odbc-5.3.8-win32.msi

On a 32-bit system

wine start mysql-connector-odbc-5.3.8-win32.msi

Then follow the instructions here.