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.
- Installing Wine
- Creating a 32-bit Wine prefix on a 64-bit system
- Installing and running SMS Enabler
- Configuring connection to a modem/dongle in SMS Enabler
- 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 outdated. 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. Installing and running SMS Enabler
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
Don't change the default installation path.
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
4. Configuring connection to a modem/dongle in SMS Enabler
First, make sure you are in the dialout user group. This allows you to access serial ports. To see what groups you are in use the command:
If you are not in the dialout group add yourself to it with this command:
sudo usermod -a -G dialout <your_username>
Then, 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.
In the Setting Dialog box in SMS Enabler, in the Connection tab, in the Connect Using box, enter the path to that device. For example: /dev/ttyUSB0
Note: this document does not describe how to install a modem/dongle in Linux and how to find its corresponding Unix device. You will have to find that information yourself.
5. 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
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.