zoukankan      html  css  js  c++  java
  • wine on ubuntu linux, and source insight 绿色版的安装

    (附: 建议安装 playonlinux, 它是一个以wine为基础的,使用 Python 写成的图形化前端,主要用来辅助 Wine 在 Linux 中安装面向 Windows 平台的程序和游戏,如 MS Office 2003。另外,此程序也支持使用 Dosbox 来安装基于 Dos 的程序和游戏。)

    建议使用playonlinux,并先安装 playonlinux,因为 playonlinux 可以帮你管理不同的 wine 版本,并且安装在自己目录而不是散落在系统目录内,因此建议不要自己安装wine,应该使用 playonlinux 来安装 wine。

    如果在 playonlinux 里安装 wine 很慢,可以考虑先到网站:https://www.playonlinux.com/wine/ 去下载最新的wine,然后:

    1、在主界面点击“安装”,然后点击 'Install a non-listed program'。     (http://wiki.playonlinux.com/index.php/Manual_Installations

    2、An important step

    This window is very important : 'What would you like to do before installation ?' (screenshot) because it can allow :

    • 'Use another version of Wine' (a version different from the ones that your POL installation already has).
    • 'Configure Wine' (advanced setting, forcing Set_OS, ...).
    • 'Install some libraries' (by using WineTricks or POL functions).

    (后来发现,在playonlinux 里安装 wine 慢的不可接受,因此还是通过系统安装了wine,然后直接点击 'Install a non-listed program' 去安装source insight,如果弹出让你安装 wine mono,可以不理会,继续安装source insight) 

    让PlayOnLinux 支持中文显示

    1 从windows字体目录中复制simsun.ttc到"XXXX/drive_c/windows/Fonts"和"/usr/share/fonts/truetype/msfonts"这两个目录下面(msfonts为自己建立的目录)

    2 修改Wine的注册表

    2.1 定位到HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes, 将MS Shell Dlg 及 MS Shell Dlg 2的值数据修改为simsun
    2.2 定位到HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFonts,新建字符串项: simsun (TrueType),修改此值数据为 z:usrsharefonts ruetypemsfontssimsun.ttc

    Wine和WIneHQ没什么区别,旧版和新版的问题。建议安装新版 winehq。安装方法:https://vitux.com/how-to-install-wine-on-ubuntu/ 

    1.安装一些必要组件

    winetricks msxml3 gdiplus riched20 riched30 vcrun6 vcrun2005sp1  wenquanyi

    2.拷贝字体

    下载网盘中(我自己的百度网盘,字体名字叫 source_insight_Fonts.7z )的字体,解压,移至~/.wine/dosdevices/c:/windows/Fonts目录

    cp Fonts/* ~/.wine/dosdevices/c:/windows/Fonts

    3.修改注册表

    wine regedit

    打开wine注册表:

    [HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes] :
    

    修改如下几项,没有的要新建字符串:

    Microsoft YaHei=MSYH
    MS Shell Dlg=SimSun
    MS Shell Dlg2=SimSun
    Tms Rmn=SimSun
    SimHei=SimHei


    对于source insight 绿色版,由于3.5 版si有bug,所以不能更改字体及大小,如果下载了有补丁的si,则可以按一下步骤让有补丁的si运行起来
    1, 对于source insight 绿色版,先用
    $ wine regedit 绿色.reg
     将其注册表项导入到注册表
    2,
    $ wine ~/.wine/drive_c/Program Files/sourceInsight-v3.5.0064/Insight3.exe &

    先运行原始版本的si

    3,

    $ wine ~/.wine/drive_c/Program Files/sourceInsight-v3.5.0064/Insight3_en.exe &

    再运行能够修改字体的版本

    4,修改字体在: options -> document type 里修改

    5,若要修改stype properties, 则需要将 options -> preferences 里的 syntax formatting tab 里的 use only color formatting  uncheck

    6, 如果tab显示为乱码,可以:打开工程-->Options -->Document Options对话框,把右下角Visible tabs选项前的勾去掉即可。

  • 相关阅读:
    h5及c3新增的一些内容
    Ajax实现步骤和原理
    prototype和__proto__的关系是什么?
    深拷贝与浅拷贝
    promise与async和await的区别
    ph

    p
    python4
    python3
  • 原文地址:https://www.cnblogs.com/welhzh/p/4595059.html
Copyright © 2011-2022 走看看