Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [FAQ] Installing Wine
New Posts  All Forums:Forum Nav:

[FAQ] Installing Wine

post #1 of 27
Thread Starter 
Wine: An introduction and Installation Guide

Undoubtedly, when you migrated to your new linux installation, there were programs you used on Windows that you cannot find a suitable substitute for in linux programs. However, all hope is not lost. There is a program called Wine, which installs on linux and allows you to install and run most Windows programs in a linux environment.

There are several ways you can get Wine. Depending on your distro, you may have many different package management programs available to you. In this guide, I will cover installing Wine from a console with both APT, Yum, and Slackware.

Installing with APT

If you have APT available to you, you'll need to start by opening a console. To run APT, you'll need to be root. However, to prevent you from accidentally doing damage to your system, we will use sudo to only run a single command as root.

We need to add Wine's repositories to APT, so it is able to download the files neded to install Wine.

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Use one of the following commands, depending on your distribution with APT: (Commands from winehq.org)

For Ubuntu Feisty (7.04):
sudo wget http://wine.budgetdedicated.com/apt/....d/feisty.list -O /etc/apt/sources.list.d/winehq.list

For Ubuntu Edgy (6.10):
sudo wget http://wine.budgetdedicated.com/apt/...st.d/edgy.list -O /etc/apt/sources.list.d/winehq.list

For Ubuntu Dapper (6.06):
sudo wget http://wine.budgetdedicated.com/apt/....d/dapper.list -O /etc/apt/sources.list.d/winehq.list

For Debian Etch (4.0):
sudo wget http://wine.budgetdedicated.com/apt/...st.d/etch.list -O /etc/apt/sources.list.d/winehq.list

And to make sure the repos are enabled, we need to update APT.

sudo apt-get update

Now that you have the repositories enabled and APT knows where to get the files from, it's time to install Wine. It's really not terribly difficult.

sudo apt-get install wine


Now that Wine is installed, go ahead and jump down to the Using Wine section.

Installing with Yum
If you are using RedHat or Fedora, you will want to use Yum to install Wine as it is an incredibly simple process. All you need to do is run

su

And then

yum install wine


You're done! Now check out the Using Wine section.

Installing with Slackware
These instructions are from dangerousHobo, thankyou!
First you need to update glibc from 2.3 to 2.5. You can download the three packages you need here.

ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz
ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz
ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz

Install them by typing: installpkg glibc-*.tgz
then you can install wine.
http://sourceforge.net/project/showf...ackage_id=6301
and install that with: installpkg wine*.tgz

Now you can go ahead and configure.
Using Wine
So, now you've got Wine installed, but, how in the world do you get it to do anything? First, you need to know that Wine makes a “clone” of a Windows system, including C, a Windows folder, Program Files, My Documents, and anything else that a program would need to install itself. These are all accessible from your Home folder.

Before you start using Wine, you'll need to configure it. To do so, run

winecfg

Most of the settings here are self-explanatory. One thing to note is that though the default version of Windows is 2000, many programs work better with Windows 98 set, so keep that in mind if you are having issues. Once Wine is configured, you can start using it. Below are some basic Wine commands for you to start playing with. Most applications install Start Menu entries that appear in your desktop environment's Application menu, however, you can also launch programs manually. These are also useful for running programs that do not have installers, or running the installers themselves.

Running a .exe file
wine /yourlocation/program.exe

Accessing the Control Panel
wine control

Menu to uninstall programs
uninstaller

Running a .msi file (program installer)
wine msiexec /i /yourlocation/file.msi


That's it! You've now installed Wine and you hopefully have a basic idea of how to use it. If you ever get lost, helpful resources include www.winehq.org, as well as Google. Thank you for reading, and
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
post #2 of 27
Chipp, first off, thanks for doing that for Slackware.

Secondly, I get the following message when I run winecfg:

wine: Unhandled page fault on write access to 0x003ffd80 at address 0x60edc103 (thread 0009), starting debugger...
wine: glibc >= 2.3 without NPTL or TLS is not a supported combination.
It will most likely crash. Please upgrade to a glibc with NPTL support.
Unhandled exception: page fault on write access to 0x003ffd80 in 32-bit code (0x60edc103).


That seems serious.
Does the trick
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo E6600 @3.08Ghz MSI P6n SLI 650i EVGA 8800GTS 320 2x1Gb GSkill & 2X512mb Kingston PC6400 
Hard DriveOptical DriveOSMonitor
WD 250GB SATA 7200RPM + Seagate 7200.10 80gb HP Lightscribe DVD rw Vista home premium 64 37' Westinghouse 1080P hdtv 
KeyboardPowerCaseMouse
Dell Quietkey Mad Dog 550 Antec Sonata II Logitech Trackball 
  hide details  
