*** UPDATE 19-07-2006 (UK DATE SYSTEM ) This howto was originally written for breezy badger, I can now confirm it also works on dapper drake
*** UPDATE 15-12-2008 Updated for Intrepid Ibex, and fixed dead winetools link (thanks to Murdoc_of_puts post 485)
After a lot of searching here there and every where I finally know how to get wine working on my machine anyway, every time without fail, and as there is a lack of how to's on wine, I thought i would give the Ubuntu community something back. This is my first how to, so don't be to harsh if it dosen't work for you.
First we get the wine0.95.deb from winehq http://kent.dl.sourceforge.net/sourc...ehq-1_i386.deb
or if you want to open a terminal (alt+F2 then type gnome-terminal then enter) to download it use this command
Code:
wget http://kent.dl.sourceforge.net/sourceforge/wine/wine_0.9.5-winehq-1_i386.deb
In case your wondering why we are not downloading the latest version of wine its because internet explorer install breaks on newer versions and you will probably need internet explorer to get other programs working, but we will update wine after, so don't worry
Right so we got our Wine .deb so lets unpackage it in our terminal dont forget to change directory to where you downloaded wine (if you used the above command you should already be there)
Code:
sudo dpkg -i wine*.deb
ok, so we no have wine, but how do i use it, set up a C:/ D:/ etc i hear you cry, let alone install anything, well here come the great little app called winetools
I have now learned that winetools has at least one dependancy, pointed out by replies on this forum, here is the command for installing it (added 1st April 06, after 12 not a april fool btw)
Code:
sudo apt-get install libgtk1.2
wine tools can be downloaded here
or if your still with me in the good old terminal you can use this command
Code:
wget http://www.sfr-fresh.com/linux/misc/winetools-0.9jo-III.tar.gz
ok, so we got this great tool no we need to unpack it
and install it
Code:
cd winetools*
sudo ./install
Done so lets start this wonderfull tool with this
you will get loads of messages popup about not being configured etc, just keep clicking ok oh and that you should also own a copy of windows to use some of these tools. Yeah Yeah on with the plot.
You should finally get to a menu
So first we go for base setup, then create a fake windows drive
Next winetools will find your cdrom for you so it can set it up for wine
Followed by a username and organization, I Just leave theese as is
After a few fake windows restarts later we are told fake drive completed. Yippee
We are back to the base setup menu, now select DCOM98 and then go down the list installing all the programs on the list, obvioulsy only do internet explorer in your language, the reason we have left the Arial font out is because the link to this is dead, but we will sort this later. Just click next and ok on everything, im sure you know how window installers work.
Ok so we have finished the first list, hit the main menu button to get us back to the start.
next click install windows system software then click ok
again install everything thats in the list from top to bottom in your own language, and install visual basic 5 & 6
ok, so now we gotta sort out theese fonts as the links that winetools uses to retrieve them is dead, so click main menu followed by exit to leave winetools
now then back to our friend the terminal
ok so first we need to make and move to the directory where winetools would have downloaded the fonts
Code:
mkdir ~/winetools/fonts
cd ~/winetools/fonts
you might get an error saying the file exsits, if you do don't worry just continue
Next we download the fonts from a link that is still around at the time of writing this, you might want to copy and paste this one into your terminal
Code:
wget http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/arial32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/arialb32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/comic32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/courie32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/georgi32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/impact32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/times32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/trebuc32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/verdan32.exe && wget http://kent.dl.sourceforge.net/sourceforge/corefonts/webdin32.exe
Ok, so we now have the fonts downloaded, next back to winetools to install them
Select base setup again then install true type font arial
Next main menu then select Install Microsoft true type corefonts, yet again go all the way down the list until you have installed all the fonts.
done that, so main menu and exit winetools
Ok so we should now have a working wine, with internet explorer installed and windows media player 6 hopefully :s
we should be able to start Internet Explorer with the following
Code:
wine "/home/USERNAME/.wine/c/Program Files/Internet Explorer/IEXPLORE.EXE"
Dont forget to change USERNAME to your own username
With any luck your using internet explorer now
although we dont want to have to write this in everytime we want to start internet explorer, so right click the desktop and create a launcher and paste the previous code in there for a desktop shortcut, or make a menu shortcut which ever you prefer.
Here is the code for Outlook and Windows Media Player
Code:
wine "/home/USERNAME/.wine/c/Program Files/Outlook Express/msimn.exe"
and
Code:
wine "/home/USERNAME/.wine/c/Program Files/Windows Media Player/mplayer2.exe"
and really thats about it, you can also navigate using your file browser and double click .exe files and wine will launch them, like installers for programs and so on, then its just a case of finding the .exe that starts the program and making your custom launcher for it, your wine c: should always be found in /home/USERNAME/.wine/c. As long as know a bit about the windows file layout you should have no problem in finding them, always remember when creating your launchers that linux is case sensitive, so dont forget the caps.
Two last things to do
Firstly updating wine 0.95 to the latest version, remember we had to use 0.95 because internet explorer will not install on newer versions, although this maybe fixed now. There is no need to panic though, we just add a wine repository to our sources.list like this.
Code:
sudo gedit /etc/apt/sources.list
then add this line to the bottom of the file
http://www.openoffice.de/wt/winetools-0.9jo-III.tar.gz
then save your sources.list and run the following in terminal to update your wine installation
Code:
sudo apt-get update
sudo apt-get upgrade
This should update wine to the latest version released by wineHQ, and will always be updated with the rest of your updates when a new version is released, Good hey
The second thing to do is to tell you about the winecfg command
This little panel allows you to change the default wine settings, like which windows version to try to act as, and what builtin and native dll's to use, I would suggest leaving the global settings to windows98 as this seems to work best, but you can change the windows version for individual .exe's if a program only works on a certain version of windows, if a program dosen't quite work right this is the place to go, although the full usage of winecfg is a bit beyond the scope of this howto, you should get familiar with it quite soon
If you have problems with a certain program i find it always pays to just put in a google search "program name winehq" and you will usually find the program in the winehq database and find out what success people have had at getting the program to work and what they did to achieve it, very helpfull
One last point, if you use any programs that reside in the windows system tray then the system tray icons do not show up, a workaround is to open up a kde application that uses a tray icon and then the windows tray icons will appear, i.e i have amarok start when gnome starts, kalarm is a good one to use if you dont use amarok, even after you quit your kde program the windows icons will remain. I believe this shouldn't be a problem for KDE users.
Anyway hope this was some help to a least one person out there, and I will probably add a MSN Messenger HOWTO this as soon as i get the time, let me know how you get on, In the meantime happy wineing
Bookmarks