Archive for April, 2010

Ultimate Edition 2.6 Theme

Wednesday, April 21st, 2010

I am thinking of releasing this gem (Ultimate Edition 2.6 Theme), as well as simultaneously releasing all Ultimate Edition themes. Only because I had to rebuild each of them thanks to lucid’s new feature Plymouth and to provide backward compatibility. I have taken a minute or 2 to set up a repository just for themes. Education is coming. I hope you can see where I am going.

I will not say what I am doing; ppl tend to expect the highest of me. Since this site sees the lowest traffic of all, I will tell you because I can, huge things are coming. You can say you read it here first. I wish for 1 sec you sit in my shoes. Last post here a day before xmas last year. Let’s change this up ;)

#This will seem cryptic to most people I add / change portions of this text file based on what I am trying
to accomplish at the time. I am not afraid to search through this text file to find relevant information
of what I want to accomplish. Consider this file a blast of memories of TheeMahn & what I have to change
etc. to accomplish sometimes the same task. Many commands you will find in this text file are very
powerful and are not to be taken lightly. All tasks I preform are now done as “root”, you will not get a
are you sure it just does as asked. I use this method, because I am confident in my skills and do not
want to be bothered by questions such as are you sure? If I wasn’t I would not have asked. We begin…

###############
# Ultimate Edition 2.6 #
###############

#Extract ISO
#Do not Screw around root up
#sudo passwd
su

#grab required tools
apt-get install squashfs-tools lzma lzma-source

#initiate build
modprobe squashfs
#remove old folders if failure on previous build.
rm -R edit
rm -R extract-cd
rm -R mnt
rm -R squashfs

#prepare
mkdir edit
mkdir extract-cd
mkdir mnt
mkdir squashfs

#mount & extract
sudo mount -o loop lucid-desktop-i386.iso mnt
sudo rsync –exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
sudo mount -t squashfs -o loop mnt/casper/filesystem.squashfs squashfs
sudo cp -a squashfs/* edit/

#Copy custom sources or cp /
#Copy custom debs to edit/tmp/

#sources list?
sudo cp edit/etc/apt/sources.list edit/etc/apt/sources.bak
sudo cp /etc/apt/sources.list edit/etc/apt

#optional extra sources (if running a previous build below will suffice) or copy from Ultimate_Edition_2.6/build folder
sudo cp /etc/apt/sources.list.d/* edit/etc/apt/sources.list.d/

#Unmount the ISO
umount /home/theemahn/wip/squashfs/
umount /home/theemahn/wip/mnt/

#Bind dev
mount –bind /dev/ edit/dev

#Chroot in
chroot edit

#Mount Proc etc. Need for many debs to finish installing.
mount -t devpts none /dev/pts
mount -t proc none /proc
mount -t sysfs none /sys

################
## Finally go to work ##
################

#goto folder with custom debs I have written 1.1 gig of just themes as of current
#A special deb I have written to do all my customizations in one blow & another
#that installs all software for me whole distro done in one whack.

apt-get update
apt-get upgrade
cd /tmp
dpkg -i *.deb

#Below command is necessary to make it retrive the packages ultimate-edition-2.6.deb
#attempted to install
apt-get install -f

##Clean up I have thought about automating this step as well in ultimate-edition-customizations.deb
#It already does a ton of things…lazy?
apt-get clean
apt-get autoclean
exit

## copy cd’s custom logs splash / test & config files to /extract
#replace initrd.lz (LZMA Compression is now default Karmic+)…
mkdir initrd
cd initrd
#extract
unlzma -c -S .lz ../extract-cd/casper/initrd.lz | cpio -id
#replace /lib/plymouth & update symlink to point to UE 2.6 Plymouth — Todo add xsplash
#Recompress
find . | cpio –quiet –dereference -o -H newc | lzma -7 > ../initrd.lz
#replace on cd…
cd ..
cp initrd.lz extract-cd/casper/

###################################
#Special commands needed to build new kernel to obtain Plymouth from chroot#
####################################
chroot edit
mount -t devpts none /dev/pts
mount -t proc none /proc
mount -t sysfs none /sys
plymouth-set-default-theme -R Ultimate_Edition_2.6
#replace below numbers with current kernel
mkinitramfs -o /initrd.lz 2.6.32-17-generic
umount /proc
umount /sys
umount /dev/pts
exit
umount /home/theemahn/wip/edit/dev
mv edit/initrd.lz extract-cd/casper/

#Above commands are now depriciated, below setting 250 will make it take over other o/s
#customizations
update-alternatives –install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/Ultimate_Edition_2.6/Ultimate_Edition_2.6.plymouth 250
#update-alternatives –config default.plymouth #use this command if you wish to change
#change plymouth to another theme always execute the following after the fact.
update-initramfs -u

###################################
# RIP Software no longer currently available for lucid #
###################################

#amarok14 I can get to work pulling a package from debian sid
xbmc amarok14 qt-recordmydesktop screem kqemu-common awn-manager mozilla-mplayer libdvdcss2

#################################
####### Begin Build ##################
#################################

#scrap old sqashfs we are going to build a new one
rm extract-cd/casper/filesystem.squashfs

#build new sqashfs grab some beer, chips & disks are now choked
mksquashfs edit extract-cd/casper/filesystem.squashfs -no-sparse

#manifest
chmod +w extract-cd/casper/filesystem.manifest
chroot edit dpkg-query -W –showformat=’${Package} ${Version}\n’ > extract-cd/casper/filesystem.manifest
cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop
sed -i ‘/ubiquity/d’ extract-cd/casper/filesystem.manifest-desktop

#calculate crc
cd extract-cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt

#build final iso – root overwrites ;)
mkisofs -r -V “Ultimate Edition 2.6″ -p TheeMahn -P “Ultimate Edition Team” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../ultimate-edition-2.6-x86.iso .

#Test
#copy blank Testing.img created with qemulator to wip folder
cd ..
#Testing is a blank Virtual Machine hard disk created with QEmulator.
kvm -m 2047 -smp 4 -usb -boot d -cdrom ultimate-edition-2.6-x86.iso -name Ultimate /media/Storage/Testing64.img

The custom debs I have written to automate the process:

ultimate-edition-customizations-0.3.0_all.deb
ultimate-edition-2.6_all.deb

ultimate-edition-customizations-0.3.0_all.deb does what it says customizes the distro mainly the /etc/skel currently adds compiz fusion to startup and enables it so if you have a compatible video card it will initiate on boot up. It also sets in my compiz settings which are all random so you get to see all the animations. It is quite the piece of work.

ultimate-edition-2.6_all.deb it installs all the software used in Ultimate Edition 2.6. This has squat to do with a theme… The end results, education.

[youtube]2IWCj4yjoVQ[/youtube]

[youtube]Q1MoOVWkGo[/youtube]

Youtube HQ