wine中文乱码的终极解决方法

准备字体:simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。下载simfang.ttc 字体

simsun.ttc复制到/home/user/.wine/drive_c/windows/fonts里面。

进入 Wine 的注册表 “/home/用户名/.wine/dosdevices/c:/windows/”,右键用 "使用Wine Windows Program Loader打开" 方式打开 regedit.exe ,打开 [HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] ,将“ MS Shell Dlg  ”“ MS Shell Dlg 2 ”“ Tahoma ”三项的值都设为“simsun”。如果没有“Tahoma”可以自己新建一个。

Wine挂装 FAT 或 VFAT 文件系统

正确安装完软件之后,最主要的事情就是配置wine.conf文件.大家主要配置的是指定盘符 和路径我的windows分区有四个,分别为c,d,e,f,所以我在linux的/mnt目录中建立了c,d,e ,f四个目录,这样对应windows中的四个盘。光驱为/mnt/cdrom目录,软驱为/mnt/floppy目 录。所以我的wine.conf配置文件如下:

Java代码  
  1. [Drive A]
  2. Path=/mnt/floppy
  3. Type=floppy
  4. Label=Floppy
  5. Serial=87654321
  6. Device=/dev/fd0
  7. [Drive C]
  8. Path=/mnt/c
  9. Type=hd
  10. Label=MS-DOS
  11. Filesystem=win95
  12. [Drive d]
  13. Path=/mnt/d
  14. Type=hd
  15. Label=MS-DOS
  16. Filesystem=win95
  17. [Drive e]
  18. Path=/mnt/e
  19. Type=hd
  20. Label=MS-DOS
  21. Filesystem=win95
  22. [Drive f]
  23. Path=/mnt/f
  24. Type=hd
  25. Label=MS-DOS
  26. Filesystem=win95
  27. [Drive g]
  28. Path=/mnt/cdrom
  29. Type=cdrom
  30. Label=CD-Rom
  31. Filesystem=win95
  32. [Drive h]
  33. Path=/tmp
  34. Type=hd
  35. Label=Tmp Drive
  36. Filesystem=win95
  37. [Drive i]
  38. Path=${HOME}
  39. Type=network
  40. Label=Home
  41. Filesystem=win95
  42. [wine]
  43. Windows=c:\windows
  44. System=c:\windows\system
  45. Temp=h:\
  46. Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
  47. SymbolTableFile=./wine.sym
  48. 其中[Drive h][Drive i]为wine.conf文件中的默认临时文件,只需改动盘符即可。
  49. 在wine.conf中需改动的地方还有:
  50. [Tweak.Layout]
  51. ;; WineLook=xxx  (supported styles are 'Win31'(default), 'Win95', 'Win98')
  52. ;WineLook=Win95
  53. 把WineLook=Win95前面的;号去掉即可。现在wine.conf的配置就大功告成了。现在给出我的
  54. wine.conf文件的配置给大家参考:
  55. ;;
  56. ;; MS-DOS drives configuration
  57. ;;
  58. ;; Each section has the following format:
  59. ;; [Drive X]
  60. ;; Path=xxx       (Unix path for drive root)
  61. ;; Type=xxx       (supported types are 'floppy', 'hd', 'cdrom' and 'network')
  62. ;; Label=xxx      (drive label, at most 11 characters)
  63. ;; Serial=xxx     (serial number, 8 characters hexadecimal number)
  64. ;; Filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'uni
  65. x')
  66. ;;   This is the FS Wine is supposed to emulate on a certain
  67. ;;   directory structure.
  68. ;;   Recommended:
  69. ;;   - "win95" for ext2fs, VFAT and FAT32
  70. ;;   - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
  71. ;;   DON'T use "unix" unless you intend to port programs using Winelib !
  72. ;; Device=/dev/xx (only if you want to allow raw device access)
  73. ;;
  74. [Drive A]
  75. Path=/mnt/floppy
  76. Type=floppy
  77. Label=Floppy
  78. Serial=87654321
  79. Device=/dev/fd0
  80. [Drive C]
  81. Path=/mnt/c
  82. Type=hd
  83. Label=MS-DOS
  84. Filesystem=win95
  85. [Drive d]
  86. Path=/mnt/d
  87. Type=hd
  88. Label=MS-DOS
  89. Filesystem=win95
  90. [Drive e]
  91. Path=/mnt/e
  92. Type=hd
  93. Label=MS-DOS
  94. Filesystem=win95
  95. [Drive f]
  96. Path=/mnt/f
  97. Type=hd
  98. Label=MS-DOS
  99. Filesystem=win95
  100. [Drive g]
  101. Path=/mnt/cdrom
  102. Type=cdrom
  103. Label=CD-Rom
  104. Filesystem=win95
  105. [Drive h]
  106. Path=/tmp
  107. Type=hd
  108. Label=Tmp Drive
  109. Filesystem=win95
  110. [Drive i]
  111. Path=${HOME}
  112. Type=network
  113. Label=Home
  114. Filesystem=win95
  115. [wine]
  116. Windows=c:\windows
  117. System=c:\windows\system
  118. Temp=h:\
  119. Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
  120. SymbolTableFile=./wine.sym
  121. # <wineconf>
  122. [DllDefaults]
  123. EXTRA_LD_LIBRARY_PATH=${HOME}/wine/cvs/lib
  124. DefaultLoadOrder = native, elfdll, so, builtin
  125. [DllPairs]
  126. krnl386 = kernel32
  127. gdi = gdi32
  128. user = user32
  129. commdlg = comdlg32
  130. commctrl= comctl32
  131. ver = version
  132. shell = shell32
  133. lzexpand= lz32
  134. mmsystem= winmm
  135. msvideo = msvfw32
  136. winsock = wsock32
  137. [DllOverrides]
  138. kernel32, gdi32, user32 = builtin
  139. krnl386, gdi, user = builtin
  140. toolhelp  = builtin
  141. comdlg32, commdlg = elfdll, builtin, native
  142. version, ver  = elfdll, builtin, native
  143. shell32, shell  = builtin, native
  144. lz32, lzexpand  = builtin, native
  145. commctrl, comctl32 = builtin, native
  146. wsock32, winsock = builtin
  147. advapi32, crtdll, ntdll = builtin, native
  148. mpr, winspool.drv = builtin, native
  149. ddraw, dinput, dsound = builtin, native
  150. winmm, mmsystem         = builtin
  151. msvideo, msvfw32        = builtin, native
  152. mcicda.drv, mciseq.drv  = builtin, native
  153. mciwave.drv  = builtin, native
  154. mciavi.drv, mcianim.drv = native, builtin
  155. msacm.drv, midimap.drv  = builtin, native
  156. w32skrnl                = builtin
  157. wnaspi32, wow32  = builtin
  158. system, display, wprocs = builtin
  159. wineps   = builtin
  160. icmp                    = builtin
  161. [options]
  162. AllocSystemColors=100
  163. [fonts]
  164. ;Read documentation/fonts before adding aliases
  165. Resolution = 96
  166. Default = -adobe-times-
  167. [serialports]
  168. Com1=/dev/ttyS0
  169. Com2=/dev/ttyS1
  170. Com3=/dev/modem,38400
  171. Com4=/dev/modem
  172. [parallelports]
  173. Lpt1=/dev/lp0
  174. [spooler]
  175. LPT1:=|lpr
  176. LPT2:=|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -
  177. LPT3:=/dev/lp3
  178. [ports]
  179. ;read=0x779,0x379,0x280-0x2a0
  180. ;write=0x779,0x379,0x280-0x2a0
  181. [spy]
  182. Exclude=WM_SIZE;WM_TIMER;
  183. [registry]
  184. ; Paths must be given in /dir/dir/file.reg format.
  185. ; Wine will not understand dos file names here...
  186. ; alternate registry file name: HKCU
  187. AltCurrentUserFile=
  188. ; alternate registry file name: HKU
  189. AltUserFile=
  190. ; alternate registry file name: HKLM
  191. AltLocalMachineFile=
  192. ;These are all booleans.  Y/y/T/t/1 are true, N/n/F/f/0 are false.
  193. ;Defaults are read all, write to Home and Alt
  194. ;Note: it is pointless to specify alt files and neither load nor write to them.
  195. ; Global registries (stored in /etc)
  196. LoadGlobalRegistryFiles=Y
  197. ; Home registries (stored in ~user/.wine/)
  198. LoadHomeRegistryFiles=Y
  199. ; Windows registries in windows path, above
  200. LoadWindowsRegistryFiles=Y
  201. ; Load above registries.
  202. LoadAltRegistryFiles=Y
  203. ; TRY to write all changes to home registries
  204. WritetoHomeRegistryFiles=Y
  205. ; TRY to write all changes to alt registries
  206. WritetoAltRegistryFiles=Y
  207. [Tweak.Layout]
  208. ;; WineLook=xxx  (supported styles are 'Win31'(default), 'Win95', 'Win98')
  209. WineLook=Win95
  210. [programs]
  211. Default=
  212. Startup=
  213. [Console]
  214. ;XtermProg=nxterm
  215. ;InitialRows=25
  216. ;InitialColumns=80
  217. ;TerminalType=nxterm
  218. [Clipboard]
  219. ClearAllSelections=0
  220. PersistentSelection=1
  221. # </wineconf>

