『壹』 怎樣讓紅旗linux上完WINDOW游戲,就是wine具體怎麼安裝配置
你應該下載.rpm後綴的文件,.tga的需要你自己編譯,已經下載的這個別要了,重新下載個.rpm的吧,有管理員許可權的話雙擊就安裝了。安裝完先要對wine進行配置
正確安裝完軟體之後,最主要的事情就是配置wine.conf文件.大家主要配置的是指定盤符
和路徑我的windows分區有四個,分別為c,d,e,f,所以我在linux的/mnt目錄中建立了c,d,e
,f四個目錄,這樣對應windows中的四個盤。光碟機為/mnt/cdrom目錄,軟碟機為/mnt/floppy目
錄。所以我的wine.conf配置文件如下:
[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
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive e]
Path=/mnt/e
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive f]
Path=/mnt/f
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive g]
Path=/mnt/cdrom
Type=cdrom
Label=CD-Rom
Filesystem=win95
[Drive h]
Path=/tmp
Type=hd
Label=Tmp Drive
Filesystem=win95
[Drive i]
Path=${HOME}
Type=network
Label=Home
Filesystem=win95
[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)
;;
[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
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive e]
Path=/mnt/e
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive f]
Path=/mnt/f
Type=hd
Label=MS-DOS
Filesystem=win95
[Drive g]
Path=/mnt/cdrom
Type=cdrom
Label=CD-Rom
Filesystem=win95
[Drive h]
Path=/tmp
Type=hd
Label=Tmp Drive
Filesystem=win95
[Drive i]
Path=${HOME}
Type=network
Label=Home
Filesystem=win95
[wine]
Windows=c:\windows
System=c:\windows\system
Temp=h:\
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
SymbolTableFile=./wine.sym
# <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
[Tweak.Layout]
;; WineLook=xxx (supported styles are 'Win31'(default), 'Win95', 'Win98')
WineLook=Win95
[programs]
Default=
Startup=
[Console]
;XtermProg=nxterm
;InitialRows=25
;InitialColumns=80
;TerminalType=nxterm
[Clipboard]
ClearAllSelections=0
PersistentSelection=1
# </wineconf>
我的星際爭霸裝在E盤的blood目錄中,C盤為windows 系統盤,分別把c,e盤mount到/mnt
/c 和/mnt/e中。星際爭霸是一個256色的游戲,所以下一步是重新設定顯示器的解析度為64
0*480*8bit,8bit為256色。重新進X-WINDOWS,
如果是rpm格式文件可以直接在windows終端下執行:wine /mnt/e/blood/starcraft.exe 硬
盤一陣狂響之後就可以見到熟悉的星際爭霸畫面了,就可以HAPPY了!!