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:
Code: Select all
cd /mnt/hda2/wine-20050930
Code: Select all
./configure --prefix=/usr
Ordinarily with most programs the next step would be make. In the case of wine things are somewhat different. Type:
Code: Select all
make depend
Code: Select all
make
Code: Select all
make install
Save the directory you compiled wine in. When a new version of wine comes out, you can remove the old one by typing:
Code: Select all
make uninstall
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:
Code: Select all
winecfg
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:
Code: Select all
wine '/mnt/cdrom/Photoshop 7.0/Setup.exe'
Once installed I'd call it from the command line by typing:
Code: Select all
wine /mnt/home/photoshop/photoshop.exe
Code: Select all
! bin sh
wine /mnt/home/photoshop
Code: Select all
photoshop
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.
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.
Nathan