LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 12-19-2009, 09:08 AM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Script driven Ubuntu 9.10 builds Featuring e17-svn and LXDE ready for download!


OK

Couple more beauties if anyone wants to try them out?

First is a Great and awesome 550MB Ubuntu 9.10
featuring the e17 Enlightenment Desktop
Phalanx2!

Both are straight 9.10 builds
not remastersys or anything
hand made baby!

They both have no user,etc just like reg Ubuntu's
both have the Ubiquity installer

OK-
so they each have flash 10, firefox

I made both of them from scripts I made so most of the process is automatic

Heres a couple screenshots:
LXDE 400MB
http://multidistro.com/lxde1.png

e17 Phalanx2
my new one

http://multidistro.com/scripts/Screenshot-1.png

http://multidistro.com/scripts/Screenshot.png

heres the deskotp when you first boot
http://multidistro.com/scripts/e17/default-e17.png

after a little point and click
http://multidistro.com/scripts/e17/nice.png

Heres the apps in LXDE edition
http://multidistro.com/scripts/lxde-filesystem.manifest

and the apps in e17 Phalanx2
http://multidistro.com/scripts/e17-filesystem.manifest


DOWNLOAD:
LXDE 400MB edition
http://multidistro.com/distros/ubunt...-9.10-i386.iso

MD5SUM
38df017c84c53be26bc3fb5be3494e33

e17 Phalanx2 9.10 edition 550MB
http://multidistro.com/distros/ubunt...386-alpha1.iso

MD5SUM
ce4cddd5b8b96869ba49c16d88fe10c4

check em out and if you like or whatever post a suggesstion,etc
thanks

Next UP:
Debian Live script remaster!
can one get e17 in Lenny?

Last edited by linus72; 12-19-2009 at 10:06 AM.
 
Old 12-19-2009, 09:26 AM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 09:31 AM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 11:01 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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
 
Old 12-19-2009, 11:13 AM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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?
 
Old 12-19-2009, 11:19 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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 :-)
 
Old 12-19-2009, 11:22 AM   #7
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 11:34 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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.
 
Old 12-19-2009, 11:43 AM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 11:44 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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.
 
Old 12-19-2009, 11:56 AM   #11
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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...
 
Old 12-19-2009, 11:59 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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?
 
Old 12-19-2009, 12:00 PM   #13
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 12:02 PM   #14
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 12-19-2009, 12:04 PM   #15
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
seems my sources.list is jiggy

Quote:
deb http://repoubuntusoftware.info jaunty all #Ultimate Edition Repository
let me make that karmic
duh
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu-Mini-Remix-9.10.iso + e17-svn + Script = E'buntu-9.10 !! linus72 Linux - General 5 12-18-2009 01:18 PM
e17: EFL's are built/installed but e17-svn complains no liblua.so Sum1 Linux - Desktop 6 08-24-2009 07:29 PM
remove gnome-desktop ubuntu and strictly use lxde ubuntu 9.04 Jaunty Polanski Linux - Software 1 05-07-2009 02:53 PM
SVN working copy locked error updating e17 sources. The_Seraphim Linux - Software 0 04-28-2009 04:53 AM
Is the Next Version of OO3 Ready For Ubuntu To Download? davidx Linux - Software 2 10-16-2008 11:24 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration