Ubuntu18.04安装微信(亲测有效)转载,同样亲测好用

本文的技术只能在 Ubuntu 18.04 上应用

    把 Deepin-wine-for-ubuntu Git 仓库的内容克隆到本地:

    这里可选择 Github 或者 Gitee,Gitee 的优点是它在国内,速度快,那么相对地, Github 肯定是慢,所以选择 Gitee 仓库:

        git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
        cd deepin-wine-for-ubuntu
         
        # 或者 Github
        git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git
        cd deepin-wine-ubuntu

     
    安装:

    这里有两个选择:1 是运行 install.sh 脚本(Ubuntu 18.04 最好运行这个),2 是运行以下的脚本,此脚本包含 deepin-wine 的官方最新环境。

        # 二选一
        # 最好选择这个,否则责任自负
        chmod +x install.sh
        sudo ./install.sh
         
        # 或者
        chmod +x ./install_2.8.22.sh
        sudo ./install_2.8.22.sh

     

安装 Deepin 版微信

参考了链接:https://www.chengxuzhilu.com/2247.html

    下载最新版本的微信 deb 包

    到 https://gitee.com/wszqkzqk/deepin-wine-containers-for-ubuntu/ 下载,选择最新版本,目前(截止于 2021 年 4 月 13 日)是 deepin.com.wechat_2.6.8.65deepin0_i386.deb ,点击即可下载。

    安装微信:

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

    如果顺利的话,很快就会安装好。

    好了,现在可以启动微信。

    安装好 Deepin 版微信后登录微信发现其显示的中文字体为竖立的方块,根本无法看,于是在网上找到这个解决方案,这个方案的每个步骤缺一不可:
    下载“微软雅黑”字体

    到 https://www.lanzous.com/i5wivmd 下载字体,然后解压,得到字体文件 msyh.ttc 。

    將字体复制到指定的位置:

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

     
        將字体注册到 Wine:

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

        键入以下内容,并保存:

            REGEDIT4
            [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
            "MS Shell Dlg"="msyh"
            "MS Shell Dlg 2"="msyh"
             
            [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"

         
        注册 font.reg:

        在终端执行:

        WINEPREFIX=~/.deepinwine/Deepin-WeChat/ deepin-wine regedit ~/.deepinwine/Deepin-WeChat/font.reg

         
        重新运行微信。
    解决微信不能发送图片:sudo apt-get install -y libjpeg62:i386
 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值