HOWTO qemu-puppy-xampp (QPX) in one single thumbdrive

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
azlanar
Posts: 15
Joined: Sun 17 Jun 2007, 09:18
Location: Brickfields, KL....
Contact:

HOWTO qemu-puppy-xampp (QPX) in one single thumbdrive

#1 Post by azlanar »

Read my documentation below

==============================================
Howto qemu-puppy-xampp (QPX) in one single thumbdrive.

Written by azlanar, http://benci.tapi.rindu.net


The steps below was tested on windos XP:

1. You may need to install winrar in your windos. Download it from http://www.oldversion.com/program.php?n=winrar

2. Go to URL http://fabrice.bellard.free.fr/qemu/download.html

3. Create one directory on your windos desktop, eg QPX

4. Download the precompiled qemu version for windows at this link http://www.h7.dion.ne.jp/~qemu-win/ . You can directly download it at this link http://www.h6.dion.ne.jp/~kazuw/qemu-wi ... indows.zip . Extract it into your QPX directory.

5. Download qemu accelerator module at http://fabrice.bellard.free.fr/qemu/kqe ... e11.tar.gz , extract it to WHATEVER directory in your windos. Copy the file kqemu.inf and kqemu.sys into your QPX directory

6. Download the iso file of Partition Logic at this link http://partitionlogic.org.uk/download/index.html , or just download the zip file from this link http://visopsys.org/files/partlogic/par ... 68-iso.zip , extract it to WHATEVER directory in your windos. Copy the file partlogic-0.68.iso into your QPX directory.

7. Download the latest-puppy.iso into your QPX directory. Where to download it? Damn!!, do I need to to teach you howto download this iso?

8. Create a file PL.bat in your QPX directory. You can name it to whatever name. I have 2GB RAM, so i put 1024 in PL.bat. You can change it whatever number, as long as it meets your RAM requirement. Put the following lines into PL.bat
--------------------------------------
net start kqemu
qemu -L . -m 1024 -cdrom partlogic-0.68.iso -boot d -hda \\.\PhysicalDrive1
--------------------------------------

9. Create a file Puppy.bat in your QPX directory or name it to your desired filename. In this Puppy.bat , put the following lines:
--------------------------------------
net start kqemu
qemu -L . -m 1024 -cdrom puppy-2.16.1-seamonkey-fulldrivers.iso -append root=/dev/ram0 -localtime -soundhw all -boot d -hda \\.\PhysicalDrive0 -hdb \\.\PhysicalDrive1
--------------------------------------

10. Now, open your QPX directory. Right click on kqemu.inf and install. You have to install this, coz xampp need it?

11. Insert your USB-thumbdrive into you computer.

12. Run the PL.bat. This step will run the iso of Partition Logic in Qemu enviroment. In this stage, you are going to partition your thumbdrive. Heyy! be careful at this stage. Coz you can accidentaly delete your harddisk partition!

Well, you may curious why i put PhysicalDrive1 in PL.bat? I also dunno much about this as i'm not windos expert. You can change it to PhysicalDrive2 or 3 or 4 or 5 or whatever number you want, as long as the Partition Logic can detect your thumbdrive.

By using Partition Logic, create two partitions for your thumbdrive. I have 512MB, so I assigned 120MB to NTFS/FAT and the rest is for my linux ext2.

13. Tired to follow the above steps? Hehee... unplug your thumbdrive, shutdown your computer and go sleep for a while (YOU ARE REQUIRED TO FOLLOW THIS STEPS! )

14. Fresh already huh? Now, turn on your computer, insert your thumbdrive and copy your QPX directory into your NTFS/FAT partition in your thumdrive.

15. Explore your thumbdrive, go to your QPX directory in your thumbdrive and run the Puppy.bat. When you are in the puppy, click on Console, and type this command "fdisk -l" , You should see both of your two partitions in your thumbdrive.
Result of my fdisk -l are as below:
--------------------------------------------------------------
Disk /dev/hda: 80.0 GB, 80023749120 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 9728 57657285 f W95 Ext'd (LBA)
/dev/hda5 2551 5865 26627706 b W95 FAT32
/dev/hda6 5866 5878 104391 83 Linux
/dev/hda7 5879 9728 30925093+ 8e Linux LVM

Disk /dev/hdb: 509 MB, 509967360 bytes
16 heads, 32 sectors/track, 1945 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 504 129008 7 HPFS/NTFS
/dev/hdb2 505 1944 368640 83 Linux
--------------------------------------------------------------

16. Using console, type this command "mount /dev/hdb2 /mnt/data". If you cant mount it, you have to change the PhysicalDrive1 in Puppy.bat