Reply
Does the trick
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo E6600 @3.08Ghz MSI P6n SLI 650i EVGA 8800GTS 320 2x1Gb GSkill & 2X512mb Kingston PC6400 
Hard DriveOptical DriveOSMonitor
WD 250GB SATA 7200RPM + Seagate 7200.10 80gb HP Lightscribe DVD rw Vista home premium 64 37' Westinghouse 1080P hdtv 
KeyboardPowerCaseMouse
Dell Quietkey Mad Dog 550 Antec Sonata II Logitech Trackball 
  hide details  
Reply
post #3 of 27
Thread Starter 
Quote:
Originally Posted by mariogreymist View Post
Chipp, first off, thanks for doing that for Slackware.

Secondly, I get the following message when I run winecfg:

wine: Unhandled page fault on write access to 0x003ffd80 at address 0x60edc103 (thread 0009), starting debugger...
wine: glibc >= 2.3 without NPTL or TLS is not a supported combination.
It will most likely crash. Please upgrade to a glibc with NPTL support.
Unhandled exception: page fault on write access to 0x003ffd80 in 32-bit code (0x60edc103).


That seems serious.
Hobo could probably help you more with that one that I could. I don't even know what version of glibc ships with Slack, let alone which versions are needed for Wine. :
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
post #4 of 27
Thanks, I just asked him.

I figured out what it means, but the fix I will need some help with.
Does the trick
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo E6600 @3.08Ghz MSI P6n SLI 650i EVGA 8800GTS 320 2x1Gb GSkill & 2X512mb Kingston PC6400 
Hard DriveOptical DriveOSMonitor
WD 250GB SATA 7200RPM + Seagate 7200.10 80gb HP Lightscribe DVD rw Vista home premium 64 37' Westinghouse 1080P hdtv 
KeyboardPowerCaseMouse
Dell Quietkey Mad Dog 550 Antec Sonata II Logitech Trackball 
  hide details  
Reply
Does the trick
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo E6600 @3.08Ghz MSI P6n SLI 650i EVGA 8800GTS 320 2x1Gb GSkill & 2X512mb Kingston PC6400 
Hard DriveOptical DriveOSMonitor
WD 250GB SATA 7200RPM + Seagate 7200.10 80gb HP Lightscribe DVD rw Vista home premium 64 37' Westinghouse 1080P hdtv 
KeyboardPowerCaseMouse
Dell Quietkey Mad Dog 550 Antec Sonata II Logitech Trackball 
  hide details  
Reply
post #5 of 27
nicely done Chipp! very useful. I wonder if this WINE also support DSL (Damn Small Linux) because I can't seem to find anything about it.
PianoNoire
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q8200S DFI LANPARTY JR P45-T2RS Sparkle 9800GT SX98GT512D3L-NM 8GB RAM 
Hard DriveOSPowerCase
Western Digital Black 500GB Microsoft Windows 7 Enermax EG285SX-VB Piano Black Media Center MicroATX 
  hide details  
Reply
PianoNoire
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q8200S DFI LANPARTY JR P45-T2RS Sparkle 9800GT SX98GT512D3L-NM 8GB RAM 
Hard DriveOSPowerCase
Western Digital Black 500GB Microsoft Windows 7 Enermax EG285SX-VB Piano Black Media Center MicroATX 
  hide details  
Reply
post #6 of 27
Wine for Slackware 11:

First you need to update glibc from 2.3 to 2.5. You can download the three packages you need here.

ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz
ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz
ftp://slackware.oregonstate.edu/pub/...2.5-i486-2.tgz

Install them by typing: installpkg glibc-*.tgz
then you can install wine.
http://sourceforge.net/project/showf...ackage_id=6301
and install that with: installpkg wine*.tgz

Then you can type winecfg.
BlackMesa
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte EVGA 9800GT 8gb G.Skill 
Hard DriveOSKeyboard
60gb SSD + 3 2gb WD Archlinux + MINIX 3 Filco w/ blue cherries 
  hide details  
Reply
BlackMesa
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte EVGA 9800GT 8gb G.Skill 
Hard DriveOSKeyboard
60gb SSD + 3 2gb WD Archlinux + MINIX 3 Filco w/ blue cherries 
  hide details  
Reply
post #7 of 27
Quote:
Originally Posted by hereonyourown View Post
nicely done Chipp! very useful. I wonder if this WINE also support DSL (Damn Small Linux) because I can't seem to find anything about it.
To my knowledge, Wine is not distro-dependable. Do you know what kind of installer is used by DSL? Or what it is based off of?
    
CPUMotherboardGraphicsRAM
AMD Athlon X2 BE-2400 Biostar A770 eVGA GeForce 8800GS G.Skill 2x1GB DDR2-800 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320GB Lite-On CD/DVD Ubuntu 8.04 (No Windows) Asus VW223T 22" Wide 
KeyboardPowerCaseMouse
Mitsuko Green Silverstone ST400 400w Antec Three Hundred Logitech Trackman Wheel 
Mouse Pad
None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Athlon X2 BE-2400 Biostar A770 eVGA GeForce 8800GS G.Skill 2x1GB DDR2-800 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320GB Lite-On CD/DVD Ubuntu 8.04 (No Windows) Asus VW223T 22" Wide 
KeyboardPowerCaseMouse
Mitsuko Green Silverstone ST400 400w Antec Three Hundred Logitech Trackman Wheel 
Mouse Pad
None 
  hide details  
