Find it
Custom Search

Tuesday, October 25, 2005

Installing WINE

Normally there will be no reason to install a Windows application on Linux because most Windows application already have a Linux counterpart.

But if you really want to port your favorite Windows software that is not available in Linux yet (in my case, its Flash MX), W.I.N.E is the way to go.

WINE is a Linux software that allows you to run Windows application in Linux.

It's official website is at http://www.winehq.com.

Installing Wine

To install WINE on Kubuntu:
1. Open Adept package manager
2. Type wine on the quick filter text box
3. Select wine from the list
4. Right click
5. Select install package
6. Then click on Commit changes in the toolbar

Testing WINE

To test WINE we first need to download a Windows application
1. Open your browser and go to http://www.winzip.com/downwzeval.htm

2. Download the software.

3. Then open the Linux Console / Terminal

4. Locate the program you have just downloaded

Lets assume it is just in your home directory

5. To install Winzip type:
$ wine winzip90.exe

6. Your program will display something like:
wine: creating configuration directory '/home/anthony/.wine'...
wine: '/home/anthony/.wine' created successfully.

This means that it is creating our emulated Windows directory

7. Install the software as you would normally do in Windows

8. Go back to the Linux Console and Type
$ winecfg






9. Click on the Add Application button

10. Choose Program Files

11. Locate the winzip executable

12. Click open then click Ok.

You have just successfully added the program to your menu

Running the Program:

1. Click on K in the menubar

2. Click wine

3. Click on winzip



Congratulations! You just ran your first Windows program in Linux.

27 comments:

Anonymous said...

There are literally hundreds of thousands of Windows kernel and windowing API. Iff a program does not require these unsupported APIs, no special hardware tweaks, no need for registry during runtime, WINE will be very useful.

cheers

Temujin said...

allan,

Try this one.

go to the linux console.

then type:

$ wine "C:\\Program Files\\Desktop Taipei\\dtaipei.exe"

I hope that helps.

With regards to WINE you can email me at mrcoolwong@yahoo.com or feel free to post your question here. You can refer to http://frankscorner.org/index.php for some good tips and also lookup http://appdb.winehq.org/appbrowse.php
to find out which Windows apps are okay.

Thanks for visiting.

-Anthony

Anonymous said...

How do you install wine if it doesn't show up in adept? That's the boat I'm currently in with a fresh install of Kubuntu.

Anonymous said...

Try opening Konsole (or whatever console thingy you use) and type in: sudo apt-get install wine.

I've _just_ installed Kubuntu and it worked for me.

failing that google ubuntuforums.org

Anonymous said...

To quote you; "Normally there will be no reason to install a Windows application on Linux because most Windows application already have a Linux counterpart". Thousands of commercially-produced W$ applications are not available for LINUX (and won't be until it becomes profitable)and millions of people use them. And in my experience so far, the LINUX apps that are out there are pretty buggy because there is no one actually controlling who does what. Forums are loaded with suggestions on alternative apps to use because the distro ones or the ones installed from repositories don't work as advertised.
Having said that, I should say that I find KUBUNTU the best of the distros of the 7 that I have tried and I will definitely try WINE to run W$ apps not available or not equal to those I am familiar with using. Thank God that there is a site dedicated to the WINE app and I don't have to rely upon hundreds of user posts in forums.
That's my 2-cents worth anyway.

James Muscat said...

Re WINE on Kubuntu: If it doesn't show in the package manager of your choice, add this line to your sources.list file (and don't forget to update your package lists):

deb http://wine.sourceforge.net/apt/ binary/

Anonymous said...

Hi,
I keep having a problem trying to install ie6:
fixme:advapi:CheckTokenMembership ((nil) 0x7fd436d8 0x7fb8fd78) stub!
fixme:advapi:DecryptFileA "C:\\windows\\temp\\IXP000.TMP\\" 00000000
fixme:advpack:NeedReboot (0): stub
fixme:richedit:RichEditANSIWndProc WM_SETFONT: stub
err:ole:CoGetClassObject class {6e449686-c509-11cf-aafa-00aa00b6015c} not registered
err:ole:create_server class {6e449686-c509-11cf-aafa-00aa00b6015c} not registered
err:ole:CoGetClassObject no class object {6e449686-c509-11cf-aafa-00aa00b6015c} could be created for context 0x5

and Windows Media Player:
err:ole:CoGetClassObject class {cfc399af-d876-11d0-9c10-00c04fc99c8e} not registered
err:ole:CoGetClassObject no class object {cfc399af-d876-11d0-9c10-00c04fc99c8e} could be created for context 0x1
err:ole:CoGetClassObject class {cfc399af-d876-11d0-9c10-00c04fc99c8e} not registered
err:ole:CoGetClassObject no class object {cfc399af-d876-11d0-9c10-00c04fc99c8e} could be created for context 0x1
fixme:setupapi:SetupCopyOEMInfW stub: source L"C:\\windows\\temp\\IXP000.TMP\\wmexpack.inf" location L"c:\\windows\\RegisteredPackages\\{CAC24AF7-5447-4F19-9FA6-F6E6E69D395E}" ...

Any ideas???

Magus said...

Why would anyone want to install Internet Explorer in Linux??? I don't even use ie on Windows!!

Anonymous said...

Nobody wants to install IE, Magus, but some applications require it.

Let's here about those buggy apps Anonymous... troll.

Anonymous said...

Hi.

