| 网站首页 | 新闻中心 | 系统安全 | 网络安全 | 安全技术 | 下载中心 | 安全365社区 |
安全365
收藏本站
设为首页
会员登录:
站内搜索: 新闻中心 系统安全 网络安全 安全技术 下载中心
| 系统安全首页 | 漏洞分析 | 入侵检测 | 升级补丁 | 安全配置 |
实用技巧:轻松设置Wine程序的中文显示
实用技巧:轻松设置Wine程序的中文显示
作者:sixth 文章来源:赛迪网 点击数: 更新时间:2007-11-30 1:42:01
一般情况下,ubuntu 软件仓库里 wine 的版本比较旧,例如在写这篇文章时,ubuntu 7.10 官方源里的 wine 版本是 0.9.46,而最新的已经是 0.9.49 了,所以有必要使用其他的源来安装最新的 wine。

  添加 wine 官方源
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

  For Ubuntu Gutsy (7.10):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Feisty (7.04):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Edgy (6.10): *不支持 64 位*

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Dapper (6.06): *不支持 64 位*

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list -O /etc/apt/sources.list.d/winehq.list

  For Debian Etch (4.0):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list

  安装最新的 wine
  sudo apt-get update
  sudo apt-get install wine

  设置 wine
  在安装完成后,先不要运行 wine 来模拟程序,因为 wine 需要进行一些必要的设置,运行

  winecfg

  点 “Audio” 选项卡,按照下图设置,其中 “Sound Drivers” 处需要根据自己的情况来选择合适的驱动,可以按旁边的 “Test Sound” 按钮测试是否成功。

  Google 搜索或到 windows xp 的 Fonts 目录下,把 simsun.ttc (即宋体)复制到 ~/.wine/drive_c/windows/fonts

  把下列内容另存为 fonts.reg,保存到 ~/.wine/ 目录下

  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"

  导入上一步保存的 fonts.reg
  regedit ~/.wine/fonts.reg

  好了,中文显示基本上没有问题了,并且可以用 scim 输入法输入中文。

文章录入:郝丽    责任编辑:郝丽 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
     
     
     
    实用技巧:Linux操作系统
    将Gmail软件设置为默认邮
    VMWare tools的安装过程
    关于Linux操作系统下Win
    实用技巧 Linux与Window
    实用技巧:转换Linux分区
    多种方法轻松关闭Vista默
    Linux操作系统 终端代理
    Ubuntu系统中设置Samba共
    绝密!为WindowsXP设置一
    站长邮箱:webmaster@anquan365.com
    联系电话:86-10-67634029 点击这里给我发消息

    Copyright © 2006-2008 www.anquan365.com 北京华安普特网络科技有限公司 版权所有