个人工具

“Wine”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第12行: 第12行:
  
 
Ubuntu Edgy (6.10) 请执行这个::
 
Ubuntu Edgy (6.10) 请执行这个::
   sudo wsync
+
   sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list
  get http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list
+
  
 
Ubuntu Dapper (6.06) 请执行这个::
 
Ubuntu Dapper (6.06) 请执行这个::

2007年5月19日 (六) 11:59的版本

安装 wine

ubuntu 官方自带了 wine , 但是推荐用 winehq 官方提供的最新版本 wine , 新版本解决了很多以前显得麻烦的问题, 请照下边说的来安装

先增加签名::

 wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

增加 wine 源,按你的 Ubuntu 版本执行下边相应的程序

Ubuntu Feisty (7.04) 请执行这个::

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

Ubuntu Edgy (6.10) 请执行这个::

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

Ubuntu Dapper (6.06) 请执行这个::

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


接下来,可以打开一个终端,执行::

 sudo apt-get install wine

来安装,或者点击 开始菜单->系统->系统管理->新立德软件包管理器,在里边选中 wine , 点安装


初始设置

加快 wine 速度

由于 X locale 的问题, 默认 wine 会轮询 x core fonts ,使得 wine 很慢,请先执行::

 sudo sed -i -e '/GBK/,/^}/d' /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE 


修改 wine 外观

默认的 wine 字体、主题、颜色等不太合适,可以用这 [Hiweed] 的 wine 配置 新建一个文本文件 hiweed_green_color.reg 写入::

 REGEDIT4
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
 "FIXEDFON.FON"=""
 "FONTS.FON"=""
 "LogPixels"=dword:00000060
 "OEMFONT.FON"=""
 [HKEY_CURRENT_USER\Software\\Wine\\Fonts\\Replacements]
 @="AR PL ShanHeiSun Uni"
 "Arial"="AR PL ShanHeiSun Uni"
 "Fixedsys"="AR PL ShanHeiSun Uni"
 "Microsoft Sans Serif"="AR PL ShanHeiSun Uni"
 "MingLiU"="AR PL ShanHeiSun Uni"
 "MS UI Gothic"="AR PL ShanHeiSun Uni"
 "PMingLiU"="AR PL ShanHeiSun Uni"
 "Simsun"="AR PL ShanHeiSun Uni"
 "Songti"="AR PL ShanHeiSun Uni"
 "System"="AR PL ShanHeiSun Uni"
 "Tahoma"="AR PL ShanHeiSun Uni"
 "Terminal"="AR PL ShanHeiSun Uni"
 "宋体"="文鼎PL细上海宋Uni"
 [HKEY_CURRENT_USER\Software\\Wine\\X11 Driver]
 "ClientSideAntiAliasWithRender"="N"
 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
 "MS Shell Dlg"="AR PL ShanHeiSun Uni"
 "MS Shell Dlg 2"="AR PL ShanHeiSun Uni"
 "System"="AR PL ShanHeiSun Uni"
 [HKEY_CURRENT_USER\Control Panel\\Colors]
 "ActiveBorder"="239 235 230"
 "ActiveTitle"="0 153 11"
 "AppWorkspace"="128 128 128"
 "Background"="58 110 165"
 "ButtonAlternateFace"="180 180 180"
 "ButtonDkShadow"="64 64 64"
 "ButtonFace"="232 227 221"
 "ButtonHilight"="255 255 255"
 "ButtonLight"="239 235 230"
 "ButtonShadow"="128 128 128"
 "ButtonText"="0 0 0"
 "GradientActiveTitle"="166 202 240"
 "GradientInactiveTitle"="192 192 192"
 "GrayText"="128 128 128"
 "Hilight"="0 153 11"
 "HilightText"="255 255 255"
 "HotTrackingColor"="0 0 255"
 "InactiveBorder"="192 192 192"
 "InactiveTitle"="232 227 221"
 "InactiveTitleText"="0 0 0"
 "InfoText"="0 0 0"
 "InfoWindow"="255 255 225"
 "Menu"="232 227 221"
 "MenuBar"="232 227 221"
 "MenuHilight"="0 0 0"
 "MenuText"="0 0 0"
 "Scrollbar"="239 235 230"
 "TitleText"="255 255 255"
 "Window"="255 255 255"
 "WindowFrame"="0 0 0"
 "WindowText"="0 0 0"


再用 regedit 导入这个 reg , 执行::

 regedit hiweed_green_color.reg