ubuntu18.04安装wine


安装wine虚拟环境可以再linux 中安装windows .exe的应用程序。

1、wine 的安装

添加软件源:
 	sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'  
sudo apt-get update
sudo apt-get install wine-development 

 

 查看安装版本

wine --version

安装应用程序:   wein  xxx.exe

如安装京东读书:

win jdreadsetup.exe

 

 wine的其他命令:

winecfg (wine的设置~)
wine  taskmgr (任务管理器)
wine  uninstaller (卸载软件)
wine  regedit (注册表)
wine  notepad (记事本)
wineboot ( 重启wine)

二、安装winetricks

运行程序失败,或出现各种异常多数情况为缺少某些dll, 因此安装winetricks  会有帮助。

准备正确的注册表编辑器:

首先将/home/你的用户名/.wine/dosdevices/c:/windows下的regedit.exe程序复制到system32目录下。

命令:

sudo cp /home/你的用户名/.wine/dosdevices/c:/windows/regedit.exe /home/你的用户名/.wine/dosdevices/c:/windows/system32/

下载并安装winetricks:

wget http://www.kegel.com/wine/winetricks

chmod +x winetricks

sudo mv winetricks /usr/local/bin

用winetricks安装必须的win支持库:

命令:winetricks

 

确定之后:

 

 

 确定之后勾选:d3dx9   gdiplus   mfc40、mfc42  msxml3、msxml4、msxml6  riched20、riched30   vb6run、vcrun6、vcrun2003、vcrun2005、vcrun2008

 

参考:

https://www.cnblogs.com/jikexianfeng/p/5769430.html

 

 
 
关注公众号

免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2023 CODEPRJ.COM