17. cd to directory /mnt/data and create a file lampp.sh , you can name it to whatever name. The purpose of this script is to start lampp package. Put the following lines into this script:
--------------------------------------
#!/bin/bash
echo "Written by azlanar http://benci.tapi.rindu.net"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Linking /mnt/data to /opt"
ln -s /mnt/data/opt /opt
echo "Trying to start lampp package..."
/opt/lampp/lampp start
echo ""
echo "DONE"
--------------------------------------
Dont forget to chmod 755 for this script. Type "chmod 755 lampp.sh"

18. Open your seamonkey browser and download the latest xammp and save it into /mnt/data.

19. Create a directory "opt" in your /mnt/data. You can type "mkdir -p /mnt/data/opt".

20. Now extract the latest xammp package by typing "tar -zxvf xampp-linux-1.6.2.tar.gz -C /mnt/data/opt". Finished? Heyy the lampp is installed in your thumbdrive!!

21. Run the script lampp.sh

22. Heyy... you love this puppy huh???.

23. Now unplug your thumbdrive and insert it to other computer that running windosXP. Explore your thumbdrive. Open your QPX directory. Rightclick on kqemu.inf, install it. And click on Puppy.bat. In puppy, open your console and type fdisk -l. If u can see your thumbdrive partitions, mount it "mount /dev/hdb2 /mnt/data". Then run your lampp.sh that u've created before.

24. Now do whatever apache-php-mysql development in your thumbdrive. Hehee.... thank you.

==============================================


You may want to read my previous post http://www.murga-linux.com/puppy/viewtopic.php?t=19122 on how to run puppy on linux.

Attachment below is the list of the files in my QPX directory for your reference.

TQ.

regards,
-- azlanar
Attachments
QPX.jpg
The list of the files in my QPX directory
(151.77 KiB) Downloaded 1321 times

User avatar
Erik Veenstra
Posts: 107
Joined: Wed 27 Jul 2005, 21:06
Location: NL
Contact:

#2 Post by Erik Veenstra »

Since it has the name QEMU-Puppy in it, I wonder: what's the
relation to QEMU-Puppy [1]?

Thanks.

gegroet,
Erik V. - http://www.erikveen.dds.nl/

[1] http://www.erikveen.dds.nl/qemupuppy/index.html

Bruce B

#3 Post by Bruce B »

I don't see why not just install XAMPP for Windows.

azlanar
Posts: 15
Joined: Sun 17 Jun 2007, 09:18
Location: Brickfields, KL....
Contact:

#4 Post by azlanar »

Erik,

I'm sorry. I know that u already produce a documentation of QEMU-Puppy[1].
I have no intention to 'replace' your QEMU-Puppy[1]. Yours is great.

Well, actually i just wanna share on how to create partition in our thumbdrive and how to do web development with apache,php & mysql in our thumbdrive by using Qemu, Puppy Linux (with the latest iso) and Xampp.

Xampp doesn't work with FAT. So the solution for this is the create two partitions in our thumbdrive (FAT & linux).



Bruce,
This is a portable solution where we don't need to install xampp for each PC. Just bring our thumbdrive. Letsay you have 20 PCs in your campus, 2 PCs at home and 10 PCs in the office, are you going to install xampp for every PC?


regards,
-- azlanar

Bruce B

#5 Post by Bruce B »

azlanar wrote:Erik,

Xampp doesn't work with FAT. So the solution for this is the create two partitions in our thumbdrive (FAT & linux).

Bruce,
This is a portable solution where we don't need to install xampp for each PC. Just bring our thumbdrive. Letsay you have 20 PCs in your campus, 2 PCs at home and 10 PCs in the office, are you going to install xampp for every PC?


regards,
-- azlanar
Same thing. 20 PCs on campus, 10 PCs in office, 2 PCs at home and one thumb drive.

BTW, Windows XAMPP works on FAT

No big deal, apparently your only use for XAMPP is development purposes anyway.

azlanar
Posts: 15
Joined: Sun 17 Jun 2007, 09:18
Location: Brickfields, KL....
Contact:

#6 Post by azlanar »

Hmmm... the lab admin at my campus don't allow the student to install any package (including xampp). So insert your thumbdrive (with the above solution), run Puppy linux in Qemu enviroment. Then mount the linux partition in your thumbdrive to the puppy linux. Your xampp is already there, so just run it.

> BTW, Windows XAMPP works on FAT
Yes you are right, Windows XAMPP works on FAT, .... but Linux XAMPP NO.
You can't even create links file in FAT. MySQL daemon also can't write the pid process to the FAT partition.

> No big deal, apparently your only use for XAMPP is development purposes anyway.
Yeap, as i mention in my topic = howto qemu-puppy-apache-php-mysql in your thumbdrive

Post Reply