Wine on puppy linux

(old)Puppy Linux Discussion Forum

I have just finished compiling the latest Wine for Puppy and am posting this tutorial for anyone who might want to give it a shot themselves. Wine is a very large and complicated program and is not really suited for dotpup or pupget, so for the time being compiling it yourself is your best option. Please note also that these instructione are for running Puppy from the live cd and the methods would have to change in order to apply to Puppy from usb or hd.

What you will need to get started

Puppy 1.0.5
usr_devx.sfs in the same location as your pupfile
a seperate Linux partition for the build with at least 1.5gb of free space
increase the size of your pupfile by at least 512mb (seriously!)
the latest source tarball of wine available here:
http://sourceforge.net/project/showfile . e_id=77449

The version I used is the latest build as of this writing-Wine-20050930

Compiling Wine

Extract the wine source tarball to your Linux partition using whatever method you prefer, whether that be command line or gui. You will be building wine HERE, NOT inside pup001. Wine is too large to be built inside pup001.

Wine has a script that will automatically build and install Wine for you. Don’t use it, as it will install everything in the wrong place for Puppy and won’t run. The libraries would end up in /usr/local/lib and puppy is not set up to look there.

Open a terminal an change to the directory that the wine source is located in. If I had extracted it to /mnt/hda2, I’d type:

—prefix=usr tells the compiler to put everything into /usr instead of /usr/local

Ordinarily with most programs the next step would be make. In the case of wine things are somewhat different. Type:

As long as that gives you no errors then Wine has compiled successfully. The last step is to install the binaries. Type:

It is very important that your pupfile has been resized to accomodate Wine before you7 do this. Otherwise you will run out of room before wine is even installed all of the way. I reccomend you increase it’s size by at least 512mb, which should give you enough room for wine and for some of the programs that you want to install.

Читайте также:  Как сделать выполняемый файл в linux

Save the directory you compiled wine in. When a new version of wine comes out, you can remove the old one by typing:

You can then compile and install the new version.

Configuring Wine

After you have installed Wine, it must be configured before it can be used. There are several ways of doing this.

Winetools is an excellent gui tool that will automatically install many popular programs. It also has the benefit of being open source and free. Unfortunately, winetools can not be run as root. I’ve tried using it as Spot but there are just too many hassles.

Winesetuptk is a little TK gui that will do a basic configuration. It has the same drawbacks as winetools but very few strengths.

The best way to setup Wine in our case is by using the included tools. Run, from the command line:

The first time winecfg runs it will create a directory .wine in /root. It will also setup a fake windows drive inside .wine. It is neccessary to trick many Windows apps into thinking they are being run on a Windows machine or they will refuse to run. After these things are done you will get a neet little gui window where you can set lots of options. I’ll come back to that later.

One additional step in setting up wine involves creating a config file inside .wine. You can generate one manually if you wish, but I recomend you try this one (especially if you’re new to Wine):
http://ds80-237-203-29.dedicated.hosteu . config.212
Download it to your .wine directory and rename it to config. This is a pretty good way to get started.

Installing and running Windows software

Once you have all of this done you will want to install your first Windows program. The way to use wine to run a Windows executable is done on the command line. I will give Photoshop as an example. I have a cd with Photoshop7.0, which is mounted at /mnt/cdrom. I’ll type:

wine '/mnt/cdrom/Photoshop 7.0/Setup.exe'

In this case the quotes are important, as Windows allows spaces in file and folder names. This version of Photoshop is one of the programs that has been well tested under Wine, so the installation wizard will come up and run much as it does with Windows. Some windows will pop up in wierd places, be incomplete, or possibly illegible. This is to be expected, but on the whole the installation should go smoothly.

Читайте также:  Avr isp usb linux

Once installed I’d call it from the command line by typing:

wine /mnt/home/photoshop/photoshop.exe

/mnt/home/photoshop is the directory where I chose to install Photoshop under during the installation. Most programs will default to drive C under Program Files, which is in this case /root/.wine/drive_c/Program Files. However, most programs will let you decide where to put them. The command to run your program can be made into a script, making the job easier. I’d open a rox window and navigate to /root/my-applications/bin. Then right click and choose from the menu new/script. Choose a name for your script, in this case photoshop. Open the script and add the appropriate lines.

! bin sh wine /mnt/home/photoshop

Since /root/my-applications/bin is in your path, you can now call Photoshop from the command line simply by typing:

This script can also be dragged to the desktop where you can now simply click to open it.

You may find that some programs will simply fail to open. In that case you can use the winelauncher command in place of simply wine to get a debugging output. Other programs will run, but they will run erratically or have frequent crashes. This is where winecfg comes in again. Some programs don’t integrate well into your desktop (Photoshop is notorious for this). You can use winecfg to give them their own virtual windows desktop and they will then behave better. Sometimes this is enought to make a program that is crashing start to run smoothly. You will also want to make sure that the sound is set to the correct module, as wine defaults to Alsa which is not in Puppy. Another thing to try if you are having problems with a particular program is to change the version of windows that wine emulates (I know, Wine Is Not an Emulator). Some programs will not even allow you to install unless Wine reports itself as WindowsXP, wile others will run better as Windows98. If you are having problems with fonts that look messy, or don’t display at all, then install the MS core fonts. I’ll provide a link here once I track it down.

Читайте также:  Команда настроек сети linux

I recomend that you stick to programs known to work at first. Some programs that install relatively easily are Photoshop7.0, MS office (various versions), and Macromedia Dreamweaver (which won’t install unless you set your Windows version to WindowsXP). Internet Explorer can be installed and it’s quite handy to have it available for web development so that you can test how your pages will display in the worlds most common browser. However, it’s one of the harder programs to get running.

Many will ask the question of whether it’s worth it to go through all of this in order to run a few Windows apps. Just learn to use the native Linux alternatives! In most regards I agree wholeheartedly with that assumtion. However, if you can’t live without some certain program then it may very well be woth it to you. In that case I’d say this. WindowsXP takes up several GB’s of space on your hard drive, runs slowly in many cases, and is a huge security risk unless you patch it dailly. Compare that to 53mb for the Puppy live cd plus around 400mb for wine. You now have a rock solid Linux system that is much more difficult to exploit, will run circles around ANY version of Windows, and now has the ability to run many of the same programs.

You may prefer Puppy without Wine and for good reason, but Puppy with Wine is much nicer than Windows. Plus, Wine decreases the need for Windows promoting competition. The more people run Wine, the more MS will have to start being nice to their customers and the more they will realize that they will have to play fair. Bit by bit the Monopoly is being torn down. Plus, I get a real kick out of running Internet Explorer using a tiny Linux Distro. The cuteness factor goes up even higher.

Have fun and good luck. If you have any questions I’ll try to provide some answers. Keep in mind that I’m not an expert, just persistent.

Источник

Оцените статью
Adblock
detector