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

Installing windows application in Linux

Photo by Kelsey Knight on Unsplash

Install Wine(referred link)

  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 https://dl.winehq.org/wine-builds/winehq.key
    sudo apt-key add winehq.key
  3. Add the repository
    sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ 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. The command installs Mono and Gecko and sets the Wine environment.
  2. A dialog will appear asking whether you want to install the wine-mono package. Click on the “Install” button, and the installation will start.
  3. Once done, a new dialog will appear, prompting you to install Gecko. Again click on the “Install” button.
  4. 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)

  1. Goto Downloads folder
    cd "${HOME}/Downloads"
  2. Download the script
    wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
  3. Give executable permission
    chmod +x winetricks

Install packages using Winetricks

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. Start the installation by right-clicking on the .exe file and selecting Open With Wine Windows Program Loader
  2. The installation wizard will start. Install in the same way as you would install any application on a Windows computer.
  3. Windows applications are installed in the ~/.wine/drive_c/ directory.

Run CPU-OS Simulator in Ubuntu

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

A good programmer with some great habits.

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