4/24/2007

ubuntu wine安装设置(zz)

ubuntu wine安装设置

1.首先因为新版本存在中文输入问题,所以别用官方的更新版本的哦 ,用 http://archive.ubuntu.org.cn/ubuntu-cn/dists/edgy/main/binary-i386/wine/ 这里提供的比较好,当然如果是想升级官方的,那么也可以升,然后打上 http://forum.ubuntu.org.cn/viewtopic.php?t=36322 提供的patch,以下是原理:

到 wine 的 source dir 下 修改 dlls/winex11.drv/x11drv_main.c 找到 代碼: if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" ); 這一行, 將其注解掉 重新 compile 就萬事 ok 啦 ! 我把winex11.drv.so文件单独编译了,上传为附件了,下载,解压缩后用root权限覆盖/usr/lib/wine/下的同名文件就可以了.
2.然后,修改一下默认启动慢的问题哟 修改 /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE 把里面有 GBK 字样的段全部删掉。(记得操作之前备份哦) 3.不需要宋体也能运行
有些中文的 Windows 程序只认 Simsun 的宋体, 造成没 Simsun 的机器上会乱码或无法显示部分中文。
引用:
一般用的
代码:
[HKEY_CURRENT_USER\Software\\Wine\\Fonts\\Replacements] @="AR PL ShanHeiSun Uni"
对她又无效。 发现这的字体替换有些奇怪,只能用中文名对中文名
现在可以这样用其他字体替换 Simsun 宋体, 打开 regedit , 找到 [HKEY_CURRENT_USER\Software\\Wine\\Fonts\\Replacements] , 添加一个键, 键名 “宋体” , 字符串值 “文鼎PL细上海宋Uni” 或者, 写个文件 宋体.reg ( 注意保存为 GBK 编码)
代码:
[HKEY_CURRENT_USER\Software\\Wine\\Fonts\\Replacements] "宋体"="文鼎PL细上海宋Uni"
再执行 wine regedit 宋体.reg 导入她 这样 wine 在没有 simsun 的机器上就可以正常字体替换,不会无法显示了。或是直接修改 wine 的 user.reg 添加
代码:
[Software\\Wine\\Fonts\\Replacements] 1167743125 @="AR PL ShanHeiSun Uni" "\x5b8b\x4f53"="\x6587\x9f0ePL\x7ec6\x4e0a\x6d77\x5b8bUni"
4.再接着,把winecfg启动那里的audio问题给解决掉: 默认的ubuntu下会提示说找不到/dev/snd/seq , 运行
代码:
sudo modprobe snd-seq-oss
就可以了 如果是为了方便,可以将
代码:
snd-seq-oss
放到 /etc/modules 文件中 ====libjock问题==== 安装libjack的dev包就可以了。。。可以用 apt-cache search libjack-dev 搜索最新的
代码:
sudo apt-get install libjack0.100.0-dev
之后就不会报告错误了哟。。。 5.关于使用scim的拼音输入法的问题: 找到则文章 http://www.linuxgame.org/bbs/viewthread.php?tid=2431&highlight=
在*ubuntu dapper上解决wine使用scim智能拼音输入法的问题 其实scim中的智能拼音输入法没有通用码表,这使在wine中显示的汉字无法填充到文本输入区。 可以对/etc/scim目录和$HOME/.scim目录中的config文件进行修改即可,使config中的: /IMEngine/Pinyin/DynamicAdjust = true 这样使拼音输入法的光标能自动调整到词的结尾。 修改后的config和global文件如下: config文件: /DefaultIMEngineFactory/zh_CN = 05235cfc-43ce-490c-b1b1-c5a2185276ae /FrontEnd/ChangeFactoryGlobally = false /FrontEnd/IMOpenedByDefault = true /FrontEnd/OnTheSpot = false /FrontEnd/SharedInputMethod = true /FrontEnd/Socket/ConfigReadOnly = false /FrontEnd/Socket/MaxClients = 512 /FrontEnd/X11/BrokenWchar = true /FrontEnd/X11/Dynamic = false /FrontEnd/X11/OnTheSpot = true /FrontEnd/X11/ServerName = SCIM /Hotkeys/FrontEnd/NextFactory = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R /Hotkeys/FrontEnd/Off = /Hotkeys/FrontEnd/On = /Hotkeys/FrontEnd/PreviousFactory = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R /Hotkeys/FrontEnd/ShowFactoryMenu = Control+Alt+Right /Hotkeys/FrontEnd/Trigger = Control+space,Shift+space,Zenkaku_Hankaku,Hangul /Hotkeys/FrontEnd/ValidKeyMask = Shift+Control+Alt+CapsLock+Meta /IMEngine/Pinyin/AlwaysShowLookup = true /IMEngine/Pinyin/Ambiguity/AnAng = false /IMEngine/Pinyin/Ambiguity/Any = false /IMEngine/Pinyin/Ambiguity/ChiCi = false /IMEngine/Pinyin/Ambiguity/EnEng = false /IMEngine/Pinyin/Ambiguity/FoHe = false /IMEngine/Pinyin/Ambiguity/InIng = false /IMEngine/Pinyin/Ambiguity/LeRi = false /IMEngine/Pinyin/Ambiguity/NeLe = false /IMEngine/Pinyin/Ambiguity/ShiSi = false /IMEngine/Pinyin/Ambiguity/ZhiZi = false /IMEngine/Pinyin/AutoCombinePhrase = true /IMEngine/Pinyin/AutoFillPreedit = true /IMEngine/Pinyin/BurstStackSize = 128 /IMEngine/Pinyin/ChineseSwitchKey = Control+slash /IMEngine/Pinyin/DisablePhraseKey = Control+d /IMEngine/Pinyin/DynamicAdjust = true /IMEngine/Pinyin/DynamicSensitivity = 6 /IMEngine/Pinyin/FullWidthLetterKey = Shift+space /IMEngine/Pinyin/FullWidthPunctKey = Control+period /IMEngine/Pinyin/Incomplete = true /IMEngine/Pinyin/MatchLongerPhrase = false /IMEngine/Pinyin/MaxPreeditLength = 32 /IMEngine/Pinyin/MaxUserPhraseLength = 8 /IMEngine/Pinyin/ModeSwitchKey = Alt+Shift_L+KeyRelease,Alt+Shift_R+KeyRelease,Shift+Shift_L+KeyRelease,Shift+Shift_R+KeyRelease /IMEngine/Pinyin/PageDownKey = period,equal,bracketright,Page_Down /IMEngine/Pinyin/PageUpKey = comma,minus,bracketleft,Page_Up /IMEngine/Pinyin/SavePeriod = 300 /IMEngine/Pinyin/ShowAllKeys = false /IMEngine/Pinyin/SmartMatchLevel = 20 /IMEngine/Pinyin/Tone = false /IMEngine/Pinyin/User/DataBinary = false /IMEngine/RawCode/Locales = default /Panel/Gtk/Color/ActiveBackground = light sky blue /Panel/Gtk/Color/ActiveText = black /Panel/Gtk/Color/NormalBackground = #F7F3F7 /Panel/Gtk/Color/NormalText = black /Panel/Gtk/DefaultSticked = false /Panel/Gtk/Font = default /Panel/Gtk/LookupTableEmbedded = true /Panel/Gtk/LookupTableVertical = false /Panel/Gtk/ShowStatusBox = false /Panel/Gtk/ShowTrayIcon = true /Panel/Gtk/ToolBar/AlwaysShow = false /Panel/Gtk/ToolBar/AutoSnap = true /Panel/Gtk/ToolBar/HideTimeout = 2 /Panel/Gtk/ToolBar/POS_X = 1000 /Panel/Gtk/ToolBar/POS_Y = 777 /Panel/Gtk/ToolBar/ShowFactoryIcon = true /Panel/Gtk/ToolBar/ShowFactoryName = true /Panel/Gtk/ToolBar/ShowHelpIcon = true /Panel/Gtk/ToolBar/ShowSetupIcon = true /Panel/Gtk/ToolBar/ShowStickIcon = true /UpdateTimeStamp = 1156775814:919667 global文件: /SupportedUnicodeLocales = en_US.UTF-8 /DefaultPanelProgram = scim-panel-gtk /DefaultConfigModule = simple /DefaultSocketFrontEndAddress = local:/tmp/scim-socket-frontend /DefaultSocketIMEngineAddress = local:/tmp/scim-socket-frontend /DefaultSocketConfigAddress = local:/tmp/scim-socket-frontend /DefaultPanelSocketAddress = local:/tmp/scim-panel-socket /DefaultHelperManagerSocketAddress = local:/tmp/scim-helper-manager-socket /DefaultSocketTimeout = 5000 也可以建立config和global两个文本文件,并将这两个文件拷到/etc/scim目录和$HOME/.scim目录,重启系统后ok。 上面的配置文件在kubuntu和ubuntu dapper中是通用的。
ok,作到了以上的设置,那么就可以很完美的咯 ...用winecfg测试吧~~~然后输入notepad看看?

没有评论: