GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Robin Chen's Blog
  • Archives
  • Tags
  • Categories
  • About
  • KinDemo
  • 上一篇Set up My Hexo Blog

This view

  • Original page
  • New address

GeezerVison is showing robincpc.github.io — Install Wine with Mono & Gecko in Ubuntu 20.04

Warning: Do not try those command in your main PC, I test in a virtual Machine

Note: Most of commands are from the Dockerfile in Reference section. If you want to test wine, just run their docker container

Setup PPA

1
2
3
4
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
# for Ubuntu 20.04
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Install Wine on Ubuntu

1
2
3
sudo apt-get update
sudo apt-get -y install winehq-stable=7.0.0.0~focal-1
# if ask paudio (or similar) different from ...., I choose to use Default [N]

Check Wine Version

1
2
wine --version
# It will prompt `wine-7.0`

Install Mono

1
2
sudo mkdir /opt/wine-stable/share/wine/mono
sudo wget -O - https://dl.winehq.org/wine/wine-mono/7.0.0/wine-mono-7.0.0-x86.tar.xz | sudo tar -xJv -C /opt/wine-stable/share/wine/mono

Download Gecko

1
2
3
sudo mkdir /opt/wine-stable/share/wine/gecko
sudo wget -O /opt/wine-stable/share/wine/gecko/wine-gecko-2.47.1-x86.msi https://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86.msi
sudo wget -O /opt/wine-stable/share/wine/gecko/wine-gecko-2.47.1-x86_64.msi https://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.msi

After above steps, you should find wine-mono & wine-gecko as following screenshots:
Where to find wine-mono
Where to find wine-gecko

Set WINE env config in bashrc

note: do not run any windows program before this setup
Run following lines will add WINE env config in your .bashrc file

1
2
3
# Wine Setup
echo "export WINEPREFIX=~/prefix32" >> ~/.bashrc
echo "export WINEARCH=win32" >> ~/.bashrc

Run explore.exe to setup wine folder automatically.

Use following command in bash terminal, and it will take a while for setup.

1
2
3
wine /opt/wine-stable/lib/wine/i386-windows/explorer.exe
# or
/opt/wine-stable/bin/wine /opt/wine-stable/lib/wine/i386-windows/explorer.exe

Here is screenshot of Windows explorer
Windows explorer

If setup successfully, go to My Computer -> Control Panel -> Add/Remove Programs.
Then, there should have Wine Mono Windows Support and Wine Gecko.
Here are some screenshots:

  • After double clicks My Computer
    After double clicks My Computer

  • After double clicks Control Panel
    After double clicks Control Panel

Manually install Mono and Gecko

After you double click Add/Remove Programs, nothing happenned or prompt some error message (such as no suitable program to open Add/Remove Programs). You may need to install Mono and Gecko, I used following steps.

Open control.exe in system32

  • Go to My Computer -> C: -> Windows -> system32, find control.exe and double clicks it
    find control.exe in system32

  • Double click Add/Remove Programs
    Screenshot add/remove programs

If there is no any program on the list (in the middle of Add/Remove Programs window), need to install manually.

Install wine-gecko

  • Click Install button on the Add/Remove Programs window, then, It will show up file dialog. Find the wine-gecko-x86.msi file which download in previous step, and select & open it.
    Screenshot install gecko 1
    Then, wine-gecko should show up on the Add/Remove Programs window.
    Screenshot install gecko 2

Install wine-mono

  • Click Install button on the Add/Remove Programs window, then, It will show up file dialog. Find the winemono-support.msi file which download in previous step, and select & open it.
    Screenshot install mono 1
    Then, Wine Mono Windows Support should show up on the Add/Remove Programs window.
    Screenshot install mono 2

Test some Windows programs with Wine

Here are some screenshots:

Run PuTTY
Screenshot PuTTY

Run Built-in Windows programs (such as Task Manager, Notepad, and cmd.exe), you can find them in system32 folder
Screenshot Built-in programs

Reference

https://github.com/solarkennedy/wine-x11-novnc-docker/blob/master/Dockerfile
https://tecadmin.net/install-wine-on-ubuntu/

Note:
This note is originally posted in gist

文章作者: Robin Chen
文章連結: http://robincpc.github.io/2020/04/29/Install-Wine-with-Mono-Gecko-in-Ubuntu-20-04/
版權聲明: 本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 Robin Chen's Blog!
WineUbuntuLinux

評論
avatar
Robin Chen
Personal blog about Robot, Programming, and AI
文章
19
標籤
57
分類
1
Follow Me
公告
This is my Blog
目錄
  1. 1. Setup PPA
  2. 2. Install Wine on Ubuntu
  3. 3. Check Wine Version
  4. 4. Install Mono
  5. 5. Download Gecko
  6. 6. Set WINE env config in bashrc
  7. 7. Run explore.exe to setup wine folder automatically.
  8. 8. Manually install Mono and Gecko
    1. 8.1. Open control.exe in system32
    2. 8.2. Install wine-gecko
    3. 8.3. Install wine-mono
  9. 9. Test some Windows programs with Wine
  10. 10. Reference
最新文章
Interactive Robot Kinematics: Hands-On with ImGui and ImGuizmo
Interactive Robot Kinematics: Hands-On with ImGui and ImGuizmo2023-11-07
Set up My Hexo Blog2022-11-23
Install Wine with Mono & Gecko in Ubuntu 20.04
Install Wine with Mono & Gecko in Ubuntu 20.042020-04-29
Remote login localhost jupyter notebook through AWS EC2 instance by ssh reverse tunnel2019-11-26
Use ConqueGDB in Vim
Use ConqueGDB in Vim2017-09-21
You are visitor 01402860 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.