<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Unix, Life &#38; Everything</title>
	<atom:link href="http://unixlifeandeverything.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://unixlifeandeverything.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 30 Jan 2010 20:34:42 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='unixlifeandeverything.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Unix, Life &#38; Everything</title>
		<link>http://unixlifeandeverything.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://unixlifeandeverything.wordpress.com/osd.xml" title="Unix, Life &#38; Everything" />
	<atom:link rel='hub' href='http://unixlifeandeverything.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Total access to *BSD ufs partition on linux</title>
		<link>http://unixlifeandeverything.wordpress.com/2010/01/30/total-access-to-bsd-ufs-partition-on-linux/</link>
		<comments>http://unixlifeandeverything.wordpress.com/2010/01/30/total-access-to-bsd-ufs-partition-on-linux/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 20:10:49 +0000</pubDate>
		<dc:creator>unixlifeandeverything</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://unixlifeandeverything.wordpress.com/?p=76</guid>
		<description><![CDATA[That&#8217;s worked on ArchLinux with FreeBSD, but I thinks it&#8217;s worked for all Linux and BSD (ufs). You can damage your system, please if you don&#8217;t understand something are if you are not sure about the result, don&#8217;t do anything. I&#8217;m not responsable of the damages. Since few times, I&#8217;m interested by a compatibility of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=76&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>That&#8217;s worked on ArchLinux with FreeBSD, but I thinks it&#8217;s worked for all Linux and BSD (ufs).</em></p>
<p><em><span style="color:#ff0000;">You can damage your system, please if you don&#8217;t understand something are if you are not sure about the result, don&#8217;t do anything. I&#8217;m not responsable of the damages.</span></em></p>
<p>Since few times, I&#8217;m interested by a compatibility of the 2 systems. The last week I try to compiling my kernel on Arch Linux to enable UFS write support but I never compiling a kernel and I had some problems.</p>
<p>So today I try again and it&#8217;s run, the problems I had it&#8217;s with depmod, the name of System.map, vmlinuz26 and the configuration of grub&#8230;</p>
<p>By default <a href="http://www.kernel.org/">The Linux Kernel</a> can&#8217;t read on UFS partition, but not write. You should change the default configuration for enable the write support.</p>
<p>Create a directory for the building<br />
<code>mkdir ~/kernel</code></p>
<p><code>cd ~/kernel</code></p>
<p>I download the Latest Stable Kernel here =&gt; <a href="http://www.kernel.org/">http://www.kernel.org/</a><br />
In the kernel directory decompress the kernel archive (in my case the version was 2.6.32.7).<br />
The following commands <strong>not</strong> required to be root.<br />
<code>tar -jxvf  linux-2.6.32.7.tar.bz2</code></p>
<p><code>cd linux-2.6.32.7</code><br />
Cleaning the directory.<br />
<code>make mrproper</code></p>
<p>And if you want save the old configuration of the kernel.<br />
<code>zcat /proc/config.gz &gt; .config</code></p>
<p><code>make oldconfig</code></p>
<p>Now you can launch menuconfig for enable the UFS writing support.<br />
<code>make menuconfig</code></p>
<h3><span style="text-decoration:underline;"><strong>Select the file sytem section.</strong></span></h3>
<p><a href="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-192928_1680x1050_scrot.png"><img class="alignnone size-full wp-image-78" title="2010-01-30-192928_1680x1050_scrot" src="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-192928_1680x1050_scrot.png?w=480&#038;h=302" alt="" width="480" height="302" /></a></p>
<h3><span style="text-decoration:underline;"><strong>Select miscellaneous filesystems.<br />
</strong></span></h3>
<p><a href="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193003_1680x1050_scrot.png"><img class="alignnone size-full wp-image-79" title="2010-01-30-193003_1680x1050_scrot" src="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193003_1680x1050_scrot.png?w=480&#038;h=302" alt="" width="480" height="302" /></a></p>
<h3><span style="text-decoration:underline;"><strong>And finally enable the UFS writing support.<br />
</strong></span></h3>
<p><a href="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193036_1680x1050_scrot.png"><img class="alignnone size-full wp-image-80" title="2010-01-30-193036_1680x1050_scrot" src="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193036_1680x1050_scrot.png?w=480&#038;h=304" alt="" width="480" height="304" /></a></p>
<p>You can compile the Kernel.<br />
<code>make</code><br />
Please remember the last line with DEPMOD, get the name of your personnal kernel (the word after DEPMOD) it&#8217;s important for the end.<br />
For example in my case it was  something like this:</p>
<blockquote><p>DEPMOD              2.6.32.7-ARCH-perso</p></blockquote>
<p>Now you have to be root for the followings operations.<br />
<code>su</code></p>
<p><code>make modules_install</code></p>
<p><code>cp -v arch/x86/boot/bzImage /boot/vmlinuz26-perso</code></p>
<p><code> cp -v System.map /boot/System.map26-perso</code></p>
<p><code>mkinitcpio -k <span style="text-decoration:underline;">2.6.32.7-ARCH-perso</span> -g /boot/kernel26-perso.img</code><br />
Where <span style="text-decoration:underline;">2.6.32.7-ARCH-perso</span> is the DEPMOD argument.</p>
<p>The details for kernel compilation are found here =&gt; <a href="http://wiki.archlinux.org/index.php/Kernel_Compilation_From_Source">http://wiki.archlinux.org/index.php/Kernel_Compilation_From_Source</a></p>
<p>Now we need to add the entry in <strong>/boot/grub/menu.lst</strong> for booting on the new kernel.<br />
With your favorite text editor edit the file and add something like this :<br />
You have juste to copy and past the part of the existant line for the old kernel. (don&#8217;t remove the old if the kernel-perso don&#8217;t want to boot it&#8217;s usefull),<br />
and modify the number of entry, name, path to kernel.img and vmlinuz.</p>
<p><code># (4) Arch Linux Perso</code><br />
<code>title  Arch Linux Perso</code><br />
<code>root   (hd0,4)</code><br />
<code>kernel /vmlinuz26-perso root=/dev/disk/by-uuid/658d9411-a8ac-4398-a852-efb21af45dba ro vga=794 quiet</code><br />
<code>initrd /kernel26-perso.img</code></p>
<p>Reboot on the new kernel&#8230;</p>
<p>Now I want reconstitute the arborescence of FreeBSD system something like that :<br />
<strong>/<br />
swap<br />
/var<br />
/tmp<br />
/usr<br />
/home</strong></p>
<p><code>su</code></p>
<p><code>mkdir /mnt/freebsd</code></p>
<p>Now execute this command for know the bsd partition disposition.<br />
<code>dmesg | grep bsd</code></p>
<blockquote><p>sda3: &lt;bsd: sda10 sda11 sda12 sda13 sda14 sda15 &gt;</p></blockquote>
<p>In my case sda3 is the &#8220;<strong>/</strong>&#8221; partition, so I mount it first.<br />
<code>mount -t ufs -o ufstype=ufs2 /dev/sda3 /mnt/freebsd/</code></p>
<p>sda10 and sda3 are the same partition.<br />
Change /dev/sda3/ by your / FreeBSD partition.<br />
I don&#8217;t want to mount the swap and it&#8217;s not a ufs partition so sda11 is forget.<br />
In order :<br />
<em>I mount sda12 in /mnt/freebsd/var</em><br />
<code>mount -t ufs -o ufstype=ufs2 /dev/sda12 /mnt/freebsd/var/</code><br />
<em>I mount sda13 in /mnt/freebsd/tmp</em><br />
<code>mount -t ufs -o ufstype=ufs2 /dev/sda13 /mnt/freebsd/tmp/</code><br />
<em>I mount sda14 in /mnt/freebsd/usr</em><br />
<code>mount -t ufs -o ufstype=ufs2 /dev/sda14 /mnt/freebsd/usr/</code><br />
<em>I mount sda15 in /mnt/freebsd/home</em><br />
<code>mount -t ufs -o ufstype=ufs2 /dev/sda15 /mnt/freebsd/home/</code></p>
<p>If all is good and if you can create file or editing an existing file, etc&#8230;you can edit the fstab for automounting the partition at boot.<br />
In my case the fstab look like that :</p>
<blockquote><p>#<br />
# FreeBSD Partitions<br />
#<br />
/dev/sda3       /mnt/freebsd              ufs     ufstype=ufs2            0       0<br />
/dev/sda12      /mnt/freebsd/var        ufs     ufstype=ufs2            0       0<br />
/dev/sda13      /mnt/freebsd/tmp       ufs     ufstype=ufs2            0       0<br />
/dev/sda14      /mnt/freebsd/usr        ufs     ufstype=ufs2            0       0<br />
/dev/sda15      /mnt/freebsd/home     ufs     ufstype=ufs2            0       0</p></blockquote>
<p><span style="text-decoration:line-through;">I change the permission of the /mnt/freebsd/home/MY_USER<br />
<code>chown -R LOGIN /mnt/freebsd/home/MY_USER</code></span></p>
<p>Not a good idea, that&#8217;s modify the bsd partition and I couldn&#8217;t start x&#8230;</p>
<p>Everything it&#8217;s ok.<br />
Bye</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unixlifeandeverything.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unixlifeandeverything.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unixlifeandeverything.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=76&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unixlifeandeverything.wordpress.com/2010/01/30/total-access-to-bsd-ufs-partition-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af0d7d66a08a9324606dc2e5caf36a7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">unixlifeandeverything</media:title>
		</media:content>

		<media:content url="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-192928_1680x1050_scrot.png" medium="image">
			<media:title type="html">2010-01-30-192928_1680x1050_scrot</media:title>
		</media:content>

		<media:content url="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193003_1680x1050_scrot.png" medium="image">
			<media:title type="html">2010-01-30-193003_1680x1050_scrot</media:title>
		</media:content>

		<media:content url="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-30-193036_1680x1050_scrot.png" medium="image">
			<media:title type="html">2010-01-30-193036_1680x1050_scrot</media:title>
		</media:content>
	</item>
		<item>
		<title>Pidgin &#8211; Netsoul for *unix 32/64 Bits</title>
		<link>http://unixlifeandeverything.wordpress.com/2010/01/29/pidgin-netsoul-for-unix-3264-bits/</link>
		<comments>http://unixlifeandeverything.wordpress.com/2010/01/29/pidgin-netsoul-for-unix-3264-bits/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 08:35:08 +0000</pubDate>
		<dc:creator>unixlifeandeverything</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unixlifeandeverything.wordpress.com/?p=63</guid>
		<description><![CDATA[Netsoul is a IM protocol use in Epitech, Epita, without Netsoul the student can&#8217;t access to the networks resources. So when I&#8217;ve install my Arch Linux 64bits, I had a little problem, the Pidgin plugin for Netsoul found here didn&#8217;t work. On the Sourceforge project page we can see how to solved this problem. Before [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=63&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Netsoul is a IM protocol use in Epitech, Epita, without Netsoul the student can&#8217;t access to the networks resources.<br />
So when I&#8217;ve install my Arch Linux 64bits, I had a little problem, the <a href="http://www.pidgin.im/">Pidgin</a> plugin for Netsoul found <a href="http://sourceforge.net/projects/gaim-netsoul/">here</a> didn&#8217;t work.<br />
On the Sourceforge project page we can see how to solved this problem.</p>
<p>Before starting you should install Pidgin on your computer.<br />
On <strong>FreeBSD</strong> :<br />
<code># cd /usr/ports/net-im/pidgin</code></p>
<p><code>#make</code></p>
<p><code># make install clean</code><br />
Or<br />
<code># pkg_add -r pidgin</code></p>
<p>On <strong>ArchLinux </strong>:<br />
<code>$ yaourt -S pidgin</code><br />
Or<br />
<code># pacman -S pidgin</code></p>
<p>Download the plugin source on Sourceforge : <a href="http://downloads.sourceforge.net/project/gaim-netsoul/gaim-netsoul/0.2.2/gaim-netsoul-0.2.2.tar.gz">http://downloads.sourceforge.net/project/gaim-netsoul/gaim-netsoul/0.2.2/gaim-netsoul-0.2.2.tar.gz</a></p>
<p>Decompress source :<br />
<code>tar zxvf gaim-netsoul-0.2.2.tar.gz</code></p>
<p>If you have a 64Bits version you need to modify a line in <strong>ns_utils.c</strong>(change<strong> emacs</strong> by your favorite text editor. i.e : nano, vi, gedit&#8230;)<br />
<code>cd gaim-netsoul-0.2.2/src/</code></p>
<p><code>emacs +243 ns_utils.c</code><br />
Change<br />
<code>unsigned      len;</code><br />
By<br />
<code>size_t      len;</code></p>
<p>Now you have just to compiling the source.<br />
<code>cd ../</code></p>
<p><code>./configure --prefix=/usr</code></p>
<p><code>make</code></p>
<p><code>sudo make install</code></p>
<p><code>make clean</code></p>
<p>Restart pidgin, normally you have the Netsoul protocol in the list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unixlifeandeverything.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unixlifeandeverything.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unixlifeandeverything.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=63&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unixlifeandeverything.wordpress.com/2010/01/29/pidgin-netsoul-for-unix-3264-bits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af0d7d66a08a9324606dc2e5caf36a7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">unixlifeandeverything</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Openbox</title>
		<link>http://unixlifeandeverything.wordpress.com/2010/01/28/install-openbox/</link>
		<comments>http://unixlifeandeverything.wordpress.com/2010/01/28/install-openbox/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 23:03:01 +0000</pubDate>
		<dc:creator>unixlifeandeverything</dc:creator>
				<category><![CDATA[Config]]></category>
		<category><![CDATA[Openbox]]></category>

		<guid isPermaLink="false">http://unixlifeandeverything.wordpress.com/?p=11</guid>
		<description><![CDATA[Why Openbox ? When I leave Ubuntu (with gnome) for a more configurable and lightweight distribution (even if I know Ubuntu can do that), I wanted to change my desktop environment too. On the (French) forums of Archlinux many people using Openbox and at this time I followed the #! CrunchBang Linux forums a Linux [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=11&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><strong>Why Openbox ?</strong></h1>
<p>When I leave Ubuntu (with gnome) for a more configurable and lightweight distribution (even if I know Ubuntu can do that), I wanted to change my desktop environment too. On the (French) forums of <a href="http://forums.archlinux.fr/">Archlinux</a> many people using <a href="http://icculus.org/openbox/index.php/Main_Page">Openbox</a> and at this time I followed the <a href="http://crunchbanglinux.org/forums/">#! CrunchBang Linux forums</a> a Linux distribution based on the Openbox + <a href="http://code.google.com/p/tint2/">tint2</a> environment. CrunchBang user make beautiful configuration for the duo.</p>
<p>I was also interesting by <a href="//pekwm.org/projects/pekwm">pekwm</a> &amp; <a href="http://nsf.110mb.com/bmpanel/">Bmpanel</a> (maybe in the future?), I don&#8217;t remember the others&#8230;</p>
<h1>Install</h1>
<p>I think they are on the depot of your distribution, for example on :</p>
<h3 style="padding-left:30px;">Archlinux</h3>
<p style="padding-left:60px;"><span style="text-decoration:underline;">For Openbox :</span><br />
<code>yaourt -S openbox</code></p>
<p style="padding-left:60px;"><span style="text-decoration:underline;">Extra (not on all distrib) &#8211; Graphic applications for configuration :</span></p>
<p style="padding-left:60px;"><code>yaourt -S obconf obmenu obkey openbox-themes obtheme</code></p>
<h3 style="padding-left:30px;">FreeBSD</h3>
<p style="padding-left:60px;"><span style="text-decoration:underline;">For Openbox :</span><br />
<code># cd /usr/ports/x11-wm/openbox/</code></p>
<p style="padding-left:60px;"><code># make install clean</code></p>
<p>If you need a <strong>~/.xinitrc</strong> for launch a session you can add that. (I use <a href="http://slim.berlios.de/">Slim</a> for launch X session and I need it)</p>
<p style="padding-left:30px;"><code>echo "exec ck-launch-session openbox-session" &gt; ~/.xinitrc</code></p>
<p>I had <em>ck-lauch-session</em> because of<a href="http://www.freedesktop.org/wiki/Software/ConsoleKit"> ConsoleKit</a> (it&#8217;s useful for mounting automatically a usb key for example without root right), on FreeBSD <em>ck-launch-session</em> doesn&#8217;t work, you have juste to put :</p>
<p style="padding-left:30px;"><code>echo "exec openbox-session" &gt; ~/.xinitrc</code></p>
<p>You need create configuration files :</p>
<p style="padding-left:30px;"><strong>Archlinux</strong></p>
<p style="padding-left:60px;"><code>mkdir -p ~/.config/openbox</code></p>
<p style="padding-left:60px;"><code>cp /etc/xdg/openbox/* ~/.config/openbox</code></p>
<p style="padding-left:30px;"><strong>FreeBSD</strong></p>
<p style="padding-left:60px;"><code>mkdir -p ~/.config/openbox</code></p>
<p style="padding-left:60px;"><code>cp /usr/local/share/etc/xdg/openbox/* ~/.config/openbox</code></p>
<p style="padding-left:60px;">
<p>It&#8217;s all for today&#8230;tonight maybe.</p>
<p>I will explain the configuration of Openbox later, and the panel, and others usefull utilities.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unixlifeandeverything.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unixlifeandeverything.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unixlifeandeverything.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=11&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unixlifeandeverything.wordpress.com/2010/01/28/install-openbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af0d7d66a08a9324606dc2e5caf36a7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">unixlifeandeverything</media:title>
		</media:content>
	</item>
		<item>
		<title>Search command in Shell</title>
		<link>http://unixlifeandeverything.wordpress.com/2010/01/08/a-shell-tips/</link>
		<comments>http://unixlifeandeverything.wordpress.com/2010/01/08/a-shell-tips/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 10:16:51 +0000</pubDate>
		<dc:creator>unixlifeandeverything</dc:creator>
				<category><![CDATA[shell tips]]></category>

		<guid isPermaLink="false">http://unixlifeandeverything.wordpress.com/?p=39</guid>
		<description><![CDATA[I like the Zsh shell, I saw so many compliment about this shell in planets, or blogs. So I want to try the &#8220;monster&#8221;. In the configuration file .zshrc (take at school) I have a useful function name clean. It&#8217;s look like that : [franky] clean removed: ./lib/toto~ removed: ./lib/.tata~ removed: ./toto~ The function look [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=39&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I like the <a href="http://www.zsh.org/">Zsh</a> shell, I saw so many compliment about this shell in planets, or blogs. So I want to try the &#8220;monster&#8221;. In the configuration file <em><strong>.zshrc </strong></em>(take at school) I have a useful function name clean.</p>
<p>It&#8217;s look like that :<br />
<code>[franky] clean</code></p>
<p><code>removed: ./lib/toto~</code></p>
<p><code>removed: ./lib/.tata~</code></p>
<p><code>removed: ./toto~</code></p>
<p>The function look like that :<br />
<code>clean()</code></p>
<p><code>{</code></p>
<p><code>SEARCH='.'</code></p>
<p><code>if [ ${1} ]</code></p>
<p><code>then</code></p>
<p><code>SEARCH=${1}</code></p>
<p><code>fi</code></p>
<p><code>find ${SEARCH} -type f \( -name "*~" -or -name ".*~" -or -name "\#*" -or -name "\#.*" \) -exec rm -fv {} \;</code></p>
<p><code>}</code></p>
<p>So, I want to make a function, who works with the same method but it&#8217;s have to find word (or <strong>grep</strong> pattern) occurrences in file recursively and indicate the line number.</p>
<p>I find few solutions, I prefer the first (I&#8217;m not sure but it&#8217;s the faster I think).</p>
<p>The default PATH is the current directory &#8221; <strong>.</strong> &#8220;.</p>
<p><code>grep -nr $PATTERN $PATH</code></p>
<p><code>grep -n $PATTERN `find $PATH -type f`</code></p>
<p><code>find $PATH -type f -exec grep -n $EXPRESSION {} +</code></p>
<p>But I&#8217;m not satisfying by the result, I learn few things about <strong>awk</strong> utilisation, and it was great for this case. The problem with awk is it can&#8217;t interpret the colour variable, so the awk line is not pretty.</p>
<p><code>search()</code></p>
<p><code>{</code></p>
<p><code>SEARCH="."</code></p>
<p><code>if [ $# = 0 ]</code></p>
<p><code>then</code></p>
<p><code>echo -e "Usage: search PATTERN [DIRECTORY]"</code></p>
<p><code>else</code></p>
<p><code>if [ $# = 2 ]</code></p>
<p><code>then</code></p>
<p><code>SEARCH=${2}</code></p>
<p><code>fi</code></p>
<p><code>grep -nI ${1} `find ${SEARCH} -type f 2&gt;&amp;/dev/null` 2&gt;&amp;/dev/null |\</code></p>
<p><code>grep '^\'${SEARCH} |\</code></p>
<p><code>grep -v '/\.' |\</code></p>
<p><code>awk -F: ' {print "<strong>\</strong>033[1m<strong>\</strong>33[7;33m"$2 "<strong>\</strong>033[0;39m" "<strong>\</strong>033[3m<strong><br />
\</strong>033[1m " $1 "<strong>\</strong>033[0;31m <strong>\</strong>033[3m\n\t" $3"<strong>\</strong>33[0;39m"}'</code></p>
<p><code>fi</code></p>
<p><code>}</code></p>
<p>Maybe you should delete the &#8220;&amp;&#8221; one bash.<br />
The result look like that. (click to see large view)</p>
<p><a href="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-08-095833_1680x1050_scrot.png"><img class="alignnone size-medium wp-image-24" title="2010-01-08-095833_1680x1050_scrot" src="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-08-095833_1680x1050_scrot.png?w=504&#038;h=386" alt="" width="504" height="386" /></a></p>
<p>For Archlinux user maybe you see the colour look like <strong>yaourt</strong>&#8230;<br />
That&#8217;s works on bash, zsh, and I haven&#8217;t test others for the moment, you can try and inform me of the comportment.<br />
If you have <strong>emacs, nano, vi</strong> installed you can open the file with line option easily.<br />
Example :<br />
<code>emacs, vi or nano +52 minishell/my.h</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unixlifeandeverything.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unixlifeandeverything.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unixlifeandeverything.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=39&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unixlifeandeverything.wordpress.com/2010/01/08/a-shell-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af0d7d66a08a9324606dc2e5caf36a7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">unixlifeandeverything</media:title>
		</media:content>

		<media:content url="http://unixlifeandeverything.files.wordpress.com/2010/01/2010-01-08-095833_1680x1050_scrot.png?w=300" medium="image">
			<media:title type="html">2010-01-08-095833_1680x1050_scrot</media:title>
		</media:content>
	</item>
		<item>
		<title>Traditionnal first post&#8230;</title>
		<link>http://unixlifeandeverything.wordpress.com/2009/12/22/traditionnal-first-post/</link>
		<comments>http://unixlifeandeverything.wordpress.com/2009/12/22/traditionnal-first-post/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:52:40 +0000</pubDate>
		<dc:creator>unixlifeandeverything</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://unixlifeandeverything.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi everyone, I&#8217;m 18 french student in first year at Epitech, a computer science school. I want to create a blog for a long time about the *unix system (configuration, tips, discoveries&#8230;) for me and all people who are interrested.I create my blog now because our english teacher want we make a blog in english, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=3&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everyone,<br />
I&#8217;m 18 french student in first year at Epitech, a computer science school.<br />
I want to create a blog for a long time about the *unix system (configuration, tips, discoveries&#8230;) for me and all people who are interrested.I create my blog now because our english teacher want we make a blog in english, I hope you will notify me about my grammatical errors.</p>
<p>I have so many things I want to do, for exemple I decided to make / install a LFS (Linux From Scratch) system on my old pc. I don&#8217;t how much time was required for doing that.</p>
<p>I like lightweight and highly configurable softwares, I using <a href="http://www.archlinux.org/">Arch Linux</a> and <a href="http://www.freebsd.org/">FreeBSD</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/unixlifeandeverything.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/unixlifeandeverything.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/unixlifeandeverything.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unixlifeandeverything.wordpress.com&amp;blog=11071325&amp;post=3&amp;subd=unixlifeandeverything&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unixlifeandeverything.wordpress.com/2009/12/22/traditionnal-first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/af0d7d66a08a9324606dc2e5caf36a7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">unixlifeandeverything</media:title>
		</media:content>
	</item>
	</channel>
</rss>
