ubuntu18之wine

参考
参考:Wine完全使用指南
参考wiki
How to Install and Use Wine on Ubuntu 18.04:推荐

1. Check installed architectures

1.1 Verify 64-bit architecture. The following command should respond with “amd64”.

dpkg --print-architecture

1.2 See if 32-bit architecture is installed. The following command should respond with “i386”.

dpkg --print-foreign-architectures

1.3 If “i386” is not displayed, execute the following.

sudo dpkg --add-architecture i386

1.4 Recheck with.

dpkg --print-foreign-architectures

1.5 Verify the installation succeeded.

#安装wine 推荐
sudo apt-get install wine64 win32
#看wine版本信息
wine --version
wine-3.0 (Ubuntu 3.0-3ubuntu1)
winecfg #至少需要运行一次winecfg来设置wine的目录和硬件,选用win7模式

2. 卸载Wine

根据您的需要,可以通过两种方式卸载Wine。如果只需要将Wine重置为默认值,则只需删除.wine文件夹,然后通过运行再次创建它winecfg。如果您.wine要备份的文件夹中有应用程序,那么现在是删除该文件夹的好时机。要删除该文件夹,只需执行以下操作,它将处理整个Wine环境:

rm -fr ~/.wine
rm -fr ~/.cache/wine

现在,如果您想从Ubuntu上实际卸载Wine,可以执行以下操作,但是请注意,这不会删除您.wine或缓存的文件夹:

sudo apt remove wine
sudo apt autoremove
#或者
sudo apt purge wine*

3. 使用

参考1
参考2

wine的命令:
你至少需要运行一次winecfg来设置wine的目录和硬件。

# wine安装软件(三种):
wine xxx.exe
./ xxx.exe
# 直接双击软件包

winecfg (wine的设置~)
wine taskmgr (任务管理器)
wine uninstaller (卸载软件,先cd到需要卸载的软件安装目录)
wine regedit (注册表)
wine notepad (记事本)
wineboot ( 重启wine)

wine卸载exe软件

4. 安装微信

推荐参考:Ubuntu20.04中安装微信
如何在ubuntu 20.04以及ubuntu 18.04安装微信

#安装微信依赖库和字体
#使用winetricks安装win支持库。
sudo apt install winetricks
winetricks
#然后勾选你软件需要的如:colorprofile、corefonts、d3dx9、fontfix、fontsmooth-gray、fontsmooth-rgb、fontsmooth-bgr、gdiplus、mfc40、mfc42、msxml3、msxml4、msxml6、riched20、riched30、tahoma、urlmon、vb6run、vcrun6、vcrun2003、vcrun2005、vcrun2008、ie6、allfonts
winetricks corefonts riched20 riched30

sudo apt-get install fonts-wqy-microhei  #文泉驿-微米黑
sudo apt-get install fonts-wqy-zenhei  #文泉驿-正黑

cp /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc ~/.wine/drive_c/windows/Fonts

#將字体注册到 Wine
vim ~/.wine/font.reg
#键入以下内容,并保存:
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="wqy-zenhei.ttc"
"Microsoft Sans Serif"="wqy-zenhei.ttc"
"MS Sans Serif"="wqy-zenhei.ttc"
"Tahoma"="wqy-zenhei.ttc"
"Tahoma Bold"="wqy-zenhei.ttc"
"SimSun"="wqy-zenhei.ttc"
"Arial"="wqy-zenhei.ttc"
"Arial Black"="wqy-zenhei.ttc"

regedit ~/.wine/font.reg

#安装微信
# 直接从官网上下载微信最新版本,下载完成之后用wine运行安装即可。
wine WeChatSetup.exe
#删除桌面WeChat.Desktop图表(建议)
#在applications中找到WeChat图标打开微信即可正常运行

更高版本
Installing Wine 5.0 on Ubuntu(need waiwang)

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key
sudo apt-key add Release.key
sudo add-apt-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
#sudo sh -c 'echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./" > /etc/apt/sources.list.d/obs.list'
sudo apt update
sudo apt install --install-recommends winehq-stable wine-mono wine-geco winetricks

wine --version
wine-6.0.2
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿尔发go

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值