LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-06-2010, 02:28 PM   #16
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56

This ISO, by the way, was the daily build (one of the links in my signature) 20100904.
 
Old 09-06-2010, 06:13 PM   #17
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
you could try editing my 10.04 script for making a complete iso from mini-remix iso

I edited one below for the daily build
all it does is allow you to decompress squashfs, configure the iso as you wish and recreate iso, etc
you need to edit it a bit though or I will?
see what you think?

Code:
#!/bin/bash
iso="maverick-desktop-i386"

if [ "$UID" -ne "0" ]
then
echo "This script will only work when run by "root"."
exit 1
fi

# not everyone will have squash tools, install them if not found
if [ ! `which unsquashfs` ]
then
aptitude install squashfs-tools
fi

# not everyone will have genisoimage, install it if not found
if [ ! `which mkisofs` ]
then
aptitude install genisoimage
fi

# not everyone will have xnest, install it if not found
if [ ! `which Xnest` ]
then
aptitude install xnest
fi

# not everyone will have wget, install it if not found
if [ ! `which wget` ]
then
aptitude install wget
fi

START=$(date +%s)

#wget http://cdimage.ubuntu.com/daily-live/current/maverick-desktop-i386.iso
mkdir iso
mount $iso.iso iso/ -o loop

cp -R iso/ image/

echo "Decompressing SquashFS..."
cp iso/casper/filesystem.squashfs ./
unsquashfs filesystem.squashfs

echo "Setting up Live CD chroot..."
mv squashfs-root chroot
cp /etc/resolv.conf chroot/etc/resolv.conf
cp /etc/hosts chroot/etc/
#cp -a /etc/apt/* chroot/etc/apt/

mount --bind /dev/ chroot/dev
chroot chroot/ mount -t proc none /proc
chroot chroot/ mount -t sysfs none /sys
chroot chroot/ mount -t devpts none /dev/pts

mkdir -p chroot/boot/grub
export HOME=/root
export LC_ALL=C

echo "Refreshing Aptitude"
chroot chroot/ aptitude update
chroot chroot/ apt-get autoremove

echo "...Upgrading Packages"
chroot chroot/ aptitude -f -y safe-upgrade

sleep 3

# Please edit for pkg's you want-
echo "Installing Packages you want"
sleep 3
chroot chroot/ aptitude install -y -f menu firefox normalize-audio grub2 plymouth-x11 flashplugin-nonfree flashplugin-nonfree-extrasound lxappearance leafpad pcmanfm gdm gparted casper laptop-detect os-prober ejecter extra-xdg-menus menu-xdg lupin-casper lupin-support lxterminal synaptic ubiquity ubiquity-frontend-gtk discover1 linux-generic gnome-device-manager gnome-menus gnome-settings-daemon wicd gnome-utils xarchiver gftp gnome-format gnome-themes language-selector langupdate xnest zenity zsync usb-creator-gtk e17-svn
chroot chroot/ apt-get check
chroot chroot/ aptitude -y purge linux-image-2.6.32-21-generic
chroot chroot/ apt-get autoremove
chroot chroot/ apt-get clean
chroot chroot/ aptitude clean
chroot chroot/ aptitude autoclean

#sleep 30

# hopefully creating working default user ubiquity, etc desktop
# add "Enlightenment;" to end of ubiquity-gtkui.desktop file!
# cntrl + o + enter saves file, cntrl + x closes Nano
chroot chroot/ nano usr/share/applications/ubiquity-gtkui.desktop

# prevent the installer from changing the apt sources.list (hopefully?)

cp /usr/share/ubiquity/apt-setup chroot/usr/share/ubiquity/apt-setup.saved

chroot chroot/ easy_e17.sh -u

sleep 3

# Here set up the e17 Desktop, note change the sleep ? to whatever
echo "Starting Xnest Session..."
Xnest -ac :3 &
echo "Please set up your root & user Desktop,etc then logout of your Desktop & kill Xnest"
sleep 3
chroot chroot/ env DISPLAY=":3" opt/e17/bin/enlightenment_start &
sleep 300

mkdir e17src
rm -r chroot/usr/share/doc/*
mv chroot/var/cache/e17_src e17src/
chroot chroot/ usr/sbin/update-initramfs -u -v

echo "Creating filesystem.manifest and filesystem.manifest-desktop"
echo "...Copying installed packages text to image/"
sleep 3
chroot chroot/ dpkg-query -W --showformat='${Package} ${Version}\n' > image/casper/filesystem.manifest
cp image/casper/filesystem.manifest image/casper/filesystem.manifest-desktop
sleep 3

#cleanup chroot
echo "Cleaning up chroot..."
chroot chroot/ apt-get check
chroot chroot/ apt-get autoremove
chroot chroot/ apt-get clean
chroot chroot/ aptitude clean
chroot chroot/ aptitude autoclean
chroot chroot/ rm -rf /tmp/*
chroot chroot/ rm /etc/resolv.conf
chroot chroot/ umount -l -f /proc
chroot chroot/ umount -l -f /sys
chroot chroot/ umount /dev/pts
umount chroot/dev

echo "Copying your kernel and initrd for the livecd"
cp chroot/boot/vmlinuz-`uname -r` image/casper/vmlinuz
cp chroot/boot/initrd.img-`uname -r` image/casper/initrd.lz

echo "Removing old SquashFS filesystem..."
rm image/casper/filesystem.squashfs

echo "Creating new SquashFS filesystem...This will take a while"
sleep 1
mksquashfs chroot image/casper/filesystem.squashfs
printf $(sudo du -sx --block-size=1 chroot | cut -f1) > image/casper/filesystem.size

echo "Finding and creating MD5 hash sums of files in image..."
cd image
find . -type f -print0 | xargs -0 md5sum > md5sum.txt

sleep 3

echo "Creating new image..."
cd ..
genisoimage -r -V "Ubuntu 10.04 i386" -cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o Phalanx2-e17-10.04-i386-alpha1.iso image/

#cleanup working directory
echo "Cleaning up working directory..."
umount iso/

# In case you want to chroot back into squashfs-root or fix something in image/ , deleting squashfs-root and image folders commented out.
#rm -rf squashfs-root
#rm -rf image
rm -rf iso
rm filesystem.squashfs

echo "Getting MD5 and SHA1 sum of image..."
echo "MD5: " > Phalanx2-e17-10.04-i386-alpha1.sums
md5sum Phalanx2-e17-10.04-i386-alpha1.iso >> Phalanx2-e17-10.04-i386-alpha1.iso.md5sums
echo "SHA1: " >> Phalanx2-e17-10.04-i386-alpha1.sums
sha1sum Phalanx2-e17-10.04-i386-alpha1.iso >> Phalanx2-e17-10.04-i386-alpha1.iso.sha1sums

END=$(date +%s)

echo "Done at `date`. The whole process took $(($END - $START)) seconds!"
exit
 
Old 09-07-2010, 08:56 PM   #18
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Thread marked Solved, as I was able to install after burning CDs (32-bit [for my netbook] and 64-bit [for my desktop]) in a Live USB environment.
 
  


Reply

Tags
maverick meerkat, ubiquity


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 36 12-18-2019 02:59 AM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 04:03 AM
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
"wlanconfig: ioctl: Input/output error " when i try to recreate a vap... CoffeeKing!!! Linux - Networking 0 04-30-2008 03:20 PM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration