[Linux] WINE installation tutorial

Source: Internet
Author: User
Tags builtin

Because our school's campus network accesses the Internet by running a client on the local machine, so I need to enable this software to run online in linux before I can access linuxsir, so I thought about how to install the latest wine version to support Chinese characters.

The following are my installation steps:

Preparations before installation

Unmount the original wine. redhat 7.3 has two files: wine and wine-devel. First, unmount the second file and then unmount the first file. If you want to play games better, upgrade OPENGL as well. freetype does not need to be upgraded. The redhat 7.3 comes with support for Chinese characters.

Mount your C drive in linux and create a directory for mounting

Drive C
Mkdir/winc

Attach a drive C
Mount/dev/hda1/winc

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

Copy wine-20020804.tar.gz to the/tmp directory and enter the/tmp directory.

Shell> cd/tmp

Decompress wine

Shell> tar vfzx wine-20020804.tar.gz

Enter the decompressed directory

Shell> cd wine-20020804

Install with wine Installation Tool

Shell>./tools/wineinstall

Then there is a long wait.
During the installation process, you need to answer yes/no. You can select yes. Wine automatically searches for the windows directory. After you have compiled the directory, it requires you to enter the root password for installation. This will soon be completed. If the installation is successful, there will be a prompt for good lucky.

Running wine in shell is not successful for the first time, 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"
Change to: [Drive C]
"Path" = "/winc"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

If you have installed simsun font. wine, this font will be found 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 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 (uugly, 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: 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"
"MIP" = "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)
"Reply topdoublebuffered" = "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> 〉
  

Related Article

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.