I am very glad to tell everybody that I am running Origin 7.5 without ANY glitch (at least none that I noticed) in my Kubuntu 6.06.1 with the latest Wine release (0.9.19)

Months ago I tried Breezy Badger with Origin 7.0 and it was frustrating.
I was about to check CrossOver but after
upgrading Kubuntu and Wine, I decided to
give another shot. Well, it works.
All samples works as well my personal
files (there are lots of odd messages
on terminal but I did not care)

Have fun.

Anonymous said...

Hey Anthony

Hello,

Your blog is really useful. I recently started my own Kubuntu blog - really not even 101 - its for really noobie people, like me. Please exchange links with me, please, please, please. Anyway, if you don't wanna I will still post a link to this blog on my crappy blog.

Thanks!

http://jolly-penguin.blogspot.com

Temujin said...

Danny,

Request granted. I would love to exchange link with anybody dedicated to teaching people about linux.

-Anthony

Anonymous said...

If you are using *buntu, there is a link on their website that tells you how to add their server to your repository list so you can install the latest version of wine from Adept/Synaptic just like normal, but you're actually getting it from them so you get updates as soon as they are released.

Anonymous said...

very much disappointed to find that I cud nt install Firefox. It gave me:
dutta@freemind:~/Desktop$ wine FIREFOX_.exe
fixme:win:SetWindowTextW setting text L"Extracting" of other process window 0x10024 should not use SendMessage
fixme:win:SetWindowTextA setting text "Mozilla Firefox 2 Beta 2 Setup" of other process window (nil) should not use SendMessage
fixme:win:SetWindowTextA setting text "Mozilla Firefox 2 Beta 2 Setup" of other process window (nil) should not use SendMessage
wine: Unhandled page fault on read access to 0x0000000c at address 0x7e3e7540 (thread 0016), starting debugger...
Modules:
Cannot get info on module while no process is loaded
Threads:
process tid prio (all id:s are in hex)
00000015 (D) (null)
00000016 0
0000000d
0000000f 0
0000000e 0
00000008
00000009 0

Any clue?

Jerinux said...

I've just installed kubuntu 6.06? Lts version,but the adept package manager dont have the WINE now how am i going to remove winxp if i dont have the full potential of linux with wine? winehq dont have kubuntu version of wine..and also when i play vcds on kubuntu there's no sound.ALSA is great on DVDs.Help pls. on kubuntu wine!
konsole cant help either (sudo apt-get install wine.)I dont have an internet connection,so im just downloading from a cybercafe.
Thnks!

Anonymous said...

patrick@Kubuntu:~$ sudo apt-get install wine
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package wine has no installation candidate
patrick@Kubuntu:~$

Anonymous said...

I have the same problem as Patrick. Is there a solution?

Anonymous said...

Please help me! I'm the same problem installing wine under kubuntu!

Anonymous said...

try http://winehq.com/ for instructions

Michael said...

this page has instructions that work perfectly on my amd64 kubuntu feisty box:

http://www.winehq.org/site/download-deb

Iceman said...

I am kind of a novice so please excuse me if this question is too dumb...but what is fiesty box?

and btw thnx for that post

Temujin said...

Hello Iceman. Feisty Fawn is the name given to Kubuntu 7.04. As was Breezy Bagder was the name given to Kubuntu 5.01

Oh and by the way, I believe that people who ask dumb questions are wiser than people who pretend to know something they don't. :)

sdjordjevic said...

Thank you for the whole walkthrough. It is really handy for all the newcomers as myself.
Unforunatelly i have one small problem. At the end i should click on WINE and than chose to open WINZIP.
Well, I have no WINE on my computer.
I do have WINE CONFIG, WINE NOTEBOOK, WINEREGEDIT, WINE FILE, WINE HELP BROWSER and WINE UNINSTALLER but no WINE. SO what is happening is that i am able to do the install of the WINZIP but later on I can not find it anymore.
Did I have missed something?
Thank you

Temujin said...

Hi. I have another post regarding Using WINE. You can find it at http://kubuntu101.blogspot.com/2005/
10/more-facts-about-using-wine.html

If the instructions there does not work, let me know.

I will see what I can do.

Goodluck! :)

Anonymous said...

I have 6.06 LTS too. But it's way impossible to install Wine into it. All, what are or is in those lists, I CAN'T! I am so newbie to Linux that I can't even install Linux FireFox 3.0 from web! I just download the pack, trying to "install" it, but ERRORS! I am not trying to say, that Kubuntu is bad. This is better than Windows. But harder.

Anonymous said...

Password:
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
wine: Depends: libasound2 (> 1.0.14) but 1.0.10-2ubuntu4 is to be installed
Depends: libc6 (>= 2.4) but 2.3.6-0ubuntu20.5 is to be installed
Depends: libgphoto2-2 (>= 2.4.0) but 2.1.6-5.2ubuntu8 is to be installed
Depends: libgphoto2-port0 (>= 2.4.0) but 2.1.6-5.2ubuntu8 is to be installed
Depends: liblcms1 (>= 1.15-1) but 1.13-1 is to be installed
Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Depends: libxml2 (>= 2.6.27) but 2.6.24.dfsg-1ubuntu1 is to be installed
Depends: libxslt1.1 (>= 1.1.20) but 1.1.15-1ubuntu1 is to be installed
PreDepends: dpkg (>= 1.14.12ubuntu3) but 1.13.11ubuntu6 is to be installed
E: Broken packages
ANY IDEAS???

Anonymous said...

i have the following problem any one help pleae
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyApplication tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.