开发者
Exagear(二进制转码工具)+wine+图形化显示界面实现在linux上运行windows应用
Exagear(二进制转码工具)+wine+图形化显示界面实现在linux上运行windows应用
发表于2024/12/30
3300

一、Exagear安装

安装转码工具4.0.0版本

%E4%BA%8C%E8%BF%9B%E5%88%B6%E8%BD%AC%E7%A0%81.png

下载地址:https://www.hikunpeng.com/developer/devkit/download/exagear

tar -zxvf ExaGear_4.0.0.tar.gz

cd ExaGear_Server_for_Centos7/ release

sudo dnf localinstall exagear-core-x32a64-3046-1.aarch64.rpm 

sudo dnf localinstall exagear-guest-for-centos-7-x86_64-2793-1.noarch.rpm 

sudo dnf localinstall exagear-utils-3046-1.noarch.rpm

sudo dnf localinstall exagear-core-x64a64-3046-1.aarch64.rpm 

sudo dnf localinstall exagear-integration-3046-1.noarch.rpm

启动exagear

exagear

arch

arch.png

exagear安装成功

二、Wine环境搭建

查看操作系统

%E6%9F%A5%E7%9C%8B%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F.png

安装图形界面

sudo dnf update

sudo dnf install ukui

在确认正常安装后,如果希望以图形界面的方式启动,请在命令行运行以下代码,并重启(reboot)。

systemctl set-default graphical.target

参考链接:https://www.ncnynl.com/archives/202312/6083.html

4、安装wine环境

cd /etc/yum.repos.d

mkdir back

mv CentOS-* back

vi /etc/yum.repos.d/Centos7.repo

将Centos7.repo内容替换为下面加粗字体内容

# CentOS-Base.repo

#

# The mirror system uses the connecting IP address of the client and the

# update status of each mirror to pick mirrors that are updated to and

# geographically close to the client.  You should use this for CentOS updates

# unless you are manually picking other mirrors.

#

# If the mirrorlist= does not work for you, as a fall back you can try the

# remarked out baseurl= line instead.

#

#

[base]

name=CentOS-$releasever - Base - mirrors.huaweicloud.com

baseurl=https://mirrors.huaweicloud.com/centos/$releasever/os/$basearch/

#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

gpgcheck=1

gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7

#released updates

[updates]

name=CentOS-$releasever - Updates - mirrors.huaweicloud.com

baseurl=https://mirrors.huaweicloud.com/centos/$releasever/updates/$basearch/

#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

gpgcheck=1

gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras - mirrors.huaweicloud.com

baseurl=https://mirrors.huaweicloud.com/centos/$releasever/extras/$basearch/

#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

gpgcheck=1

gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus - mirrors.huaweicloud.com

baseurl=https://mirrors.huaweicloud.com/centos/$releasever/centosplus/$basearch/

#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

gpgcheck=1

enabled=0

gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7

安装需要的包文件

yum groupinstall 'Development Tools'

yum install libX11-devel freetype-devel zlib-devel libxcb-devel

sudo yum install epel-release

安装wine

yum install wine

wine --version

Wine--version.png

三、验证

5、用putty.exe验证wine

putty.exe下载

https://the.earth.li/~sgtatham/putty/0.82/w64/putty.exe

将putty.exe下载下来放到服务器上

执行wine64 putty.exe

出现弹窗

putty%E5%BC%B9%E7%AA%97.png

输入服务器IP地址,点击open

open.png

出现putty弹窗

输入用户和登陆密码

%E8%BE%93%E5%85%A5%E7%94%A8%E6%88%B7%E5%92%8C%E5%AF%86%E7%A0%81.png

putty登陆成功

putty%E7%99%BB%E9%99%86%E6%88%90%E5%8A%9F.png

收藏举报
Level 1
0
帖子
0
粉丝
0
获赞