wine的字体美化:
打开字体的防锯齿:
REGEDIT4
[HKEY_CURRENT_USER/Software/Wine/X11 Driver]
"ClientSideAntiAliasWithCore"="Y"
"ClientSideAntiAliasWithRender"="Y"
"ClientSideWithRender"="Y"

打开字体的平滑功能:
REGEDIT4
[HKEY_CURRENT_USER/Control Panel/Desktop]
"FontSmoothing"="2"
"FontSmoothingType"=dword:00000002
"FontSmoothingGamma"=dword:00000578

"FontSmoothingOrientation"=dword:00000001
你也可以查看你机器的[HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/FontLink/SystemLink]的"Tahoma"值,然后在windows的fonts里找相应的字体 文件,复制到wine下的windows/fonts目录下。

wine是在Linux操作系统下执行部分Windows应用程序的工具。

在目前国内卖Linux操作系统的比卖在其下运行的应用软件的多得多。在Linux软件(如图片浏览、多媒体播放)奇缺的情况下,能将部分Windows 程序移置到Linux环境下,也不失为一种好方法。下面是wine的使用方法。

tar -jxvf wine-1.1.1.tar.bz2
cd wine-1.1.1
./tools/wineinstall

之后它会运行./configure,然后显示:We need to install wine as root user, do you want us to build wine,'su root' and install Wine? Enter 'no' to continue without installing(yes/no)

