[Linux] Wine Installation Tutorials _unix Linux

Source: Internet
Author: User
Tags builtin

Because our school campus network is through the computer running a client to the Internet, so I have to go online under Linux to enable this software to run, in order to Linuxsir, so I think how to install a new version of the wine to let it support Chinese characters.


Here are my installation steps:


Pre-Installation Preparation


Unload the original wine, Redhat 7.3 have wine and wine-devel two files, first uninstall the second, and then uninstall the first, if you better want to play the game, OpenGL also upgraded, FreeType do not upgrade, Redhat 7.3 can be satisfied with the support of Chinese characters.


Hook up your C-disk under Linux, create a directory to hook up

C Disk
Mkdir/winc

Hook up C disk
Mount/dev/hda1/winc

Download the latest version of wine to/wind,http://www.winehq.com with its latest version of wine-20020804.tar.gz.

Log on to Linux as a regular user, copy the wine-20020804.tar.gz to the/tmp directory, and enter the/tmp directory.

Shell〉cd/tmp

Decompression wine

Shell〉tar VFZX wine-20020804.tar.gz

Enter the unpacked directory

SHELL〉CD wine-20020804

Install with the Wine installation tool

Shell〉./tools/wineinstall

Then there is the long wait.
In the course of installation it wants you to answer yes/no, you choose Yes. Wine automatically search the directory of Windows, waiting for you to compile, it will let you enter the root password into the installation, it is quickly installed, if the installation is successful, there will be good lucky tips.

Running wine under the shell for the first time is not successful, which is normal because it is not configured in the/root/.wine/config file. Find these.

[Drive C]
"Path" = "/usr/share/win_c"
"Type" = "HD"
"Label" = "MS-DOS"
"FileSystem" = "Win95"
instead: [Drive C]
"Path" = "/winc"
"Type" = "HD"
"Label" = "MS-DOS"
"FileSystem" = "Win95"

On it, if you install the SimSun font. Wine will find this font by default, below is my/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 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 are supposed to emulate on a certain
;; Directory structure.
;; Recommended:
;; -"Win95" for Ext2fs, VFAT and FAT32
;; -"Msdos" for FAT16 (ugly, upgrading to VFAT driver strongly)
;; DON ' T use "Unix" unless your 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 so 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 so do recursive lookups of a whole
; SubDir tree in the case of the a symlink pointing 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 windows 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 your have more than one port for the your setup
; (Wine uses for now the ' the ' the ' 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 are all booleans. Y/Y/T/T/1 are true, n/n/f/f/0 are false.
;D Efaults 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〉
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.