[Linux]WINE安装教程

  因为我们学校的校园网是通过在本机运行一个客户端来上网的,所以我在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〉
  

(0)

相关推荐

  • [Linux]WINE安装教程

    因为我们学校的校园网是通过在本机运行一个客户端来上网的,所以我在linux下上网必须使这个软件能够运行,才能上咱linuxsir,于是我就想着怎么来安装一个最新版的wine来让它支持汉字. 下面是我的安装步骤: 安装前的准备 把原先的wine卸载掉,redhat 7.3有wine和wine-devel两个文件,先卸载掉第二个,然后再卸载第一个,如果你更好的想玩游戏,把OPENGL也升级一下,freetype不用升级了,redhat 7.3自带的就可以满足汉字的支持了. 把你的C盘挂接在linux

  • Win7下Linux虚拟机安装教程

    本篇经验,在WIN7下搭建了LINUX虚拟机.是以UBUNTU为例,不过您搭建其他版本的LINUX系统,比如CENTOS等,也都适用. 安装必备文件: 1)ubuntu镜像文件,.iso文件(ubuntu-16.10-desktop-amd64): 2)VMware安装文件(VMware Workstation 官方中文版 64位12.5.2). 首先安装VMware,在WIN7上搭建一个虚拟环境.然后在VMware的基础上,通过ISO镜像文件,安装LINUX操作系统. 一 安装VMware 1

  • Valheim服务器 Mod修改安装教程 【ValheimPlus】

    目录 Valheim服务器 Mod修改安装 下载文件 安装 配置mod 启动mod服务器 启动游戏客户端 如何更新游戏和mod Valheim服务器 Mod修改安装 注意! **不建议在为通关游戏的情况下对游戏进行任何修改,这会极大的缩短游戏的新鲜度,不建议安装任何mod及修改器** mod的安装将直接影响你的游戏体验 服务器安装mod还需要参与服务器的玩家一并安装mod文件 本mod非往游戏中添加游戏元素,只是在原有的基础上对数值及操作的修改 安装mod可能会导致你的游戏异常及存档损坏,请自行

  • linux系统下MongoDB单节点安装教程

    前言 MongoDB是一个高性能.开源.无模式的.基于分布式文件存储的文档型数据库,相信对大家都不陌生,这里就不过多介绍了,本文主要介绍了关于mongo单节点(linux下)的安装教程,分享出来供大家参考学习,下面话不多说了,来一起看看详细的安装过程吧. 安装包 下载地址: (https://www.mongodb.com/download-center) 用户权限/目录 1.创建 dbuser用户 groupadd dbgroup useradd dbuser -m -d /home/dbus

  • Linux环境下mysql5.7.13安装教程

    本文实例为大家分享了Linux mysql5.7.13安装教程,供大家参考,具体内容如下 1.准备 cmake-3.6.0.tar.gz  bison-3.0.4.tar.gz  mysql-5.7.13.tar.gz (http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13.tar.gz) 2.安装cmake 和 bison 首先可以查看下是否安装了 cmake # rpm -qa |grep cmake # tar zxvf cma

  • Win10安装Linux子系统图文教程

    Windows10提供了ubantu Linux子系统,终于可以把卡卡的虚拟机扔在一边了,下面介绍一下win10安装linux子系统的过程. 1.打开Windows功能,在这里把勾打上   2.打开设置–>更新和安全–>针对开发人员,选择开发人员模式–>确定 3.打开PowerShell 4.安装Linux,在PowerShell里输入lxrun /install 5.输入y之后就开始下载,这是一个很漫长的等待,大概180多M 6.下载完成之后会出现这个界面,然后我们按y继续 7.这个界

  • Linux下JDK安装教程

    Linux下JDK安装教程,具体内容如下 1.下载 JDK Linux 版本(注意看自己安装 Linux 系统的位数) oracle 官网下载地址:jdk-7u80-linux-x64.gz 百度云盘:链接: http://pan.baidu.com/s/1eS27kum 密码: wwcv 2.进入虚拟机,查看是否有默认安装的 Open JDK 以 root 用户登录:输入 java -vesion. 如果出现如下信息,则默认安装有,需要卸载 3.卸载默认安装的 Open JDK ①.输入:rp

  • 在Linux上安装Python的Flask框架和创建第一个app实例的教程

    无论你在linux上娱乐还是工作,这对你而言都是一个使用python来编程的很好的机会.回到大学我希望他们教我的是Python而不是Java,这学起来很有趣且在实际的应用如yum包管理器中很有用. 本篇教程中我会带你使用python和一个称为flask的微型框架来构建一个简单的应用,来显示诸如每个进程的内存使用,CPU百分比之类有用的信息. 前置需求 Python基础.列表.类.函数.模块.HTML/CSS (基础). 学习这篇教程你不必是一个python高级开发者,但是首先我建议你阅读http

  • Linux环境mysql5.7.12安装教程

    在Linux上安装MySQL  环境:windows7  虚拟机:Oracle VMVirtualBox  Linux: ubuntukylin-14.04.1-amd64.iso  mysql:5.7.12  一.环境准备  step1:安装虚拟机  step2:修改宿主机BIOS配置 操作系统:Windows 7 64位: 虚拟机:Oracle VM VirtualBox  Linux版本: Ubuntu4.0  64  问题描述:新建虚拟机的列表中没有64位系统选项 解决方法:修改机器中的

  • Linux CentOS MySQL 5.7.18 5.7.X安装教程

    废话不多说了,直接给大家贴代码了,具体代码如下所示: #安装依赖包 yum search libaio # search for info yum install libaio # install library #新建用户组合用户 groupadd mysql useradd mysql -g mysql #解压到data下面 tar -zxvf /data/software/mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz -C /data #重命名 mv

随机推荐