LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 33565|回复: 106

WINE安装教程

[复制链接]
发表于 2002-8-23 07:57:26 | 显示全部楼层 |阅读模式
因为我们学校的校园网是通过在本机运行一个客户端来上网的,所以我在linux下上网必须使这个软件能够运行,才能上咱linuxsir,于是我就想着怎么来安装一个最新版的wine来让它支持汉字.
下面是我的安装步骤:
安装前的准备
把原先的wine卸载掉.rh7.3有wine和wine-devel两个文件,先卸载掉第二个,然后再卸载第一个,如果你更好的想玩游戏,把OPENGL也升级一下,freetype不用升级了,rh7.3自带的就可以满足汉字的支持了
把你的C盘挂接在linux下
建立目录来挂接
c盘
mkdir /winc
挂接C盘
mount /dev/hda1 /winc

下载wine的最新版到/wind
http://www.winehq.com上边有它的最新版
wine-20020804.tar.gz
以普通用户登录linux,把wine-20020804.tar.gz拷贝到/tmp目录下
进入/tmp目录
shell>cd /tmp
解压wine
shell>tar vfzx wine-20020804.tar.gz
进入解压后的目录
shell>cd wine-20020804
用wine的安装工具进行安装
shell>./tools/wineinstall
然后就是漫长的等待,
在安装过程中它要你回答yes/no,你选择yes就可以了
wine自动搜索windows的目录的,等你你编译完了,它要让你输入root的密码进入安装
这是就快安装完了,如果安装成功,就会有good lucky的提示
在shell下运行wine,第一次运行不成攻,这是正常,因为没有在/root/.wine/config文件里配置好.找到这些把
[Drive C]
"ath" = "/usr/share/win_c"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"
改为:[Drive C]
"ath" = "/winc"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"
就可以了,如果你安装了simsun字体.wine默认就会找到这个字体的
下边就是我的/root/.wine/config
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;;
;; MS-DOS drives configuration
;;
;; Each section has the following format:
;; [Drive X]
;; "ath"="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', 'unix')
;;   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]
"ath" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Serial" = "87654321"
"Device" = "/dev/fd0"

[Drive C]
"ath" = "/winc"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

[Drive D]
"ath" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win95"
; make sure that device is correct and has proper permissions !
"Device" = "/dev/cdrom"

[Drive E]
"ath" = "/tmp"
"Type" = "hd"
"Label" = "Tmp Drive"
"Filesystem" = "win95"

[Drive F]
"ath" = "${HOME}"
"Type" = "network"
"Label" = "Home"
"Filesystem" = "win95"

[Drive Z]
"ath" = "/"
"Type" = "network"
"Label" = "Root"
"Filesystem" = "win95"

[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "e:\\"
"ath" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\"
"Profile" = "c:\\windows\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;"ShowDirSymlinks" = "1"
"ShellLinker" = "wineshelllink"

# <wineconf>

[DllDefaults]
; "EXTRA_LD_LIBRARY_PATH" = "${HOME}/wine/cvs/lib"
"DefaultLoadOrder" = "native, builtin, so"

[DllOverrides]
"commdlg"      = "builtin, native"
"comdlg32"     = "builtin, native"
"ver"          = "builtin, native"
"version"      = "builtin, native"
"shell"        = "builtin, native"
"shell32"      = "builtin, native"
"lzexpand"     = "builtin, native"
"lz32"         = "builtin, native"
"comctl32"     = "builtin, native"
"commctrl"     = "builtin, native"
"wsock32"      = "builtin"
"winsock"      = "builtin"
"advapi32"     = "builtin, native"
"crtdll"       = "builtin, native"
"mpr"          = "builtin, native"
"winspool.drv" = "builtin, native"
"ddraw"        = "builtin, native"
"dinput"       = "builtin, native"
"dsound"       = "builtin, native"
"mmsystem"     = "builtin"
"winmm"        = "builtin"
"msvcrt"       = "native, builtin"
"msvideo"      = "builtin, native"
"msvfw32"      = "builtin, native"
"mcicda.drv"   = "builtin, native"
"mciseq.drv"   = "builtin, native"
"mciwave.drv"  = "builtin, native"
"mciavi.drv"   = "native, builtin"
"mcianim.drv"  = "native, builtin"
"msacm.drv"    = "builtin, native"
"msacm"        = "builtin, native"
"msacm32"      = "builtin, native"
"midimap.drv"  = "builtin, native"
"wnaspi32"     = "builtin"
"icmp"         = "builtin"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "N"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"

[fonts]
;Read documentation/fonts before adding aliases
"Resolution" = "96"
"Default" = "-misc-simsun-"

[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"
"Com3" = "/dev/ttyS2"
"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]
;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
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

[Tweak.Layout]
;; supported styles are 'Win31'(default), 'Win95', 'Win98'
"WineLook" = "Win98"

[Console]
;"Drivers" = "tty"
;"XtermProg" = "nxterm"
;"InitialRows" = "25"
;"InitialColumns" = "80"
;"TerminalType" = "nxterm"

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"

# </wineconf>
附图:
http://home.yctc.edu.cn/netclass/wine.png
发表于 2002-9-12 20:19:44 | 显示全部楼层
显示缺少conftest。sh,如何解决?
发表于 2002-9-12 23:23:59 | 显示全部楼层

这玩意对软件的支持太差了!

这玩意对软件的支持太差了!
发表于 2002-9-13 08:02:55 | 显示全部楼层
兄弟
咱们是想在linux下运行windows的程序
这是两个完全不同的平台
能运行某些程序已经不错了噢
要求不要太高呀
再说,有些兄弟们已经把wine能运行的软件贴了出来
好像也不少呀
发表于 2002-9-14 07:56:16 | 显示全部楼层
飘风飘雪兄弟已经写教程了,实在是太棒了。可能有不少弟兄还没有发现这个教程吧。
多谢兄弟,辛苦了。。。。。。

收入精品,让更多的弟兄借荐一下。
发表于 2002-9-18 23:58:05 | 显示全部楼层

我安装了codewevers-wine,但是怎样才能运行windows呢

在linux下好像可以运行windows阿
我在windows下安装了星际,怎么运行阿在linux下

我在字符界面下进到 windows目录运行:

wine notepad.exe 就可以,其他的不知道怎么运行,另外怎么在linux下进windows的含有空格的目录阿
发表于 2002-9-19 00:06:05 | 显示全部楼层
其他的程序运行起来也是一样的
进入有空格的目录可以用引号引起来
单引号或者双引号都可以的
发表于 2002-9-20 20:01:24 | 显示全部楼层

我照样子配置好后,试着运行发现无法正确显示中文

估计全英文的可能显示无问题,中文显示出错,也许与我的版本有关.我是
20010514的版本.再试一试
发表于 2002-9-20 23:08:30 | 显示全部楼层
200207以后的版本才可以.
发表于 2002-10-4 09:54:24 | 显示全部楼层

wine,我心中永远的痛?请帮帮我好吗?

飘风飘雪兄你好!
照你的方法还是不行呀。
还是不能显示中文,运行wine时用wine c:\windows\notepad.exe不行,只能用wine /mnt/winc/windows/notepad.exe,请问这是怎么回事?
我用的是red hat 7.3。请问怎么样卸载系统自带的wine?
还有你的教程中的#wineconf那一段也是在.wine目录中的config中吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表