解决:ubuntu18系统安装微信、QQ及WIN7虚拟机

前言:

继上午Ubuntu卡死在不能加载2个磁盘,进不了桌面系统后,想看看问题点出在哪,不然时不时一上午的也很费尽。破案了。VMware workstation 崩了导致进步了桌面系统,应该是着急关机没有预先关虚拟机直接关了ubuntu。
在这里插入图片描述
在这里插入图片描述

方案一、VMware workstation

1.卸载

卸载VMware workstation15.1

sudo vmware-installer -u vmware-workstation

2.安装

下载地址:https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html选择linux版本

chmod +x VMware-Workstation-Full-14.1.3-9474260.x86_64.bundle

sudo ./VMware-Workstation-Full-14.1.3-9474260.x86_64.bundle

安装既可以了。

许可证好像不允许发布在博客了,自己百度一个都可以用。

3、win7-iso

系统之家下载。

4、VMware 安装win7

创建虚拟机

在这里插入图片描述

创建很简单一路默认

给下个人的win7配置参数

4GB内存

50GB 硬盘存储

方案二:deepin-wine-for-ubuntu

wine32安装微信、QQ

1、安装wine

#!/bin/bash
mkdir ./deepintemp
cd ./deepintemp
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb --no-check-certificate
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb --no-check-certificate

echo '准备添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,准备刷新apt缓存信息...'
sudo apt update
echo '即将开始安装...'
sudo dpkg -i *.deb
echo '安装完成,正在自动安装依赖...'
sudo apt install -fy

rm -vfr ./deepintemp                     

运行完不出现任何报错就是成功了

2、安装微信

微信安装包:https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/选择最新的版本

sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb

3、微信中文乱码问题

登陆的时候会有中文乱码

  1. 修改 run.sh 和 run_v2.sh 文件(操作都是一样的)

    cd /opt/deepinwine/tools路径下

    vim run.shrun.sh 和 run_v2.sh

    修改 WINE_CMD,并添加三个 export 语句,内容如下

    #WINE_CMD="deepin-wine"
    
    WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
    
    #added by user
    
    export GTK_IM_MODULE="ibus"
    
    export QT_IM_MODULE="ibus" 
    
    export XMODIFIERS="@im=ibus"
    
  2. 添加字体文件支持

    1.下载字体msyh.ttc

    https://www.lanzous.com/i5wivmd

    解压之后复制到字体库

    cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
    

    2.修改注册表

    gedit ~/.deepinwine/Deepin-WeChat/system.reg
    

    找到以下两行修改

    "MS Shell Dlg"="msyh"
    
    
    
    "MS Shell Dlg 2"="msyh"
    

手动保存及关闭编辑框

3.字体注册

sudo vim msyh_config.reg

写入以下内容

 REGEDIT4
   
   [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
 
   "Lucida Sans Unicode"="msyh.ttc"
   
   "Microsoft Sans Serif"="msyh.ttc"
   
   "MS Sans Serif"="msyh.ttc"
   
   "Tahoma"="msyh.ttc"
   
   "Tahoma Bold"="msyhbd.ttc"

   "msyh"="msyh.ttc"

   "Arial"="msyh.ttc"

   "Arial Black"="msyh.ttc"

   输入以下命令使其生效

deepin-wine regedit msyh_config.reg

成功

在这里插入图片描述

加群交流

在这里插入图片描述

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

小菜学AI

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

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

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

打赏作者

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

抵扣说明:

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

余额充值