<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkUCRH88eyp7ImA9WhRVEkQ.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007</id><updated>2012-01-11T21:41:05.173+05:30</updated><category term="linux" /><category term="story" /><category term="system" /><category term="technology" /><category term="other" /><category term="wireless" /><category term="NAC" /><category term="security" /><category term="kernel" /><category term="coding" /><category term="windows" /><category term="networking" /><category term="c" /><title>Humble's Blog</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://humblesblog.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>157</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/HumblesBlog" /><feedburner:info uri="humblesblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;AkUCRH8zeyp7ImA9WhRVEkQ.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-4198727541169545620</id><published>2011-12-29T15:50:00.001+05:30</published><updated>2012-01-11T21:41:05.183+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-11T21:41:05.183+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>Disable Control-C [ CTRL+C ] in linux</title><content type="html">Signals are the notification send to a process on the occurrence of an event.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;signal.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;unistd.h&amp;gt;

struct sigaction act;

void sighandler(int signum, siginfo_t *info, void *ptr)
{
    printf("Received signal %d\n", signum);
    printf("Signal originates from process %lu\n",
        (unsigned long)info-&gt;si_pid);
}

int main()
{
    printf("I am %lu\n", (unsigned long)getpid());

    memset(&amp;act, 0, sizeof(act));
#if 0
    act.sa_sigaction = sighandler;
    act.sa_flags = SA_SIGINFO;
    sigaction(SIGINT, &amp;act, NULL);
#endif
#if 0
    act.sa_handler = SIG_IGN;
    sigaction(SIGINT, &amp;act, NULL);
#endif

    &lt;b&gt;signal(SIGINT, SIG_IGN);&lt;/b&gt;

    // Waiting for CTRL+C...
    sleep(100);

    return 0;
}&lt;/pre&gt;&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href="http://nixcraft.com/shell-scripting/12605-shell-script-disable-ctrl-c-ctrl-z.html" target="_blank"&gt;http://nixcraft.com/shell-scripting/12605-shell-script-disable-ctrl-c-ctrl-z.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-4198727541169545620?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/Zn7-1AJ0YV4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/4198727541169545620/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/12/disable-control-c-ctrlc-in-linux.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/4198727541169545620?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/4198727541169545620?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/Zn7-1AJ0YV4/disable-control-c-ctrlc-in-linux.html" title="Disable Control-C [ CTRL+C ] in linux" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/12/disable-control-c-ctrlc-in-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQEQXY_eSp7ImA9WhRWEUg.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-5077107465966034407</id><published>2011-12-29T15:17:00.002+05:30</published><updated>2011-12-29T16:45:00.841+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-29T16:45:00.841+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>How to handle SIGSEGV, but also generate a core dump</title><content type="html">Signals are the notification send to a process on the occurrence of an event.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;sys/types.h&amp;gt;
#include &amp;lt;unistd.h&amp;gt;
#include &amp;lt;signal.h&amp;gt;

void sighandler(int signum)
{
    printf("Process %d got signal %d\n", getpid(), signum);
    signal(signum, SIG_DFL);
    kill(getpid(), signum);
}

int main()
{
    signal(SIGSEGV, sighandler);
    printf("Process %d waits for someone to send it SIGSEGV\n",
        getpid());
    sleep(1000);

    return 0;
}&lt;/pre&gt;&lt;pre&gt;ulimit -c unlimited
echo "0" &gt; /proc/sys/kernel/core_uses_pid
echo "core" &gt; /proc/sys/kernel/core_pattern&lt;/pre&gt;&lt;pre&gt;$ ls
sigs.c
$ gcc sigs.c
$ ./a.out
Process 2149 waits for someone to send it SIGSEGV
Process 2149 got signal 11
Segmentation fault (core dumped)
$ ls
a.out*  core  sigs.c&lt;/pre&gt;&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href="http://www.alexonlinux.com/signal-handling-in-linux" target="_blank"&gt;http://www.alexonlinux.com/signal-handling-in-linux&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.alexonlinux.com/how-to-handle-sigsegv-but-also-generate-core-dump" target="_blank"&gt;http://www.alexonlinux.com/how-to-handle-sigsegv-but-also-generate-core-dump&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://aplawrence.com/Linux/limit_core_files.html" target="_blank"&gt;http://aplawrence.com/Linux/limit_core_files.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="" target="_blank"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-5077107465966034407?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/jVxJHy2nKbk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/5077107465966034407/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/12/how-to-handle-sigsegv-but-also-generate.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5077107465966034407?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5077107465966034407?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/jVxJHy2nKbk/how-to-handle-sigsegv-but-also-generate.html" title="How to handle SIGSEGV, but also generate a core dump" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/12/how-to-handle-sigsegv-but-also-generate.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4HR3w4fSp7ImA9WhRWEEs.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-6539302959550911001</id><published>2011-12-28T15:38:00.003+05:30</published><updated>2011-12-28T15:38:56.235+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-28T15:38:56.235+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><title>extract file in linux</title><content type="html">&lt;pre&gt;extract () {
   if [ -f $1 ] ; then
       case $1 in
 *.tar.bz2) tar xvjf $1 &amp;&amp; cd $(basename "$1" .tar.bz2) ;;
 *.tar.gz) tar xvzf $1 &amp;&amp; cd $(basename "$1" .tar.gz) ;;
 *.tar.xz) tar Jxvf $1 &amp;&amp; cd $(basename "$1" .tar.xz) ;;
 *.bz2)  bunzip2 $1 &amp;&amp; cd $(basename "$1" /bz2) ;;
 *.rar)  unrar x $1 &amp;&amp; cd $(basename "$1" .rar) ;;
 *.gz)  gunzip $1 &amp;&amp; cd $(basename "$1" .gz) ;;
 *.tar)  tar xvf $1 &amp;&amp; cd $(basename "$1" .tar) ;;
 *.tbz2)  tar xvjf $1 &amp;&amp; cd $(basename "$1" .tbz2) ;;
 *.tgz)  tar xvzf $1 &amp;&amp; cd $(basename "$1" .tgz) ;;
 *.zip)  unzip $1 &amp;&amp; cd $(basename "$1" .zip) ;;
 *.Z)  uncompress $1 &amp;&amp; cd $(basename "$1" .Z) ;;
 *.7z)  7z x $1 &amp;&amp; cd $(basename "$1" .7z) ;;
 *)  echo "don't know how to extract '$1'..." ;;
       esac
   else
       echo "'$1' is not a valid file!"
   fi
}&lt;/pre&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=1116012" target="_blank"&gt;http://ubuntuforums.org/showthread.php?t=1116012&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-6539302959550911001?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/8sUJ6y4hGrw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/6539302959550911001/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/12/extract-file-in-linux.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/6539302959550911001?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/6539302959550911001?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/8sUJ6y4hGrw/extract-file-in-linux.html" title="extract file in linux" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/12/extract-file-in-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUHR307fSp7ImA9WhRSGEg.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-8996094116328853534</id><published>2011-11-21T11:51:00.001+05:30</published><updated>2011-11-21T12:03:56.305+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-21T12:03:56.305+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>value of pi (π)</title><content type="html">&lt;pre&gt;==&gt; In term of fractions: 
22/7,
333/106,
&lt;b&gt;355/113 = 3.141592&lt;/b&gt;9203539823008849557522124,
103993/33102, 
104348/33215, 
208341/66317,
312689/99532,
833719/265381,
1146408/364913,
4272943/1360120,
...
...
428224593349304/136308121570117, ...

==&gt; From GNU's math.h header file:
&lt;b&gt;# define M_PI       3.14159265358979323846  /* pi */&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href="http://numbers.computation.free.fr/Constants/Pi/piApprox.html" target="_blank"&gt;http://numbers.computation.free.fr/Constants/Pi/piApprox.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://c2.com/cgi/wiki?ValueOfPi" target="_blank"&gt;http://c2.com/cgi/wiki?ValueOfPi&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-8996094116328853534?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/Sm_LAFfnywc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/8996094116328853534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/11/value-of-pi.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8996094116328853534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8996094116328853534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/Sm_LAFfnywc/value-of-pi.html" title="value of pi (π)" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/11/value-of-pi.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQERXY4eyp7ImA9WhRTGUk.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-1942039866138130964</id><published>2011-11-10T14:54:00.001+05:30</published><updated>2011-11-10T23:35:04.833+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-10T23:35:04.833+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>htonll - 64bit host to network conversion</title><content type="html">See difference in output for little endian and big endian machines (&lt;a href="https://sites.google.com/site/humblejos/files/bswap64.c"&gt;&lt;b&gt;bswap64.c&lt;/b&gt;&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Constant folding&lt;/b&gt; is the process of simplifying constant expressions at compile time.&lt;br /&gt;
With &lt;b&gt;constant folding&lt;/b&gt; support, i = 1 * 2 * 3 * 4 * 5; is calculated at compile time, i = 120.&lt;br /&gt;
&lt;pre&gt;#include &amp;lt;endian.h&amp;gt;

typedef unsigned long long uint64;
typedef unsigned long uint32;

typedef union {
  uint64 big;
  uint32 small[2];
}long_long;

#define &lt;b&gt;HTONLL01&lt;/b&gt;(x) ({long_long i; i.small[0] = htonl((uint32)(x&amp;gt;&amp;gt;32)); \
                      i.small[1] = htonl((uint32)x); x = i.big;})

#if __BYTE_ORDER == __BIG_ENDIAN
# define &lt;b&gt;HTONLL02&lt;/b&gt;(x) (x)
#else
# if __BYTE_ORDER == __LITTLE_ENDIAN
#  define &lt;b&gt;HTONLL02&lt;/b&gt;(x) (((uint64)htonl((uint32)x))&amp;lt;&amp;lt;32 | htonl((uint32)(x&amp;gt;&amp;gt;32)))
# endif
#endif

From "&lt;b&gt;/usr/include/bits/byteswap.h&lt;/b&gt;"
/* Swap bytes in 64 bit value.  */
#define __bswap_constant_64(x) \
     (  (((x) &amp;amp; 0xff00000000000000ull) &amp;gt;&amp;gt; 56)                     \
      | (((x) &amp;amp; 0x00ff000000000000ull) &amp;gt;&amp;gt; 40)                     \
      | (((x) &amp;amp; 0x0000ff0000000000ull) &amp;gt;&amp;gt; 24)                     \
      | (((x) &amp;amp; 0x000000ff00000000ull) &amp;gt;&amp;gt; 8)                      \
      | (((x) &amp;amp; 0x00000000ff000000ull) &amp;lt;&amp;lt; 8)                      \
      | (((x) &amp;amp; 0x0000000000ff0000ull) &amp;lt;&amp;lt; 24)                     \
      | (((x) &amp;amp; 0x000000000000ff00ull) &amp;lt;&amp;lt; 40)                     \
      | (((x) &amp;amp; 0x00000000000000ffull) &amp;lt;&amp;lt; 56))

# define &lt;b&gt;__bswap_64&lt;/b&gt;(x) \
     (__extension__                                               \
      ({ union { __extension__ unsigned long long int __ll;       \
         unsigned long int __l[2]; } __w, __r;                    \
     if (__builtin_constant_p (x))                                \
       __r.__ll = __bswap_constant_64 (x);                        \
     else                                                         \
       {                                                          \
         __w.__ll = (x);                                          \
         __r.__l[0] = __bswap_32 (__w.__l[1]);                    \
         __r.__l[1] = __bswap_32 (__w.__l[0]);                    \
       }                                                          \
     __r.__ll; }))

