Ubuntu-Server
Mobaxterm on Ubuntu

Procedure Manual: Installing and Running MobaXterm on Ubuntu Using Wine


Introduction

This manual provides step-by-step instructions to install and run MobaXterm on Ubuntu using Wine. Wine is a compatibility layer that allows running Windows applications on Linux. This procedure ensures proper configuration, application shortcuts, and security considerations.


Step 1: Installing Wine

Wine enables running Windows applications on Linux by translating Windows API calls into POSIX calls.

1.1 Enable 32-bit Architecture (Required for Wine on 64-bit Systems)

  1. Open a terminal.
  2. Run the following command:
    sudo dpkg --add-architecture i386

1.2 Add the Wine Repository Key

  1. Download the Wine repository key using wget:
    sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

1.3 Add the Wine Repository

  1. Add the repository for your Ubuntu version:
    sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources

1.4 Update and Install Wine

  1. Update your package list:
    sudo apt update
  2. Install Wine:
    sudo apt install --install-recommends winehq-stable

1.5 Configure Wine

  1. Run the Wine configuration tool:
    winecfg
  2. Follow the prompts to set up Wine and install necessary dependencies.

Step 2: Installing MobaXterm

MobaXterm is a powerful terminal application for remote access.

2.1 Download MobaXterm

  1. Visit the MobaXterm Official Website (opens in a new tab).
  2. Download the latest version of MobaXterm Personal Edition for Windows.

2.2 Extract the MobaXterm Package

  1. Place the downloaded .zip file in your desired directory.
  2. Extract it using the unzip command:
    unzip MobaXterm_Personal_22.2_Preview2.zip -d /path/to/extract

2.3 Run MobaXterm with Wine

  1. Navigate to the directory containing the MobaXterm executable:
    cd /path/to/extract
  2. Use Wine to run the executable:
    wine MobaXterm_Personal_22.2_Preview2.exe

Step 3: Create Application Shortcuts

To easily launch MobaXterm, create a desktop shortcut.

3.1 Download and Save an Icon

  1. Download an icon for MobaXterm (e.g., icon.jpg).
  2. Save it in the same directory as the MobaXterm executable.

3.2 Create a .desktop File

  1. Navigate to the applications directory:
    • Global:
      cd /usr/share/applications
    • Local:
      cd ~/.local/share/applications
  2. Create a new file:
    sudo vi mobaxtrem.desktop

3.3 Add the Following Content

Replace /home/username and /path/to/MobaXterm with your actual paths:

[Desktop Entry]
Name=MobaXtrem
Exec=env WINEPREFIX="/home/username/.wine" wine /path/to/MobaXterm/MobaXterm_Personal_22.2_Preview2.exe
Type=Application
Icon=/path/to/MobaXterm/icon.jpg
StartupNotify=true

3.4 Make the Shortcut Executable

  1. Set the correct permissions for the shortcut:
    chmod +x ~/.local/share/applications/mobaxtrem.desktop

Step 4: Launch MobaXterm

  1. Search for MobaXterm in your application launcher or run:
    wine /path/to/MobaXterm/MobaXterm_Personal_22.2_Preview2.exe
  2. Optionally, add it to your dock for quick access.

Step 5: Maintenance and Updates

  • Wine Updates: Regularly update Wine to maintain compatibility and security:
    sudo apt update && sudo apt upgrade
  • MobaXterm Updates: Check the official website for newer versions.

Appendix: Troubleshooting Tips

  1. Error: "Package Not Found"

    • Ensure your Ubuntu version is supported by WineHQ.
    • Double-check repository URLs.
  2. MobaXterm Not Running

    • Check Wine logs for errors:
      wine MobaXterm_Personal_22.2_Preview2.exe
    • Ensure dependencies are installed using:
      sudo apt install wine32
  3. Shortcut Not Showing

    • Verify the .desktop file permissions and content.
    • Run xdg-desktop-menu forceupdate.

Enjoy using MobaXterm on Ubuntu!