Reply
post #8 of 27
Thread Starter 
Quote:
Originally Posted by Wheezy Baby View Post
To my knowledge, Wine is not distro-dependable. Do you know what kind of installer is used by DSL? Or what it is based off of?
It's a Debian based distro, and DSL has included scripts to install APT, if you wanted to go that route.
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
morpheus
(16 items)
 
faith
(13 items)
 
CPUMotherboardGraphicsRAM
Core i5 2400 GIGABYTE GA-H67MA-UD2H-B3 XFX Radeon 7850 Double D G.Skill Ripjaw X 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3 Western Digital 640gb AAKS Zalman VF900 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell P2210H OCN Ducky 9004 FSP Group FSP450-60GHS(85)-R InWin Dragon Slayer mATX 
MouseAudio
Logitech G5 Digidesign MBox 2 
CPUMotherboardGraphicsRAM
2.4ghz P8600 Dell Quadro FX770M 2x2gb DDR2 800 
Hard DriveOptical DriveOSMonitor
160gb 7200 RPM HP DVD 1170 Windows 7 / Ubuntu 10.04 Dell P2210H 22" 1080p 
KeyboardMouse
Backlit Laptop Keyboard Logitec G5 
  hide details  
Reply
post #9 of 27
Just build it from source.
Magicbox
(17 items)
 
crapbox
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom X4 9650 DFI DK 790FX-M2RS HD4850  G.Skill DDR2 1000 
Hard DriveHard DriveOptical DriveCooling
Seagate Barracuda SATAII Wester Digital SATAII Samsung DVD-RW SH-S203N Artic Cooling Freezer Pro rev.13 
OSOSMonitorKeyboard
Kubuntu 64 bit  Windows 7 Ultimate 64bit Acer X193W+BD 19" WS LCD (1680x1050) Generic Keyboard (Black) 
PowerCaseMouseMouse Pad
OCZ GameXStream 700W Pixxo Gaming Case Generic optical mouse (Black) Some no-name thing I got at Fry's 
Audio
Audigy 2ZS 
CPUMotherboardGraphicsRAM
Sempron 3300+ HP stock mobo (laptop) 200M (IGP) 2x1GB PC3200 
Hard DriveOptical DriveOSMonitor
100GB ATA133 DVD/CDRW Kubuntu 32 bit 14.1" (1280x768) 
Power
6 cell 
  hide details  
Reply
Magicbox
(17 items)
 
crapbox
(13 items)
 
 
CPUMotherboardGraphicsRAM
Phenom X4 9650 DFI DK 790FX-M2RS HD4850  G.Skill DDR2 1000 
Hard DriveHard DriveOptical DriveCooling
Seagate Barracuda SATAII Wester Digital SATAII Samsung DVD-RW SH-S203N Artic Cooling Freezer Pro rev.13 
OSOSMonitorKeyboard
Kubuntu 64 bit  Windows 7 Ultimate 64bit Acer X193W+BD 19" WS LCD (1680x1050) Generic Keyboard (Black) 
PowerCaseMouseMouse Pad
OCZ GameXStream 700W Pixxo Gaming Case Generic optical mouse (Black) Some no-name thing I got at Fry's 
Audio
Audigy 2ZS 
CPUMotherboardGraphicsRAM
Sempron 3300+ HP stock mobo (laptop) 200M (IGP) 2x1GB PC3200 
Hard DriveOptical DriveOSMonitor
100GB ATA133 DVD/CDRW Kubuntu 32 bit 14.1" (1280x768) 
Power
6 cell 
  hide details  
Reply
post #10 of 27
Quote:
Originally Posted by Chipp View Post
It's a Debian based distro, and DSL has included scripts to install APT, if you wanted to go that route.
Yeah do that, much simpler and APT is very good.

Quote:
Originally Posted by Melcar View Post
Just build it from source.
Do this only if you are up to it.
    
CPUMotherboardGraphicsRAM
AMD Athlon X2 BE-2400 Biostar A770 eVGA GeForce 8800GS G.Skill 2x1GB DDR2-800 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320GB Lite-On CD/DVD Ubuntu 8.04 (No Windows) Asus VW223T 22" Wide 
KeyboardPowerCaseMouse
Mitsuko Green Silverstone ST400 400w Antec Three Hundred Logitech Trackman Wheel 
Mouse Pad
None 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Athlon X2 BE-2400 Biostar A770 eVGA GeForce 8800GS G.Skill 2x1GB DDR2-800 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320GB Lite-On CD/DVD Ubuntu 8.04 (No Windows) Asus VW223T 22" Wide 
KeyboardPowerCaseMouse
Mitsuko Green Silverstone ST400 400w Antec Three Hundred Logitech Trackman Wheel 
Mouse Pad
None 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [FAQ] Installing Wine