yes 回车

编译安装途中出现了下面的错误,出现这样的问题是因为没有安装相关的devel支持。

configure: WARNING: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.

如果是用gonme桌面的,请在终端输入:sudo apt-get install gnome-devel 下载安装完后再次执行编译安装wine即可。

如果你root用户设置了密码,还会提示你输入密码。

Linux wine 安装 待屏幕上出现:
Installation complete for now. Good luck (this is still alpha software).If you have problems with WINE, please read the documentation first,
as many kinds of potential problems are explained there.

则表示安装成功了。

Java代码  
  1. sudo add-apt-repository ppa:ubuntu-wine/ppa
  2. sudo apt-get update
  3. sudo apt-get install wine
  4. winecfg
  5. ~/.wine/drive_c/windows/Fonts/   #只留一个你想要显示的中文字体在这

wine 的使用方法相关推荐

  1. linux wine设置界面,在Linux系统上备份Wine设置的方法

    在Linux操作系统上,Wine设置保存在~/.wine文件夹中,在此文件夹中,可以访问在Linux上安装的任何Windows程序.驱动程序.实用程序和其他所有内容,因此最好学习如何备份此目录,可以通 ...

  2. linux+wine乱码,Ubuntu下Wine乱码解决方法与中文支持

    由于这段时间安装了Ubuntu 9.04 x64的系统,也碰到了很多问题,收集起来以便方便使用 安装 wine ubuntu 官方自带了 wine , 但是推荐用 winehq 官方提供的最新版本 w ...

  3. kali debian 安装mysql_在Kali Linux和Debian 8/9 64位上安装Wine的方法

    本文介绍在Kali Linux和Debian 8/9 64位系统上安装Wine的简单方法,其它系统参考在Ubuntu 18.04/Linux Mint 19中安装Wine 4的方法. 在Kali Li ...

  4. Linux微信运行错误,Linux安装wine微信安装和遇到的问题及解决方法

    如果系统之前安装过其他版本的wine,请先行卸载wine,之后在使用如下方法安装wine-5.0稳定版 wine完全卸载方法: 1.终端中执行sudo apt-get remove wine3.0(w ...

  5. Linux下wine用法

    Linux下wine用法 下面是wine的使用方法. 一.要在Linux下运行,wine是必不可少的,所以,请将wine安装到你的系统里. 二.将你的Windows所在的分区加载到某个目录.(本文假定 ...

  6. 在Ubuntu 18.04 Bionic Beaver上安装Wine

    目标 目标是在Ubuntu 18.04 Bionic Beaver Linux上安装Wine 操作系统及软件版本 操作系统: - Ubuntu 18.04 Bionic Beaver 软件: - Wi ...

  7. wine的安装及使用

    用了段时间的ubuntu可是工作的时候还是要用到 windows软件,于是乎,采取折中方案:安装UBUNTU下的WINE.          一直苦于没有一篇像样的使用指南,原来外国有朋友跟我有同感, ...

  8. linux 使用wine_像老板一样使用Linux Wine

    linux 使用wine If you use Linux, you probably know about WINE. This handy program can run many differe ...

  9. wine —— windows软件移植到Linux系统

    导读: wine是我们在Linux下运行部分Windows应用程序必不可少的工具. 接下来主要了解wine服务的工作原理.wine服务的部署以及windows应用程序在统信UOS操作系统中的安装. 一 ...

最新文章

  1. liunx 学习笔记-wzq
  2. SpringBoot--Druid多数据源配置
  3. streambuf ambiguous symbol的问题如何解决
  4. vue 计算属性和data_Vue计算属性原理和使用场景
  5. Excel中配置VBA的工作环境
  6. mysql索引执行计划_第六章· MySQL索引管理及执行计划
  7. Django基于JWT实现微信小程序的登录和鉴权
  8. voc定位数据xml转coco数据集格式json
  9. ViewController的生命周期分析和使用
  10. amazeui学习笔记--css(常用组件1)--小徽章Badge
  11. 如何实现一个楼中楼的评论系统
  12. python3编译成exe运行_python3.x的程序如何打包成exe可执行文件
  13. vue cli脚手架项目利用webpack给生产环境和发布环境配置不同的接口地址或者不同的变量值。...
  14. 老毛桃+360急救箱结合(转)
  15. 树莓派安装smbus_树莓派学习之I2C通信
  16. 排列组合解析与例题总结
  17. win10去掉快捷方式小箭头_桌面快捷方式小箭头去除与恢复方法
  18. arcgis 实验教程--ModelBuilder与空间建模
  19. Linux ping 测试IP地址与 telnet 测试IP端口
  20. 面试常见问题之OWASP top10

热门文章

  1. 【SAM套路/AC自动机+主席树】CF547E Mike and Friends
  2. python工具 - 批量文件重命名
  3. 一个粗糙的二人贪吃蛇联机版实现
  4. SPO,关系抽取/实体关系抽取
  5. 管理经济学【一】之 导论
  6. 编一程序,计算快递寄送价格
  7. ocelot和nginx比较_Ocelot一个优秀的.NET API网关框架
  8. NPOI实现EXCEL导出
  9. matlab求零空间,有关线性代数的Matlab代码笔记(2)行空间、零空间
  10. 案例分享| 助力数字化转型:广州期货交易所全栈信创项目管理平台上线