[翻译]Wine完全使用指南——从基本到高级
- Fussmann
- 帖子: 54
- 注册时间: 2007-07-30 1:10
- 联系:
我是刚从Win过来的菜鸟,楼主写的有些仍然让我感到很疑惑。比如这条
3.5中文支持设置
把下面的代码保存为zh.reg,然后终端执行regedit zh.reg。从Windows目录下的Fonts里的simsun.ttc复制到/home/user/.wine/drive_c/windows/fonts里面。
代码:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"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"
结果我保存成.reg文件后在ubuntu中打开终端,CD到这个文件的目录,按楼主说的操作后提示
desktop:~$ regedit zh.reg
preloader: Warning: failed to reserve range 00000000-60000000
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
想想也不可能啊,Ubuntu中怎么会可能有regedit这种Win命令呢?难道要在Wine中用终端,可是里面没有啊,直接右銉用Wine运行zh.reg也不行,到底要怎么做啊,请楼主说详细点。
3.5中文支持设置
把下面的代码保存为zh.reg,然后终端执行regedit zh.reg。从Windows目录下的Fonts里的simsun.ttc复制到/home/user/.wine/drive_c/windows/fonts里面。
代码:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"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"
结果我保存成.reg文件后在ubuntu中打开终端,CD到这个文件的目录,按楼主说的操作后提示
desktop:~$ regedit zh.reg
preloader: Warning: failed to reserve range 00000000-60000000
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
想想也不可能啊,Ubuntu中怎么会可能有regedit这种Win命令呢?难道要在Wine中用终端,可是里面没有啊,直接右銉用Wine运行zh.reg也不行,到底要怎么做啊,请楼主说详细点。
- windowssux
- 帖子: 618
- 注册时间: 2006-08-06 16:58
- 来自: 北海
-
- 帖子: 2
- 注册时间: 2008-05-11 22:21
- windowssux
- 帖子: 618
- 注册时间: 2006-08-06 16:58
- 来自: 北海
-
- 帖子: 133
- 注册时间: 2008-05-10 23:28
- 来自: nuaa
-
- 帖子: 6
- 注册时间: 2008-03-26 21:43
wine: /home/administrator/.wine is not owned by you
administrator@administrator-laptop:~$ winecfg
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
Application tried to create a window, but no driver could be loaded.
The X11 driver is missing. Check your build!
Application tried to create a window, but no driver could be loaded.
The X11 driver is missing. Check your build!
err:ole:apartment_createwindowifneeded CreateWindow failed with error 126
administrator@administrator-laptop:~$ winecfg
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
preloader: Warning: failed to reserve range 00000000-00010000
Application tried to create a window, but no driver could be loaded.
The X11 driver is missing. Check your build!
Application tried to create a window, but no driver could be loaded.
The X11 driver is missing. Check your build!
err:ole:apartment_createwindowifneeded CreateWindow failed with error 126
- hillman323
- 帖子: 117
- 注册时间: 2008-05-08 17:31
copy过来的,
Running Wine on recent versions of Linux (in particular Ubuntu 8.04, Hardy Heron) may generate errors or warnings such as
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
please report
or
winevdm: unable to exec 'Z:\tmp\CONFIG.EXE': DOS memory range unavailable
and may refuse to run Wine applications, especially ones that use DOS calls. For instance, Microsoft Word 2000 will crash after a few seconds (does this still happen in rc1?)
The workaround is to give the command:
$ sudo sysctl -w vm.mmap_min_addr=0
This fixes the problem until the next time you reboot. (It also reduces security slightly.)
To avoid having to give that same command every time you reboot, also edit the file /etc/sysctl.conf, e.g. with the command
$ sudo gedit /etc/sysctl.conf
and change the line that reads:
vm.mmap_min_addr = 65536
to:
vm.mmap_min_addr = 0
Running Wine on recent versions of Linux (in particular Ubuntu 8.04, Hardy Heron) may generate errors or warnings such as
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
please report
or
winevdm: unable to exec 'Z:\tmp\CONFIG.EXE': DOS memory range unavailable
and may refuse to run Wine applications, especially ones that use DOS calls. For instance, Microsoft Word 2000 will crash after a few seconds (does this still happen in rc1?)
The workaround is to give the command:
$ sudo sysctl -w vm.mmap_min_addr=0
This fixes the problem until the next time you reboot. (It also reduces security slightly.)
To avoid having to give that same command every time you reboot, also edit the file /etc/sysctl.conf, e.g. with the command
$ sudo gedit /etc/sysctl.conf
and change the line that reads:
vm.mmap_min_addr = 65536
to:
vm.mmap_min_addr = 0