<?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/"
	>

<channel>
	<title>Chmouel&#039;s Blog &#187; Linux</title>
	<atom:link href="http://blog.chmouel.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chmouel.com</link>
	<description>Random and probably boring stuff.</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:28:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Howto use backtrack4 from hard disk with Grub2</title>
		<link>http://blog.chmouel.com/2010/03/08/howto-use-backtrack4-from-hard-disk-with-grub2/</link>
		<comments>http://blog.chmouel.com/2010/03/08/howto-use-backtrack4-from-hard-disk-with-grub2/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 12:00:18 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.chmouel.com/?p=284</guid>
		<description><![CDATA[If you want to boot backtrack4 from time to time on your Linux desktop/laptop but don&#8217;t want to carry it on a USB drive (or CDROM) on you then this guide may help. I am using Debian unstable on my &#8230; <a href="http://blog.chmouel.com/2010/03/08/howto-use-backtrack4-from-hard-disk-with-grub2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want to boot backtrack4 from time to time on your Linux desktop/laptop but don&#8217;t want to carry it on a USB drive (or CDROM) on you then this guide may help.</p>
<p>I am using Debian unstable on my laptop but I am sure you can adapt it to anything you want. I am using another partition (/dev/sda6) as my backtrack partition but it&#8217;s possible to copy the full thing in / as well on your main partition.</p>
<p>Download backtrack4 from backtrack website :</p>
<p><a href="http://www.backtrack-linux.org/downloads/">http://www.backtrack-linux.org/downloads/</a></p>
<ul>
<li>mount the iso image locally :</li>
</ul>
<blockquote><p>sudo mount -o loop bt4-final.iso /mnt</p></blockquote>
<ul>
<li>copy the content of the iso to the root of the chosen partition (mounted in /media/part6 for me) :</li>
</ul>
<blockquote><p>cd /mnt;sudo rsync &#8211;progress -avu * /media/part6/</p></blockquote>
<ul>
<li>Configure grub :</li>
</ul>
<blockquote><p>sudo su -<br />
cat &lt; /etc/grub.d/50_Backtrack<br />
#!/bin/sh<br />
exec tail -n +3 $0<br />
menuentry &#8220;Backtrack&#8221; {<br />
linux (hd0,6)/boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0&#215;317<br />
initrd  (hd0,6)/boot/initrd.gz<br />
}<br />
EOF<br />
chmod +x /etc/grub.d/50_Backtrack</p></blockquote>
<ul>
<li>Update grub</li>
</ul>
<blockquote><p>sudo update-grub</p></blockquote>
<p>And you should be able to boot the Backtrack menu, make sure this point to the right partition for me it&#8217;s (hd0,6) because my backtrack copied CD is on /dev/sda6 but your mileage may differ.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2010/03/08/howto-use-backtrack4-from-hard-disk-with-grub2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>XMPP notification for irssi running in a screen on a remote host</title>
		<link>http://blog.chmouel.com/2009/12/20/xmpp-notification-for-irssi-running-in-a-screen-on-a-remote-host/</link>
		<comments>http://blog.chmouel.com/2009/12/20/xmpp-notification-for-irssi-running-in-a-screen-on-a-remote-host/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 15:41:55 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.chmouel.com/?p=261</guid>
		<description><![CDATA[Like a lot of people I have my irssi on a server in a screen. This has been working great so far but my only concerns are the notifications on the desktop when something happening. Over the time I have &#8230; <a href="http://blog.chmouel.com/2009/12/20/xmpp-notification-for-irssi-running-in-a-screen-on-a-remote-host/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Like a lot of people I have my irssi on a server in a screen. This has<br />
been working great so far but my only concerns are the notifications<br />
on the desktop when something happening.</p>
<p>Over the time I have found some different solution with mitigated<br />
results for me :</p>
<p>- Use fanotify script with the libnotify-bin and SSH like mentioned <a href=" http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html">here</a>.</p>
<p>- Setup your irssi (or other) as irc proxy bouncer and connect with<br />
your desktop client (like xchat) to get notification. </p>
<p>The fanotify is kind of very hacky on a laptop with intermittent<br />
connection and having a cron doing a ssh every minutes or so is not<br />
ideal, not talking about no passphrase ssh key or having to snoop the<br />
SSH_AGENT variable to connect without password.</p>
<p>The via proxy method is not my thing and I don&#8217;t feel like having<br />
xchat open all the time just for it and I anyway usually forget to<br />
launch it.</p>
<p>My solution is to have a plugin for irssi notify me via XMPP if there<br />
is a direct message addressed to me. I usually get my pidgin or gmail<br />
alway open and if i don&#8217;t since it goes to a gmail account I got gmail<br />
sending me an email about it.</p>
<p>You can find all the information about the install and configuration<br />
here :</p>
<p><a href="http://github.com/chmouel/irssi-xmpp-notify">http://github.com/chmouel/irssi-xmpp-notify<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2009/12/20/xmpp-notification-for-irssi-running-in-a-screen-on-a-remote-host/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vmware vmplayer and kernel 2.6.32</title>
		<link>http://blog.chmouel.com/2009/12/05/vmware-vmplayer-and-kernel-2-6-32/</link>
		<comments>http://blog.chmouel.com/2009/12/05/vmware-vmplayer-and-kernel-2-6-32/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 01:35:01 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.chmouel.com/?p=258</guid>
		<description><![CDATA[So you have a shiny new linux-2.6.32 kernel installed but your VMPlayer does not work anymore since the vmnet module does not compile by throwing this error : CC [M] /tmp/vmware-root/modules/vmnet-only/vnetEvent.o CC [M] /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o /tmp/vmware-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerEventHandler’: /tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: &#8230; <a href="http://blog.chmouel.com/2009/12/05/vmware-vmplayer-and-kernel-2-6-32/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you have a shiny new linux-2.6.32 kernel installed but your VMPlayer does not work anymore since the vmnet module does not compile by throwing this error :</p>
<blockquote><p>CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetEvent.o<br />
CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerEventHandler’:<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: (Each undeclared identifier is reported only once<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: for each function it appears in.)<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerRead’:<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘signal_pending’<br />
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘schedule’<br />
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/vnetUserListener.o] Error 1<br />
make[1]: *** [_module_/tmp/vmware-root/modules/vmnet-only] Error 2<br />
make[1]: Leaving directory `/opt/temp/linux-2.6.32&#8242;<br />
make: *** [vmnet.ko] Error 2</p></blockquote>
<p>Just do the following to fix it :</p>
<p>make sure first you have installed the latest vmplayer (VMware-Player-3.0.0-203739.i386.bundle) at this time for me.</p>
<ul>
<li> cd /tmp</li>
</ul>
<ul>
<li> tar xf /usr/lib/vmware/modules/source/vmnet.tar</li>
</ul>
<ul>
<li> cd vmnet-only</li>
</ul>
<ul>
<li> vim vnetUserListener.c</li>
</ul>
<ul>
<li> go to line 37 (after the last include)</li>
</ul>
<ul>
<li> add this line #include &#8220;compat_sched.h&#8221;</li>
</ul>
<ul>
<li> exit your editor</li>
</ul>
<ul>
<li> cd /tmp</li>
</ul>
<ul>
<li> sudo tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only</li>
</ul>
<ul>
<li>restart vmplayer</li>
</ul>
<p>When recompiling the kernel module it should get it built properly and working it seems&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2009/12/05/vmware-vmplayer-and-kernel-2-6-32/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Toshiba Regza 32AV615DB blank screen HDMI Linux</title>
		<link>http://blog.chmouel.com/2009/12/03/toshiba-regza-32av615db-blank-screen-hdmi-linux/</link>
		<comments>http://blog.chmouel.com/2009/12/03/toshiba-regza-32av615db-blank-screen-hdmi-linux/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 17:17:19 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.chmouel.com/?p=255</guid>
		<description><![CDATA[I have this nice Toshiba TV which is connected to a small Linux box which act as a media player. I have been some issue lately the things works fine under the 1920&#215;1800 resolution most of the time. But once &#8230; <a href="http://blog.chmouel.com/2009/12/03/toshiba-regza-32av615db-blank-screen-hdmi-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have this nice Toshiba TV which is connected to a small Linux box which act as a media player. I have been some issue lately the things works fine  under the 1920&#215;1800 resolution most of the time. But once in a while I get a blank screen and the nvidia driver telling me this :</p>
<blockquote><p>(II) Dec 03 17:00:19 NVIDIA(0):     &#8220;nvidia-auto-select&#8221;<br />
(II) Dec 03 17:00:19 NVIDIA(0): Virtual screen size determined to be 640 x 480<br />
(WW) Dec 03 17:00:19 NVIDIA(0): Unable to get display device CRT-0&#8242;s EDID; cannot compute DPI<br />
(WW) Dec 03 17:00:19 NVIDIA(0):     from CRT-0&#8242;s EDID.<br />
(==) Dec 03 17:00:19 NVIDIA(0): DPI set to (75, 75); computed from built-in default<br />
(==) Dec 03 17:00:19 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.<br />
(&#8211;) Depth 24 pixmap format is 32 bpp
</p></blockquote>
<p>Spend a long time trying to debug the thing by the software but it seems that the TV has some kind of trouble and if I switch it to another HDMI connection it does detect fine which I do at about every week&#8230; not a biggie but still annoying. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2009/12/03/toshiba-regza-32av615db-blank-screen-hdmi-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nokia N95 bluetooth teethering with T-Mobile under Linux and Delll Latitude D630</title>
		<link>http://blog.chmouel.com/2009/10/30/nokia-n95-bluetooth-teethering-with-t-mobile-under-linux-and-delll-latitude-d630/</link>
		<comments>http://blog.chmouel.com/2009/10/30/nokia-n95-bluetooth-teethering-with-t-mobile-under-linux-and-delll-latitude-d630/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 08:55:53 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.chmouel.com/?p=250</guid>
		<description><![CDATA[Spent a bit of time to configure my Nokia mobile to teethering wih my Linux and T-Mobile. Here is some steps that may help the others : If you don&#8217;t have that blue bluetooth led switched on on your Dell &#8230; <a href="http://blog.chmouel.com/2009/10/30/nokia-n95-bluetooth-teethering-with-t-mobile-under-linux-and-delll-latitude-d630/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Spent a bit of time to configure my Nokia mobile to teethering wih my Linux and T-Mobile. Here is some steps that may help the others :</p>
<ul>
<li>If you don&#8217;t have that blue bluetooth led switched on on your Dell Latitude D630 Laptop you have to enable it. I haven&#8217;t find any way to do that via the Linux Kernel module but with Windows under Vmware Player (3.0) enabling Bluetooth and installing the <a title="Dell Latitude Driver" href="http://support.dell.com/support/downloads/download.aspx?c=ca&amp;l=en&amp;s=gen&amp;releaseid=R155172&amp;SystemID=LATITUDE%20D630&amp;servicetag=&amp;os=WW1&amp;osl=en&amp;deviceid=13911&amp;devlib=0&amp;typecnt=0&amp;vercnt=1&amp;catid=-1&amp;impid=-1&amp;formatcnt=1&amp;libid=5&amp;fileid=206919">driver</a> (manually not via the setup.exe) enabled bluetooth.</li>
<li>Switched on bluetooth on the Phone and attached to the laptop via gnome bluetooth applet thingy.</li>
<li>Get my phone device number from hcitool scan.</li>
<li>And did this (as root) :</li>
</ul>
<blockquote><p>cat &lt;/etc/bluetooth/rfcomm.conf<br />
#<br />
# RFCOMM configuration file.<br />
#</p>
<p>rfcomm0 {<br />
# Automatically bind the device at startup<br />
bind yes;</p>
<p># Bluetooth address of the device<br />
device YOUR:PHONE:DEVICE:NUMBER;</p>
<p># RFCOMM channel for the connection<br />
channel	4;</p>
<p># Description of the connection<br />
comment &#8220;Nokia N95&#8243;;<br />
}<br />
EOF</p>
<p>/etc/init.d/bluetooth restart</p>
<p>cat &lt;/etc/ppp/chat-tmobile<br />
ABORT BUSY<br />
ABORT &#8216;NO CARRIER&#8217;<br />
ABORT &#8216;NO ANSWER&#8217;<br />
ABORT ERROR<br />
REPORT CONNECT<br />
SAY &#8216;Calling t-mobile&#8230;\n&#8217;<br />
&#8220;&#8221; &#8216;ATZ&#8217;<br />
OK &#8216;ATE0V1&amp;D2&amp;C1S0=0+IFC=2,2&#8242;<br />
SAY &#8216;Modem reset.\n&#8217;<br />
SAY &#8216;Setting APN&#8230;&#8217;<br />
OK &#8216;AT+cgdcont=1,&#8221;IP&#8221;,&#8221;general.t-mobile.uk&#8221;&#8216;<br />
SAY &#8216;APN set\n&#8217;<br />
SAY &#8216;Dialling&#8230;\n&#8217;<br />
OK &#8216;ATDT*99#&#8217;<br />
TIMEOUT 30<br />
CONNECT &#8220;&#8221;<br />
EOF</p>
<p>cat &lt;/etc/ppp/peers/t-mobile<br />
/dev/rfcomm0<br />
460800<br />
idle 7200<br />
modem<br />
noauth<br />
lock<br />
crtscts<br />
defaultroute<br />
user &#8220;user&#8221;<br />
password &#8220;pass&#8221;<br />
noipdefault<br />
usepeerdns<br />
updetach<br />
noccp<br />
nobsdcomp<br />
#novj<br />
ipcp-restart 10<br />
ipcp-accept-local<br />
ipcp-accept-remote<br />
lcp-echo-interval 65535<br />
lcp-echo-failure 10<br />
lcp-max-configure 10<br />
connect &#8220;/usr/sbin/chat -v -f /etc/ppp/chat-tmobile&#8221;<br />
EOF</p></blockquote>
<p>Under Debian distros you can enable the connection with the command &#8216;pon t-mobile&#8217; or you for the others can do via the manual way with the command &#8216;pppd call t-mobile&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2009/10/30/nokia-n95-bluetooth-teethering-with-t-mobile-under-linux-and-delll-latitude-d630/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

