天天看點

wine 的使用方法

wine中文亂碼的終極解決方法

準備字型:simfang.ttc 是許多 windows 應用預設使用 simfang.ttc 字型。下載下傳simfang.ttc 字型

simsun.ttc複制到/home/user/.wine/drive_c/windows/fonts裡面。

進入 wine 的系統資料庫 “/home/使用者名/.wine/dosdevices/c:/windows/”,右鍵用 "使用wine windows program loader打開" 方式打開 regedit.exe ,打開 [hkey_local_machine\\software\\microsoft\\windows nt\\currentversion\\fontsubstitutes] ,将“ ms shell dlg  ”“ ms shell dlg 2 ”“ tahoma ”三項的值都設為“simsun”。如果沒有“tahoma”可以自己建立一個。

wine挂裝 fat 或 vfat 檔案系統

正确安裝完軟體之後,最主要的事情就是配置wine.conf檔案.大家主要配置的是指定盤符 和路徑我的windows分區有四個,分别為c,d,e,f,是以我在linux的/mnt目錄中建立了c,d,e ,f四個目錄,這樣對應windows中的四個盤。光驅為/mnt/cdrom目錄,軟驅為/mnt/floppy目 錄。是以我的wine.conf配置檔案如下:

wine 的使用方法

[drive a]  

path=/mnt/floppy  

type=floppy  

label=floppy  

serial=87654321  

device=/dev/fd0  

[drive c]  

path=/mnt/c  

type=hd  

label=ms-dos  

filesystem=win95  

[drive d]  

path=/mnt/d  

[drive e]  

path=/mnt/e  

[drive f]  

path=/mnt/f  

[drive g]  

path=/mnt/cdrom  

type=cdrom  

label=cd-rom  

[drive h]  

path=/tmp  

label=tmp drive  

[drive i]  

path=${home}  

type=network  

label=home  

[wine]  

windows=c:\windows  

system=c:\windows\system  

temp=h:\  

path=c:\windows;c:\windows\system;e:\;e:\test;f:\  

symboltablefile=./wine.sym  

其中[drive h][drive i]為wine.conf檔案中的預設臨時檔案,隻需改動盤符即可。  

在wine.conf中需改動的地方還有:  

[tweak.layout]  

;; winelook=xxx  (supported styles are 'win31'(default), 'win95', 'win98')  

;winelook=win95  

把winelook=win95前面的;号去掉即可。現在wine.conf的配置就大功告成了。現在給出我的  

wine.conf檔案的配置給大家參考:  

;;  

;; ms-dos drives configuration  

;; each section has the following format:  

;; [drive x]  

;; path=xxx       (unix path for drive root)  

;; type=xxx       (supported types are 'floppy', 'hd', 'cdrom' and 'network')  

;; label=xxx      (drive label, at most 11 characters)  

;; serial=xxx     (serial number, 8 characters hexadecimal number)  

;; filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'uni  

x')  

;;   this is the fs wine is supposed to emulate on a certain  

;;   directory structure.  

;;   recommended:  

;;   - "win95" for ext2fs, vfat and fat32  

;;   - "msdos" for fat16 (ugly, upgrading to vfat driver strongly recommended)  

;;   don't use "unix" unless you intend to port programs using winelib !  

;; device=/dev/xx (only if you want to allow raw device access)  

# <wineconf>  

[dlldefaults]  

extra_ld_library_path=${home}/wine/cvs/lib  

defaultloadorder = native, elfdll, so, builtin  

[dllpairs]  

krnl386 = kernel32  

gdi = gdi32  

user = user32  

commdlg = comdlg32  

commctrl= comctl32  

ver = version  

shell = shell32  

lzexpand= lz32  

mmsystem= winmm  

msvideo = msvfw32  

winsock = wsock32  

[dlloverrides]  

kernel32, gdi32, user32 = builtin  

krnl386, gdi, user = builtin  

toolhelp  = builtin  

comdlg32, commdlg = elfdll, builtin, native  

version, ver  = elfdll, builtin, native  

shell32, shell  = builtin, native  

lz32, lzexpand  = builtin, native  

commctrl, comctl32 = builtin, native  

wsock32, winsock = builtin  

advapi32, crtdll, ntdll = builtin, native  

mpr, winspool.drv = builtin, native  

ddraw, dinput, dsound = builtin, native  

winmm, mmsystem         = builtin  

msvideo, msvfw32        = builtin, native  

mcicda.drv, mciseq.drv  = builtin, native  

mciwave.drv  = builtin, native  

