DEV Community

Cover image for How To: run MobaXterm on Ubuntu (Linux) with Wine
Yassine Sellami
Yassine Sellami

Posted on Edited on

How To: run MobaXterm on Ubuntu (Linux) with Wine

What is WIne?

Wine (originally an acronym for Wine Is Not an Emulator) is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD.
Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

WIne Instalation:

1 - WIne: download & Install

  • Enable 32 bit architecture (If your system is 64 bit):
sudo dpkg --add-architecture i386
Enter fullscreen mode Exit fullscreen mode
  • Download and add the repository key:
sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
Enter fullscreen mode Exit fullscreen mode
  • Add the repository according to the codename of your version of Ubuntu
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
Enter fullscreen mode Exit fullscreen mode
  • Update & Install package: chose winehq-devel | winehq-stable
sudo apt update
sudo apt install --install-recommends winehq-stable
Enter fullscreen mode Exit fullscreen mode
  • Wine Configuration:
winecfg
Enter fullscreen mode Exit fullscreen mode

MobaXtrem

2 - MobaXterm: Downloadn and Install

  • Download the new MobaXterm features at: Preview version

  • Unzip the MobaXterm package using the unzip command

  • Open a terminal, cd to the directory where you unzipped MobaXterm program and type:

wine MobaXterm_Personal_22.2_Preview2.exe
Enter fullscreen mode Exit fullscreen mode

MobaXterm on ubuntu

3 - Add Application Shortcuts

  • Download MobaXtrem icon and save it on MobaXtrem folder with name icon.jpg

  • Create file .desktop

cd /usr/share/applications (Global) 
or
cd ~/.local/share/applications/ (Local)
vi mobaXtrem.desktop
Enter fullscreen mode Exit fullscreen mode

and past the content:

[Desktop Entry]
Name=MobaXtrem 
Exec=env WINEPREFIX="/home/ysellami/.wine" wine /home/ysellami/path/to/MobaXterm/MobaXterm_Personal_22.2_Preview2.exe
Type=Application
Icon=/home/ysellami/path/to/MobaXterm/icon.jpg
StartupNotify=true
Enter fullscreen mode Exit fullscreen mode
  • Enjoy, now u can search Mobaxtrem and run it or add it in dockBar favorit

Image description

Top comments (2)

Collapse
 
fsdimasyudha profile image
Dimas Yudha Pratama •

Any idea how to use Mobaxterm pro version on Ubuntu? Since I've so many SSH lists that need to be a pro version to save them all. Thanks a bunch 👍

Collapse
 
selllami profile image
Yassine Sellami • • Edited

Mobaxterm pro version have a generator of MSI installation package or Portable executable.
You should generate a portabl version of Mobaxterm Professional (>v10.1).
And use it like described above.