<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Personal blog</description><title>ls</title><generator>Tumblr (3.0; @truels)</generator><link>http://t.0ls.ru/</link><item><title>Very good book!</title><description>&lt;a href="http://dl.dropbox.com/u/1578273/68911_rozenfeld_l_morvil_p_informacionnaya_arhitektura_v_internete.pdf"&gt;Very good book!&lt;/a&gt;</description><link>http://t.0ls.ru/post/247338046</link><guid>http://t.0ls.ru/post/247338046</guid><pubDate>Tue, 17 Nov 2009 23:08:47 +0700</pubDate><category>book</category></item><item><title>Create your own customized Ubuntu Live CD</title><description>&lt;p&gt;&lt;a href="http://hung.tumblr.com/post/245956825" target="_blank"&gt;hung&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Here on Ghacks I have mentioned a few tools that allow you to create various types of Linux CDs. Most of these tools allow you to create Live CDs that are either images of your current working distribution or tools to create a Live CD with special packages. But none of these tools, so far, have allowed you to really get customized with your Live CD. You can’t specify desktop backgrounds or other configuration options. These are tasks that can really make creating a customized Live CD worth the effort.&lt;/p&gt;
&lt;p&gt;In this article I am going to show you how to take a downloaded Ubuntu 9.10 iso image, mount it, customize it, and rebuild the Live CD from your newly customized image. This process can be time consuming, but is worth it. This entire process will be done from the command line, so get your fingers ready to type.&lt;/p&gt;
&lt;p&gt;The first thing you are going to need is an ISO image of a recent release. So hop on over to Ubuntu’s web site and download a fresh copy of 9.10. Once that is done you are ready to get to work.&lt;/p&gt;
&lt;p&gt;Before you continue with the customization, you need to install some tools that will be necessary. From the command line issue this command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;sudo aptitude install squashfs-tools genisoimage&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now create an empty directory that will be used to work with the ISO image. Let’s create this in your users home directory, so issue the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;mkdir ~/LIVECD&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now move that freshly downloaded iso image to the new directory and get ready to work.&lt;/p&gt;
&lt;p&gt;The first thing to do is to mount the ISO image with the command. You will need to create a subdirectory to mount the image to, so issue the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;mkdir ~/LIVECD/mount&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now mount the iso with the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;sudo mount -o loop ubuntu-9.10-desktop-i386.iso ~/LIVECD/mount/&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now you will need to create yet another directory that you will then extract the contents of ~/LIVECD/mount to. Issue the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;mkdir ~/LIVECD/extract-cd&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;And then extract with the command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now extract the squashfs file system with the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;sudo unsquashfs mount/casper/filesystem.squashfs&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo mv squashfs-root edit&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The former of the above two commands will take some time. That is normal.&lt;br/&gt; If you will need network access with this system (and you probably will) you will need to edit the &lt;b&gt;/etc/resolv.conf&lt;/b&gt; file so it has the proper DNS addresses. To do this just copy your current working &lt;b&gt;resolve.conf &lt;/b&gt;file into the &lt;b&gt;~/LIVECD/edit/etc &lt;/b&gt;directory with the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;sudo cp /etc/resolve.conf ~/LIVECD/edit/etc/&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now to mount some important directories on your system:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;sudo mount --bind /dev/ edit/dev&lt;br/&gt; sudo chroot edit&lt;br/&gt; mount -t proc none /proc&lt;br/&gt; mount -t sysfs none /sys&lt;br/&gt; mount -t devpts none /dev/pts&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It will be very important later on to unmount these directories.&lt;/p&gt;
&lt;p&gt;Next we make it so we avoid any locale issues and allow us to import GPG keys (if necessary) we issue the commands:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;export HOME=/root&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;export LC_ALL=C&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Now you can view all packages installed on the mounted ISO with the command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;dpkg-query -W --showformat='${Package}\n' | sort -nr | less&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can go through that list and delete any package you don’t want on the Live CD with the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;aptitude purge PACKAGE_NAME&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Where &lt;i&gt;PACKAGE_NAME&lt;/i&gt; is the name of the package you want to remove. You can then install new packages on the Live CD by issuing the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;aptitude install PACKAGE_NAME&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Where &lt;i&gt;PACKAGE_NAME&lt;/i&gt; is the name of the package to install.&lt;/p&gt;
&lt;p&gt;What about desktop background images? Yes, you can customize this as well. If you look at the file &lt;b&gt;/usr/share/gnome-background-properties/ubuntu-wallpapers.xml&lt;/b&gt; you will see where the default background is configured. You can edit that file, but then you will have to make sure the .png file you want to use is located in&lt;b&gt; &lt;b&gt;/usr/share/gconf/defaults/16_ubuntu-wallpapers&lt;/b&gt;. &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;You can also edit the &lt;b&gt;/etc/gconf/gconf.xml.defaults/%gconf-tree.xml &lt;/b&gt;file to make any additional customization changes (fonts, colors, panel options, etc) within that file. Understand that what this file is a blank file which you will add new default values to. If you would rather just use the gconftool to edit these values you can do so with a command like:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –type string –set KEY “VALUE”&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Where KEY is the key you want to change and VALUE is the value to set for the key.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;There are a ton of other possible configurations you can undertake here. But for the scope of this article, we’ll leave it with what we have.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;It’s time to make sure to remove any temporary files that might be left behind from any package installation with the command:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;aptitude clean&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;You can also remove the /etc/resolv.conf file you added with the command:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;rm /etc/resolv.conf&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Time to unmount the directories:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;umount /proc&lt;br/&gt; umount /sys&lt;br/&gt; umount /dev/pts&lt;br/&gt; exit&lt;br/&gt; sudo umount edit/dev&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Put it all back together&lt;/p&gt;
&lt;p&gt;Now it’s time to piece everything back together. First you have to regenerate the manifest:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;chmod +w extract-cd/casper/filesystem.manifest&lt;br/&gt; sudo chroot edit dpkg-query -W --showformat='${Package} ${Version}\n' &gt; extract-cd/casper/filesystem.manifest&lt;br/&gt; sudo cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop&lt;br/&gt; sudo sed -i '/ubiquity/d' extract-cd/casper/filesystem.manifest-desktop&lt;br/&gt; sudo sed -i '/casper/d' extract-cd/casper/filesystem.manifest-desktop&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now to compress the file system:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;sudo rm extract-cd/casper/filesystem.squashfs&lt;br/&gt; sudo mksquashfs edit extract-cd/casper/filesystem.squashfs&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The above command will take some time.&lt;/p&gt;
&lt;p&gt;Now open up the ~/LIVECD/extract-cd/README.diskdefines file and make any necessary changes.&lt;/p&gt;
&lt;p&gt;The next step requires you to remove the old md5 sums and calculate new sums. Do this with the following commands:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;cd extract-cd&lt;br/&gt; sudo rm md5sum.txt&lt;br/&gt; find -type f -print0 | xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now it’s time to create the ISO image. Do that with the following commands:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;i&gt;sudo mkisofs -D -r -V "$IMAGE_NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../ubuntu-9.04.1-desktop-i386-custom.iso .&lt;/i&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now, in the ~/LIVECD directory you will have your new ISO to burn to disk and use.&lt;/p&gt;
&lt;p&gt;Congratulations, you just created your own customized Ubuntu Live CD!&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://t.0ls.ru/post/246328003</link><guid>http://t.0ls.ru/post/246328003</guid><pubDate>Tue, 17 Nov 2009 03:48:11 +0700</pubDate></item><item><title>My web browser</title><description>&lt;p&gt;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091116 Minefield/3.7a1pre&lt;/p&gt;
&lt;p&gt;what you are using?&lt;/p&gt;</description><link>http://t.0ls.ru/post/246315568</link><guid>http://t.0ls.ru/post/246315568</guid><pubDate>Tue, 17 Nov 2009 03:34:00 +0700</pubDate><category>firefox</category><category>browser</category></item><item><title>"Внедрение и вовлечение"</title><description>“Внедрение и вовлечение”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;В.Пелевин, «Поколение П» (via &lt;a href="http://t.alta1r.ru/" target="_blank"&gt;alta1r&lt;/a&gt;)&lt;/em&gt;</description><link>http://t.0ls.ru/post/246306817</link><guid>http://t.0ls.ru/post/246306817</guid><pubDate>Tue, 17 Nov 2009 03:23:50 +0700</pubDate></item><item><title>Karandash feat. LENIN - Vse Lubyat Rodinu</title><description>&lt;embed type="application/x-shockwave-flash" src="http://t.0ls.ru/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/246297849/tumblr_kt7xhv9UBv1qarcqn&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Karandash feat. LENIN - Vse Lubyat Rodinu&lt;/p&gt;</description><link>http://t.0ls.ru/post/246297849</link><guid>http://t.0ls.ru/post/246297849</guid><pubDate>Tue, 17 Nov 2009 03:13:00 +0700</pubDate><category>music</category><category>rap</category><category>russia</category></item><item><title>I used to ArchLinux and very, very happy</title><description>&lt;p&gt;&lt;a title="http://www.archlinux.org/" target="_blank" href="http://www.archlinux.org/"&gt;&lt;a href="http://www.archlinux.org/" target="_blank"&gt;http://www.archlinux.org/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://t.0ls.ru/post/246295236</link><guid>http://t.0ls.ru/post/246295236</guid><pubDate>Tue, 17 Nov 2009 03:10:00 +0700</pubDate><category>linux</category><category>arch</category><category>archlinux</category></item><item><title>Cool Russian video from the conference web-design and user...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/w_s24hJc38A&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/w_s24hJc38A&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Cool Russian video from the conference web-design and user interface  design “404”&lt;/p&gt;</description><link>http://t.0ls.ru/post/246273995</link><guid>http://t.0ls.ru/post/246273995</guid><pubDate>Tue, 17 Nov 2009 02:43:00 +0700</pubDate><category>video</category><category>design</category><category>web</category><category>404</category><category>Russia</category></item><item><title>Welcome to my personal blog. This is my first blog in English!...</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_kt7viiYGFt1qarcqno1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Welcome to my personal blog. This is my first blog in English! I’m happy!&lt;/p&gt;</description><link>http://t.0ls.ru/post/246263751</link><guid>http://t.0ls.ru/post/246263751</guid><pubDate>Tue, 17 Nov 2009 02:30:18 +0700</pubDate></item></channel></rss>
