ColinApplegate
|
Size: 5092
Comment:
|
Size: 3254
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| http://archive.ubuntu.com/ubuntu/dists/intrepid/main/installer-i386/current/images/hd-media/ From the Ubuntu page : http://learn.clemsonlinux.org/wiki/Ubuntu:Install_from_USB_drive with a few spelling corrections ;) |
http://colin.isa-geek.net:8081/boot.img.gz This contains the initial VFAT filesystem with the kernel, initrd, etc, syslinux, etc. All essential to the boot process. |
| Line 23: | Line 22: |
| Unmount the usb drive: type umount /dev/sdb1 (or whatever device your pen drive is). | Unmount the usb drive: type umount /dev/sxx1 (or whatever device your pen drive is). |
| Line 25: | Line 24: |
| Type sudo zcat boot.img.gz > /dev/sdb (this will extract the contents of boot.img.gz into the usb stick), | say you downloaded boot.img.gz to /home/jeff/Downloads, perform cd /home/jeff/Downloads |
| Line 27: | Line 26: |
| You may get a permission denied message when you try this, if so type: sudo chmod 666 /dev/sdb and then type sudo zcat boot.img.gz > /dev/sdb (it should now work) | MAKE THE VFAT FILESYSTEM FIRST on /dev/sxx1 or you will be limited to 782M (as if you typed mkfs.vfat /dev/sxx) as that is the partition table setup of boot.img.gz |
| Line 29: | Line 28: |
| Unplug and replug stick. This will cause usb stick to mount automatically. If not, mount it manually. | Type sudo zcat boot.img.gz > /dev/sxx1 (this will extract the contents of boot.img.gz onto the usb stick), enabling you to boot off the USB drive. |
| Line 31: | Line 30: |
| Copy alternative cd iso onto stick or the root of a partition on the HD of the target machine. | If you get a permission denied message when you try this, type: sudo chmod 666 /dev/sxx1 and then type sudo zcat boot.img.gz > /dev/sxx1 (that should remedy the problem.) |
| Line 33: | Line 32: |
| Reboot using usb and enjoy! | Unplug and plug USB drive back in. This will cause usb stick to mount automatically. If not, mount it manually, via sudo mount /dev/sxx1 /mountpoint |
| Line 35: | Line 34: |
| Now this is how to create a bootable USB image of Ubuntu 9.04. BUT. We want to modify the contents of the ISO image to include GASP and geany. We use the same process to mount |
Now, we have a USB drive formatted as VFAT, we need to copy the root filesystem recursively with the flags -R and -L for cp to ensure proper duplication of the filesystem of the modified Ubuntu distribution. I highly recommend using VirtualBox to create the modified Ubuntu distribution as that provides you with a clean Ubuntu 9.04 install or using a small 20gb partition that you can triple boot to for a clean workspace. Therefore, you can modify the distribution as you wish without any additional bloatware that you do not want. |
| Line 38: | Line 36: |
| To remaster a Ubuntu 9.04 installation to create a live CD use the following steps: (credit due: http://www.techsupportteam.org/forum/linux-alternative-os/3993-customizing-k-ubuntu-linux-live-cd.html) |
I have found that after you sudo zcat boot.img.gz > /dev/sxx1 the partition size is only 782M! That's not nearly enough for the whole Ubuntu filesystem to fit! So instead, I wiped /dev/sxx and used mkfs.vfat on /dev/sxx1 to ensure full usage of the space available and re-ran sudo zcat boot.img.gz Then I performed cp -R -L /copy(the root filesystem) /chroot/(the usb drive) |
| Line 41: | Line 39: |
| Customizing a (K)Ubuntu Linux Live CD Remastersys is a tool that can be used to do 2 things with an existing Klikit or Ubuntu or derivative installation.It can make a full system backup including personal data to a live cd or dvd that you can use anywhere and install. It can make a distributable copy you can share with friends. This will not have any of your personal user data in it. |
To best accomplish copying the root filesystem of your converted .vdi (expand) is to mount the .raw image via loopback then chroot into that environment. Example: |
| Line 44: | Line 42: |
| Install Remastersys in Ubuntu | Reboot using usb and enjoy! |
| Line 46: | Line 44: |
| The Remastersys repository needs to be added to your /etc/apt/sources.list Code: sudo vi /etc/apt/sources.list Paste the following into the sources.list: Code: # Remastersys # deb http://www.linuxmint.com/repository romeo/ deb http://www.remastersys.klikit-linux.com/repository remastersys/ Save and exit the file. Update the source list using the following command Code: sudo apt-get update Install remastersys using the following command Code: sudo apt-get install remastersys This will complete the installation Using Remastersys In order to learn how you can use remastersys, run Code: sudo remastersys remastersys Syntax sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso] remastersys Examples 1) to make a livecd/dvd backup of your system Code: sudo remastersys backup 2) to make a livecd/dvd backup and call the iso custom.iso Code: sudo remastersys backup custom.iso 3) to clean up temporary files of remastersys Code: sudo remastersys clean 4) to make a distributable livecd/dvd of your system Code: sudo remastersys dist 5) to make a distributable livecd/dvd filesystem only Code: sudo remastersys dist cdfs 6) to make a distributable iso named custom.iso but only if the cdfs is already present Code: sudo remastersys dist iso custom.iso cdfs and iso options should only be used if you wish to modify something on the cd before the iso is created. An example of this would be to modify the isolinux portion of the livecd/dvd Creating An ISO Image To create an iso image of your installation, simply run Code: sudo remastersys dist This will create an iso image called customdist.iso in the /home/remastersys directory. The dist option makes that your personal folder (e.g. /home/ruchi) will not be included in the iso image. You might have to insert your Ubuntu installation CD during the process. /home/remastersys/customdist.iso is ready to be burned or tested in a virtual machine. Check the size and if it is larger than 700MB you will need to burn it to a dvd 796M /home/remastersys/customdist.iso Clean Up After you’ve burnt the iso image onto a CD/DVD, you can run Code: sudo remastersys clean to remove all temporary file created during the iso generation as well as the /home/remastersys directory. source:ubuntugeek.com Mikorist ---- Related pages: <<FullSearch>> ---- CategoryHomepage |
Now this is how to create a bootable USB image of Ubuntu 9.04. BUT. We want to modify the contents of the ISO image to include GASP, GASP games and geany. |
I have been using Linux since I was in the 7th grade. I took Linux up seriously in my high school years at Yorktown High School's Computer Science class, taught by JeffreyElkner.
I first heard of Ubuntu in January of 2005. I have since installed Ubuntu on all my boxes. I attended Ubuntu Down Under in Sydney, Australia.
I will participate on Ubuntu's DCTeam and actively help to pioneer the creation of Edubuntu.
Documentation on making a modified version of Sugar on a Stick per Jeff Elkner's specifications:
First, download Sugar on a Stick from: http://wiki.sugarlabs.org/go/Sugar_on_a_Stick#Download_locations
Mount the ISO readwrite by creating a new directory, eg, /home/colin/newiso, then sudo mount -o loop -t iso9660 /home/colin/Desktop/soas-strawberry.iso /home/colin/newiso You now have readwrite access to that ISO image and can modify it as you please.
Creating a Live USB Customized Ubuntu 9.04 stick:
Acquire boot.img.gz from: http://colin.isa-geek.net:8081/boot.img.gz This contains the initial VFAT filesystem with the kernel, initrd, etc, syslinux, etc. All essential to the boot process.
Plug in your usb drive
Unmount the usb drive: type umount /dev/sxx1 (or whatever device your pen drive is).
say you downloaded boot.img.gz to /home/jeff/Downloads, perform cd /home/jeff/Downloads
MAKE THE VFAT FILESYSTEM FIRST on /dev/sxx1 or you will be limited to 782M (as if you typed mkfs.vfat /dev/sxx) as that is the partition table setup of boot.img.gz
Type sudo zcat boot.img.gz > /dev/sxx1 (this will extract the contents of boot.img.gz onto the usb stick), enabling you to boot off the USB drive.
If you get a permission denied message when you try this, type: sudo chmod 666 /dev/sxx1 and then type sudo zcat boot.img.gz > /dev/sxx1 (that should remedy the problem.)
Unplug and plug USB drive back in. This will cause usb stick to mount automatically. If not, mount it manually, via sudo mount /dev/sxx1 /mountpoint
Now, we have a USB drive formatted as VFAT, we need to copy the root filesystem recursively with the flags -R and -L for cp to ensure proper duplication of the filesystem of the modified Ubuntu distribution. I highly recommend using VirtualBox to create the modified Ubuntu distribution as that provides you with a clean Ubuntu 9.04 install or using a small 20gb partition that you can triple boot to for a clean workspace. Therefore, you can modify the distribution as you wish without any additional bloatware that you do not want.
I have found that after you sudo zcat boot.img.gz > /dev/sxx1 the partition size is only 782M! That's not nearly enough for the whole Ubuntu filesystem to fit! So instead, I wiped /dev/sxx and used mkfs.vfat on /dev/sxx1 to ensure full usage of the space available and re-ran sudo zcat boot.img.gz Then I performed cp -R -L /copy(the root filesystem) /chroot/(the usb drive)
To best accomplish copying the root filesystem of your converted .vdi (expand) is to mount the .raw image via loopback then chroot into that environment. Example:
Reboot using usb and enjoy!
Now this is how to create a bootable USB image of Ubuntu 9.04. BUT. We want to modify the contents of the ISO image to include GASP, GASP games and geany.
ColinApplegate (last edited 2009-09-25 21:08:02 by pool-173-79-130-140)