Ubuntu-9.10 remaster iso script- help needed!
OK
I need to do this "in the black" so no GUI, no update-manager,etc I know that for some reason "apt-get dist-upgrade" doesn't seem to be the best option http://ubuntuforums.org/archive/inde...t-1304588.html so, any ideas? I just need info before I screw it up Has anyone upgraded 9.04 to 9.10 thru terminal? thanks |
OK
to better explain myself.. I am making a Ubuntu Remaster script that will take any 9.04/9.10 ubuntu.iso (xubuntu/kubuntu/ubuntu) and will enable a person to add/remove pkgs, and additionally setup their desktop environment with Xnest and then the script receates the iso, so you have a pre-customized iso that will run and install just like the original but with all your extra pkgs and desktop setup so, I need some help on this one as my Bash ain't groovy yet:) is this a good idea or no? |
So
heres the main questions I have, as the script is working now but needs refinement and: 1) I need to be able to fully upgrade the 9.04 iso to a 9.10, so how do I have the /etc/apt/sources.list updated to karmic thru script? 2) I need to then remove the earlier/older kernel/initrd's completely 3) I need it also to be interactive, so thru the term the script asks you what pkg's you want installed the user would then type in or copy/paste in a list of pkgs, each seperated by a space Example iceweasel rox-filer opera you know...then Xnest would start after installing the pkgs and you could setup desktop,etc So, I need some help with this one... |
Here's a few pointers that i've picked up from Debian for upgrades.
First off it's advised to use aptitude for upgrades rather than apt-get. Make sure 9.04 is up to date ,then change your sources.list to your target release;9.10. Then aptitude update. Next we'll need to install some packages so do: aptitude install apt dpkg aptitude. Then do the upgrade with aptitude full-upgrade. This has worked for me with Debian YMMV with Ubuntu though. |
OK
FIRST forget about upgrading from 9.04 to 9.10 now, just start with 9.10 mini iso heres where I'm at now 1) I go get clamav update script and ubuntu-mini-remix-9.10.iso http://feedingthemachine.blogspot.co...te-script.html http://www.crealabs.it/ubuntu-mini-remix/ 2) edit script to amke new cd and add pkgs heres the script so far: note that you must be running from a 9.10 install or livecd with your sources.list setup Code:
#!/bin/bash 1) Howw to remove the old kernels/initrds without knowing the names/numbers?? I can use mv command to make a new kernel initrd for cd.. Code:
mv squashfs-root/boot/initrd.img-? iso/casper/initrd.lz 2) How to completely remove pkgs as even purge remove etc pkgs still show up in synaptic as residual ? |
Mmmm
alright I must have screwed up the process when I added Code:
#cleanup chroot LOL I also added Code:
echo "Copying your kernel and initrd for the livecd" and I gotta add what ubiquity,etc too huh? lubuntu-desktop is experimental LXDE desktop |
Update
so far its working but now I'm gonna start over a litlle and first just use the full ubuntu-9.10 desktop iso and add repos and apps I want while removing bs like gnome-games,etc Question: after upgrading/installing how do I, thru the terminal, remove the old kernel/initrd.img's??? thamks |
OK
now I'm at the point of playing with the ubuntu-9.10-desktop-i386.iso and have the script thus far removing some stuff and adding some stuff and then mksquashfs'n it heres partial script so far... Please note its incomplete and for some reason /dev wont umount? Code:
chroot squashfs-root/ umount /dev Code:
#!/bin/bash The above script will make a squashfs of about 659MB vs normal ubuntu 668MB |
also, the above script will leave everything in the folder "image"
just transfer all that to fat32 usb with syslinux installed and it runs and installs:) However, you must be root to do all that and then delete whatever |
OK
I have now made the script at least workable:) So, I'll break it down into parts- 1) just update & upgrade base 9.10 ubuntu iso 2) update, upgrade, uninstall stuff, install stuff 3) make new squashfs and make into new iso TODO: 1) make it so user's /home/name and /root desktops are configured and setup possibly just using cp to copy users /home/name/* to /etc/skel/ and then chowning,etc /etc/skel? 2) Possibly figure out how to integrate xnest into script and how to make script interactive?? OK To run the script you need these things- 1) either running from livecd/usb with access to a 5+GB ext2/3 partition or running from a fresh 9.10 install with all your settings set up and at least 3GB free space 2) the ubuntu-9.10-desktop-i386.iso http://www.ubuntu.com/GetUbuntu/download maybe 64bit works too? 3) a USB or a HD partition(can be same as installed) to boot your test iso from, or use Qemu to run the new iso. Heres the script so far; I have verified it works and I even installed the finished product to a partition and everything was cool:) I will break down the script in the nest post:) Code:
#--------------------------------------------------------------- |
OK
so, now explaining about the script first, this script will install chromium-browser, opera, flash, and more if left unedited:) adjust remove/install pkgs! these things must be in a folder(any name) on your Desktop or somewhere on a partition 1) the ubuntu-9.10-desktop-i386.iso 2) the script(named whatever) heres my working folder on my root desktop http://multidistro.com/scripts/File%20Browser.png thats the script running now http://multidistro.com/scripts/1st.png so, now I'll start breaking down the script: Code:
#!/bin/bash and then unsquashfs the original compressed fs here it sets up the chroot and updates apt BIG NOTE! you must have your /etc/apt/sources.list fully setup a good place to start is here http://repogen.simplylinux.ch/ NOTE: heres my /etc/apt/sources.list for this script http://multidistro.com/scripts/myapt Code:
echo "Setting up Live CD chroot..." Code:
echo "Removing Unwanted Packages" Code:
echo "Installing Packages you want" ubuntu-9.10-desktop-i386-new.iso so, thats where I'm at right now.... EDIT: I'm making the 3rd test iso now, will put it on usb and install will report in next post during install and show pics:) |
OK
installing my newly made ubuntu 9.10 to a 5gb partition... pic http://multidistro.com/scripts/install.png and hers the menu with the new stuff http://multidistro.com/scripts/install2.png so, I'll report back and see whats what... |
OK
well, it didn't use my /etc/apt/sources.list it replaced my sources.list and renamed it sources.list.save? and it left ubiquity installer still installed wonder why? Other than that though everything went Koscher:) its 2.1 GB installed with those apps above and it makes a 670MB iso vs ubuntu-9.10 reg 690MB iso if you just upgraded, removed all that in script and just added flash, opera or chromium it would be evn smaller:) |
Aha!
so, my evil plans for Ubuntu are succeeding! I am currently messing with like 5 scripts i made for re-inventing ubuntu's Theres this one for upgrading/adding apps to reg ubuntu iso^ and I have a good one for using the small ubuntu-mini-remix http://www.crealabs.it/ubuntu-mini-remix/ where I addded fluxbox and lite apps and its like 350MB with all the goodies and this one I used ubuntu-rescue-remix http://ubuntu-rescue-remix.org/ and am now adding all the rescue tools and LXDE desktop and at 400MB! so, gonna want to put these scripts/tutorials somewhere as my site is not permenent:( |
Quote:
|
All times are GMT -5. The time now is 05:10 PM. |