[Linux]WINE安装教程

2016-01-29 19:54 171 1 收藏

[Linux]WINE安装教程,[Linux]WINE安装教程

【 tulaoshi.com - Linux 】

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

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/linux/)


  下面是我的安装步骤:


  安装前的准备


  把原先的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"

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/linux/)

  [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"
  "ShellL

来源:https://www.tulaoshi.com/n/20160129/1510337.html

延伸阅读
标签: 服务器
linux系统安装图解教程及卸载修复   很多朋友问笔者如何安装linux系统,linux安装需要注意哪些问题,如何正确卸载linux系统,笔者这里收集了一篇linux安装图文教程,以红旗Linux5.0桌面正式版为例,教大家如何安装linux以及卸载修复引导方法。 一,准备工作: 1.购买红旗Linux5.0桌面正式版安装光盘或下载镜像文件。 2...
第2章:安装指南 2.1 安装前的准备 1、收集系统资料:为了能够顺利安装和设置Linux系统,你必须将以下资料记录在案,以备系统安装时使用: 硬盘:数量, 容量和类型; 内存:您的计算机所装内存的数量; CD-ROM:接口类型(IDE, SCSI); SCSI卡:卡的型号; 网卡:网卡的型号; 鼠标:鼠标的类型(...
安装MySQL sudo apt-get install mysql-server 这个应该很简单了,而且我觉得大家在安装方面也没什么太大问题,所以也就不多说了,下面我们来讲讲配置。 配置MySQL 注意,在Ubuntu下MySQL缺省是只允许本地访问的,如果你要其他机器也能够访问的话,那么需要改变/etc/mysql/my.cnf配置文件了!下面我们一步步地来: ...
由于Oracle自身比较复杂,在Linux环境下安装要涉及很多方面的因素。本文分两个方面介绍在Linux RedHat 6.0环境下Oracle 8.0.5的安装。 一、调整Linux核心与环境 在安装Oracle之前,应该先对RedHat 6.0的Linux内核与环境进行调整,要做以下工作: 1、在完成RedHat 6.0 Linux的缺省安装后,需要安装以下软件包。 kernel -source -2.2.5...
标签: Java JAVA基础
一、软件下载 JDK 1.2.2 http://www.blackdown.org/java-linux.html http://www.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/ http://www.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/JDK-1.2.2/i386/rc4/jdk-1.2.2-RC4-linux-i386-glibc-2.1.2.tar.bz2  Tomcat 3.1 http://jakarta.apa...

经验教程

921

收藏

32
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部