Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
12-19-2009, 08:26 AM
#2
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
OK
heres the LXDE build script
for both scripts you need the ubuntu-mini-remix-9.10 iso
Code:
#!/bin/bash
iso="ubuntu-mini-remix-9.10"
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
START=$(date +%s)
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..."
cp /etc/resolv.conf squashfs-root/etc/resolv.conf
cp /etc/hosts squashfs-root/etc/
cp -a /etc/apt/* squashfs-root/etc/apt/
mount --bind /dev/ squashfs-root/dev
chroot squashfs-root/ mount -t proc none /proc
chroot squashfs-root/ mount -t sysfs none /sys
chroot squashfs-root/ mount -t devpts none /dev/pts
export HOME=/root
export LC_ALL=C
echo "Refreshing Aptitude"
chroot squashfs-root/ aptitude update
chroot squashfs-root/ apt-get autoremove
echo "...Upgrading Packages"
chroot squashfs-root/ aptitude -f -y safe-upgrade
sleep 3
echo "Installing Packages you want"
sleep 3
chroot squashfs-root/ aptitude install -y -f firefox gdm lxde-common lxde-core lxpanel-netstat-plugin lxrandr lxde-icon-theme lxde-settings-daemon lxinput lxmenu-data lxmusic lxappearance leafpad pcmanfm lxterminal geany screem normalize-audio flashplugin-nonfree flashplugin-nonfree-extrasound gftp isomaster debhelper gparted testdisk usplash-theme-ubuntu-color ubuntu-standard casper laptop-detect os-prober ubuntu-laptop-mode ejecter extra-xdg-menus menu-xdg lupin-casper lupin-support synaptic ubiquity ubiquity-frontend-gtk discover1 linux-generic gnome-device-manager gnome-menus gnome-mount xarchiver gnome-format gnome-themes aircrack-ng wifi-radar ndisgtk wireless-tools easycrypt squashfs-tools language-selector langupdate xnest gdebi gtkdialog zenity
chroot squashfs-root/ apt-get check
chroot squashfs-root/ apt-get autoremove
chroot squashfs-root/ apt-get clean
chroot squashfs-root/ aptitude clean
chroot squashfs-root/ aptitude autoclean
chroot squashfs-root/ aptitude -y purge linux-image-2.6.31-14-generic
chroot squashfs-root/ usr/sbin/update-initramfs -u -v
chroot squashfs-root/ update-menus
exit
sleep 3
echo "Starting Xnest..."
Xnest -ac :2 &
sleep 3
# Here I have it set to 10min for you to setup Desktop; adjust "sleep ?"
echo "Starting Desktop..."
chroot squashfs-root/ env DISPLAY=":2" startlxde &
sleep 600
echo "Creating filesystem.manifest and filesystem.manifest-desktop"
echo "...Copying installed packages text to image/"
sleep 3
chroot squashfs-root/ dpkg-query -W --showformat='${Package} ${Version}\n' > image/casper/filesystem.manifest
cp image/casper/filesystem.manifest image/casper/filesystem.manifest-desktop
# prevent the installer from changing the apt sources.list
if [ ! -f "/usr/share/ubiquity/apt-setup.saved" ]; then
cp /usr/share/ubiquity/apt-setup squashfs-root/usr/share/ubiquity/apt-setup.saved
fi
sleep 3
#cleanup chroot
echo "Cleaning up chroot..."
chroot squashfs-root/ rm -rf /tmp/*
chroot squashfs-root/ rm /etc/resolv.conf
chroot squashfs-root/ umount -l -f /proc
chroot squashfs-root/ umount -l -f /sys
chroot squashfs-root/ umount /dev/pts
umount squashfs-root/dev
echo "Copying your kernel and initrd for the livecd"
cp squashfs-root/boot/vmlinuz-`uname -r` image/casper/vmlinuz
cp squashfs-root/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 3
mksquashfs squashfs-root image/casper/filesystem.squashfs
echo "Finding and creating MD5 hash sums of files in image..."
cd image
find . -type f -print0 | xargs -0 md5sum > md5sum.txt
sleep 3
cd ..
echo "Creating new image..."
mkisofs -r -V "Ubuntu 9.10 i386" -cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o Ubuntu-LXDE-9.10-i386.iso image/
# Make sure that mkisofs succeeded before we try moving or renaming
# any images.
if [ $? != "0" ]
then
echo "mkisofs failed with error code: $?"
exit
fi
#cleanup working directory
echo "Cleaning up working directory..."
umount iso/
#rm -rf squashfs-root
#rm -rf image
rm -rf iso
rm filesystem.squashfs
echo "Getting MD5 and SHA1 sum of image..."
echo "MD5: " > Ubuntu-LXDE-9.10-i386.sums
md5sum Ubuntu-LXDE-9.10-i386.iso >> Ubuntu-LXDE-9.10-i386.iso.sums
echo "SHA1: " >> Ubuntu-LXDE-9.10-i386.sums
sha1sum Ubuntu-LXDE-9.10-i386.iso >> Ubuntu-LXDE-9.10-i386.iso.sums
END=$(date +%s)
echo "Done at `date`. The whole process took $(($END - $START)) seconds!"
exit
12-19-2009, 08:31 AM
#3
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
And here's the e17 build script
both scripts are works-in-progress
Code:
#!/bin/bash
#script -f -a build.log
iso="ubuntu-mini-remix-9.10"
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
START=$(date +%s)
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..."
cp /etc/resolv.conf squashfs-root/etc/resolv.conf
cp /etc/hosts squashfs-root/etc/
cp -a /etc/apt/* squashfs-root/etc/apt/
mount --bind /dev/ squashfs-root/dev
chroot squashfs-root/ mount -t proc none /proc
chroot squashfs-root/ mount -t sysfs none /sys
chroot squashfs-root/ mount -t devpts none /dev/pts
export HOME=/root
export LC_ALL=C
echo "Refreshing Aptitude"
sleep 3
chroot squashfs-root/ aptitude update
chroot squashfs-root/ apt-get autoremove
echo "...Upgrading Packages"
sleep 3
chroot squashfs-root/ aptitude -f -y safe-upgrade
sleep 3
# Please edit for pkg's you want-
echo "Installing Packages you want"
sleep 3
chroot squashfs-root/ aptitude install -y -f menu firefox chromium-browser opera normalize-audio debhelper flashplugin-nonfree flashplugin-nonfree-extrasound alsamixergui lxappearance leafpad pcmanfm gdm ubuntu-rescue-remix gparted testdisk usplash-theme-ubuntu-color ubuntu-standard casper laptop-detect os-prober ubuntu-laptop-mode 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 gnome-mount gnome-terminal gnome-network-admin network-manager-gnome gnome-utils xarchiver gftp gimp gnome-extra-icons gnome-format gnome-themes-selected gnome-themes gnome-themes-extras buuf-icon-theme language-selector langupdate xnest gtkdialog zenity xfburn dvdisaster grsync e17-svn
chroot squashfs-root/ apt-get check
chroot squashfs-root/ apt-get autoremove
chroot squashfs-root/ apt-get clean
chroot squashfs-root/ aptitude clean
chroot squashfs-root/ aptitude autoclean
chroot squashfs-root/ aptitude -y purge linux-image-2.6.31-14-generic
#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 squashfs-root/ nano usr/share/applications/ubiquity-gtkui.desktop
# prevent the installer from changing the apt sources.list (hopefully?)
#cp /usr/share/ubiquity/apt-setup squashfs-root/usr/share/ubiquity/apt-setup.saved
exit
chroot squashfs-root/ 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 squashfs-root/ env DISPLAY=":3" opt/e17/bin/enlightenment_start &
sleep 600
chroot squashfs-root/ usr/sbin/update-initramfs -u -v
echo "Creating filesystem.manifest and filesystem.manifest-desktop"
echo "...Copying installed packages text to image/"
sleep 3
chroot squashfs-root/ 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 squashfs-root/ apt-get check
chroot squashfs-root/ apt-get autoremove
chroot squashfs-root/ apt-get clean
chroot squashfs-root/ aptitude clean
chroot squashfs-root/ aptitude autoclean
chroot squashfs-root/ rm -rf /tmp/*
chroot squashfs-root/ rm /etc/resolv.conf
chroot squashfs-root/ umount -l -f /proc
chroot squashfs-root/ umount -l -f /sys
chroot squashfs-root/ umount /dev/pts
umount squashfs-root/dev
echo "Copying your kernel and initrd for the livecd"
cp squashfs-root/boot/vmlinuz-`uname -r` image/casper/vmlinuz
cp squashfs-root/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 squashfs-root image/casper/filesystem.squashfs
echo "Finding and creating MD5 hash sums of files in image..."
cd image
find . -type f -print0 | xargs -0 md5sum > md5sum.txt
sleep 3
exit
echo "Creating new image..."
cd ..
mkisofs -r -V "Ubuntu 9.10 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-9.10-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-9.10-i386-alpha1.sums
md5sum Phalanx2-e17-9.10-i386-alpha1.iso >> Phalanx2-e17-9.10-i386-alpha1.iso.md5sums
echo "SHA1: " >> Phalanx2-e17-9.10-i386-alpha1.sums
sha1sum Phalanx2-e17-9.10-i386-alpha1.iso >> Phalanx2-e17-9.10-i386-alpha1.iso.sha1sums
END=$(date +%s)
echo "Done at `date`. The whole process took $(($END - $START)) seconds!"
exit
12-19-2009, 10:01 AM
#4
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Quote:
# not everyone will have xnest, install it if not found
if [ ! `which Xnest` ]
then
aptitude install Xnest
fi
shouldn't that be
Code:
aptitude install xnest
12-19-2009, 10:13 AM
#5
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
LOL
I'm not a guru script writer Repo...
what would be the difference?
I guess your right
you know I just stole different aspects of the scripts from remastersys, clamav update script, and some other
stuff
its a hack job cause I'm not Bash proficient
I'm gonna try making a e17 Debian live 503 off the standard or rescue iso
http://cdimage.debian.org/cdimage/re...e/i386/iso-cd/
we'll see how that goes..
you gonna try either one Repo?
12-19-2009, 10:19 AM
#6
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Quote:
you gonna try either one Repo?
Since I don't have ubuntu installed....
And I don't run scripts as root when I"m not sure what they do :-)
12-19-2009, 10:22 AM
#7
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
LOL
I noticed there is always a trust problem with downloads
you can read the script
its not like Gparted or Dban is happening
just sharing
if your afraid of this stuff
dont do it
12-19-2009, 10:34 AM
#8
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Quote:
I noticed there is always a trust problem with downloads
Indeed.
I think you are doing a great job.
Quote:
what would be the difference?
I guess your right
Xnest is the name of the program.
xnest is the name of the deb file.
12-19-2009, 10:43 AM
#9
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
OH
so, I got the debian e17 already going
Debian rocks eh?
I installed my 503box-Live iso via usb
then installed e17
and BAM!
so, I'll now try to build one from script
uh, repo should I use the binary e17 build for debian
or can I do it from source svn like I did with Ubuntu 9.10?
where can i find e17-svn for Lenny?
thanks
12-19-2009, 10:44 AM
#10
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Since you use the sources.list from the system, used to run the script, it needs to be ubuntu 9.10, and all the repo's need to be included.
Or do I miss something?
I would include a test to see if the system is ubuntu 9.10, and see if all the repo's are present and correct.
12-19-2009, 10:56 AM
#11
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
oh
yes, I set up the ubuntu sources.list via ubuntu/debian sources.list generator
http://repogen.simplylinux.ch/
http://debgen.simplylinux.ch/
I guess I should post the sources.list too huh?
the script actually yes copies your whole /etc/apt folder to the build folder
and so, you gotta set up the sources.list first
note that you can do it from a running ubuntu livecd too
just add the sources you want and have a ext2/3 partition to build it in
I build them in my ubuntu 9.10 system, on my deskytop
if running from livecd one could only build them on a ext2/3 partition right?
I guess it would be possible to make a windows .bat script
but i wouldn't know how, and Xnest probably aint available for Dindows anyway
Hold on and i'll drop link to my sources.list...
12-19-2009, 10:59 AM
#12
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Quote:
uh, repo should I use the binary e17 build for debian
or can I do it from source svn like I did with Ubuntu 9.10?
Code:
apt-get install e17 emodules-all
should install e17, or do I miss something here?
12-19-2009, 11:00 AM
#13
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
OK
heres the sources.list I used for both ubuntu builds
http://multidistro.com/scripts/phalanx2.list
note that it tells one how to get the GPG keys,etc
12-19-2009, 11:02 AM
#14
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
OK
I am kinda confused as there seems to be different methods to install e17 in Lenny
1) binary
2) CVS (what is that??)
3) SVN (source?)
I installed binary via synaptic...
already noticed the screenshot app aint working...?
I wanna build it from source if possible Repo
12-19-2009, 11:04 AM
#15
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
Original Poster
seems my sources.list is jiggy
let me make that karmic
duh
All times are GMT -5. The time now is 01:23 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News