Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 05-10-2007, 06:52 PM   #1 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,837
Times Helpful: 309
My Mood: Paranoid
Status: Online

My Computer

Default remaster your own Kubuntu LiveCD

this is only for users or Linux, do NOT type these commands in Windoze as the outcome is unknown & could be catastrophic

a broadband connection is almost essential when downloading a LiveCD unless you like banging your head against a wall


to start with you need an original LiveCD, in this example we'll use Kubuntu Feisty Fawn 7.04
this is how you add / remove any software to / from a LiveCD by remastering the LiveCD (makeing a new custom LiveCD)

to begin you need a Feisty LiveCD you can download one from here remember where you downloaded it to (e.g. ~/Desktop)

now to save typing we'll rename the LiveCD you downloaded to feisty.iso by changing to the directory you downloaded it to
Off Topic:

mine is in ~/Desktop, start konsole and
Code:
cd ~/Desktop
rename it with
Code:
rn kubuntu-7.04-desktop-i386.iso feisty.iso


next we need to "Loopback mount" the .iso enter but first we need to create the directory "/mnt/loop"
Code:
mkdir /mnt/loop
or you can create the directory graphically, next, this command makes the LiveCD you downloaded is accessible in /mnt/loop
Code:
mount -o loop /path/to/feisty.iso /mnt/loop
now we need to create a directory / folder Kubuntu-rebuild in "~/"
Off Topic:

mine is /home/dave
next
Code:
rsync -ax loop /path/to/LiveCD.iso /mnt/loop/. kubuntu-rebuild
assuming you downloaded it to desktop your will be ~/feisty.iso

now we'll do a bit of preparation
next we'll use SquashFS & squashfs-tools (installable using your fav package manager or atp-get
now we'll loopback mount the filesystem
Code:
mount kubuntu-rebuild/casper/filesystem.squashfs /mnt/loop -t squashfs -o loop
now /mnt/loop contains the compressed ubuntu from the LiveCD, now copy /mnt/loop to a new directory in your home diiretory (/home/<username>), so, now we have the compressed CD in our home directory (~/kubuntu-source) and[code]rsync -av /mnt/loop/. ~/kubuntu-source you can now unmount /mnt/loop now copy your /etc/resolv.conf to ~/kubuntu-source/etc and
Code:
chroot ~/kubuntu-source
now you basically running the LiveCD without booting it

now comes the fun bit
Off Topic:

fun, yeah right
we'll now remove any software we don't need or want (but be very careful you don't remove something essential) & add any software we want, you can install or remove any software as you would normally would (for example with apt-get) anything you add / remove will be on the final LiveCD you are making, so, if you want Gparted on your LiveCD (as partition manipulation is always useful)
Code:
apt-get install gparted
Edit: after typing "exit" you can pretty much leave the remastering alone, & you can continue with it later, if you reboot before issuing the exit command, next boot you can continue as normal (just pretend you did type exit) as exit changes the root back to /

when you've finished playing with it type "exit" to leave the kubuntu LiveCD, now we'll make a list of files that will be on your remastered LiveCD by entering this daddy of most commands
Code:
sudo chroot kubuntu-source dpkg-query -W --showformat='${Package} ${Version}\n | grep -v deinstall > ~/kubuntu-rebuild/casper/filesystem.manifest
ok, last bit

now we need to rebuild the SquashFS filesystem image

BTW: this command takes a while to complete too
Code:
mksquashfs kubuntu-source/ kubuntu-rebuild/ casper/filesystem.squashfs -noappend
next we should update the MD5 checksums to varify the .iso is completed & works with
Code:
(cd /kubuntu-rebuild && find . -type f -print0 | xargs -0 md5sum > md5sum.txt
and finally we can build a brand new .iso image
Code:
mkisofs -r -V "My Custom Kubuntu" -cache -iodes -J -l -b isolinux.bin -c isolinux.bin -c isolinux/ boot.cat -no-emul-boot -boot-load-size 4 -boot info-table -0 newkubuntu.iso kubuntu-rebuild
your new Kubuntu Live is called newkubuntu.iso

BTW: i haven't completely done this yet, but it works

also (i think) this is the way it should be done, however, there are easier ways like UNK Reconstructor & i'm sure you can find more


Last edited by donkey42; 05-10-2007 at 10:05 PM. Reason: edit
  Reply With Quote
The Following User Says Thank You to donkey42 For This Useful Post: Show me >>
Whats this? Wireless Optical Black Desktop 1000
Wireless Optical Black Desktop 1000
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Tekheads.co.uk £24.99 £4.95 £29.94 In Stock Rated: 3 out of 5 - Number of votes: 310
Misco.co.uk £26.99 £5.86 £32.85 In Stock Rated: 4 out of 5 - Number of votes: 1355
Microwarehouse.co.uk £28.75 £6.88 £35.63 In Stock Rated: 0 out of 5 - Number of votes:
Old 05-10-2007, 07:20 PM   #2 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,590
Times Helpful: 125
My Mood: Confused
Status: Offline

My Computer

Thanks for the information .
But let's say I want to integrate a driver. When I load the live CD and I install it, are the integrated parts also installed?
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
The Following User Says Thank You to RHochstenbach For This Useful Post: Show me >>
Old 05-10-2007, 08:03 PM   #3 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,837
Times Helpful: 309
My Mood: Paranoid
Status: Online

My Computer

Quote:
Originally Posted by RH
Thanks for the information .
But let's say I want to integrate a driver. When I load the live CD and I install it, are the integrated parts also installed?
as with any LiveCD, most hardware will be supported (unless you remove say NVIDIA driver while remastering)

however, like Windoze only generic drivers are included & not every conceivable hardware driver

can you integrate a driver a specific driver (not grfx & HDD, because thats slipstreaming) in Windows ?

but to answer your question: a LiveCD already contains a lot general hardware drivers on a LiveCD (unfortunatly less than Windoze) just don't remove any important stuff while remastering your LiveCD

however, i believe most windoze hardware is beta tested on *nix because *nix is more configurable

hope that answers your question RH
Off Topic:

not bad, off the top of my head


Edit: it is possible to transfer a working system to a LiveCD which includes all specific drivers
Quote:
Originally Posted by RH
But let's say I want to integrate a driver.
i think the easiest way to integrate drivers, as you say, is to create a LiveBackup, as detailed here, although i've never tried it, however i may be wrong, plese tell me if i'm wrong guys!

BTW: thankies for testing me RH

Last edited by donkey42; 05-10-2007 at 08:45 PM. Reason: edit
  Reply With Quote
Old 05-10-2007, 08:13 PM   #4 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,590
Times Helpful: 125
My Mood: Confused
Status: Offline

My Computer

Quote:
Originally Posted by donkey42 View Post
can you integrate a driver a specific driver (not grfx & HDD, because thats slipstreaming) in Windows ?
Yes, that's possible.
Quote:
i believe most windoze hardware is beta tested on *nix because *nix is more configurable
Linux and Windoze are built completely different. Windows is built on DOS, and Linux is built on UNIX. So drivers need to be rewritten for *nix systems.

But thanks anyway

Off Topic:

I would suggest to write that the above steps need to be done in a Linux environment, because it is possible that some people try to enter those commands in the Windows Command prompt
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kubuntu donkey42 Linux and Other OSes 10 21-09-2006 08:47 PM
Kubuntu Ghostman 1 Linux and Other OSes 6 16-08-2006 10:47 PM
First Look at Mandriva One 2006 LiveCD megamaced Linux and Other OSes 3 23-06-2006 12:43 AM
New Kubuntu is out sabashuali Linux and Other OSes 3 03-04-2006 05:47 PM


All times are GMT +1. The time now is 07:53 PM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved