<?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>Derwynd&#039;s Weblog &#187; derwynd</title>
	<atom:link href="http://derwynd.com/author/derwynd/feed/" rel="self" type="application/rss+xml" />
	<link>http://derwynd.com</link>
	<description>Derwynd&#039;s Weblog</description>
	<lastBuildDate>Sat, 04 Feb 2012 05:23:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='derwynd.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Derwynd&#039;s Weblog &#187; derwynd</title>
		<link>http://derwynd.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://derwynd.com/osd.xml" title="Derwynd&#039;s Weblog" />
	<atom:link rel='hub' href='http://derwynd.com/?pushpress=hub'/>
		<item>
		<title>KDE remove autostart programs</title>
		<link>http://derwynd.com/2011/11/09/kde-remove-autostart-programs/</link>
		<comments>http://derwynd.com/2011/11/09/kde-remove-autostart-programs/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 04:29:31 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=142</guid>
		<description><![CDATA[Had a situation where kde was starting programs automatically on restart. Found the file /home/user/.kde/share/config/ksmserverrc Edited this file to disable autostart of programs on logout<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=142&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had a situation where kde was starting programs automatically on restart.</p>
<p>Found the file</p>
<p><strong>/home/user/.kde/share/config/ksmserverrc</strong></p>
<p>Edited this file to disable autostart of programs on logout</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=142&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2011/11/09/kde-remove-autostart-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>GPS on Linux</title>
		<link>http://derwynd.com/2011/07/17/gps-on-linux/</link>
		<comments>http://derwynd.com/2011/07/17/gps-on-linux/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 16:43:10 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=134</guid>
		<description><![CDATA[Compile kernel with usb-modem feature Connect the GPS to usb port &#8230;. Check /var/log/messages $ tailf /var/log/messages Jun 20 22:26:39 localhost kernel: usb 6-2: new full speed USB device using uhci_hcd and address 3 Jun 20 22:26:40 localhost kernel: usb 6-2: configuration #1 chosen from 1 choice Jun 20 22:26:40 localhost kernel: cdc_acm 6-2:1.0: ttyACM0: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=134&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Compile kernel with usb-modem feature</p>
<p>Connect the GPS to usb port &#8230;.</p>
<p>Check /var/log/messages</p>
<p>$ tailf /var/log/messages</p>
<p><em>Jun 20 22:26:39 localhost kernel: usb 6-2: new full speed USB device using uhci_hcd and address 3<br />
Jun 20 22:26:40 localhost kernel: usb 6-2: configuration #1 chosen from 1 choice<br />
Jun 20 22:26:40 localhost kernel: cdc_acm 6-2:1.0: ttyACM0: USB ACM device</em></p>
<p>Device created is ttyACM0</p>
<p>This should give you a continuous stream</p>
<p>$ cat /dev/ttyACM0</p>
<p><em>$GPRMC,071601.00,A,1907.09660,N,07252.30735,E,0.029,235.62,130711,,,A*67<br />
$GPGGA,071601.00,1907.09660,N,07252.30735,E,1,09,2.21,33.2,M,-62.8,M,,*40<br />
$GPGSV,3,1,12,13,82,086,34,20,11,177,35,19,43,072,35,10,25,274,*77<br />
$GPGSV,3,3,12,07,40,343,15,11,20,137,31,08,25,316,10,28,32,250,*7A<br />
$GPZDA,071601.00,13,07,2011,00,00*60</em></p>
<p>Now that the device is detected lets install the rpms required</p>
<p>$ <strong><em>yum install -y gpsd gpsd-clients</em><br />
</strong><br />
Incase Not created Please create </p>
<p>Created startup script</p>
<p>$ <strong><em>cat /etc/init.d/gpsd</em></strong><br />
<em>#!/bin/sh<br />
#<br />
# gpsd Service daemon for mediating access to a GPS<br />
#<br />
# chkconfig:   &#8211; 44 66<br />
# description: gpsd is a service daemon that mediates access to a GPS sensor \<br />
#              connected to the host computer by serial or USB interface, \<br />
#              making its data on the location/course/velocity of the sensor \<br />
#              available to be queried on TCP port 2947 of the host computer.<br />
# processname: gpsd<br />
# pidfile:     /var/run/gpsd.pid</p>
<p># http://fedoraproject.org/wiki/FCNewInit/Initscripts<br />
### BEGIN INIT INFO<br />
# Provides: gpsd<br />
# Required-Start: network<br />
# Required-Stop: network<br />
# Should-Start:<br />
# Should-Stop:<br />
# Default-Start:<br />
# Default-Stop:<br />
# Short-Description: Service daemon for mediating access to a GPS<br />
# Description: gpsd is a service daemon that mediates access to a GPS sensor<br />
#       connected to the host computer by serial or USB interface, making its<br />
#       data on the location/course/velocity of the sensor available to be<br />
#       queried on TCP port 2947 of the host computer.<br />
### END INIT INFO</p>
<p># Source function library.<br />
. /etc/rc.d/init.d/functions</p>
<p>exec=&#8221;/usr/sbin/gpsd&#8221;<br />
prog=$(basename $exec)<br />
PIDFILE=/var/run/gpsd.pid<br />
CONTROL_SOCKET=/var/run/gpsd.sock</p>
<p>[ -e /etc/sysconfig/$prog ] &amp;&amp; . /etc/sysconfig/$prog<br />
: ${OPTIONS:=-n}<br />
: ${DEVICE:=/dev/ttyACM0}</p>
<p>lockfile=/var/lock/subsys/$prog</p>
<p>start() {<br />
    [ "$EUID" != "0" ] &amp;&amp; exit 4<br />
    echo -n $&#8221;Starting $prog: &#8220;<br />
    daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE<br />
    retval=$?<br />
    echo<br />
    [ $retval -eq 0 ] &amp;&amp; touch $lockfile<br />
    return $retval<br />
}</p>
<p>stop() {<br />
    [ "$EUID" != "0" ] &amp;&amp; exit 4<br />
    echo -n $&#8221;Stopping $prog: &#8220;<br />
    killproc $prog<br />
    retval=$?<br />
    echo<br />
    [ $retval -eq 0 ] &amp;&amp; rm -f $lockfile<br />
    return $retval<br />
}</p>
<p>restart() {<br />
    stop<br />
    start<br />
}</p>
<p>case &#8220;$1&#8243; in<br />
    start|stop|restart)<br />
        $1<br />
        ;;<br />
    force-reload)<br />
        restart<br />
        ;;<br />
    status)<br />
        status $prog<br />
        ;;<br />
    try-restart|condrestart)<br />
        if status $prog &gt;/dev/null ; then<br />
            restart<br />
        fi<br />
        ;;<br />
    reload)<br />
        status $prog &gt;/dev/null || exit 7<br />
        # If config can be reloaded without restarting, implement it here,<br />
        # remove the &#8220;exit&#8221;, and add &#8220;reload&#8221; to the usage message below.<br />
        action $&#8221;Service $prog does not support the reload action: &#8221; /bin/false<br />
        exit 3<br />
        ;;<br />
    *)<br />
        echo $&#8221;Usage: $0 {start|stop|status|restart|try-restart|force-reload}&#8221;<br />
        exit 2<br />
esac</em></p>
<p>$ <strong><em>echo &#8220;/etc/init.d/gpsd start &#8221; &gt;&gt; /etc/rc.local</em></strong><br />
Or start it via services</p>
<p>Graphic front end<br />
$ <strong><em>/usr/bin/xgps</em></strong></p>
<p>Running cgps utility, I can obtain the following (You will know where I am by interpreting the Lat/Lon). cgps runs on serial or console terminal and connects to local port 2947, which is the default port that gpsd listened to for serving queries from client programs:</p>
<p>$ <strong><em>cgps localhost 2947</em></strong></p>
<p>                               CGPS Test Client<br />
┌───────────────────────────────────────────┐┌─────────────────────────────────┐<br />
│    Time:       2011-07-13T06:27:43.00Z    ││PRN:   Elev:  Azim:  SNR:  Used: │<br />
│    Latitude:    19.118427 N               ││                                 │<br />
│    Longitude:   72.871813 E               ││                                 │<br />
│    Altitude:   50.3 m                     ││                                 │<br />
│    Speed:      0.0 kph                    ││                                 │<br />
│    Heading:    356.4 degrees              ││                                 │<br />
│    HPE:        8 m                        ││                                 │<br />
│    VPE:        13 m                       ││                                 │<br />
│    Climb:      0.0 m/min                  ││                                 │<br />
│    Status:     3D FIX                     ││                                 │<br />
│    Change:     0 secs                     ││                                 │<br />
│                                           ││                                 │<br />
│                                           ││                                 │<br />
└───────────────────────────────────────────┘└─────────────────────────────────┘<br />
┌───────────────────────────────────────────┐<br />
│Command:                                   │<br />
└───────────────────────────────────────────┘<br />
GPSD,O=GGA 1310538463.00 0.005 19.118427 72.871813   50.30        ?        ? 356<br />
.4500    0.011  0.000             ?        ?        ?<br />
GPSD,O=GSA 1310538463.00 0.005 19.118427 72.871813   50.30  8.32 13.20 356.4500<br />
   0.011  0.000 165.6961 16.64        ?</p>
<p>There are two more native way to interact with gpsd for retrieving GPS data &#8211; by telnet or gpspipe. Since gpsd listen to port 2947, you can just &#8220;telnet&#8221; to it. Once connect, type &#8216;p&#8217; or &#8216;d&#8217; followed by return will query for position and time respectively</p>
<p>$ <strong><em>telnet localhost 2947</em></strong><br />
<em>Trying 127.0.0.1&#8230;<br />
Connected to localhost.<br />
Escape character is &#8216;^]&#8217;.<br />
p<br />
GPSD,P=19.118280 72.871878<br />
d<br />
GPSD,D=2011-07-13T06:33:19.00Z<br />
</em><br />
$ <strong><em> gpspipe -r localhost 2947</em></strong><br />
<em>GPSD,R=1<br />
$GPGSV,4,2,14,10,25,287,14,32,05,165,,06,16,048,33,23,63,124,48*70<br />
$GPGSV,4,3,14,03,29,054,35,07,36,330,,16,08,039,,08,20,305,29*74<br />
$GPGSV,4,4,14,11,15,147,,28,25,239,26*7B<br />
$GPGLL,1907.09502,N,07252.31343,E,065047.00,A,A*6C<br />
$GPZDA,065047.00,13,07,2011,00,00*61</em></p>
<p>Setting up time via gps</p>
<p><em>#!/bin/bash<br />
      #setup time via gps<br />
        i=0;<br />
        while [ "$i" -lt 5 ];<br />
        do<br />
        sleep 5<br />
           (echo d ; sleep 1; echo d; sleep 1; echo d) | (nc localhost 2947) &gt; /tmp/gps_time &amp;<br />
           TEST=$!<br />
           sleep 4<br />
        kill -s SIGINT $TEST<br />
        i=$(($i+1))<br />
        date=$`cat /tmp/gps_time | tail -n 1`<br />
        year=$(echo $date | sed &#8216;s/.*D=\([0-9]*\)-.*/\1/&#8217;)<br />
        [ "$year" -gt 2004 ] &amp;&amp; break<br />
        done;<br />
        echo &#8220;slept $i times while waiting gps lock..&#8221;</p>
<p>        echo &#8220;Setting date $date&#8221;<br />
export TZ=UTC<br />
date  $(echo $date | sed &#8216;s/GPSD,D=\([0-9]*\)\(.*\):.*/\2\1/&#8217; | sed &#8216;s/[^0-9]//g&#8217;)<br />
sleep 2<br />
export TZ=&#8221;/usr/share/zoneinfo/Asia/Calcutta&#8221;<br />
add3sec=`date &#8211;date=&#8217;3 seconds&#8217;`<br />
date -s &#8220;${add3sec}&#8221;<br />
date<br />
hwclock  &#8211;systohc<br />
hwclock</em></p>
<p>Getting Location via bash<br />
<em>#!/bin/bash<br />
      #setup time via gps<br />
        i=0;<br />
        while [ "$i" -lt 5 ];<br />
        do<br />
        sleep 5<br />
           (echo dp ) | (nc localhost 2947) &gt; /tmp/gps_location &amp;<br />
           TEST=$!<br />
           sleep 1<br />
        kill -s SIGINT $TEST<br />
        i=$(($i+1))<br />
        echo $i<br />
        done;<br />
        echo &#8220;slept $i times while waiting gps lock..&#8221;</p>
<p>cat /tmp/gps_location| \<br />
 awk -F &#8220;P=&#8221; &#8216;{ print $NF}&#8217; | \<br />
 awk &#8216;{ print &#8220;Latitude: &#8221; $1 &#8221; Longitude: &#8221; $2}&#8217;</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=134&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2011/07/17/gps-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>Debian Squeeze change root password</title>
		<link>http://derwynd.com/2011/04/14/debian-squeeze-change-root-password/</link>
		<comments>http://derwynd.com/2011/04/14/debian-squeeze-change-root-password/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 09:32:45 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.wordpress.com/?p=128</guid>
		<description><![CDATA[== Method 1 == Boot into grub, select single user but do not press enter. Press e to bring you into edit mode. Scroll down to the kernel line, it starts with &#8220;linux /boot/vmlinuz-2.6&#8230;&#8230;.&#8221; Scroll to the end of that line and press space key once and type init=/bin/bash Press Crtl x to boot $ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=128&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>== Method 1 ==</p>
<p>Boot into grub, select single user but do not press enter.<br />
Press e to bring you into edit mode.<br />
Scroll down to the kernel line, it starts with &#8220;linux /boot/vmlinuz-2.6&#8230;&#8230;.&#8221;<br />
Scroll to the end of that line and press space key once and type</p>
<p><strong>    init=/bin/bash </strong></p>
<p>Press Crtl x to boot</p>
<p><strong>$ remount / as rw </strong></p>
<p><strong>$ mount -rw -o remount /</strong></p>
<p>Change password with</p>
<p><strong>$  passwd</strong></p>
<p>type your new password, hit enter and reboot.</p>
<p>== Method 2 ==<br />
Boot from another installation of Debian. (One can use a LiveCD to get access to the &#8220;/&#8221; partition.)<br />
Then, mount the partition where you have Squeeze&#8217;s &#8220;/&#8221;, then changed directory to /mnt/etc<br />
Used vim as an editor to edit the file shadow.<br />
It found the line starting with root:<br />
Deleted everything between the first and second colons, and voila&#8217;,<br />
root<strong>::$6$fsdsdgdsg74.:</strong>14862:0:99999:7:::</p>
<p>Reboot as root without a password.<br />
At the end use  passwd to set a new root password.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=128&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2011/04/14/debian-squeeze-change-root-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>Download YouTube Videos on Linux</title>
		<link>http://derwynd.com/2011/01/17/download-youtube-videos-on-linux/</link>
		<comments>http://derwynd.com/2011/01/17/download-youtube-videos-on-linux/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 05:12:50 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.wordpress.com/?p=122</guid>
		<description><![CDATA[Download Software # yum install youtube-dl Download YouTube Videos # youtube-dl http://www.youtube.com/watch?vxxxxxxx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=122&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<strong>Download Softwar</strong>e </ul>
<p># yum install youtube-dl</p>
<ul>
<strong>Download YouTube Videos</strong></ul>
<p># youtube-dl http://www.youtube.com/watch?vxxxxxxx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=122&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2011/01/17/download-youtube-videos-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>Pidgin + The certificate for omega.contacts.msn.com could not be validated</title>
		<link>http://derwynd.com/2010/11/25/pidgin-the-certificate-for-omega-contacts-msn-com-could-not-be-validated/</link>
		<comments>http://derwynd.com/2010/11/25/pidgin-the-certificate-for-omega-contacts-msn-com-could-not-be-validated/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 07:16:19 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=113</guid>
		<description><![CDATA[If in pidgin you get a error The certificate for omega.contacts.msn.com could not be validated. The certificate chain presented is invalid On connection with msn&#8230;.. My guess is the old certificate in pidgins folder is outdated This is what I did to fix it cd $HOME/.purple/certificates/x509/tls_peers rm omega.contacts.msn.com ows.messenger.msn.com rsi.hotmail.com wget http://files.andreineculau.com/projects/pidgin/omega.contacts.msn.com.txt mv omega.contacts.msn.com.txt omega.contacts.msn.com [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=113&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If in pidgin you get a error<br />
<strong>The certificate for omega.contacts.msn.com could not be validated. The certificate chain presented is invalid</strong><br />
On connection with msn&#8230;..</p>
<p>My guess is the old certificate in pidgins folder  is outdated</p>
<p>This is what I did to fix it</p>
<p><em>cd $HOME/.purple/certificates/x509/tls_peers<br />
rm omega.contacts.msn.com ows.messenger.msn.com rsi.hotmail.com<br />
wget http://files.andreineculau.com/projects/pidgin/omega.contacts.msn.com.txt<br />
mv omega.contacts.msn.com.txt  omega.contacts.msn.com</em></p>
<p>Restart Pidgin and you should be good to go</p>
<p>NOTE: Can be fixed by deleting certificate from Pidgin menu Tools/Certificate.</p>
<p>ELSE<br />
Also found this method while browsing<br />
Solution<br />
a. open https://omega.contacts.msn.com/<br />
b. On the URL bar, click on the security lock (usually just in front of the URL). Click on the certificate information.<br />
c. Go to the Detail tab and click the “Export” button. Save the file as “omega.contacts.msn.com” (without the quotes).<br />
d. Copy and paste this file to $HOME/.purple/certificates/x509/tls_peers</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=113&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/11/25/pidgin-the-certificate-for-omega-contacts-msn-com-could-not-be-validated/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>Tata Phonone / Reliance Netconnect (wvdial)</title>
		<link>http://derwynd.com/2010/09/17/tata-phonone-reliance-netconnect-wvdial/</link>
		<comments>http://derwynd.com/2010/09/17/tata-phonone-reliance-netconnect-wvdial/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 06:00:19 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=108</guid>
		<description><![CDATA[Getting the required software # yum install wvdial usb_modeswitch usb_modeswitch-data Stopping network # /etc/init.d/network stop Plug in modem in usb outlet and check output # tail -f /var/log/messages kernel: usb 2-1.1: new full speed USB device using ehci_hcd and address 4 kernel: usb 2-1.1: New USB device found, idVendor=19d2, idProduct=fff5 kernel: usb 2-1.1: New USB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=108&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Getting the required software<br />
# yum install wvdial usb_modeswitch usb_modeswitch-data</p>
<p>Stopping network<br />
# /etc/init.d/network stop</p>
<p>Plug in modem in usb outlet and check output<br />
# tail -f /var/log/messages<br />
<em><br />
kernel: usb 2-1.1: new full speed USB device using ehci_hcd and address 4<br />
kernel: usb 2-1.1: New USB device found, idVendor=19d2, idProduct=fff5<br />
kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3<br />
kernel: usb 2-1.1: Product: USB Storage<br />
kernel: usb 2-1.1: Manufacturer: ZTE, Incorporated<br />
kernel: usb 2-1.1: SerialNumber: 000000000002<br />
kernel: Initializing USB Mass Storage driver&#8230;<br />
kernel: scsi6 : usb-storage 2-1.1:1.0<br />
kernel: usbcore: registered new interface driver usb-storage<br />
kernel: USB Mass Storage support registered.<br />
usb_modeswitch: switching 19d2:fff5 (ZTE, Incorporated: USB Storage)<br />
kernel: usb 2-1.1: USB disconnect, address 4<br />
kernel: usb 2-1.1: new full speed USB device using ehci_hcd and address 5<br />
kernel: usb 2-1.1: New USB device found, idVendor=19d2, idProduct=fff1<br />
kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0<br />
kernel: usb 2-1.1: Product: ZTE CDMA Tech<br />
kernel: usb 2-1.1: Manufacturer: ZTE, Incorporated<br />
kernel: scsi7 : usb-storage 2-1.1:1.5<br />
kernel: usbcore: registered new interface driver usbserial<br />
kernel: USB Serial support registered for generic<br />
kernel: usbcore: registered new interface driver usbserial_generic<br />
kernel: usbserial: USB Serial Driver core<br />
kernel: USB Serial support registered for GSM modem (1-port)<br />
kernel: option 2-1.1:1.0: GSM modem (1-port) converter detected<br />
kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB0<br />
kernel: option 2-1.1:1.1: GSM modem (1-port) converter detected<br />
kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB1<br />
kernel: option 2-1.1:1.2: GSM modem (1-port) converter detected<br />
kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB2<br />
kernel: option 2-1.1:1.3: GSM modem (1-port) converter detected<br />
kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB3<br />
kernel: option 2-1.1:1.4: GSM modem (1-port) converter detected<br />
kernel: usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB4<br />
kernel: usbcore: registered new interface driver option<br />
kernel: option: v0.7.2:USB Driver for GSM modems<br />
modem-manager: (ttyUSB1) opening serial device&#8230;<br />
modem-manager: (ttyUSB0) opening serial device&#8230;<br />
modem-manager: (ttyUSB4) opening serial device&#8230;<br />
modem-manager: (ttyUSB2) opening serial device&#8230;<br />
modem-manager: (ttyUSB3) opening serial device&#8230;<br />
usb_modeswitch: switched to 19d2:fff1 (ZTE, Incorporated: ZTE CDMA Tech)<br />
pcscd: winscard.c:309:SCardConnect() Reader E-Gate 0 0 Not Found<br />
pcscd: winscard.c:309:SCardConnect() Reader E-Gate 0 0 Not Found<br />
pcscd: winscard.c:309:SCardConnect() Reader E-Gate 0 0 Not Found<br />
pcscd: winscard.c:309:SCardConnect() Reader E-Gate 0 0 Not Found<br />
kernel: scsi 7:0:0:0: Direct-Access     ZTE      USB Storage FFF1 2.31 PQ: 0 ANSI: 2<br />
kernel: sd 7:0:0:0: Attached scsi generic sg2 type 0<br />
kernel: sd 7:0:0:0: [sdb] Attached SCSI removable disk<br />
</em></p>
<p># wvdialconf<br />
<em><br />
Editing `/etc/wvdial.conf&#8217;.</p>
<p>Scanning your serial ports for a modem.</p>
<p>Modem Port Scan: S0   S1   S2   S3<br />
WvModem: Cannot get information for serial port.<br />
ttyUSB0: ATQ0 V1 E1 &#8212; OK<br />
ttyUSB0: ATQ0 V1 E1 Z &#8212; OK<br />
ttyUSB0: ATQ0 V1 E1 S0=0 &#8212; OK<br />
ttyUSB0: ATQ0 V1 E1 S0=0 &amp;C1 &#8212; OK<br />
ttyUSB0: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 &#8212; OK<br />
ttyUSB0: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0 &#8212; OK<br />
ttyUSB0: Modem Identifier: ATI &#8212; Manufacturer: QUALCOMM INCORPORATED<br />
ttyUSB0: Speed 9600: AT &#8212; OK<br />
ttyUSB0: Max speed is 9600; that should be safe.<br />
ttyUSB0: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0 &#8212; OK<br />
WvModem: Cannot get information for serial port.<br />
ttyUSB1: ATQ0 V1 E1 &#8212; failed with 2400 baud, next try: 9600 baud<br />
ttyUSB1: ATQ0 V1 E1 &#8212; failed with 9600 baud, next try: 9600 baud<br />
ttyUSB1: ATQ0 V1 E1 &#8212; and failed too at 115200, giving up.<br />
WvModem: Cannot get information for serial port.<br />
ttyUSB2: ATQ0 V1 E1 &#8212; failed with 2400 baud, next try: 9600 baud<br />
ttyUSB2: ATQ0 V1 E1 &#8212; failed with 9600 baud, next try: 9600 baud<br />
ttyUSB2: ATQ0 V1 E1 &#8212; and failed too at 115200, giving up.<br />
WvModem: Cannot get information for serial port.<br />
ttyUSB3: ATQ0 V1 E1 &#8212; failed with 2400 baud, next try: 9600 baud<br />
ttyUSB3: ATQ0 V1 E1 &#8212; failed with 9600 baud, next try: 9600 baud<br />
ttyUSB3: ATQ0 V1 E1 &#8212; and failed too at 115200, giving up.<br />
WvModem: Cannot get information for serial port.<br />
ttyUSB4: ATQ0 V1 E1 &#8212; failed with 2400 baud, next try: 9600 baud<br />
ttyUSB4: ATQ0 V1 E1 &#8212; failed with 9600 baud, next try: 9600 baud<br />
ttyUSB4: ATQ0 V1 E1 &#8212; and failed too at 115200, giving up.</p>
<p>Found a modem on /dev/ttyUSB0.<br />
Modem configuration written to /etc/wvdial.conf.<br />
ttyUSB0: Speed 9600; init &#8220;ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0&#8243;<br />
</em><br />
# vi /etc/wvdial.conf<br />
<em><br />
[Dialer Defaults]<br />
Init1 = ATZ<br />
Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0<br />
Modem Type = Analog Modem<br />
ISDN = 0<br />
Phone = #777<br />
Modem = /dev/ttyUSB0<br />
Username =  # In case of tata Username =internet<br />
Password =  #  In case of tata Password =internet<br />
Baud = 9600<br />
</em></p>
<p># wvdial<br />
It should now connect</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=108&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/09/17/tata-phonone-reliance-netconnect-wvdial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>mp3 on fedora-13</title>
		<link>http://derwynd.com/2010/09/17/mp3-on-fedora-13/</link>
		<comments>http://derwynd.com/2010/09/17/mp3-on-fedora-13/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 06:00:15 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=105</guid>
		<description><![CDATA[yum install amarok amarok-extras-nonfree xine-lib-extras-freeworld libtunepimp-extras-freeworld phonon gstream -y rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly -y kill `pidof pulseaudio` alsamixer<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=105&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>yum install amarok amarok-extras-nonfree xine-lib-extras-freeworld libtunepimp-extras-freeworld phonon gstream   -y<br />
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />
yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly -y</p>
<p>kill `pidof pulseaudio`<br />
alsamixer</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=105&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/09/17/mp3-on-fedora-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux disk cache</title>
		<link>http://derwynd.com/2010/07/22/linux-disk-cache/</link>
		<comments>http://derwynd.com/2010/07/22/linux-disk-cache/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 07:02:13 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=94</guid>
		<description><![CDATA[Linux has a supposedly good memory management feature that will use up any &#8220;extra&#8221; RAM you have to cache stuff. Accessed file&#8217;s content gets cached in RAM for fast access eventhough we might not need it later in RAM. $ free -m total used free shared buffers cached Mem: 1504 1490 14 0 24 809 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=94&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Linux has a supposedly good memory management feature that will use up any &#8220;extra&#8221; RAM you have to cache stuff.<br />
Accessed file&#8217;s content gets cached in RAM for fast access eventhough we might not need it later in RAM.</p>
<p>$ free -m<br />
             total       used       free     shared    buffers     cached<br />
Mem:          1504       1490         14          0         24        809<br />
-/+ buffers/cache:        656        848<br />
Swap:            0          0          0</p>
<p>In Linux, you can clear the cache of the memory by using</p>
<p><strong>$ sync; echo 3 &gt; /proc/sys/vm/drop_caches; echo 0 &gt; /proc/sys/vm/drop_caches</strong><br />
or<br />
<strong>$ sync; sysctl -w vm.drop_caches=3; sysctl -w vm.drop_caches=0</strong></p>
<p>$ free -m<br />
             total       used       free     shared    buffers     cached<br />
Mem:          1504        650        854          0          1         67<br />
-/+ buffers/cache:        581        923<br />
Swap:            0          0          0</p>
<p>sync should be run because this is a non-destructive operation, and dirty objects are not freeable. So you run sync in order to make sure all cached objects are freed.</p>
<p>Doing echo 3 is clearing pagecache, dentries and inodes but you could choose <strong>echo 1 to free pagecache</strong> only or <strong>echo 2 to free dentries and inodes.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=94&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/07/22/linux-disk-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>redhat/centos build kernel rpm</title>
		<link>http://derwynd.com/2010/07/17/redhatcentos-build-kernel-rpm/</link>
		<comments>http://derwynd.com/2010/07/17/redhatcentos-build-kernel-rpm/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 08:42:43 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=84</guid>
		<description><![CDATA[Preparing System $ yum install gcc make bison ncurses-devel rpm-build Downloading the kernel source linux-2.6.30.10.tar.gz from http://kernel.org $ nohup wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.10.tar.gz &#38; After you have done it, extract to /usr/src $ tar zxvf linux-2.6.30.10.tar.gz -C /usr/src enter to /usr/src create a symlink to source code called linux, do this: $ cd /usr/src $ ln -sf [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=84&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Preparing System</strong></p>
<p>	$ yum install gcc make bison ncurses-devel rpm-build</p>
<p><strong>Downloading the kernel source</strong> linux-2.6.30.10.tar.gz from http://kernel.org</p>
<p>	$ nohup wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.10.tar.gz  &amp;</p>
<p>After you have done it, extract to /usr/src</p>
<p>	$ tar zxvf linux-2.6.30.10.tar.gz -C /usr/src</p>
<p>enter  to /usr/src<br />
create a symlink to source code called linux, do this:</p>
<p>	$ cd /usr/src<br />
	$ ln -sf linux-2.6.30.10   linux<br />
		drwxr-xr-x  3 root root 4096 Jul 16 14:09 kernels<br />
		lrwxrwxrwx  1 root root   12 Jul 16 16:18 linux -&gt; linux-2.6.31<br />
		drwxr-xr-x 23 root root 4096 Sep 10  2009 linux-2.6.31<br />
		drwxr-xr-x  7 root root 4096 Jul 16 14:11 redhat</p>
<p>Copying the stock config into the dir<br />
	$ cd /usr/src/linux<br />
	$ cp /boot/config-`uname -r` .config</p>
<p><strong>Compiling the kernel</strong><br />
	$ cd /usr/src/linux<br />
	$ make clean<br />
	$ make menuconfig</p>
<p>If you want to add a custom tag that will identify the new kernel (if you want or skip this) , to accomplish this, do that:<br />
I did not enter anything here and skipped this step</p>
<p>    * On initial screen, go to General setup  —&gt;<br />
	    * Select Local version – append to kernel release</p>
<p>┌─────────────── Local version &#8211; append to kernel release ────────────────┐<br />
│  Please enter a string value. Use the  key to move from the input                       |<br />
│  field to the buttons below it.                                                                       │<br />
│ ┌─────────────────────────────────────────────────────────────────────┐<br />
│ │                                                                                                                             │<br />
│ └─────────────────────────────────────────────────────────────────────┘                     </p>
<p>With this done, the resulting kernel.rpm will have the tag identifying it.<br />
	It is time to customize the kernel configuration to fit with your hardware.</p>
<p>After this quit menuconfig and start the compilation.</p>
<p>While you get out the configuration, you will be asked to save the changes. Answer Yes.</p>
<p><strong>Run make rpm</strong></p>
<p>	$ make rpm</p>
<p>The compilation will start, good time to grab a coffee cause this is going to be long<br />
WROTE:&#8230;&#8230;.<br />
	/usr/src/redhat/SRPMS/kernel-2.6.30.10-1.src.rpm<br />
	/usr/src/redhat/RPMS/x86_64/kernel-2.6.30.10-1.x86_64.rpm</p>
<p><strong>Take a backup</strong> of /boot dir for safety </p>
<p>	$ tar czvf boot.tgz /boot/ /etc/grub.conf</p>
<p>Installing the new kernel rpm<br />
	$ rpm -ivh rpm -ivh /usr/src/redhat/RPMS/x86_64/kernel-2.6.30.10-1.x86_64.rpm<br />
Preparing&#8230;                ########################################### [100%]<br />
   1:kernel                 ########################################### [100%]</p>
<p>Confirming that alls ok<br />
	$ ls /boot<br />
config-2.6.18-128.el5  grub    message   System.map-2.6.18-128.el5  vmlinux-2.6.30.10.bz2   vmlinuz-2.6.30.10<br />
config-2.6.30.10  initrd-2.6.18-128.el5.img  lost+found symvers-2.6.18-128.el5.gz  System.map-2.6.30.10 vmlinuz-2.6.18-128.el5</p>
<p><strong>Hmmm no initrd-2.6.30.10.img  </strong></p>
<p>To create the dependencies for the modules:</p>
<p>	$ depmod  2.6.30.10</p>
<p>Create a new initrd with mkinitrd </p>
<p>	$ mkinitrd -v /boot/initrd-2.6.30.10.img 2.6.30.10<br />
Creating initramfs<br />
Looking for deps of module ehci-hcd<br />
Looking for deps of module ohci-hcd<br />
Looking for deps of module uhci-hcd<br />
Looking for deps of module ext3: jbd<br />
Looking for deps of module jbd<br />
Found root device hda2 for LABEL=/<br />
Looking for driver for device hda2<br />
Looking for deps of module ide:m-disk<br />
Looking for driver for device hda3<br />
Looking for deps of module ide:m-disk<br />
Looking for deps of module ips: scsi_mod<br />
Looking for deps of module scsi_mod<br />
Looking for deps of module sd_mod: scsi_mod<br />
Looking for deps of module ata_piix: scsi_mod libata<br />
Looking for deps of module libata: scsi_mod<br />
Looking for deps of module ide-disk<br />
Looking for deps of module dm-mem-cache<br />
No module dm-mem-cache found for kernel 2.6.30.10, aborting.</p>
<p><strong>Opps errors &#8230;&#8230; Need to fix this </strong><br />
	$ echo &#8220;DMRAID=no&#8221; &gt; /etc/sysconfig/mkinitrd/noraid<br />
	$ chmod 755 /etc/sysconfig/mkinitrd/noraid<br />
	$ mkinitrd -v /boot/initrd-2.6.30.10.img 2.6.30.10</p>
<p>Creating initramfs<br />
Looking for deps of module ehci-hcd<br />
Looking for deps of module ohci-hcd<br />
Looking for deps of module uhci-hcd<br />
Looking for deps of module ext3: jbd<br />
Looking for deps of module jbd<br />
Found root device hda2 for LABEL=/<br />
Looking for driver for device hda2<br />
Looking for deps of module ide:m-disk<br />
Looking for driver for device hda3<br />
Looking for deps of module ide:m-disk<br />
Looking for deps of module ips: scsi_mod<br />
Looking for deps of module scsi_mod<br />
Looking for deps of module sd_mod: scsi_mod<br />
Looking for deps of module ata_piix: scsi_mod libata<br />
Looking for deps of module libata: scsi_mod<br />
Looking for deps of module ide-disk<br />
Using modules:  /lib/modules/2.6.30.10/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.30.10/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.30.10/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.30.10/kernel/fs/jbd/jbd.ko /lib/modules/2.6.30.10/kernel/fs/ext3/ext3.ko /lib/modules/2.6.30.10/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.30.10/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.30.10/kernel/drivers/scsi/ips.ko /lib/modules/2.6.30.10/kernel/drivers/ata/libata.ko /lib/modules/2.6.30.10/kernel/drivers/ata/ata_piix.ko<br />
/sbin/nash -&gt; /tmp/initrd.w19233/bin/nash<br />
/sbin/insmod.static -&gt; /tmp/initrd.w19233/bin/insmod<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/usb/host/ehci-hcd.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/ehci-hcd.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/usb/host/ohci-hcd.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/ohci-hcd.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/usb/host/uhci-hcd.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/uhci-hcd.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/fs/jbd/jbd.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/jbd.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/fs/ext3/ext3.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/ext3.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/scsi/scsi_mod.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/scsi_mod.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/scsi/sd_mod.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/sd_mod.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/scsi/ips.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/ips.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/ata/libata.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/libata.ko&#8217; [elf64-x86-64]<br />
copy from `/lib/modules/2.6.30.10/kernel/drivers/ata/ata_piix.ko&#8217; [elf64-x86-64] to `/tmp/initrd.w19233/lib/ata_piix.ko&#8217; [elf64-x86-64]<br />
Adding module ehci-hcd<br />
Adding module ohci-hcd<br />
Adding module uhci-hcd<br />
Adding module jbd<br />
Adding module ext3<br />
Adding module scsi_mod<br />
Adding module sd_mod<br />
Adding module ips<br />
Adding module libata<br />
Adding module ata_piix</p>
<p>Checking &#8230;&#8230;.</p>
<p>	$ ls /boot/initrd-2.6.30.10.img<br />
initrd-2.6.30.10.img</p>
<p><strong>Editing grub</strong></p>
<p>Final phase, it remains only edit the grub.conf to use the new kernel.</p>
<p>Add the lines in and change default to boot with new kernel</p>
<p>title CentOS (2.6.30.10)<br />
        root (hd0,0)<br />
        kernel /vmlinuz-2.6.30.10 ro root=LABEL=/ rhgb quiet noacpi irqpoll acpi=off<br />
        initrd /initrd-2.6.30.10.img</p>
<p><strong>Reboot. </strong>and check<br />
	$ reboot</p>
<p>After reboot<br />
	$ uname -a<br />
Linux localhost.localdomain 2.6.30.10 #1 SMP Sat Jul 17 13:25:46 IST 2010 x86_64 x86_64 x86_64 GNU/Linux</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=84&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/07/17/redhatcentos-build-kernel-rpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
		<item>
		<title>KVM on centos5</title>
		<link>http://derwynd.com/2010/07/14/kvm-on-centos5/</link>
		<comments>http://derwynd.com/2010/07/14/kvm-on-centos5/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 09:56:43 +0000</pubDate>
		<dc:creator>derwynd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://derwynd.com/?p=79</guid>
		<description><![CDATA[Disable Selinux Make sure that SELinux is disabled. Open /etc/selinux/config&#8230; $ vi /etc/selinux/config &#8230; set SELINUX to disabled: $ reboot or Run $ setenforce 0 [edit] Installing KVM check if your CPU supports hardware virtualization $ egrep &#8216;(vmx&#124;svm)&#8217; &#8211;color=always /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=79&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Disable Selinux</p>
<p>Make sure that SELinux is disabled. Open /etc/selinux/config&#8230;</p>
<p>$ vi /etc/selinux/config</p>
<p>&#8230; set SELINUX to disabled:</p>
<p>$ reboot</p>
<p>or</p>
<p>Run</p>
<p>$ setenforce 0<br />
[edit] Installing KVM</p>
<p>check if your CPU supports hardware virtualization</p>
<p>$ egrep &#8216;(vmx|svm)&#8217; &#8211;color=always /proc/cpuinfo</p>
<p>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm<br />
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm</p>
<p>install KVM and virtinst</p>
<p>$ yum install zlib-devel alsa-lib-devel SDL-devel gnutls-devel dev86 texi2html glibc-devel kvm qemu\<br />
 libvirt python-virtinst virt-manager libvirt libvirt-python python-virtinst qemu </p>
<p>$ yum install kvm qemu libvirt python-virtinst<br />
$ yum install virt-manager libvirt libvirt-python python-virtinst</p>
<p>In case rpmforge repo is recquired for qemu</p>
<p>$ rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</p>
<p>[edit] Service Starting</p>
<p>Then start the libvirt daemon:</p>
<p>$ /etc/init.d/libvirtd start </p>
<p>To check if KVM has successfully been installed, run</p>
<p>$ virsh -c qemu:///system list</p>
<p> Id Name                 State<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Next we need to set up a network bridge on our server so that our virtual machines can be accessed from other hosts as if they were physical systems in the network.</p>
<p>$ yum install bridge-utils</p>
<p>&#8230; and configure a bridge. Delete the system startup links for NetworkManager and create system startup links for network:</p>
<p>$ chkconfig &#8211;del NetworkManager<br />
$ chkconfig &#8211;levels 235 network on </p>
<p>[edit] Networking</p>
<p>Then create the file /etc/sysconfig/network-scripts/ifcfg-br0 (please use the BOOTPROTO, DNS1 (plus any other DNS settings, if any), GATEWAY, IPADDR, NETMASK and SEARCH values from the /etc/sysconfig/network-scripts/ifcfg-eth0 file):</p>
<p>$ vi /etc/sysconfig/network-scripts/ifcfg-br0</p>
<p>DEVICE=br0<br />
TYPE=Bridge<br />
BOOTPROTO=static<br />
DNS1=192.168.2.234<br />
GATEWAY=192.168.2.234<br />
IPADDR=192.168.40.112<br />
NETMASK=255.255.0.0<br />
ONBOOT=yes</p>
<p>Modify /etc/sysconfig/network-scripts/ifcfg-eth0 by keeping these lines and hashing everything else</p>
<p>DEVICE=eth0<br />
HWADDR=00:1E:C9:B5:0D:51<br />
ONBOOT=yes<br />
BRIDGE=br0</p>
<p>Then reboot the system:</p>
<p>$ reboot </p>
<p>[edit] Starting Hosts</p>
<p>Use graphical installation and run &#8220;Creating guests with virt-manager&#8221;</p>
<p>$ virt-manager &amp;</p>
<p>Open the File -&gt; Open Connection. The dialog box below appears. . Select a hypervisor and click the Connect button</p>
<p>       OR</p>
<p>$ virt-install &#8211;accelerate &#8211;hvm &#8211;connect qemu:///system &#8211;network bridge:br0 &#8211;name rhel5support &#8211;ram=512 &#8211;file=/xen/rhel5support.img &#8211;file-size=6 &#8211;vnc &#8211;cdrom=/dev/cdrom </p>
<p>Using virt-install with KVM to create a Red Hat Enterprise Linux 5 guest using cdrom &#8211;hvm (full virt)</p>
<p>$ virt-install &#8211;name fedora11 &#8211;ram 512 &#8211;file=/var/lib/libvirt/images/fedora11.img &#8211;file-size=3 &#8211;vnc &#8211;cdrom=/var/lib/libvirt/images/fedora11.iso</p>
<p>Using virt-install to create a fedora 11 guest</p>
<p>[edit] Info</p>
<p>the xml files are loacted at</p>
<p>$ cd /etc/libvirt/qemu/</p>
<p>Starting the virt machines</p>
<p>$ virsh create kvm2.xml</p>
<p>List domains</p>
<p>$ virsh -c qemu:///system list<br />
 Id Name                 State<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
  1 kvm2                 running<br />
  2 kvm1                 running</p>
<p>Connect to kvm</p>
<p>$ virsh console kvm1</p>
<p>[edit] Managing Virtual Machines from the command line with `virsh`</p>
<p>Virtual machines can be managed on the command line with the virsh utility. The virsh utility is built around the libvirt management API and has a number of advantages over the traditional Xen xm tool:</p>
<p>     virsh has a stable set of commands whose syntax &amp; semantics will be preserved across updates to Xen.<br />
     virsh can be used as an unprivileged user for read-only operations (eg listing domains, getting info, etc)<br />
     virsh will (in future) be able to manage QEMU, VMWare, etc machines in additional to Xen, since libvirt is hypervisor agnostic.</p>
<p>To start a new virtual machine from an XML vm definition:</p>
<p>      $ virsh create  </p>
<p>To list the virtual machines currently running, use:</p>
<p>       $ virsh list</p>
<p>To gracefully power off a guest use:</p>
<p>      $ virsh shutdown </p>
<p>To save a snapshot of the machine to a file of your choosing:</p>
<p>      $ virsh save  </p>
<p>To restore a previously saved snapshot:</p>
<p>      $ virsh restore </p>
<p>To export the XML config associated with a virtual machine:</p>
<p>      $ virsh dumpxml &lt;virtual machine (name | id | uuid)</p>
<p>For a complete list of commands available for use with virsh run:</p>
<p>      $ virsh help</p>
<p>Or consult the manual page virsh(1) </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/derwynd.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/derwynd.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/derwynd.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=derwynd.com&amp;blog=4330525&amp;post=79&amp;subd=derwynd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://derwynd.com/2010/07/14/kvm-on-centos5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89de0963d0123cd6c2d3b997a3ac44d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">derwynd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
