zoukankan      html  css  js  c++  java
  • wine安装与配置

      
    1. 安装wine32
    dpkg --add-architecture i386 && apt-get update && apt-get install wine32

    2. 准备字体
    为了让中文界面的Windows 应用程序在Wine里运行时能正确显示中文字,需要中文版Windows操作系统下面的字体:
    C:WINDOWSFontssimsun.ttc,复制一份到Linux系统中/root/.wine/drive_c/windows/Fonts里面。
    [root@kashu Fonts]# pwd;ll
    /root/.wine/drive_c/windows/Fonts
    -rw-r--r--. 1 root root 10512288 Sep 15 04:41 simsun.ttc
    simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。

    3. 修改/root/.wine/system.reg(可以先cp /root/.wine/system.reg /root/.wine/system.reg.bak备份一下)
    装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:
    gedit /root/.wine/system.reg
    (一定要使用 gedit 、vim或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文可能变乱码)
    搜索: LogPixels
    找到的行应该是:[System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
    将其中的:
    "LogPixels"=dword:00000060
    改为:
    "LogPixels"=dword:00000070
    搜索: FontSubstitutes
    找到的行应该是:[Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
    将其中的:
    "MS Shell Dlg"="Tahoma"
    "MS Shell Dlg 2″="Tahoma"
    改为:
    "MS Shell Dlg"="SimSun"
    "MS Shell Dlg 2″="SimSun"

    4. 修改  /root/.wine/drive_c/windows/win.ini
    gedit /root/.wine/drive_c/windows/win.ini
    在文件末尾加入:
    [Desktop]
    menufontsize=13
    messagefontsize=13
    statusfontsize=13
    IconTitleSize=13

    5. 最关键的一步,把下面的代码保存为kashu.reg,然后直接在linux终端上执行regedit kashu.reg即可。
          代码:
          REGEDIT4
          [HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes]
          "Arial"="simsun"
          "Arial CE,238"="simsun"
          "Arial CYR,204"="simsun"
          "Arial Greek,161"="simsun"
          "Arial TUR,162"="simsun"
          "Courier New"="simsun"
          "Courier New CE,238"="simsun"
          "Courier New CYR,204"="simsun"
          "Courier New Greek,161"="simsun"
          "Courier New TUR,162"="simsun"
          "FixedSys"="simsun"
          "Helv"="simsun"
          "Helvetica"="simsun"
          "MS Sans Serif"="simsun"
          "MS Shell Dlg"="simsun"
          "MS Shell Dlg 2"="simsun"
          "System"="simsun"
          "Tahoma"="simsun"
          "Times"="simsun"
          "Times New Roman CE,238"="simsun"
          "Times New Roman CYR,204"="simsun"
          "Times New Roman Greek,161"="simsun"
          "Times New Roman TUR,162"="simsun"
          "Tms Rmn"="simsun"

    6.配置中文之后,比如安装QQ,若想通过命令行启动QQ,那就通过别名来实现:
      修改家目录下的.bashrc文件.
      找到存在别名地方命令的位置进行添加

  • 相关阅读:
    jQuery Eazyui的学习和使用(一)
    PHP 红包功能代码
    PHPExcel 使用学习
    AngularJS 学习笔记
    sublime 快速生成html基础代码
    mysql 重置主键
    php 常用文件操作
    Android隐藏状态栏实现沉浸式体验
    MVC
    安卓Design包之NavigationView结合DrawerLayout,toolbar的使用,FloatingActionButton
  • 原文地址:https://www.cnblogs.com/lyxf/p/12012818.html
Copyright © 2011-2022 走看看