mciavi.drv, mcianim.drv = native, builtin  

msacm.drv, midimap.drv  = builtin, native  

w32skrnl                = builtin  

wnaspi32, wow32  = builtin  

system, display, wprocs = builtin  

wineps   = builtin  

icmp                    = builtin  

[options]  

allocsystemcolors=100  

[fonts]  

;read documentation/fonts before adding aliases  

resolution = 96  

default = -adobe-times-  

[serialports]  

com1=/dev/ttys0  

com2=/dev/ttys1  

com3=/dev/modem,38400  

com4=/dev/modem  

[parallelports]  

lpt1=/dev/lp0  

[spooler]  

lpt1:=|lpr  

lpt2:=|gs -sdevice=bj200 -soutputfile=/tmp/fred -q -  

lpt3:=/dev/lp3  

[ports]  

;read=0x779,0x379,0x280-0x2a0  

;write=0x779,0x379,0x280-0x2a0  

[spy]  

exclude=wm_size;wm_timer;  

[registry]  

; paths must be given in /dir/dir/file.reg format.  

; wine will not understand dos file names here...  

; alternate registry file name: hkcu  

altcurrentuserfile=  

; alternate registry file name: hku  

altuserfile=  

; alternate registry file name: hklm  

altlocalmachinefile=  

;these are all booleans.  y/y/t/t/1 are true, n/n/f/f/0 are false.  

;defaults are read all, write to home and alt  

;note: it is pointless to specify alt files and neither load nor write to them.  

; global registries (stored in /etc)  

loadglobalregistryfiles=y  

; home registries (stored in ~user/.wine/)  

loadhomeregistryfiles=y  

; windows registries in windows path, above  

loadwindowsregistryfiles=y  

; load above registries.  

loadaltregistryfiles=y  

; try to write all changes to home registries  

writetohomeregistryfiles=y  

; try to write all changes to alt registries  

writetoaltregistryfiles=y  

winelook=win95  

[programs]  

default=  

startup=  

[console]  

;xtermprog=nxterm  

;initialrows=25  

;initialcolumns=80  

;terminaltype=nxterm  

[clipboard]  

clearallselections=0  

persistentselection=1  

# </wineconf>  

wine的字型美化:

打開字型的防鋸齒:

regedit4

[hkey_current_user/software/wine/x11 driver]

"clientsideantialiaswithcore"="y"

"clientsideantialiaswithrender"="y"

"clientsidewithrender"="y"

打開字型的平滑功能:

[hkey_current_user/control panel/desktop]

"fontsmoothing"="2"

"fontsmoothingtype"=dword:00000002

"fontsmoothinggamma"=dword:00000578

"fontsmoothingorientation"=dword:00000001

你也可以檢視你機器的[hkey_local_machine/software/microsoft/windows nt/currentversion/fontlink/systemlink]的"tahoma"值,然後在windows的fonts裡找相應的字型 檔案,複制到wine下的windows/fonts目錄下。

wine是在linux作業系統下執行部分windows應用程式的工具。

在目前國内賣linux作業系統的比賣在其下運作的應用軟體的多得多。在linux軟體(如圖檔浏覽、多媒體播放)奇缺的情況下,能将部分windows 程式移置到linux環境下,也不失為一種好方法。下面是wine的使用方法。

tar -jxvf wine-1.1.1.tar.bz2

cd wine-1.1.1

./tools/wineinstall

之後它會運作./configure,然後顯示:we need to install wine as root user, do you want us to build wine,'su root' and install wine? enter 'no' to continue without installing(yes/no)

yes 回車

編譯安裝途中出現了下面的錯誤,出現這樣的問題是因為沒有安裝相關的devel支援。

configure: warning: x development files not found. wine will be built

without x support, which probably isn't what you want. you will need to install

development packages of xlib/xfree86 at the very least.

如果是用gonme桌面的,請在終端輸入:sudo apt-get install gnome-devel 下載下傳安裝完後再次執行編譯安裝wine即可。

如果你root使用者設定了密碼,還會提示你輸入密碼。

linux wine 安裝 待螢幕上出現:

installation complete for now. good luck (this is still alpha software).if you have problems with wine, please read the documentation first,

as many kinds of potential problems are explained there.

則表示安裝成功了。

wine 的使用方法

sudo add-apt-repository ppa:ubuntu-wine/ppa  

sudo apt-get update  

sudo apt-get install wine  

winecfg  

~/.wine/drive_c/windows/fonts/   #隻留一個你想要顯示的中文字型在這  

繼續閱讀