开启更多的 locale 支持
Dapper 中 locale 设置与原来不同,原来 /etc/locale.gen 现在位于 /var/lib/locales/supported.d/ 中,执行:
将其内容修改为:
然后执行:
注:执行到 GB18030 的时候需要等待较长的时间,请耐心。
安装 Wine
从 WineHQ 的源安装 Wine
执行下面代码加入 WineHQ APT 仓库:
加入下面代码:
保存文件并执行:
修正一些 bug
执行 modprobe
创建相应目录
其中 hostname 为你机器的名字。
安装相应包
然后:
解决启动 wine 程序速度慢的问题
修改为(感谢 Huahua 提供):
执行 wine 程序之前设置 locale
以 GB2312 进入 wine 系统,如果你准备安装大量 GB2312 的应用程序,那么每次使用 wine 都这么做:
执行 winecfg
第一次使用 wine,是执行 winecfg 来做一些设置,运行:
将 Windows Version 设置为 Windows 98,Audio 设置为 ALSA。
解决 winecfg 界面上汉字显示为方框的问题
运行
在 HKEY_LOCAL_MACHINE/software/microsfot/windows nt/currentversion/fontsubstitutes 里设置
再次运行 winecfg,汉字可以正常显示了。
恭喜你
如果一切无误,你的 wine 已经初步安装好了。在 ~/.wine 中就是你的第一个的 wine 环境(我们可以有多个 wine 的环境)。
-from http://my.opera.com/xuecan/blog/show.dml/443700
Dapper 中 locale 设置与原来不同,原来 /etc/locale.gen 现在位于 /var/lib/locales/supported.d/ 中,执行:
$ sudo gedit /var/lib/locales/supported.d/zh
将其内容修改为:
zh_SG.UTF-8 UTF-8
zh_HK.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GB2312 GB2312
zh_CN.GBK GBK
zh_CN.GB18030 GB18030
zh_HK.Big5 Big5
zh_TW.Big5 Big5
然后执行:
$ sudo locale-gen
注:执行到 GB18030 的时候需要等待较长的时间,请耐心。
安装 Wine
从 WineHQ 的源安装 Wine
执行下面代码加入 WineHQ APT 仓库:
$ sudo gedit /etc/apt/sources.list
加入下面代码:
## WineHQ APT Repository
deb http://wine.budgetdedicated.com/apt dapper main
deb-src http://wine.budgetdedicated.com/apt dapper main
保存文件并执行:
$ sudo apt-get update
sudo apt-get install wine
修正一些 bug
执行 modprobe
$ sudo modprobe snd-pcm-oss
$ sudo modprobe snd-seq
创建相应目录
$ mkdir -p ~/.kde/socket-hostname
其中 hostname 为你机器的名字。
安装相应包
$ sudo apt-get install libjack0.100.0-0
然后:
$ sudo ln -sf /usr/lib/libjack-0.100.0.so.0 /usr/lib/libjack.so
解决启动 wine 程序速度慢的问题
$ sudo gedit /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
修改为(感谢 Huahua 提供):
# XFree86 NLS for Chinese locale zh_CN.UTF-8
# Modified from xc/nls/XLC_LOCALE/en_US.UTF-8
# by James Su <[email]suzhe@turbolinux.com.cn[/email]>
#
# $XdotOrg: xc/nls/XLC_LOCALE/zh_CN.UTF-8,v 1.2 2004/04/23 18:44:34 eich Exp $
# $XFree86$
#
# XLC_FONTSET category
#
XLC_FONTSET
on_demand_loading True
object_name generic
# We leave the legacy encodings in for the moment, because we don't
# have that many ISO10646 fonts yet.
# fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary ISO8859-1:GL
vertical_rotate all
}
}
# fs1 class (ISO8859 families)
fs1 {
charset {
name ISO8859-1:GR
}
font {
primary ISO8859-1:GR
}
}
# fs2 class (Chinese Han Character)
fs2 {
charset {
name GB2312.1980-0:GL
}
font {
primary GB2312.1980-0:GL
}
}
# fs4 class
fs4 {
charset {
name ISO10646-1
}
font {
primary ISO10646-1
}
}
END XLC_FONTSET
#
# XLC_XLOCALE category
#
XLC_XLOCALE
encoding_name UTF-8
mb_cur_max 6
state_depend_encoding False
# cs0 class
cs0 {
side GL:Default
length 1
ct_encoding ISO8859-1:GL
}
# cs1 class
cs1 {
side GR:Default
length 1
ct_encoding ISO8859-1:GR
}
# cs2 class
cs2 {
side GR
length 2
ct_encoding GB2312.1980-0:GL; GB2312.1980-0:GR
}
# cs3 class
cs3 {
side none
ct_encoding ISO10646-1
}
END XLC_XLOCALE
执行 wine 程序之前设置 locale
以 GB2312 进入 wine 系统,如果你准备安装大量 GB2312 的应用程序,那么每次使用 wine 都这么做:
$ export LANG=zh_CN.GB2312
执行 winecfg
第一次使用 wine,是执行 winecfg 来做一些设置,运行:
$ winecfg
将 Windows Version 设置为 Windows 98,Audio 设置为 ALSA。
解决 winecfg 界面上汉字显示为方框的问题
运行
$ regedit
在 HKEY_LOCAL_MACHINE/software/microsfot/windows nt/currentversion/fontsubstitutes 里设置
MS Shell Dlg => SimSun
MS Shell Dlg 2 => SimSun
再次运行 winecfg,汉字可以正常显示了。
恭喜你
如果一切无误,你的 wine 已经初步安装好了。在 ~/.wine 中就是你的第一个的 wine 环境(我们可以有多个 wine 的环境)。
-from http://my.opera.com/xuecan/blog/show.dml/443700