当前位置:主页 > 查看内容

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

发布时间:2021-07-07 00:00| 位朋友查看

简介:前言 继上午Ubuntu卡死在不能加载2个磁盘进不了桌面系统后想看看问题点出在哪不然时不时一上午的也很费……

前言:

继上午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

成功

在这里插入图片描述

;原文链接:https://blog.csdn.net/Amusl/article/details/115682705
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