T.Ma.X.
Group: Members
Posts: 5
Joined: June 2006 |
|
Posted: Aug. 01 2006,06:33 |
|
Right here:
Creation of "DamnSmallVirtualMachine" (Pre Alpha) ------------------------------------ used: a vmware virtual machine with: 256 MB Ram SCSI HDD 1 GB (ext3) SCSI HDD 1 GB (swap) dsl-3.0.1.iso to boot directly from the iso-file bridged Ethernet and FileZilla Server for getting the created iso from virtual to my windows machine.. (shame on me) Router with Internet Access..
#let's start: #boot up Virtual Machine with the dsl iso...
#quit fluxbox
#make ext3 with fdisk and so on... (/dev/sda1)
#make swap: sudo fdisk /dev/sdb #Linux Swap Code 82 sudo mkswap -c -v1 /dev/sdb
sudo mount /dev/sda1 /mnt/sda1 sudo swapon /dev/sdb sudo mkdir /mnt/sda1/KNOPPIX sudo mkdir /mnt/sda1/newcd
#Cloop the cdrom to make a copy of the files sudo mkdir /mnt/cloop sudo mount -o ro,loop=/dev/cloop1 /cdrom/KNOPPIX/KNOPPIX /mnt/cloop
sudo cp -Rp /mnt/cloop/* /mnt/sda1/KNOPPIX/ sudo cp -Rp /KNOPPIX/.bash_profile /mnt/sda1/KNOPPIX/ sudo umount /mnt/cloop
sudo mkdir /mnt/sda1/newcd sudo mkdir /mnt/sda1/newcd/KNOPPIX cp -Rp /cdrom/boot /mnt/sda1/newcd/ cp /cdrom/index.html /mnt/sda1/newcd/ cp -Rp /cdrom/lost+found /mnt/sda1/newcd/lost+found
#lets rock: sudo mount --bind /dev /mnt/sda1/KNOPPIX/dev sudo chroot /mnt/sda1/KNOPPIX mount -t proc /proc proc netcardconfig #(DHCP not working???But static IP does?) su dsl sudo mount /dev/sda1 /mnt/test
mkdir /mnt/sda1/plugins #(get the dsl files (dsl-dpkg.dsl, gcc1.dsl, kernelsource.dsl) here: # ftp://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/system cd /mnt/test/plugins mydsl-load dsl-dpkg.dsl sudo apt-get update
sudo apt-get install gcc #(installs binutils2.12.90.0.1-4_i385.deb,cpp-2.95.4-11woody1__i386.deb, gcc-2.95.4-11woody1_i386.deb from ftp.us.debian.org oldstable/main) #Ignore Warning Message mydsl-load gcc1.dsl mydsl-load kernelsource.dsl
sudo rm /dev/parport0 /dev/parport1 /dev/parport2 #(uncompress vmware-player.tar.gz to sda1) #cd to uncompressed vmware-player.tar.gz dir sudo ./vmware-install.pl #Standard Install #(PGDown for faster License Agreement) #ready... #?where is vmmon? In /dev?? Sure it is! Great!
#clean up the crap... sudo apt-get remove gcc sudo rm -rf /usr/src/* sudo apt-get clean sudo apt-get autoclean
exit #(user dsl ctrl+d)
#Remove Progs to make it smaller: sudo find * -name firefox | xargs rm -rf sudo find * -name siag | xargs rm -rf sudo find * -name sylpheed | xargs rm -rf sudo find * -name Ted | xargs rm -rf sudo find * -name xpaint | xargs rm -rf sudo find * -name xpdf | xargs rm -rf #Any hints what we could remove too?
#Modify/Delete Shortcuts in /mnt/test/KNOPPIX/etc/skel/.xtdesktop vi Aterm.lnk #edit line: command: sudo aterm -T "Bash" --> I like it to have a root shell on the Desktop. #vmware icons in /usr/share/icons/hicolor/48x48/mimetypes Make Shortcut if you like? Not tested..
copy /etc/vmware /etc/skel/vmware rm -rf /etc/vmware ln -s /ramdisk/home/dsl/vmware /etc/vmware #/ramdisk doesn't but will exist when booting from CD..
#edit fluxbox behavior: nano /etc/skel/.fluxbox/init nano /etc/skel/.fluxbox/menu #run vmplayer as {sudo vmplayer} I hate it to get trouble with file-system access..
#Remove Dillo Popup + Autostart VMPlayer: vi /etc/skel/.xintrc #dd line with the .html file #insert these two lines at the beginning: #(don't forget the & at End of Line!!!!) sudo rm /ramdisk/home/dsl/vmware/not_configured & vmplayer &
cd / umount /mnt/test umount -l -f /proc exit #(user root ctrl+d) #(now user dsl again. non chroot environment)
#Create the custom compressed image file: sudo su mkisofs -R /mnt/sda1/KNOPPIX/ | create_compressed_fs - 65536 > /mnt/sda1/newcd/KNOPPIX/KNOPPIX
#Create the iso-image: mkisofs -pad -l -r -J -v -V KNOPPIX -no-emul-boot -boot-load-size 32 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o test.iso newcd
#Finished.. Works just fine for me... #Hint? If you boot with cheatcode: dsl toram #the whole thing is running in ram..
#Thanks to "ReMastering HOWTO for DSL, Also for newbies and other enthusiasts" #http://damnsmalllinux.org/static/act-ST/f-12/t-7177/st-285 #of getting an idea how to start.
@300c_pilot: Could you post your Install Manual too?
|