PDA

View Full Version : [SCRIPT] Kazaa Lite Installer (Wine)



probono
04-18-2003, 04:49 AM
I managed to get Kazaa lite to run on my system, simply by following the instructions from http://www.jbisbee.com/files/kazaa_howto.txt

http://www.image-hosting.net/images/messageboard/demo/kazaa.jpg

Now, I have started to write a script to automate this



# knx-kazaa 0.1
# downloads, installs and configures Kazaa lite (not pretty, but works...)
# make sure you have the neccessary licenses in order to use the .dlls
# by probono
# GPL

echo "Starting winesetup. Please click 2x 'Next' and then 'finish' in the following screens. The script will then continue."
winesetup

cd ~
wget ftp://ftp.freenet.de/pub/filepilot/windows/filesharing/kazaa_lite_202_english.exe

# move original dlls
cd ~/.wine/fake_windows/Windows/System
mv commctrl.dll commctrl.dll.orig
mv comctl32.dll comctl32.dll.orig
mv comdlg32.dll comdlg32.dll.orig
mv msvcrt.dll msvcrt.dll.orig
mv rasapi32.dll rasapi32.dll.orig
mv shdoclc.dll shdoclc.dll.orig
mv shdocvw.dll shdocvw.dll.orig
mv shlwapi.dll shlwapi.dll.orig
mv urlmon.dll urlmon.dll.orig
mv wininet.dll wininet.dll.orig

# Get required dlls to get KaZaA Lite to work
cd ~/.wine/fake_windows/Windows/System
wget http://www.drd.dyndns.org/softlib/win98se/commctrl.dll
wget http://www.drd.dyndns.org/softlib/win98se/comctl32.dll
wget http://www.drd.dyndns.org/softlib/win98se/comdlg32.dll
wget http://www.drd.dyndns.org/softlib/win98se/msvcrt.dll
wget http://www.drd.dyndns.org/softlib/win98se/rasapi32.dll
wget http://www.drd.dyndns.org/softlib/win98se/shdoclc.dll
wget http://www.drd.dyndns.org/softlib/win98se/shdocvw.dll
wget http://www.drd.dyndns.org/softlib/win98se/shlwapi.dll
wget http://www.drd.dyndns.org/softlib/win98se/urlmon.dll
wget http://www.drd.dyndns.org/softlib/win98se/wininet.dll

# edit wine config
cat >> ~/.wine/config <<EOF
[Version]
"Windows" = "win98"

[AppDefaults\\Kazaa.exe\\DllOverrides]
"*" = "builtin, native, so"
"commctrl" = "native"
"comctl32" = "builtin"
"shdoclc" = "native"
"shdocvw" = "native"
"shlwapi" = "native"
"comdlg32" = "native"
EOF

echo "Starting Kazaa Lite installation. Please click 7x 'Next' and then 'Install' and 'Finish' in the following screens."
wine kazaa_lite_202_english.exe

echo "Congratulations, you now can start Kazaa lite from the desktop icon!"


However, this crashes Wine when starting Kazaa. What am I doing wrong? As I said, everything works when I install it manually following the instructions from the link above.

Wirf
04-18-2003, 09:29 AM
The only thing i can think of, is this:



# edit wine config
cat >> ~/.wine/config <<EOF
[Version]
"Windows" = "win98"

[AppDefaults\\Kazaa.exe\\DllOverrides]
"*" = "builtin, native, so"
"commctrl" = "native"
"comctl32" = "builtin"
"shdoclc" = "native"
"shdocvw" = "native"
"shlwapi" = "native"
"comdlg32" = "native"
EOF

this piece of the script gets excecuted every time you run it and it doesn't look at what's allready in the config file.

I think that config file is messed up and causes wine to crash

probono
04-18-2003, 08:13 PM
this piece of the script gets excecuted every time you run itYou run the script only once to install the thing. After you have installed it, you dont't have to run the script again, you should then be able to use the Kazaa desktop icon. (As I said, when I do everything by hand as in the instructions, Kazaa runs fine!)

ignuu2
04-22-2003, 03:07 PM
Are you guys remastering the image? Or do you install on the HD? Are you simply running persistent homes? How do you install new software under Knoppix, execially kazaa.

thanks

Cy

probono
04-23-2003, 12:12 AM
I run this from CD, with USB stick

aay
05-16-2003, 03:51 AM
You might try this site: http://frankscorner.org/

It's a veritable treasure trove of help with wine. There is a forum as well. There is a link on the front page that gives some advice on how to get kazaa working under wine.

joharkwan
07-26-2003, 12:24 PM
I followed the instruction but I got this errors message when I run the wine:

.......
.......
Font metrics: 98.8% done
Font metrics: 98.9% done
Font metrics: 99.0% done
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 45 (X_OpenFont)
Value in failed request: 0x2000eac
Serial number of failed request: 11428
Current serial number in output stream: 11429
Wine failed with return code 1

Does anyone could know what the problem?

Thank you

szp
08-02-2003, 12:55 AM
well I just came across this forum by search with google for kazaa to work with wine when I read your message and as I faced not long time ago the same problem and asked the same question (except it was the knoppix french forum..sometimes it can be informative!!) I got a post few minutes after and I cannot tell you how much happy i was when i discovered it was working so great after this little trick!

All you've got to do is to copy from your windows font directory all items to your fake windows font directory and run wine once again.
Don't ask me why as I got gobsmacked why a hell version 3.1 on my hdd was working well while in fact 3.2 needs those fonts nevertheless that's all you've got to do.
:D

aay
08-02-2003, 03:25 AM
Sorry I didn't see this before, but szp is right. I had the font problem happen before with an app that run under WINE. I discovered on my own that copying Windows fonts into .wine/fake_windows/Windows/Fonts/ solves the problem. This must be a recent bug, because the app used to work fine.

bitey
09-03-2003, 05:46 AM
I succeeded using the new instructions at frankscorner for installing kazaa lite 2.4.2. The installed program finds and downloads files; I use xmms to play them back.

I'm running Knoppix from the cd with a usb memory stick.