Gnome shell and Unity is sucks, Try here to build your own Ubuntu!!!

We all know Ubuntu Unity and Gnome-shell are sucks and crazy. They think now we are 7 years kids who love the flash,nice images etc . So I am not going to use Gnome or Fucking UNITY. Perhaps they are also permanent Windows users lol. And now trying to ripping off the Windows. So I customised my Ubuntu 12.04 and install KDE. KDE is nice and many distro such as Debian,Red hat enterprise, OpenSuse, Kubuntu etc use the KDE. If you want to customize your ISO just follow this tutorial.

Do you believe that I did not even able to take all the screenshot when wrote this articles ? Perhaps I can't and i don't try. I don't think so any power user or pentester will use GNOM 3 or UNITY. When I installed GNOME-SHELL on Ubuntu 1204 and it is able back the classic style but still the classic style also sucks but use-able somehow.

Frankly, I used KDE and Gnome both but when I installed Ubuntu 11.10 and 12.04 it just makes me cry!!

Anyway, If you don't want to install the KDE,XFCE or other interface over and over whenever you install the free Linux then follow this tutorial to customize your ISO .

First Install :

sudo apt-get install squashfs-tools genisoimage

Now we create a folder for our work:

mkdir kde-linux

Now move or copy the iso to your working folder:

mv /ubuntu-12.04-desktop-i386.iso


cd kde-linux

Now we need to mount the ISO. So first we create a folder:

mkdir mout

Now we mount the sucks ISO to mnt directory:

mount -o loop ubuntu-12.04-desktop-i386.iso mout

extract the ISO into a direcotry:

mkdir extracted
rsync --exclude=/casper/filesystem.squashfs -a mout/ extracted

Extracted the sqashfs filesystem this will take some times, So wait:

unsquashfs mnt/casper/filesystem.squashfs

When extraction 100% then just run the following command simply:
mv squashfs-root edit

What we need now? Now we chroot for fully customization . But let's do something before doing it.:

cp /etc/resolv.conf edit/etc/
cp /etc/hosts edit/etc/
mount --bind /dev/ edit/dev
Now Chroot so that you can install anything you want , lol install some hacking tools too hehe:

chroot edit

Anyway, Now we need to mount :

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

And run blindly:

export HOME=/root
export LC_ALL=C

We are almost done correctly then all things. Now we need :

#dbus-uuidgen > /var/lib/dbus/machine-id
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
Now we can install anything we want... So let's install KDE first (kde-plasma-desktop,kde-full,kubuntu-desktop)

first we run : apt-get update

now lets run:

apt-get install kde-plasma-desktop

and I get apt-get install kde-plasma-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kde-plasma-desktop

So I see the sources.list:

nano /etc/apt/sources.list

and I get only 3 source .

And I quickly copy all the source from installed Ubuntu
gedit /etc/apt/sources.list

Now copy all the source then paste to your editing sources.list

or you can completely replace the file by “cp” command.

Now run again apt-get update

apt-cache search kde-plasma-desktop
kde-plasma-desktop - KDE Plasma Desktop and minimal set of applications

apt-get install kde-plasma-desk

or you can just install kde-full:

apt-get install kde-full

Sucks , It will download 103 Megabyte. So Let's wait until it finish. But if you want to kde-full or kubuntu-desktop then it will download a lot. I prefer the minimal as I just want to leave the Gnome.

Anyway, If you want to install any other software :

apt-get install packagename such as apt-get install vlc

Now we installed all necessary and it is time to build the ISO. Just we need to remove everything what created :

rm -rf /tmp/* ~/.bash_history

rm /etc/hosts

rm /etc/resolv.conf

rm /var/lib/dbus/machine-id
rm /sbin/initctl

dpkg-divert --rename --remove /sbin/initctl

So now we need to umount what whatever we mounted .

umount /proc

umount /sys
umount /dev/pts
sudo umount edit/dev
Now the real things blindly do:

chmod +w extracted/casper/filesystem.manifest

 chroot edit dpkg-query -W --showformat='${Package} ${Version}\n' > extracted/casper/filesystem.manifest

 cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop

 sed -i '/ubiquity/d' extracted/casper/filesystem.manifest-desktop

 sed -i '/casper/d' extracted/casper/filesystem.manifest-desktop

Now we compress the filesystems :

mksquashfs edit extracted/casper/filesystem.squashfs  (It will take some time)

We need to update the size otherwise it will not match the correct installation when installing:

printf $(sudo du -sx --block-size=1 edit | cut -f1) > extracted/casper/filesystem.size 
Now :

cd extracted
rm md5sum.txt

find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/ | sudo tee md5sum.txt

We are alomost done :

 mkisofs -D -r -V "$IMAGE_NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -o ../your-new-linux-name.iso .

Now just burn the ISO into a blank DVD and Enjoy.

I say Good Bye UNITY AND GNOME !!!! You made the power users crazy. Try to develop it soon.


Post a Comment

Twitter Facebook

Design by