wine 的使用方法

article/2025/9/23 16:33:09

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

http://chatgpt.dhexx.cn/article/HibcqR2c.shtml

相关文章

linux安装wine

wine安装过程记录 1 2 You will find documentation on https://www.winehq.org/documentation 3 For help with installing from a package or from source, please consult the Getting Wine chapter of the User’s guide. 4 5 https://wiki.winehq.org/Category:Di…

如何在CentOS上安装和使用Wine

转载&#xff1a;http://ghoulich.xninja.org/2016/08/09/install-and-use-wine-on-centos/ 最近想要把工作环境从Windows切换到Linux系统&#xff0c;但公司的IM软件&#xff08;豆芽&#xff09;只有Windows和MAC的版本&#xff0c;很多常用工具也只有Windows的版本&#xf…

wine 安装与使用(ubuntu中安装windows下软件)

转载自&#xff1a;https://blog.csdn.net/qq_34638161/article/details/81271977 https://m.linuxidc.com/Linux/2007-11/8759.htm https://blog.csdn.net/Gerald_Jones/article/details/80781378 一、安装 wine &#xff1a;能够在多种 POSIX-compliant 操作系统&#xff08…

WinEdt使用技巧

最近在使用WinEdt编辑论文&#xff0c;遇到了不少问题&#xff0c;接下来会慢慢更新&#xff0c;帮助大家避坑。 目录 1安装包 2公式 2.1行内公式 2.2显示公式或列表公式 2.3分数 1安装包 如果在编译时遇到错误&#xff1a;!LaTeX Error: File xxx.sty not found. 说明还…

Linux浅析之四——Wine

一、Wine的缘起 Wine——Wine Is Not an Emulator&#xff0c;这是和GNU一样的递归命名方式&#xff0c;Wine的目的就是让Windows软件可以不加修改的运行在Linux系统中&#xff0c;换句话说实现Linux对Windows的“兼容性”。在Red Hat&#xff08;包括Fedora和CentOS&#xff…

wine学习笔记

目前 wine 版本为较为稳定的 8.0 版本&#xff0c;本文也是重点围绕 wine 8.0 安装、使用以及 wine 工具介绍等方面进行了学习和整理。 一、安装 wine 1. 如果你使用的是 64 位系统&#xff0c;需要先开启 32 bit 架构支持&#xff1a; $ sudo dpkg --add-architecture i386…

【如何在Ubuntu 20.04系统上安装和使用Wine教程】

文章目录 在Ubuntu上安装Wine 5.0在Ubuntu上安装Wine 6.0配置Wine在Ubuntu上安装Notepad ubuntu 下安装caj Wine是一个开源兼容层&#xff0c;允许您在诸如Linux&#xff0c;FreeBSD和MacOS等UNIX的操作系统上运行Windows应用程序。 Wine是“Wine Is Not an Emulator”的首字母…

wine使用技巧

wine使用技巧 一&#xff1a;常用软件使用技巧1.1&#xff1a;给安装的软件添加快捷方式到桌面方便下次打开 一&#xff1a;常用软件使用技巧 在网上看到有人问wine安装软件后下次不知道怎么打开&#xff0c;打开不方便&#xff0c;于是就写了这个帖子 1.1&#xff1a;给安装…

wine安装及使用

首先说明下系统环境&#xff0c;我系统使用的是deepin15.11&#xff0c;其他基于debain的发行版&#xff0c;安装及使用方法应该也是差不多的。 一、Wine安装 这里引用deepin论坛上的一个帖子&#xff1a;https://bbs.deepin.org/forum.php?modviewthread&tid176555 Ste…

[Linux] 使用 Wine

Wine 是一个在 x86、x86-64 上允许类 Unix 操作系统在 X Windows System 下运行 Microsoft WIndows 程序的软件。Wine 通过提供一个兼容层来将 Windows 的系统调用转换成对 POSIX 标准的调用。 Wine 最早是“Windows Emulator”&#xff0c;即 Windows 模拟器的所写&#xff0c…

Windows 之dos命令

1.应用场景 知道并且熟练掌握常用[有用]的dos命令, 提高工作和生活效率. 2.学习/操作 1.介绍 百度百科&#xff1a; https://baike.baidu.com/item/DOS命令/5143255?fraladdin 简单讲&#xff1a; DOS命令&#xff0c;计算机术语&#xff0c;是指DOS操作系统的命令&#xff…

如何运用dos命令进入C盘?Dos常用命令大全

如何运用dos命令进入C盘?Dos常用命令大全 在开始界面找到运行,快捷键Win+R,输入命令cmd,点击确定 现在我们已经进入以下界面 在Administrator>后面输入c: dir 列文件名 deltree 删除目录树 cls 清屏 cd 改变当前录

dos常用基础命令

目录 dir 查看指定目录 通配符匹配 运行可执行文件 运行其他目录的可执行文件 cd 进入当前盘符的根目录 进入其他盘符根目录 md 和 rd deltree move copy xcopy del diskcopy ren type memory netstat dir 查看当前目录中的文件 /p 分屏显示 /w 简略同行模…

基本DOS命令用法

一.常用的DOS命令&#xff1a; 1.查看目录内容 dir 2.创建目录文件 md 3.打开指定目录命令 cd 4.删除当前指定的子目录 rd 5.改变当前盘符 盘符冒号 6.文件复制拷贝 copy 7.显示文本文件内容命令 type 8.更改文件名 ren 9.删除文件命令 del 10.清楚屏幕命令 cls 11.…

1、常用DOS命令大全

一、DOS(DiskOperatingSystem)&#xff0c;磁盘操作系统 特点&#xff1a;单任务、单用户系统使用命令行方式 控制计算机二、DOS命令行的组成 1、DOS命令行中的基本概念 当前驱动器、当前盘、当前目录、相对路径、绝对路径2、DOS命令的格式 命令/参数 文件或文件夹三、常用D…

常用的dos网络命令

常用的dos网络命令 ping:测试网络连接状况以及信息包发送和接收状况,TCP/IP 协议中最常用的命令。(网络中TTL通常表示包在被丢弃前最多能经过的路由器个数。也可以判断电脑系统&#xff1a;TTL值在100至130之间&#xff0c;主机系统为WINDOWSTTL&#xff0c;值在240至255之间&…

DOS常用命令

启动方式1:进入DOS页面:win+R;键入:cmd 启动方式2:“开始”→“运行”→输入“cmd”回车,此时将出现一个显示命令提示符的窗口,如下图。 1,help命令:help ——》查看所有命令帮助;help 某某某——》 查看具体某个 命令的帮助

常用DOS命令大全

ping 目标 向目标发送一个数据包 4 ping -n 10 目标 ping 目标 -n 10 net user 查看用户 增加用户&#xff1a; net user 用户名 用户密码 /add 最高的用户组&#xff1a;*Administrators 默认的用户组&#xff1a;*Users 查看指定用户所在的用户组&…

DOS常用指令

DOS常用指令 一、DOS常识二、命令行打开方式&#xff1a;三、DOS内部命令1. dir----显示指定路径下所有文件和目录的信息2. cd----进入指定目录3. md----创建指定目录4. cd>----创建指定文件5. rd----删除指定空目录6. del----删除指定文件7. copy----复制文件8. ren----改名…

常用DOS命令

目录标题 在文中&#xff0c;需要注意添加“空格”的语句DOS命令不区分大小写.一、常用DOS命令1. 打开命令提示符&#xff08;最后附上“运行”窗口命令大全&#xff08;还没有进行测试&#xff09;&#xff09;方式1&#xff1a;打开“运行”窗口&#xff08;Win r&#xff0…