WINE AirMail Installation on Linux

Wine and AirMail were installed on Linux Mint 18 - Sarah, an Ubuntu and Debian based Linux distribution.
 

www.linuxmint.com
www.winehq.org
www.siriuscyber.net/sailmail
 
Wine only runs on x86 systems.

Lines prefixed with # are meant as comments and descriptions.
Lines not prefixed with # are executable in a terminal window.
This is not intended to be a script to execute – savvy is required before each step. 

Use with caution at your own risk!
Internet access is required to install Wine with this method. 

If a Wine package from another repository exists, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

# ------------------------------     Uninstall Wine    ------------------------------

# Remove any wine and configuration files if they already installed 
# Otherwise skip to 'Install Wine' section.

sudo apt-get purge wine

# For a clean install remove existing Wine user directory:
rm -rvf .wine
# This means  any previously installed windows programs
will have to be reinstalled.

# autoremove is used to remove packages that were automatically installed to satisfy

# dependencies for some package and that are no longer needed:
sudo apt-get autoremove


#
--------------------------           Install Wine            ------------------------------
# If your system is 64 bit, enable 32 bit architecture:
sudo dpkg --add-architecture i386

# This will install Wine from the Ubuntu repository.
# Add the repository:
sudo add-apt-repository ppa:ubuntu-wine/ppa

# To use the official wineHQ repositories use:
# sudo add-apt-repository ppa:wine/wine-builds
# To remove a repository use
# sudo add-apt-repository --remove ppa:wine/wine-builds

# Update packages and refresh the cache:
sudo apt-get update

# Open GUI 'Software Sources' PPAs to view the added PPA.
# Click on the 'Open PPA' to view available versions.

# To install from the Ubuntu repository:
sudo apt-get install wine1.8 winetricks

# Run wine configuration program in terminal to initialise wine:
winecfg

# This is where the .wine directory will be created etc.
# A 'Wine Mono' message may appear   - press Cancel
# A 'Wine Gecko Installer' message may appear  - press Cancel
# AirMail does not seem to require .net or Gecko HTML to run.

# In the Wine configuration window, Applications tab set Windows 7 as the
# default Windows Version:
# Press Apply or OK 


# ------------------------         Install AirMail           ---------------------------------------

# This assumes AirMail has been downloaded into a directory.
# In terminal run the wine installer/uninstaller:
wine uninstaller

# Click on Install button. Point the 'Select an executable file'
# to where the program you want to install is located.

# For AirMail the
container file was selected: AirMail_amsm34062b.exe

# The terminal window will display any messages.
# I had 'fixme . . . Can't find matching timezone information in the registry'
# I ignored these.
# Press Ok.

# ------------------------             Set up AirMail           -------------------------
# set up com port for Airmail.

# This assumes a USB cable connection.
# Plug the Pactor Modem USB connection, turn it on.
# In terminal  list the device owner and group:
ls /dev/ttyUSB* -l

# Note the owner will be 'root' and the group may be 'dialout'
# To list your user and groups IDs type:
id   # or groups

# Check that eg. 'dialout' group is listed.
# If not then add your userid to the group dialout:
sudo usermod -a -G dialout $USER
# Note. A reboot is required for this to become effective!

# Change to the Wine dosdevices directory:
cd ~/.wine/dosdevices

# Create a symbolic link to the USB device (This does not have to be com5) eg.:
ln -s /dev/ttyUSB0 com5

# Create a symbolic link to a printer:
ln -s /dev/lp0 lpt1

# -------------------------           Start AirMail     -------------------------------------------
# The AirMail Setup screen should appear.
# Enter info as required. If com5 was selected above then enter com5.

# In Airmail - Tools - Options - Spelling
# Uncheck all the Spelling options.
# (The text will become visible when a message is composed)

# The only real problem I have was; propagation (ICEPACK) flashes when updating.
# When Terminal is started Uncheck the 'Pre-Calc' on the right side of the window. 

# Click the button just below the 'Pre-Calc' to update propagation.

#              Happy communicating with AirMail on Linux