wine 安裝+中文配置

安裝 WINE

安裝完 Wine ,先要運行一下 winecfg


英文 wine 官方用戶指南
中文 wine 用戶指南

一、自Ubuntu 軟件庫 進行 apt-get 安裝

不推薦
sudo apt-get update
sudo apt-get install wine

二、從Wine HQ 進行 apt-get 安裝

推薦 可以自動更新到 最新 WineHQ 發佈版
1、 根據 Wine HQ 的 Ubuntu 版下載頁
首先運行
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
添加GPG鑰匙

其他 Linux 版本見 Wine HQ 的 下載頁

2、添加適合自己版本的源
以爲7.10 gutsy爲例
sudo wget http://wine.budgetdedicated.com/apt/sou ... gutsy.list -O /etc/apt/sources.list.d/winehq.list

3、安裝 WineHQ 發佈的最新 deb 包
sudo apt-get update
sudo apt-get install wine

三、deb 下載安裝

1、在 Wine 各版本 deb下載 中選擇自己需要的版本下載
2、運行安裝

四、強烈推薦 集成中文補 丁的deb下載

windowssux提供,目前僅有 7.10 32bit 版本 ,文件夾的位置在
http://ftp.ubuntu.org.cn/home/windowssux
登錄帳號在
http://forum.ubuntu.org.cn/viewtopic.php?t=9685


五、編譯安裝WINE

如果你的Wine 在對中文支持有問題,並有一定動手能力,推薦採用 中文 patch +編譯安裝

1、以前安裝有 wine 的先把 wine 卸載。

2、下載最新的 wine 源碼 自 WINEHQ ,解壓。

3、下載打過補丁的 freetype.c ,需要對應你的系統版本。自 Wine的中文按鈕補丁-0.9.56 (增編譯腳本-7.04-7.10) 。把 freetype.c 代替源碼中的 dlls/gdi32/freetype.c。

4、根據自己的系統版本 下載 依賴安裝包 自己 http://kegel.com/wine/
7.10爲 gutsy.sh ,
然後運行
chmod +x gutsy.sh
sudo ./gutsy.sh
安裝所需依賴。

5、在源碼目錄下
sudo ./configure
檢測依賴環境,通過的話,根據提示可以
sudo make depend && make

6、編譯完成以後,會提示你Wine built successfully,這時輸入
make install

(可選)7、如果你要 卸載編譯安裝的 wine ,使用命令
make uninstall

配置WINE

一、配置 winecfg

1、運行 wine 配置程序 ,不要用 sudo 或者 root 權限

winecfg

這樣會建立 wine 的運行文件夾 /home/user/.wine .裏面有wine的註冊表文件和虛擬的C盤;
稍等片刻,就會出現一個面板,這就是 wine 的一些基本的配置。

2、 Drives 標籤,配置硬盤和光驅

Autodect 按鈕可以自動檢測,也打開 Show Advanced 手動配置,
C: /home/用戶名/.wine/drive_c Local hard disk
D: /home/用戶名 Local hard disk
E: /media/cdrom0 CDROM
其他分區根據需要配置

3、Audio 標籤,配置聲卡

這個面板會失去反映一段時間,之後出現一個聲音驅動程序的選擇框,一般情況下選擇OSS。如果你是獨立的聲卡,選擇ALSA更好。如果只有 OSS,就選擇 OSS。

4、 Application Settings 標籤,配置 Windows 版本

下面的 windows 版本把默認的改成 Windows XP ,實際中可以變更 爲 Windows 2000 或 其他版本以使用 wine 的效率更高。

5、部分 DLL 設置

在真實的 windows 系統中從 C:/WINDOWS/systenm32 裏複製 mfc42.dll,msvcp60.dll, riched20.dll,riched32.dll 這幾個文件到 /home/用戶名/.wine/drive_c/windows/system32 文件裏,需要覆蓋時確定。其他dll文件不要隨便覆蓋,要做備份。

二、字體設置

1、從 Windows 目錄下的 Fonts 裏的 simsun.ttc 複製到 /home/user/.wine/drive_c/windows/fonts 裏面。

把下面的代碼保存爲 zh.reg ,然後終端執行 regedit zh.reg 。
代碼:
代碼:
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"



使用WINE

基本設置
winecfg

註冊表
regedit

控制檯
wineconsole

卸載wine內軟件
wine-unintaller

輔助用GUI配置/軟件安裝/管理工具wine-door
sudo apt-get install wine-door

wine 程序的菜單位置
~/.local/share/applications/wine/Programs

轉自:http://forum.ubuntu.org.cn/viewtopic.php?t=107816
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章