&lt;/pre&gt;Reference: &lt;br /&gt;
&lt;a href="http://www.ibm.com/developerworks/linux/library/l-gcc-hacks/" target="_blank"&gt;http://www.ibm.com/developerworks/linux/library/l-gcc-hacks/&lt;/a&gt; &lt;br /&gt;
&lt;a href="http://en.wikipedia.org/wiki/Constant_folding" target="_blank"&gt;http://en.wikipedia.org/wiki/Constant_folding&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-1942039866138130964?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/euWD6kz66iA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/1942039866138130964/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/11/htonll-64bit-host-to-network-conversion.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1942039866138130964?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1942039866138130964?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/euWD6kz66iA/htonll-64bit-host-to-network-conversion.html" title="htonll - 64bit host to network conversion" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/11/htonll-64bit-host-to-network-conversion.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcCQHw5fCp7ImA9WhRTGEg.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-8886756676847573212</id><published>2011-11-09T20:41:00.003+05:30</published><updated>2011-11-09T21:07:41.224+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-09T21:07:41.224+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="story" /><title>ഒരു ട്രെയിന്‍ യാത്ര</title><content type="html">On a fine Sunday evening same 5pm train.&lt;br /&gt;
I have got side lower seat.&lt;br /&gt;
&lt;br /&gt;
അടുത്തിരുന്ന couples പരിചയപ്പെട്ടു, about 60+ years old.&lt;br /&gt;
Later came to know that they where teachers and taught at my sis’s school and seemed neighbors to me, may be within 5km radius. And they are going to see some swami in Bangalore…blah blah blah... And the husband had heart attack once,,, :-(&lt;br /&gt;
&lt;br /&gt;
And I started,,, reading + listening to music.&lt;br /&gt;
From trissur (or some where) 1 more couple came,,, seemed they got both the lower berths.&lt;br /&gt;
And they switched of the light immediately after finishing the dinner.&lt;br /&gt;
&lt;br /&gt;
I don’t know why I interfere with the matter, may be I don’t want the lights gone at that moment. I said them that old couple can’t climb the berth.&lt;br /&gt;
I volunteered to give my side lower berth, so as the new couple also agreed to give one of there lower berth.&lt;br /&gt;
Here is the catch,,, I didn’t check their tickets.&lt;br /&gt;
&lt;br /&gt;
So at some point of the journey,,, some where in തമിഴ്നാടു കുറെ ആളുകള്‍ ട്രെയിനില്‍ കയറി….&lt;br /&gt;
They started saying that i am sleeping on their berth and one of the younger couple as well...&lt;br /&gt;
As all of us was on sound sleep,,, we didn’t understand a thing for a moment.&lt;br /&gt;
&lt;br /&gt;
കുറച്ചു സമയം കഴിഞ്ചു നമ്മുടെ old couplinte ടിക്കറ്റ്‌ ചെക്ക്‌ ചെയ്തപ്പോഴാണ് ഒരു കാര്യം മനസിലായത്... അവരുടെ berth S1ല്‍ അന്നു instead of S10…&lt;br /&gt;
&lt;br /&gt;
പാവം ഞാന്‍... New couplinte വഴക്കും കേട്ടു,,, ഞാന്‍ പറഞ്ഞിട്ടാണ്...&lt;br /&gt;
&lt;br /&gt;
പിന്നെ രാത്രി 2pm ന് നമ്മുടെ old couplinem അയിട്ടൂ S10ന്നു S1 വരെ നടന്നു...&lt;br /&gt;
അവിടെ ചെന്നപ്പോള്‍ ഭാഗ്യത്തിന് bearth അവിടെ തന്നെ ഉണ്ട്...&lt;br /&gt;
&lt;br /&gt;
പക്ഷെ ഒരു problem... നമ്മുടെ മാഷ് കണ്ണാട എടുക്കാന്‍ മറന്നു...&lt;br /&gt;
I came back from S1 to S10, took the കണ്ണാട, went back to S1 with കണ്ണാട&lt;br /&gt;
അവിടെ എത്തി അപ്പോഴത്തെ കാഴ്ച്ച... നമ്മുടെ heart patient അയ മാഷ് side upper beartil കയറി കാലും അട്ടി കൊണ്ടിരിക്കുന്നു...&lt;br /&gt;
&lt;br /&gt;
Gheee...&lt;br /&gt;
&lt;br /&gt;
Does this need any moral???&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-8886756676847573212?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/krMNHVRjk8M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/8886756676847573212/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/11/blog-post.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8886756676847573212?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8886756676847573212?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/krMNHVRjk8M/blog-post.html" title="ഒരു ട്രെയിന്‍ യാത്ര" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>1</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/11/blog-post.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQGQno_eyp7ImA9WhdVFko.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-5811390984209310239</id><published>2011-09-22T12:18:00.003+05:30</published><updated>2011-09-22T12:22:03.443+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-22T12:22:03.443+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><category scheme="http://www.blogger.com/atom/ns#" term="other" /><title>Open Internet Shortcut in IE</title><content type="html">&lt;b&gt;Use a file shortcut instead of an internet shortcut.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Create a shortcut to C:\Program Files\Internet Explorer\iexplore.exe.&lt;br /&gt;
&lt;br /&gt;
2. Open the properties and add a space and the website to the target.&lt;br /&gt;
(&lt;b&gt;&lt;font color=blue&gt;"C:\Program Files\Internet Explorer\iexplore.exe" http://www.google.co.in&lt;/font&gt;&lt;b&gt;)&lt;br /&gt;
&lt;br /&gt;
3. Once in IE the internet shortcuts in favorites or on the links bar will ignore the default browser and opens in IE as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href="http://forum.worldstart.com/showthread.php?t=111659" target="_blank"&gt;http://forum.worldstart.com/showthread.php?t=111659&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-5811390984209310239?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/dsFOSuFBF9M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/5811390984209310239/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/09/open-internet-shortcut-in-ie.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5811390984209310239?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5811390984209310239?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/dsFOSuFBF9M/open-internet-shortcut-in-ie.html" title="Open Internet Shortcut in IE" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.5945627</georss:point><georss:box>12.724026199999999 77.2787057 13.2191712 77.91041969999999</georss:box><feedburner:origLink>http://humblesblog.blogspot.com/2011/09/open-internet-shortcut-in-ie.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IFQXw8eyp7ImA9WhdREE4.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-609790228920767454</id><published>2011-07-30T18:36:00.004+05:30</published><updated>2011-07-30T18:41:50.273+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-30T18:41:50.273+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>Spoof ARP and ICMP ECHOREPLY Using Linux Socket Filter</title><content type="html">Download ARP and ICMP spoof code from &lt;a href="https://sites.google.com/site/humblejos/files/icmp_spoof.c" targte="_blank"&gt;&lt;b&gt;here&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;pre&gt;# gcc icmp_spoof.c -o icmp&lt;br /&gt;# ./icmp eth0&lt;br /&gt;Opening raw socket&lt;br /&gt;Got raw socket fd 3&lt;br /&gt;Fake MAC address is 00:aa:bb:cc:dd:ee&lt;br /&gt;Created raw socket&lt;br /&gt;Sent ARP reply: 192.168.109.5 is 00:0c:29:98:4f:5b&lt;br /&gt;Received ICMP ECHO from 192.168.109.1 (code: 0  id: 512  seq: 27178)&lt;br /&gt;Received ICMP ECHO from 192.168.109.1 (code: 0  id: 512  seq: 27434)&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://blog.fpmurphy.com/2011/01/spoof-arp-and-icmp-echoreply-using-linux-packet-filter.html" target="_blank"&gt;http://blog.fpmurphy.com/2011/01/spoof-arp-and-icmp-echoreply-using-linux-packet-filter.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-609790228920767454?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/4kmJJLnNr3I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/609790228920767454/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/07/spoof-arp-and-icmp-echoreply-using.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/609790228920767454?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/609790228920767454?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/4kmJJLnNr3I/spoof-arp-and-icmp-echoreply-using.html" title="Spoof ARP and ICMP ECHOREPLY Using Linux Socket Filter" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/07/spoof-arp-and-icmp-echoreply-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EDQ3g5eSp7ImA9WhdSEUU.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-7437420517074198987</id><published>2011-07-20T23:11:00.002+05:30</published><updated>2011-07-20T23:44:32.621+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-20T23:44:32.621+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="wireless" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>VLAN Advanced</title><content type="html">On a large, flat, switched network with thousands of computers, performance suffers and security concerns increase.&lt;br /&gt;&lt;br /&gt;Using VLANs to divide a growing network can help with manageability, performance and security.&lt;br /&gt;&lt;br /&gt;The VLAN structure makes it easier for administrators to manage network resources. Users can be grouped logically with the resources(servers, printers, etc.) that they need. When a user's computer physically moves to a different location (for example, with a laptop computer), the VLAN management software can recognize the computer and automatically assign it to the VLAN to which it's supposed to belong.&lt;br /&gt;&lt;br /&gt;VLANs reduce the need to have routers deployed on a network to contain broadcast traffic. VLANs are separated by switches that divide the network into multiple broadcast domains, to reduce the amount of traffic going to all devices and thus increase performance.&lt;br /&gt;&lt;br /&gt;By confining the broadcast domains, end-stations on a VLAN can be isolated from listening to or receiving broadcasts not intended for them. Moreover, if a router is not connected between the VLANs, the end-stations of a VLAN cannot communicate with the end-stations of the other VLANs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2009/06/vlan.html" target="_blank"&gt;http://thebestechblog.blogspot.com/2009/06/vlan.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.frokwon.net/essays/VLAN.htm" target="_blank"&gt;http://www.frokwon.net/essays/VLAN.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://net21.ucdavis.edu/newvlan.htm" target="_blank"&gt;http://net21.ucdavis.edu/newvlan.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.techrepublic.com/article/scaling-your-network-with-vlans/5779489" target="_blank"&gt;http://www.techrepublic.com/article/scaling-your-network-with-vlans/5779489&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-7437420517074198987?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/e93yucr_RD8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/7437420517074198987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/07/vlan-advanced.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7437420517074198987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7437420517074198987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/e93yucr_RD8/vlan-advanced.html" title="VLAN Advanced" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/07/vlan-advanced.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEQHQnszcSp7ImA9WhdSEUo.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-5236867401670998114</id><published>2011-07-20T13:12:00.011+05:30</published><updated>2011-07-20T20:02:13.589+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-20T20:02:13.589+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="wireless" /><title>wpa_passphrase</title><content type="html">WPA-PSK uses pre-shared key as a passphrase of 8 to 63 printable ASCII characters or as a string of 64 hexadecimal digits.&lt;br /&gt;&lt;br /&gt;If ASCII characters are used, the 256 bit key is calculated by applying the PBKDF2 key derivation function to the passphrase, using the SSID as the salt and 4096 iterations of HMAC-SHA1.&lt;br /&gt;&lt;br /&gt;wpa_passphrase -- utility for generating a 256-bit pre-shared WPA key from an ASCII passphrase. You can download wpa_passphrase.tar.gz from &lt;a href="https://sites.google.com/site/humblejos/files/wpa_passphrase.tar.gz" target="_blank"&gt;&lt;b&gt;here&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;pre&gt;# tar xzvf wpa_passphrase.tar.gz&lt;br /&gt;# make&lt;br /&gt;# ./wpa_passphrase humble mypassword&lt;br /&gt;network={&lt;br /&gt;        ssid="humble"&lt;br /&gt;        #psk="mypassword"&lt;br /&gt;        psk=aa382e1c4ac62580c25ee2b33a1cf6179176baad4a5cffc43be9c8d2b103f4aa&lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;AP can be configured with &lt;b&gt;ASCII passphrase&lt;/b&gt; or &lt;b&gt;HEX digits&lt;/b&gt;&lt;br /&gt;Which enables the windows client to uses either of the above key&lt;/pre&gt;For home and small office networks its preferred to use &lt;b&gt;WPA2-personal authentication&lt;/b&gt; method which also uses CCMP, &lt;b&gt;AES based encryption&lt;/b&gt;.&lt;br /&gt;Each wireless network device authenticates with the access point using the same 256-bit key.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://www.hautespot.net/wpapsk.html" target="_blank"&gt;http://www.hautespot.net/wpapsk.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?wpa_passphrase+8" target="_blank"&gt;http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?wpa_passphrase+8&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-5236867401670998114?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/LGobgT9h6N0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/5236867401670998114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/07/wpapassphrase.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5236867401670998114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/5236867401670998114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/LGobgT9h6N0/wpapassphrase.html" title="wpa_passphrase" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/07/wpapassphrase.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYHSXwzeip7ImA9WhZaGEg.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-7705629441395795901</id><published>2011-06-30T21:36:00.014+05:30</published><updated>2011-07-05T14:42:18.282+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-05T14:42:18.282+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><category scheme="http://www.blogger.com/atom/ns#" term="c" /><category scheme="http://www.blogger.com/atom/ns#" term="system" /><category scheme="http://www.blogger.com/atom/ns#" term="coding" /><title>spinlock</title><content type="html">&lt;b&gt;volatile&lt;/b&gt; modifier tells compiler that value may change in a way which is not predictable by the compiler. it guaranties that the compiler won't re-order volatile read and write.&lt;br /&gt;- useful for &lt;b&gt;memory-mapped I/O&lt;/b&gt; and &lt;b&gt;shared memory&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;volatile guaranties that the compiler will generate ordered volatile read and write, but CPU may reorder the execution.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;memory barriar&lt;/b&gt; is used to avoid the CPUs employ performance optimizations that can result in out-of-order execution.&lt;br /&gt;Compiler memory barrier - prevent a compiler from reordering instructions, they do not prevent reordering by CPU. ex:- asm volatile ("" : : : "memory");&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;why spinlock required???&lt;br /&gt;&lt;br /&gt;1. protects data from multiple thread of execution&lt;br /&gt;==&gt; spin + ena/dis preemption&lt;br /&gt;&lt;br /&gt;2. protects data from interruct handler&lt;br /&gt;==&gt; ena/dis interrupt + spin + ena/dis preemption&lt;br /&gt;&lt;br /&gt;SMP + PREEMPT    ==&gt; spin + disable preemption&lt;br /&gt;SMP + NO PREEMPT ==&gt; spin&lt;br /&gt;NO SMP + PREEMPT ==&gt; disable kernel preemption&lt;br /&gt;NO SMP + NO PREEMPT ==&gt; NULL&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;==&gt; spinlock protects critical region&lt;br /&gt;==&gt; spinlock provides mutual exclusion&lt;br /&gt;==&gt; spinlock marks the non-preemptible regions&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;; Intel syntax&lt;br /&gt;lock:&lt;br /&gt;     dd      0           ;&lt;br /&gt; &lt;br /&gt;spin_lock:&lt;br /&gt;     mov     eax, 1      ;&lt;br /&gt;     xchg    eax, [lock] ;&lt;br /&gt;     test    eax, eax    ;&lt;br /&gt;     jnz     spin_lock   ;&lt;br /&gt;     ret                 ;&lt;br /&gt;&lt;br /&gt;spin_unlock:&lt;br /&gt;     mov     eax, 0      ;&lt;br /&gt;     xchg    eax, [lock] ;&lt;br /&gt;     ret                 ;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Spinlock#Example_implementation" target="_blank"&gt;http://en.wikipedia.org/wiki/Spinlock#Example_implementation&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Memory_barrier" target="_blank"&gt;http://en.wikipedia.org/wiki/Memory_barrier&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Memory_ordering" target="_blank"&gt;http://en.wikipedia.org/wiki/Memory_ordering&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-7705629441395795901?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/A7_DsdqZT7o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/7705629441395795901/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/06/spinlock.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7705629441395795901?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7705629441395795901?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/A7_DsdqZT7o/spinlock.html" title="spinlock" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/06/spinlock.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIHRXs6cCp7ImA9WhZbFks.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-8615951186013217579</id><published>2011-06-21T00:26:00.015+05:30</published><updated>2011-06-21T20:15:34.518+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-21T20:15:34.518+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>Hang a linux box with relatime process?</title><content type="html">A runnable SCHED_FIFO task continues to run until it blocks or explicitly yields the processor; it has no timeslice and can run indefinitely.&lt;br /&gt;A SCHED_RR is identical to SCHED_FIFO except that each process can run only until it exhausts a predetermined timeslice.&lt;br /&gt;&lt;br /&gt;/proc/sys/kernel/sched_rt_runtime_us: &lt;b&gt;&lt;i&gt;A global limit on how much time realtime scheduling may use&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Since 2.6.25 kernel, the default values for sched_rt_period_us (1000000 or 1s) and sched_rt_runtime_us (950000 or 0.95s). This gives 0.05s to be used by SCHED_OTHER (non-RT tasks). &lt;i&gt;In other words, the group scheduler is configured, by default, to reserve 5% of the CPU for non-SCHED_FIFO tasks&lt;/i&gt;. &lt;br /&gt;&lt;br /&gt;Download &lt;b&gt;&lt;a href="https://sites.google.com/site/humblejos/files/testrt.c" target="_blank"&gt;testrt.c&lt;/a&gt;&lt;/b&gt;&lt;pre&gt;&lt;font color=red&gt;root permission is required to execute this!!!&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;# gcc -o testrt testrt.c -lrt -Wall&lt;br /&gt;# ./testrt&lt;br /&gt;using realtime, priority: 20&lt;br /&gt;&lt;br /&gt;# echo 1000000 &gt; /proc/sys/kernel/sched_rt_runtime_us&lt;br /&gt;&lt;br /&gt;&lt;font color=red&gt;&lt;b&gt;system is hang!!!&lt;/b&gt;&lt;/font&gt;&lt;/pre&gt;Download &lt;b&gt;&lt;a href="https://sites.google.com/site/humblejos/files/simple-module.c" target="_blank"&gt;simple-module.c&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;Download &lt;b&gt;&lt;a href="https://sites.google.com/site/humblejos/files/Makefile.mod" tartget="_blank"&gt;Makefile.mod&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;# mv Makefile.mod Makefile&lt;br /&gt;# make&lt;br /&gt;# insmod ./simple-module.ko&lt;br /&gt;&lt;br /&gt;# cat /proc/getprio&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x00402100] systemd [1][0]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8020A040] kthreadd [2][0]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A040] ksoftirqd/0 [3][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A060] kworker/u:0 [5][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] khelper [6][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8020A040] sync_supers [95][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x80A0A040] bdi-default [97][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] kblockd [99][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] ata_sff [255][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] md [261][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A060] kworker/0:1 [359][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x80A4A840] kswapd0 [370][2]&lt;br /&gt;...&lt;br /&gt;==&gt; [79:120:79:20] [1000] [0x00400100] testrt [3264][2463]&lt;br /&gt;...&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://lwn.net/Articles/296419/" target="_blank"&gt;http://lwn.net/Articles/296419/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://book.chinaunix.net/special/ebook/Linux_Kernel_Development/0672327201/ch04lev1sec4.html" target="_blank"&gt;http://book.chinaunix.net/special/ebook/Linux_Kernel_Development/0672327201/ch04lev1sec4.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kernel.org/doc/Documentation/scheduler/sched-rt-group.txt" target="_blank"&gt;http://www.kernel.org/doc/Documentation/scheduler/sched-rt-group.txt&lt;/a&gt;&lt;br /&gt;&lt;a href="https://rt.wiki.kernel.org/index.php/Squarewave-example" target="_blank"&gt;https://rt.wiki.kernel.org/index.php/Squarewave-example&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-8615951186013217579?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/ON-W4csMQbI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/8615951186013217579/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/06/hang-linux-box-with-relatime-process.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8615951186013217579?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8615951186013217579?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/ON-W4csMQbI/hang-linux-box-with-relatime-process.html" title="Hang a linux box with relatime process?" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/06/hang-linux-box-with-relatime-process.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYBRXc8eip7ImA9WhZbFUU.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-8054105846522223212</id><published>2011-06-20T17:49:00.002+05:30</published><updated>2011-06-20T20:32:34.972+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-20T20:32:34.972+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="c" /><title>sample c programs</title><content type="html">&lt;pre&gt;Find first bit in word - &lt;b&gt;&lt;a href="http://sites.google.com/site/humblejos/files/ffb.c" target="_blank"&gt;ffb.c&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# ./ffb&lt;br /&gt;first bit(0xDEADBEAF): 0&lt;br /&gt;first bit(0xDEADBEA0): 5&lt;br /&gt;first bit(0xDEADBE00): 9&lt;br /&gt;first bit(0xDEADB000): 12&lt;br /&gt;first bit(0xDEAD0000): 16&lt;/pre&gt;&lt;pre&gt;create a daemon and redirect output to logfile - &lt;b&gt;&lt;a href="http://sites.google.com/site/humblejos/files/pcreate.c" target="_blank"&gt;pcreate.c&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;cat &gt; daemon.sh &lt;&lt; EOF&lt;br /&gt;#!/bin/sh&lt;br /&gt;while [ 1 ]; do date; sleep 1; done&lt;br /&gt;EOF&lt;br /&gt;&lt;br /&gt;# chmod +x daemon.sh&lt;br /&gt;# gcc -o pcreate pcreate.c&lt;br /&gt;# &lt;b&gt;./pcreate ./daemon.sh logfile.log&lt;/b&gt;&lt;br /&gt;# tail -f logfile.log&lt;/pre&gt;&lt;pre&gt;program to print U-Boot environment variables - &lt;a href="http://sites.google.com/site/humblejos/files/ubootenv.c" target="_blank"&gt;&lt;b&gt;ubootenv.c&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;hexdump of U-Boot env partition - &lt;a href="http://sites.google.com/site/humblejos/files/uboot.env" target="_blank"&gt;&lt;b&gt;uboot.env&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;# gcc -o ubootenv ubootenv.c &lt;br /&gt;# &lt;b&gt;./ubootenv uboot.env&lt;/b&gt;&lt;br /&gt;CRC32: 0xE2A77069&lt;br /&gt;Active Flag: 0x01&lt;br /&gt;&lt;br /&gt;bootdelay=0&lt;br /&gt;baudrate=115200&lt;br /&gt;download_baudrate=115200&lt;br /&gt;....&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;Euclid's Algorithm&lt;/b&gt; to find GCD (&lt;a href="http://sites.google.com/site/humblejos/files/gcd.c" target="_blank"&gt;gcd.c&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;# gcc -o gcd gcd.c&lt;br /&gt;# &lt;b&gt;./gcd 12345 56789&lt;/b&gt;&lt;br /&gt;  gcd of 12345 and 56789 is 1&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;sieve of Eratosthenes&lt;/b&gt; to find prime numbers (&lt;a href="http://sites.google.com/site/humblejos/files/prime.c" target="_blank"&gt;prime.c&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;# gcc -o prime prime.c&lt;br /&gt;# &lt;b&gt;./prime 100&lt;/b&gt;&lt;br /&gt;    2    3    5    7   11   13   17   19   23   29&lt;br /&gt;   31   37   41   43   47   53   59   61   67   71&lt;br /&gt;   73   79   83   89   97&lt;br /&gt;Tottal number: 25&lt;/pre&gt;&lt;pre&gt;Simple client/Server communication (&lt;a href="https://sites.google.com/site/humblejos/files/server1.c"&gt;&lt;b&gt;server1.c&lt;/b&gt;&lt;/a&gt;, &lt;a href="https://sites.google.com/site/humblejos/files/client1.c"&gt;&lt;b&gt;client1.c&lt;/b&gt;&lt;/a&gt;)&lt;br /&gt;Simple client/Server communication (&lt;a href="https://sites.google.com/site/humblejos/files/server2.c"&gt;&lt;b&gt;server2.c&lt;/b&gt;&lt;/a&gt;, &lt;a href="https://sites.google.com/site/humblejos/files/client2.c"&gt;&lt;b&gt;client2.c&lt;/b&gt;&lt;/a&gt;)&lt;br /&gt;Simple client/Server communication (&lt;a href="https://sites.google.com/site/humblejos/files/server3.c"&gt;&lt;b&gt;server3.c&lt;/b&gt;&lt;/a&gt;, &lt;a href="https://sites.google.com/site/humblejos/files/client3.c"&gt;&lt;b&gt;client3.c&lt;/b&gt;&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://roclinux.cn/wp-content/uploads/2010/03/image007.png" target="_blank"&gt;&lt;center&gt;&lt;img src="http://roclinux.cn/wp-content/uploads/2010/03/image007.png"&gt;&lt;/center&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;# gcc -o server serverX.c&lt;br /&gt;# gcc -o client clientX.c&lt;br /&gt;&lt;br /&gt;# ./server 5555&lt;br /&gt;Here is the message: &lt;b&gt;hello server&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# ./client localhost 5555&lt;br /&gt;Please enter the message: &lt;b&gt;hello server&lt;/b&gt;&lt;br /&gt;&lt;b&gt;from server time: Tue Nov 23 05:06:08 2010&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-8054105846522223212?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/mAJDlh2m4Uk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/8054105846522223212/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2010/06/sample-c-programs.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8054105846522223212?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8054105846522223212?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/mAJDlh2m4Uk/sample-c-programs.html" title="sample c programs" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2010/06/sample-c-programs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8NQHY_cCp7ImA9WhZaFEk.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-8764977444140992338</id><published>2011-06-19T21:24:00.006+05:30</published><updated>2011-06-30T19:38:11.848+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-30T19:38:11.848+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>linux 2.6 simple module</title><content type="html">Download &lt;a href="https://sites.google.com/site/humblejos/files/simple-proc.c" target="_blank"&gt;&lt;b&gt;simple-proc.c&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;Download &lt;a href="https://sites.google.com/site/humblejos/files/Makefile.sim" target="_blank"&gt;&lt;b&gt;Makefile.sim&lt;/b&gt;&lt;/a&gt;&lt;pre&gt;# mv Makefile.sim Makefile&lt;br /&gt;# make&lt;br /&gt;# insmod ./simple-proc.ko&lt;br /&gt;&lt;br /&gt;# echo "1" &gt; /proc/arith/sum&lt;br /&gt;# echo "11" &gt; /proc/arith/sum&lt;br /&gt;# echo "111" &gt; /proc/arith/sum&lt;br /&gt;&lt;br /&gt;# cat /proc/arith/sum&lt;br /&gt;&lt;b&gt;123&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;Download &lt;a href="https://sites.google.com/site/humblejos/files/simple-module.c" target="_blank"&gt;&lt;b&gt;simple-module.c&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;Download &lt;a href="https://sites.google.com/site/humblejos/files/Makefile.mod" target="_blank"&gt;&lt;b&gt;Makefile.mod&lt;/b&gt;&lt;/a&gt;&lt;pre&gt;# mv Makefile.mod Makefile&lt;br /&gt;# make&lt;br /&gt;# insmod ./simple-module.ko&lt;br /&gt;&lt;br /&gt;# cat /proc/getprio&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x00402100] systemd [1][0]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8020A040] kthreadd [2][0]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A040] ksoftirqd/0 [3][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A060] kworker/u:0 [5][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] khelper [6][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8020A040] sync_supers [95][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x80A0A040] bdi-default [97][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] kblockd [99][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] ata_sff [255][2]&lt;br /&gt;==&gt; [100:100:100:0] [1000] [0x8420A040] md [261][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x8420A060] kworker/0:1 [359][2]&lt;br /&gt;==&gt; [120:120:120:0] [1000] [0x80A4A840] kswapd0 [370][2]&lt;br /&gt;...&lt;br /&gt;==&gt; [79:120:79:20] [1000] [0x00400100] testrt [3264][2463]&lt;br /&gt;...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://www.captain.at/programming/kernel-2.6/" target="_blank"&gt;http://www.captain.at/programming/kernel-2.6&lt;/a&gt;&lt;br /&gt;&lt;a href="http://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html" target="_blank"&gt;http://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-8764977444140992338?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/utgT3EAEdy4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/8764977444140992338/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2010/10/linux-26-simple-module.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8764977444140992338?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/8764977444140992338?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/utgT3EAEdy4/linux-26-simple-module.html" title="linux 2.6 simple module" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2010/10/linux-26-simple-module.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4EQXc-cCp7ImA9WhZUFEg.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-3648334497734922892</id><published>2011-05-31T18:16:00.032+05:30</published><updated>2011-06-07T20:15:00.958+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-07T20:15:00.958+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="wireless" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Using PEAP for wireless authentication</title><content type="html">PEAP creates an encrypted TLS tunnel between the client and the authentication server. The keys for this encryption are transported using the server's public key. The ensuing exchange of authentication information inside the tunnel to authenticate the client is then encrypted and user credentials are safe from eavesdropping.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Use a trusted certificate for authentication&lt;/b&gt;: The RADIUS server must be configured with a digital certificate that is signed by a trusted certificate authority (CA), using a private or a public CA.&lt;br /&gt;&lt;b&gt;Validate the server certificate on all clients&lt;/b&gt;: All PEAP clients must validate the server certificate for authentication. A &lt;b&gt;Trusted Root CA&lt;/b&gt;, that issued the server certificate, must be installed in client. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-9J4nVE72jr4/Te43Z2VyctI/AAAAAAAAAoQ/auLovGgL5c0/s1600/PEAP.JPG" target="_blank"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 247px; height: 320px;" src="http://2.bp.blogspot.com/-9J4nVE72jr4/Te43Z2VyctI/AAAAAAAAAoQ/auLovGgL5c0/s320/PEAP.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5615486702600745682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-R07JS-1Lcck/Te45Ih-l5cI/AAAAAAAAAoY/al6fw3BbPkE/s1600/EAP-TLS.PNG" target="_blank"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 218px;" src="http://4.bp.blogspot.com/-R07JS-1Lcck/Te45Ih-l5cI/AAAAAAAAAoY/al6fw3BbPkE/s320/EAP-TLS.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5615488604100224450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://www.networkworld.com/columnists/2007/042307-wireless-security.html" target="_blank"&gt;http://www.networkworld.com/columnists/2007/042307-wireless-security.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://revolutionwifi.blogspot.com/2010/09/peapv0-packet-flow-reference.html" target="_blank"&gt;http://revolutionwifi.blogspot.com/2010/09/peapv0-packet-flow-reference.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.keyboardlife.net/2010/06/8021x-port-based-authentication-wired.html" target="_blank"&gt;http://www.keyboardlife.net/2010/06/8021x-port-based-authentication-wired.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-3648334497734922892?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/C_hgw_U4zw4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/3648334497734922892/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/05/using-peap-for-wireless-authentication.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3648334497734922892?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3648334497734922892?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/C_hgw_U4zw4/using-peap-for-wireless-authentication.html" title="Using PEAP for wireless authentication" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-9J4nVE72jr4/Te43Z2VyctI/AAAAAAAAAoQ/auLovGgL5c0/s72-c/PEAP.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/05/using-peap-for-wireless-authentication.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUFQn45eCp7ImA9WhZVE0Q.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-3614016380666930596</id><published>2011-05-26T12:38:00.002+05:30</published><updated>2011-05-26T12:46:53.020+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-26T12:46:53.020+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>linux 2.6.39 installation on Fedora Core 15</title><content type="html">1. &lt;a href="/2011/05/fedora-core-15-installation-on-vmware.html" target="_blank"&gt;Install Fedora core 15&lt;/a&gt;.&lt;br /&gt;2. Download Linux 2.6.39 source code from &lt;a href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.bz2"&gt;here&lt;/a&gt;.&lt;br /&gt;3. Download the config file for 2.6.39 from &lt;a href="http://sites.google.com/site/humblejos/files/config.39"&gt;here&lt;/a&gt;.&lt;br /&gt;4. Remove all the arch related files other than &lt;b&gt;x86&lt;/b&gt; from &lt;a href="/2010/04/script-to-clean-linux-2633-for-x86.html" target="_blank"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;pre&gt;cd /usr/src/kernels&lt;br /&gt;tar xjvf linux-2.6.39.tar.bz2&lt;br /&gt;cp config.39 .config&lt;br /&gt;make oldconfig&lt;br /&gt;make&lt;br /&gt;make modules_install&lt;br /&gt;make install&lt;/pre&gt;&lt;pre&gt;timeout=10&lt;br /&gt;#hiddenmenu&lt;br /&gt;kernel .... &lt;b&gt;rdshell rdinitdebug&lt;/b&gt;&lt;br /&gt;kernel .... #&lt;b&gt;rhgb quiet&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 14 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/05/fedora-core-15-installation-on-vmware.html" target="_blank"&gt;Fedora Core 15 Intallation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="/2010/11/linux-2636-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.36 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/02/linux-2637-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.37 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/04/linux-2638-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.38 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/05/linux-2639-installation-on-fedora-core_26.html" target="_blank"&gt;Linux 2.6.39 + Fedora 15&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-3614016380666930596?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/X8ROfTNTUkU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/3614016380666930596/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/05/linux-2639-installation-on-fedora-core_26.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3614016380666930596?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3614016380666930596?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/X8ROfTNTUkU/linux-2639-installation-on-fedora-core_26.html" title="linux 2.6.39 installation on Fedora Core 15" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/05/linux-2639-installation-on-fedora-core_26.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQASHw_fCp7ImA9WhZVFE0.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-3957411841955060634</id><published>2011-05-26T11:53:00.006+05:30</published><updated>2011-05-26T15:19:09.244+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-26T15:19:09.244+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>Fedora Core 15 installation on VmWare 2.0.2</title><content type="html">&lt;pre&gt;1. login using Administrator account&lt;br /&gt;2. Virtual Machine --&gt; Create Virtual Machine&lt;br /&gt;3. Name and Location --&gt; "FC14-minimal"&lt;br /&gt;4. Guest Operating System --&gt; "Linux 2.6"&lt;br /&gt;5. Memory and Processors --&gt; "&lt;b&gt;768MB&lt;/b&gt;"&lt;br /&gt;6. Hard Disk --&gt; "Create New Virtual Disk"&lt;br /&gt;7. Hard Disk Properties --&gt; "40GB"&lt;br /&gt;8. Network Adapter --&gt; "NAT"&lt;br /&gt;9. CD Drive --&gt; "Use a Physical Drive"&lt;br /&gt;10. Floppy Drive --&gt; "Don't Add a Floppy Drive"&lt;br /&gt;11. USB Controller --&gt; "Don't Add a USB Controller"&lt;br /&gt;12. Ready to Complete --&gt; "Finished"&lt;br /&gt;&lt;br /&gt;13. Summary --&gt; "CD/DVD Drice" --&gt; "[] c:\Fedora-15-i386-DVD.iso"&lt;/pre&gt;&lt;pre&gt;1. Skip media test&lt;br /&gt;2. Select "Basic Storage Devices"&lt;br /&gt;   ("Yes, discard any data")&lt;br /&gt;3. Select "Create Custom Layout"&lt;br /&gt;&gt;&gt; "Free" -&gt; "Create" -&gt; "Standard Partition" -&gt; 1536MB swap&lt;br /&gt;&gt;&gt; "Free" -&gt; "Create" -&gt; "Standard Partition"&lt;br /&gt;   Mount point --&gt; "/boot"&lt;br /&gt;   File system --&gt; "EXT4"&lt;br /&gt;   Size --&gt; 500MB&lt;br /&gt;&gt;&gt; "Free" -&gt; "Create" -&gt; "Standard Partition"&lt;br /&gt;   Mount point --&gt; "/"&lt;br /&gt;   File system --&gt; "EXT4"&lt;br /&gt;   Fill to maximum allowed size&lt;br /&gt;&gt;&gt; "format" and "write changes to disk"&lt;br /&gt;4. Select "minimal" installation&lt;br /&gt;5. A total of 188 packages will get installed.&lt;/pre&gt;&lt;pre&gt;vi /etc/syscofig/network-scripts/ifcfg-p3p1&lt;br /&gt;&gt;&gt; DEVICE="p3p1"&lt;br /&gt;&gt;&gt; ONBOOT="yes"&lt;br /&gt;&gt;&gt; BOOTPROTO="dhcp"&lt;/pre&gt;&lt;pre&gt;mkdir /mnt/cdrom&lt;br /&gt;vi /etc/fstab&lt;br /&gt;&gt;&gt; /dev/cdrom /mnt/cdrom iso9660 defaults 0 0&lt;br /&gt;mount -a&lt;/pre&gt;&lt;pre&gt;cd /etc/yum.repos.d/&lt;br /&gt;vi fedora.repo &gt;&gt; enabled=0&lt;br /&gt;vi fedora-updates.repo&lt;br /&gt;&gt;&gt; baseurl=file:///mnt/cdrom&lt;br /&gt;&gt;&gt; #baseurl&lt;br /&gt;&gt;&gt; #mirrorlist&lt;br /&gt;&gt;&gt; enabled=1&lt;br /&gt;&gt;&gt; gpgcheck=0&lt;/pre&gt;&lt;pre&gt;yum install ftp make vim gcc gcc-c++ ctags ncur*&lt;br /&gt;yum install man-db man-pages kernel-devel mlocate bind-utils&lt;br /&gt;yum install ntsysv gpm strace plymouth-theme* openssh-clients...&lt;br /&gt;&lt;br /&gt;yum install Xorg xorg-x11-drv-*&lt;br /&gt;yum groupinstall 'GNOME Desktop Environment'&lt;/pre&gt;&lt;pre&gt;vi ~/.bashrc&lt;br /&gt;&gt;&gt; alias vi=vim&lt;/pre&gt;&lt;pre&gt;vi ~/.vimrc&lt;br /&gt;&gt;&gt; set is&lt;br /&gt;&gt;&gt; set hls&lt;br /&gt;&gt;&gt; set sw=4&lt;br /&gt;&gt;&gt; set ts=4&lt;br /&gt;&lt;br /&gt;&gt;&gt; set cindent shiftwidth=2&lt;br /&gt;&gt;&gt; set fo+=or&lt;br /&gt;&gt;&gt; syntax enable&lt;br /&gt;&lt;br /&gt;&gt;&gt; set expandtab&lt;br /&gt;&gt;&gt; set tabstop=4&lt;/pre&gt;&lt;pre&gt;vi /boot/grub/grub.conf&lt;br /&gt;&gt;&gt; timeout=10&lt;br /&gt;&gt;&gt; #hiddenmenu&lt;br /&gt;&gt;&gt; kernel .... rdshell rdinitdebug&lt;br /&gt;&gt;&gt; kernel .... #rhgb quiet&lt;/pre&gt;&lt;pre&gt;ntsysv --&gt; only select "network", "sshd"&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2011/04/fedora-core-14-installation-on-vmware.html" target="_blank"&gt;Fedora Core 14 installation on VmWare 2.0.2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://thebestechblog.blogspot.com/2010/05/howto-sshscp-without-password.html" target="_blank"&gt;How To: Setup SSH/SCP without a password&lt;/a&gt;&lt;br /&gt;&lt;a href="" target="_blank"&gt;linux 2.6.39 installation on Fedora Core 15&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-3957411841955060634?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/HQZbIS8m9tU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/3957411841955060634/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/05/fedora-core-15-installation-on-vmware.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3957411841955060634?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3957411841955060634?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/HQZbIS8m9tU/fedora-core-15-installation-on-vmware.html" title="Fedora Core 15 installation on VmWare 2.0.2" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/05/fedora-core-15-installation-on-vmware.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMCQXo_eyp7ImA9WhZVEUk.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-1660053105010550809</id><published>2011-05-23T15:06:00.001+05:30</published><updated>2011-05-23T15:07:40.443+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-23T15:07:40.443+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>linux 2.6.39 installation on Fedora Core 14</title><content type="html">1. &lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Install Fedora core 14&lt;/a&gt;.&lt;br /&gt;2. Download Linux 2.6.39 source code from &lt;a href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.bz2"&gt;here&lt;/a&gt;.&lt;br /&gt;3. Download the config file for 2.6.39 from &lt;a href="http://sites.google.com/site/humblejos/files/config.39"&gt;here&lt;/a&gt;.&lt;br /&gt;4. Remove all the arch related files other than &lt;b&gt;x86&lt;/b&gt; from &lt;a href="/2010/04/script-to-clean-linux-2633-for-x86.html" target="_blank"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;pre&gt;cd /usr/src/kernels&lt;br /&gt;tar xjvf linux-2.6.39.tar.bz2&lt;br /&gt;cp config.39 .config&lt;br /&gt;make oldconfig&lt;br /&gt;make&lt;br /&gt;make modules_install&lt;br /&gt;make install&lt;/pre&gt;&lt;pre&gt;timeout=10&lt;br /&gt;#hiddenmenu&lt;br /&gt;kernel .... &lt;b&gt;rdshell rdinitdebug&lt;/b&gt;&lt;br /&gt;kernel .... #&lt;b&gt;rhgb quiet&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2009/10/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 11 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/01/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 12 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 13 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 14 Intallation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="/2009/10/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Linux 2.6.31 + Fedora 11&lt;/a&gt;&lt;br /&gt;&lt;a href="/2009/12/how-to-make-linux-kernel-2632.html" target="_blank"&gt;Linux 2.6.32 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/03/linux-2633-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.33 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/linux-2634-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.34 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/linux-2634-installation-on-fedora-core_27.html" target="_blank"&gt;Linux 2.6.34 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/08/linux-2635-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.35 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/10/linux-2636-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.36 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/11/linux-2636-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.36 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/02/linux-2637-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.37 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/04/linux-2638-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.38 + Fedora 14&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-1660053105010550809?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/e6FFP9hmymg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/1660053105010550809/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/05/linux-2639-installation-on-fedora-core.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1660053105010550809?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1660053105010550809?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/e6FFP9hmymg/linux-2639-installation-on-fedora-core.html" title="linux 2.6.39 installation on Fedora Core 14" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/05/linux-2639-installation-on-fedora-core.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQMR3w8eSp7ImA9WhZXFko.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-6368941049250090788</id><published>2011-04-29T12:08:00.054+05:30</published><updated>2011-05-06T14:46:26.271+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-06T14:46:26.271+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="networking" /><title>Transparent Inter Process Communication (TIPC) protocol</title><content type="html">&lt;b&gt;TCP Disadvantage&lt;/b&gt;&lt;br /&gt;- heavy connection setup/shutdown scheme of TCP is a disadvantage in a dynamic environment. The minimum number of packets exchanged for even the shortest TCP transaction is &lt;b&gt;nine&lt;/b&gt;, while with TIPC this can be reduced to &lt;b&gt;two&lt;/b&gt;, or even to one if connectionless mode is used&lt;br /&gt;- The connection-oriented nature of TCP makes it impossible to support true multicast&lt;br /&gt;&lt;br /&gt;&lt;a href="http://yconalyzer.sourceforge.net/yconTcpConnFlow.PNG" target="_blank"&gt;&lt;img src="http://yconalyzer.sourceforge.net/yconTcpConnFlow.PNG" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px;"  /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TIPC Important design assumptions&lt;/b&gt;&lt;br /&gt;- most messages cross only one direct hop&lt;br /&gt;- security is a less crucial issue in closed clusters&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TIPC Advantage&lt;/b&gt;&lt;br /&gt;&lt;b&gt;- fast link failure detection&lt;/b&gt;&lt;br /&gt;--&gt; Link setup - A TIPC node periodically broadcasts Link Request messages on all configured media interfaces. If such a message is received by a node with no prior established link to the sending node, it replies with a unicast Link Response message. This establishes a Link between those two nodes.&lt;br /&gt;--&gt; Link continuity check - A background timer is maintained for each link. When a certain amount of time is passed without regular incoming traffic, a message is sent over the link to indicate to the counterpart that the link is still up. This message also contains an acknowledge for the last received &lt;i&gt;Link Level Sequence Number&lt;/i&gt;, in order to allow the receiver to release sent packet buffers, and a Last Sent Sequence Number, allowing the receiver to detect gaps in the packet sequence. The continuity check mechanism allows rapid detection of communication media failure, or node crashes.&lt;br /&gt;- reliable multicast service&lt;br /&gt;- full address transparency over the whole cluster&lt;br /&gt;--&gt; A TIPC address is written in the form &lt;b&gt;&amp;lt;zone.cluster.node&amp;gt;&lt;/b&gt;, i.e. the address &lt;1.2.3&gt; identifies node number 3 inside cluster 2 in zone 1&lt;br /&gt;--&gt; The TIPC stack uses a functional addressing (&lt;b&gt;port names&lt;/b&gt;) scheme. Port names are unique and valid among the whole cluster, an application may connect to this "&lt;b&gt;port name&lt;/b&gt;"&lt;br /&gt;- for both connectionless and -oriented message flows, packet or byte-stream order is maintained from the receiving application's point of view.&lt;br /&gt;- &lt;b&gt;fixed-size sliding window protocol&lt;/b&gt;&lt;br /&gt;--&gt; flow control - congestion control - is performed only for connection oriented connection&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;UDP - Connectionless, Unreliable, Not ordered, No congestion control&lt;br /&gt;&lt;br /&gt;TIPC - Connectionless, reliable, ordered, No congestion control&lt;br /&gt;TIPC - Connection-oriented, reliable, ordered, congestion control&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;Fragmentation/Defragmentation&lt;br /&gt;Congestion Control&lt;br /&gt;Sequence/Retransmission Control&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;struct sockaddr_tipc {&lt;br /&gt;    unsigned short family;&lt;br /&gt;    unsigned char  addrtype;&lt;br /&gt;    signed   char  scope;&lt;br /&gt;    union {&lt;br /&gt;        struct tipc_portid id;&lt;br /&gt;        struct tipc_name_seq nameseq;&lt;br /&gt;        struct {&lt;br /&gt;            struct tipc_name name;&lt;br /&gt;            __u32 domain;&lt;br /&gt;        } name;&lt;br /&gt;    } addr;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;struct tipc_name {&lt;br /&gt;    __u32 type;&lt;br /&gt;    __u32 instance;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;/* Build socket address */&lt;br /&gt;addr.family                  = AF_TIPC;&lt;br /&gt;addr.addrtype                = TIPC_ADDR_NAME;&lt;br /&gt;addr.addr.name.name.type     = IPC_TIPC_ADDR_TYPE;&lt;br /&gt;addr.addr.name.name.instance = svcIndex;&lt;br /&gt;addr.addr.name.domain        = 0;&lt;br /&gt;addr.scope = TIPC_ZONE_SCOPE;&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/TIPC" target="_blank"&gt;http://en.wikipedia.org/wiki/TIPC&lt;/a&gt;&lt;br /&gt;&lt;a href="http://webuser.hs-furtwangen.de/~reich/AdvancedMiddlewareWorkshop.SS07/FlorianWestphalTIPCAusarbeitung.pdf" target="_blank"&gt;FlorianWestphalTIPCAusarbeitung.pdf&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.strlen.de/tipc/" target="_blank"&gt;http://www.strlen.de/tipc/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://tipc.sourceforge.net/doc/draft-spec-tipc-07.html" target="_blank"&gt;http://tipc.sourceforge.net/doc/draft-spec-tipc-07.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ealnet2010a.wordpress.com/2011/02/11/tcp-vs-udp/" target="_blank"&gt;http://ealnet2010a.wordpress.com/2011/02/11/tcp-vs-udp/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://tipc.sourceforge.net/doc/Programmers_Guide.txt" target="_blank"&gt;http://tipc.sourceforge.net/doc/Programmers_Guide.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-6368941049250090788?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/gVd-XkAMsLw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/6368941049250090788/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/tipc.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/6368941049250090788?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/6368941049250090788?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/gVd-XkAMsLw/tipc.html" title="Transparent Inter Process Communication (TIPC) protocol" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/tipc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUGQHY4fSp7ImA9WhZVE0Q.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-7941451436725310173</id><published>2011-04-09T18:47:00.025+05:30</published><updated>2011-05-26T12:30:21.835+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-26T12:30:21.835+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>Fedora Core 14 installation on VmWare 2.0.2</title><content type="html">The FC14 installation is done in "&lt;b&gt;VMware Server 2.0.2&lt;/b&gt;".&lt;br /&gt;&lt;pre&gt;1. login using Administrator account&lt;br /&gt;2. Virtual Machine --&gt; Create Virtual Machine&lt;br /&gt;3. Name and Location --&gt; "FC14-minimal"&lt;br /&gt;4. Guest Operating System --&gt; "Linux 2.6"&lt;br /&gt;5. Memory and Processors --&gt; "512MB"&lt;br /&gt;6. Hard Disk --&gt; "Create New Virtual Disk"&lt;br /&gt;7. Hard Disk Properties --&gt; "40GB"&lt;br /&gt;8. Network Adapter --&gt; "NAT"&lt;br /&gt;9. CD Drive --&gt; "Use a Physical Drive"&lt;br /&gt;10. Floppy Drive --&gt; "Don't Add a Floppy Drive"&lt;br /&gt;11. USB Controller --&gt; "Don't Add a USB Controller"&lt;br /&gt;12. Ready to Complete --&gt; "Finished"&lt;br /&gt;&lt;br /&gt;13. Summary --&gt; "CD/DVD Drice" --&gt; "[] c:\Fedora-14-i386-DVD.iso"&lt;/pre&gt;&lt;pre&gt;1. Skip media test&lt;br /&gt;2. Select "Basic Storage Devices"&lt;br /&gt;   ("Re-initialize all")&lt;br /&gt;3. Select "Create Custom Layout"&lt;br /&gt;&gt;&gt; "Free" -&gt; "Create" -&gt; "Standard Partition" -&gt; 1024MB swap&lt;br /&gt;&gt;&gt; "Free" -&gt; "Create" -&gt; "Standard Partition"&lt;br /&gt;   Mount point --&gt; "/"&lt;br /&gt;   File system --&gt; "EXT4"&lt;br /&gt;   Fill to maximum allowed size&lt;br /&gt;&gt;&gt; "format" and "write changes to disk"&lt;br /&gt;4. Select "minimal" installation&lt;br /&gt;5. Select the default repository &lt;br /&gt;   ("Installation Repo")&lt;br /&gt;6. A total of 192 packages will get installed.&lt;/pre&gt;&lt;pre&gt;vi /etc/syscofig/network-scripts/ifcfg-eth0&lt;br /&gt;&gt;&gt; DEVICE="eth0"&lt;br /&gt;&gt;&gt; ONBOOT="yes"&lt;br /&gt;&gt;&gt; BOOTPROTO="dhcp"&lt;/pre&gt;&lt;pre&gt;mkdir /mnt/cdrom&lt;br /&gt;vi /etc/fstab&lt;br /&gt;&gt;&gt; /dev/cdrom /mnt/cdrom iso9660 defaults 0 0&lt;br /&gt;mount -a&lt;/pre&gt;&lt;pre&gt;cd /etc/yum.repos.d/&lt;br /&gt;vi fedora.repo &gt;&gt; enabled=0&lt;br /&gt;vi fedora-updates.repo&lt;br /&gt;&gt;&gt; baseurl=file:///mnt/cdrom&lt;br /&gt;&gt;&gt; #baseurl&lt;br /&gt;&gt;&gt; #mirrorlist&lt;br /&gt;&gt;&gt; enabled=1&lt;br /&gt;&gt;&gt; gpgcheck=0&lt;/pre&gt;&lt;pre&gt;yum install ftp make vim gcc gcc-c++ ctags ncur*&lt;br /&gt;yum install man-db man-pages kernel-devel mlocate bind-utils&lt;br /&gt;yum install ntsysv gpm strace plymouth-theme* openssh-clients...&lt;br /&gt;yum groupinstall 'GNOME Desktop Environment'&lt;/pre&gt;&lt;pre&gt;vi ~/.bashrc&lt;br /&gt;&gt;&gt; alias vi='/usr/bin/vim'&lt;/pre&gt;&lt;pre&gt;vi ~/.vimrc&lt;br /&gt;&gt;&gt; set is&lt;br /&gt;&gt;&gt; set hls&lt;br /&gt;&gt;&gt; set sw=4&lt;br /&gt;&gt;&gt; set ts=4&lt;br /&gt;&lt;br /&gt;&gt;&gt; set cindent shiftwidth=2&lt;br /&gt;&gt;&gt; set fo+=or&lt;br /&gt;&gt;&gt; syntax enable&lt;br /&gt;&lt;br /&gt;&gt;&gt; set expandtab&lt;br /&gt;&gt;&gt; set tabstop=4&lt;/pre&gt;&lt;pre&gt;vi /boot/grub/grub.conf&lt;br /&gt;&gt;&gt; timeout=10&lt;br /&gt;&gt;&gt; #hiddenmenu&lt;br /&gt;&gt;&gt; kernel .... rdshell rdinitdebug&lt;br /&gt;&gt;&gt; kernel .... #rhgb quiet&lt;/pre&gt;&lt;pre&gt;ntsysv --&gt; only select "crond", "gpm", "network", "sshd"&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2010/05/howto-sshscp-without-password.html" target="_blank"&gt;How To: Setup SSH/SCP without a password&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 14 installation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/04/linux-2638-installation-on-fedora-core.html" target="_blanl"&gt;linux 2.6.38 installation on Fedora Core 14&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-7941451436725310173?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/8xUY9AXDBvE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/7941451436725310173/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/fedora-core-14-installation-on-vmware.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7941451436725310173?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/7941451436725310173?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/8xUY9AXDBvE/fedora-core-14-installation-on-vmware.html" title="Fedora Core 14 installation on VmWare 2.0.2" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/fedora-core-14-installation-on-vmware.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQDQH8yfCp7ImA9WhZREUo.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-1331231182258826193</id><published>2011-04-07T16:14:00.004+05:30</published><updated>2011-04-07T16:19:31.194+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-07T16:19:31.194+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="other" /><title>changing cscope's default editor</title><content type="html">&lt;pre&gt;mkdir -p ~/.vim/plugin&lt;br /&gt;create ~/.vim/plugin/&lt;a href="http://cscope.sourceforge.net/cscope_maps.vim" target="_blank"&gt;&lt;b&gt;cscope_maps.vim&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;export EDITOR=vim&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;cscope&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://cscope.sourceforge.net/cscope_man_page.html" target="_blank"&gt;http://cscope.sourceforge.net/cscope_man_page.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://cscope.sourceforge.net/cscope_vim_tutorial.html" target="_blank"&gt;http://cscope.sourceforge.net/cscope_vim_tutorial.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://osr507doc.sco.com/en/tools/CPPT_cscope_ConfigEnv.html" target="_blank"&gt;http://osr507doc.sco.com/en/tools/CPPT_cscope_ConfigEnv.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-1331231182258826193?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/7ulcRzeSENw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/1331231182258826193/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/changing-cscopes-default-editor.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1331231182258826193?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/1331231182258826193?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/7ulcRzeSENw/changing-cscopes-default-editor.html" title="changing cscope's default editor" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/changing-cscopes-default-editor.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUBQ3o-fyp7ImA9WhZREE4.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-865237923867497915</id><published>2011-04-06T01:19:00.004+05:30</published><updated>2011-04-06T01:24:12.457+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-06T01:24:12.457+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="system" /><title>Login as a root from GUI Fedora 14</title><content type="html">Update the following files:&lt;pre&gt;vim /etc/pam.d/gdm&lt;br /&gt;&lt;b&gt;#auth       required    pam_succeed_if.so user != root quiet&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;vim /etc/pam.d/gdm-password&lt;br /&gt;&lt;b&gt;#auth       required    pam_succeed_if.so user != root quiet&lt;/b&gt;&lt;/pre&gt;Log out of that account and login in as root using the "Other" option. You will get some long winded alert about how it is not secure to use the root account, just close and you are in!&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://blog.ask4itsolutions.com/2010/11/03/login-as-a-root-from-gui-fedora-14/" target="_blank"&gt;http://blog.ask4itsolutions.com/2010/11/03/login-as-a-root-from-gui-fedora-14/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.liberiangeek.net/2010/12/how-to-login-as-root-in-fedora-14-laughlin/" target="_blank"&gt;http://www.liberiangeek.net/2010/12/how-to-login-as-root-in-fedora-14-laughlin/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-865237923867497915?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/oS8aFTGx9KY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/865237923867497915/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/login-as-root-from-gui-fedora-14.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/865237923867497915?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/865237923867497915?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/oS8aFTGx9KY/login-as-root-from-gui-fedora-14.html" title="Login as a root from GUI Fedora 14" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/login-as-root-from-gui-fedora-14.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkACR34_eSp7ImA9WhZREEw.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-437086891479274626</id><published>2011-04-05T19:06:00.002+05:30</published><updated>2011-04-05T19:09:26.041+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-05T19:09:26.041+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="kernel" /><title>linux 2.6.38 installation on Fedora Core 14</title><content type="html">1. &lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Install Fedora core 14&lt;/a&gt;.&lt;br /&gt;2. Download Linux 2.6.38 source code from &lt;a href="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2"&gt;here&lt;/a&gt;.&lt;br /&gt;3. Download the config file for 2.6.38 from &lt;a href="http://sites.google.com/site/humblejos/files/config.38"&gt;here&lt;/a&gt;.&lt;br /&gt;4. Remove all the arch related files other than &lt;b&gt;x86&lt;/b&gt; from &lt;a href="/2010/04/script-to-clean-linux-2633-for-x86.html" target="_blank"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;pre&gt;cd /usr/src/kernels&lt;br /&gt;tar xjvf linux-2.6.38.tar.bz2&lt;br /&gt;cp config.38 .config&lt;br /&gt;make oldconfig&lt;br /&gt;make&lt;br /&gt;make modules_install&lt;br /&gt;make install&lt;/pre&gt;&lt;pre&gt;timeout=10&lt;br /&gt;#hiddenmenu&lt;br /&gt;kernel .... &lt;b&gt;rdshell rdinitdebug&lt;/b&gt;&lt;br /&gt;kernel .... #&lt;b&gt;rhgb quiet&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="/2009/10/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 11 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/01/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 12 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 13 Intallation&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/11/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Fedora Core 14 Intallation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="/2009/10/make-mininal-linux-kernel-from-fedora.html" target="_blank"&gt;Linux 2.6.31 + Fedora 11&lt;/a&gt;&lt;br /&gt;&lt;a href="/2009/12/how-to-make-linux-kernel-2632.html" target="_blank"&gt;Linux 2.6.32 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/03/linux-2633-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.33 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/linux-2634-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.34 + Fedora 12&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/05/linux-2634-installation-on-fedora-core_27.html" target="_blank"&gt;Linux 2.6.34 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/08/linux-2635-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.35 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/10/linux-2636-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.36 + Fedora 13&lt;/a&gt;&lt;br /&gt;&lt;a href="/2010/11/linux-2636-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.36 + Fedora 14&lt;/a&gt;&lt;br /&gt;&lt;a href="/2011/02/linux-2637-installation-on-fedora-core.html" target="_blank"&gt;Linux 2.6.37 + Fedora 14&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-437086891479274626?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/z50LdWelrw8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/437086891479274626/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/linux-2638-installation-on-fedora-core.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/437086891479274626?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/437086891479274626?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/z50LdWelrw8/linux-2638-installation-on-fedora-core.html" title="linux 2.6.38 installation on Fedora Core 14" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/linux-2638-installation-on-fedora-core.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMARnszeCp7ImA9WhZSGUw.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-3527556349822839066</id><published>2011-04-04T12:45:00.008+05:30</published><updated>2011-04-04T16:24:07.580+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-04T16:24:07.580+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="technology" /><category scheme="http://www.blogger.com/atom/ns#" term="other" /><title>3G, GPRS Internet connection via PC Suite</title><content type="html">I have Nokia 5320 and i want to take 3G or GPRS internet.&lt;br /&gt;&lt;br /&gt;Connect your phone to computer either via Bluetooth or Data cable&lt;pre&gt;Bluetooth:&lt;br /&gt;--&gt; Install the PC suite software.&lt;br /&gt;--&gt; Pair mobile handset with your PC or Laptop via the Bluetooth program&lt;br /&gt;--&gt; Click on “Connect to the Internet” icon from the PC Suite programs.&lt;br /&gt;&lt;br /&gt;Cable:&lt;br /&gt;--&gt; Install the PC suite software.&lt;br /&gt;--&gt; Connect mobile handset with your PC or Laptop via the USB cable.&lt;br /&gt;--&gt; Click on “Connect to the Internet” icon from the PC Suite Program.&lt;/pre&gt;For more info on DOCOMO 3G, &lt;b&gt;SMS "3Glife" to 53333&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;WWW Services&lt;br /&gt;-APN: &lt;b&gt;TATA.DOCOMO.INTERNET&lt;/b&gt;&lt;br /&gt;-Username&lt;br /&gt;-Password&lt;br /&gt;&lt;br /&gt;WAP Services&lt;br /&gt;-APN: &lt;b&gt;TATA.DOCOMO.DIVE.IN&lt;/b&gt;&lt;br /&gt;-Username&lt;br /&gt;-Password&lt;br /&gt;-PROXY: 10.124.94.7:8080&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.tatadocomo.com/3g-plans.aspx" target="_blank"&gt;http://www.tatadocomo.com/3g-plans.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.tatadocomo.com/3g-hspa-e-stick.aspx" target="_blank"&gt;http://www.tatadocomo.com/3g-hspa-e-stick.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;a href="http://techbrail.com/connect-your-nokia-3120-classic-to-3g-gprs-internet-connection-via-pc-suite/209/" target="_blank"&gt;http://techbrail.com/connect-your-nokia-3120-classic-to-3g-gprs-internet-connection-via-pc-suite/209&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.mostlyblog.com/tata-docomo-gprs-settings-tata-docomo-gprs-settings-for-pc-and-laptop" target="_blank"&gt;http://www.mostlyblog.com/tata-docomo-gprs-settings-tata-docomo-gprs-settings-for-pc-and-laptop&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-3527556349822839066?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/QflarkDsgfw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/3527556349822839066/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/3g-gprs-internet-connection-via-pc.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3527556349822839066?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/3527556349822839066?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/QflarkDsgfw/3g-gprs-internet-connection-via-pc.html" title="3G, GPRS Internet connection via PC Suite" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/3g-gprs-internet-connection-via-pc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cDR3Yzfip7ImA9WhZSGE8.&quot;"><id>tag:blogger.com,1999:blog-2476484576280165007.post-4259003517341421669</id><published>2011-04-03T14:23:00.002+05:30</published><updated>2011-04-03T14:27:56.886+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-03T14:27:56.886+05:30</app:edited><title>Search for best 3G phone in india</title><content type="html">I am looking for best 3G phone in india.&lt;br /&gt;&lt;br /&gt;My range is 5,000/- to 15,000/-.&lt;br /&gt;&lt;br /&gt;Other requirements:&lt;br /&gt;1. Radio&lt;br /&gt;2. moderate quality camera.&lt;br /&gt;3. 1-4GB memory&lt;br /&gt;4. music keys&lt;br /&gt;5. And very gud battery backup&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.nokia.co.in/find-products/products" target="_blank"&gt;http://www.nokia.co.in/find-products/products&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2476484576280165007-4259003517341421669?l=humblesblog.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/HumblesBlog/~4/O9E2k97kiPY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://humblesblog.blogspot.com/feeds/4259003517341421669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://humblesblog.blogspot.com/2011/04/search-for-best-3g-phone-in-india.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/4259003517341421669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2476484576280165007/posts/default/4259003517341421669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/HumblesBlog/~3/O9E2k97kiPY/search-for-best-3g-phone-in-india.html" title="Search for best 3G phone in india" /><author><name>~mE</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_q74hGM2OluM/SgU-k9wyuyI/AAAAAAAAALk/jBhwFiE8N7c/S220/skin-care-tecniques-with-the-humble-tomato.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://humblesblog.blogspot.com/2011/04/search-for-best-3g-phone-in-india.html</feedburner:origLink></entry></feed>

