How to install CPU-OS Simulator in Ubuntu 20.04 using Wine

Photo by Kelsey Knight on Unsplash

Install Wine(referred link)

Wine (originally an acronym for “Wine Is Not an Emulator”) is a compatibility layer capable of running Windows applications on Unix-like operating systems, such as Linux, macOS, & BSD. It translates Windows system calls into equivalent POSIX calls on-the-fly, allowing a seamless integration of Windows programs into any desktop environment.

  1. If your system is 64 bit, enable 32 bit architecture
    sudo dpkg — add-architecture i386
  2. Download and add the repository key
    wget -nc
    sudo apt-key add winehq.key
  3. Add the repository
    sudo add-apt-repository ‘deb focal main’
  4. Update packages
    sudo apt update
  5. Install winehq-stable package
    sudo apt install — install-recommends winehq-stable

Configure Wine(referred link)

  1. run the winecfg command in your terminal.
  2. The command installs Mono and Gecko and sets the Wine environment.
  3. A dialog will appear asking whether you want to install the wine-mono package. Click on the “Install” button, and the installation will start.
  4. Once done, a new dialog will appear, prompting you to install Gecko. Again click on the “Install” button.
  5. When the installation is completed, the Wine configuration dialog will be shown. Here you can configure various Wine settings. The default settings should be sufficient in most cases. Once finished, close the dialog box.

Get Winetricks(referred link)

Winetricks is a helper script to download and install various redistributable runtime libraries needed to run some programs in Wine.

  1. Goto Downloads folder
    cd "${HOME}/Downloads"
  2. Download the script
  3. Give executable permission
    chmod +x winetricks

Install packages using Winetricks

These packages are need to run the CPU-OS Simulator.

Install vb6run package (used to run vb6 apps)
sh winetricks vb6run

Get mfc42.dll file(used by the Visual Studio)
sh winetricks mfc42

Install CPU-OS Simulator in Ubuntu

  1. Download the CPU-OS simulator’s installation file(.exe) from here
  2. Start the installation by right-clicking on the .exe file and selecting Open With Wine Windows Program Loader
  3. The installation wizard will start. Install in the same way as you would install any application on a Windows computer.
  4. Windows applications are installed in the ~/.wine/drive_c/ directory.

Run CPU-OS Simulator in Ubuntu

To start the CPU-OS Simulator, navigate to the ~/.wine/drive_c/Program Files (x86)/CPU-OS Simulator directory and double click on the CPUSimulator.exe file(or right click and select Open With Wine Windows Program Loader)

CPUSimulator.exe file can be copied to Desktop for quick access.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store