[Linux]WINE安装教程_unix linux

  因为我们学校的校园网是通过在本机运行一个客户端来上网的,所以我在linux下上网必须使这个软件能够运行,才能上咱linuxsir,于是我就想着怎么来安装一个最新版的wine来让它支持汉字。

  下面是我的安装步骤:

  安装前的准备

  把原先的wine卸载掉,redhat 7.3有wine和wine-devel两个文件,先卸载掉第二个,然后再卸载第一个,如果你更好的想玩游戏,把OPENGL也升级一下,freetype不用升级了,redhat 7.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]
  "Path" = "/usr/share/win_c"
  "Type" = "hd"
  "Label" = "MS-DOS"
  "Filesystem" = "win95"
  改为:[Drive C]
  "Path" = "/winc"
  "Type" = "hd"
  "Label" = "MS-DOS"
  "Filesystem" = "win95"

  就可以了,如果你安装了simsun字体.wine默认就会找到这个字体的,下边就是我的/root/.wine/config。

  WINE REGISTRY Version 2
  ;; All keys relative to MachineSoftwareWineWineConfig

  ;;
  ;; 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', '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]
  "Path" = "/mnt/floppy"
  "Type" = "floppy"
  "Label" = "Floppy"
  "Serial" = "87654321"
  "Device" = "/dev/fd0"

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

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

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

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

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

  [wine]
  "Windows" = "c:windows"
  "System" = "c:windowssystem"
  "Temp" = "e:"
  "Path" = "c:windows;c:windowssystem;e:;e: est;f:"
  "Profile" = "c:windowsProfilesAdministrator"
  "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〉
  

时间: 2024-08-03 14:42:13

[Linux]WINE安装教程_unix linux的相关文章

Linux学习基础教程_unix linux

 Linux学习基础 1.什么是Linux?  准确的说,是指Linux的kernel(系统的核心程序),其内核版权属于Linus Torvalds,在GPL(GNU General Public License)版权协议下发行, 任何人都可以自由的复制(copy), 修改(change), 套装分发(distribute),销售,但是不可以在分发时加入任何限制, 而且所有原码必须是公开的,所以任何人都可以无偿取得所有执行文件和原代码.  对于Linux用户和系统管理员来说,Linux是指包含L

[基础知识]Linux新手系列之五_unix linux

上 给Linux新手 [系列之五] "大夫,我痛,告诉我怎么办吧" "别着急,你先说你哪里怎么痛了" "噢,哪里痛还不一样治啊,我肚子痛,快告诉我怎么办吧,我很着急的" "别着急,再说说你昨天都干了些什么啊?" "怎么跟昨天干什么还有关系?我昨天就干了我每天作的事情嘛,我觉得很正常,你怎么还不告诉我怎么办?不想说就别说". "别着急,你再想想,昨天作了什么跟平时不同的事情?" "

浅谈linux分区相关知识_unix linux

首先我们要对硬盘分区的基本概念进行一些初步的了解,硬盘的分区主要分为基本分区(primary partion)和扩充分区(extension partion)两种,基本分区和扩充分区的数目之和不能大于四个.且基本分区可以马上被使用但不能再分区.扩充分区必须再进行分区后才能使用,也就是说它必须还要进行二次分区.那么由扩充分区再分下去的是什么呢?它就是逻辑分区(logical partion),况且逻辑分区没有数量上限制.  对习惯于使用dos或windows的用户来说,有几个分区就有几个驱动器,并

给Linux新手[系列之四]_unix linux

要讲硬盘分区了.在讲这个问题之前,我先来讲讲概念问题,什么是概念问题呢?你还记得第一次,绝对的第一次听到A:盘,B:盘,C盘时候的感觉么?在那之前自己也许知道计算机有个存储数据的地方,因为在电视上或者广告上看到过磁带机(我一直不知道为什么到了很久很久那种一个傻姑娘在一个磁带柜前面操作一个现在看来是垃圾的磁带设备会不停的成为电视台播放电脑题材节目的缺省背景)或者硬盘的图象.但是你并没有一个概念计算机究竟怎么使用这些设备,直到你第一次打出dir a:或者打开explorer看到A: C:字样的目录树

[基础知识]Linux新手系列之四_unix linux

上 给Linux新手 [系列之四] OK,要讲硬盘分区了.在讲这个问题之前,我先来讲讲概念问题,什么是概念问题呢?你还记得第一次,绝对的第一次听到A:盘,B:盘,C盘时候的感觉么?在那之前自己也许知道计算机有个存储数据的地方,因为在电视上或者广告上看到过磁带机(我一直不知道为什么到了很久很久那种一个傻姑娘在一个磁带柜前面操作一个现在看来是垃圾的磁带设备会不停的成为电视台播放电脑题材节目的缺省背景)或者硬盘的图象.但是你并没有一个概念计算机究竟怎么使用这些设备,直到你第一次打出dir a:或者打开

Linux 管理员手册(3)_unix linux

    安装和升级系统时,需要对硬盘做很多工作.必须在硬盘上做文件系统,使文件能存在其上,并为系统不同的部分保留空间. 本章说明所有这些初始化工作.通常,一旦你建立了系统,就不必再做这些工作(除了使用软盘).如果你要增加一个新硬盘或更好地调整你的硬盘的使用,那么可能回到这一章.     管理磁盘的基本任务有: 格式化磁盘.这为磁盘进入使用做一些工作,比如检查坏扇区.(现在多数硬盘无须格式化.) 给硬盘分区,如果想用于互相不干扰的几件事.分区的一个原因是要在一个硬盘上存不同的操作系统.另一个原因是

编写Linux实用程序的艺术_unix linux

    Linux 和其他类 UNIX 系统总是附带了大量的工具,它们执行从显而易见的到不可思议的广泛功能.类 UNIX 编程环境的成功很大程度上归功于工具的高品质和选择,以及这些工具之间相互衔接的简易性. 作为开发人员,您可能会发现现有实用程序并不总是能够解决问题.虽然能够通过结合使用现有实用程序来容易地解决许多问题,然而解决其他问题却至少需要一些实 际的编程工作.这些后面的任务通常是创建新实用程序的候选任务,结合现有实用程序来创建新实用程序可以通过做最少的工作来解决问题.本文考察优秀实用程序

Linux内核漏洞浅析_unix linux

与Windows相比,Linux被认为具有更好的安全性和其他扩展性能.这些特性使得Linux在操作系统领域异军突起,得到越来越多的重视.随着Linux应用量的增加,其安全性也逐渐受到了公众甚或黑客的关注.那么,Linux是否真的如其支持厂商们所宣称的那样安全呢?本期我们请到了启明星辰信息技术有限公司积极防御实验室工程师赵伟,对Linux进行专业的漏洞技术分析. Linux内核精短.稳定性高.可扩展性好.硬件需求低.免费.网络功能丰富.适用于多种cpu等特性,使之在操作系统领域异军突起.其独特的魅

Linux操作系统发展简史_unix linux

    在70年代,Unix体系的源程序大多是可以任意流传的.互联网的基础协议TCP/IP就是产生于那个年代.在那个时期,人们在创作各自的"程序作品"中享受着从事科学探索.创新活动所特有的那种激情和成就感.那时的程序员,如同作家一样,急于"发表"自己的程序作品,并不专注于保守"机密",以换取钱财. 1979年,AT&T宣布了Unix的商业化计划,随之出现了各种二进制的商业Unix版本.于是就兴起了基于二进制机读代码的"版权产业&