<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2566141705595754113</id><updated>2024-10-24T03:35:27.455-07:00</updated><category term="Luks encrypted partition"/><category term="boot"/><category term="bzip2"/><category term="documentation"/><category term="edit text files"/><category term="grep regular expression"/><category term="gzip"/><category term="hard  soft links"/><category term="input output redirection"/><category term="kernel install uninstall"/><category term="mount NFS CIFS"/><category term="mount umount"/><category term="partitions"/><category term="permissions"/><category term="physical volume logical volume volume group lvm"/><category term="reboot"/><category term="runlevels"/><category term="ssh and vnc"/><category term="swap partition"/><category term="switch users rhel6"/><category term="tar"/><category term="uuid fstab"/><title type='text'>My Linux Blog</title><subtitle type='html'>By Sanket Padawe</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>76</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-5019271008533826997</id><published>2021-10-03T23:01:00.004-07:00</published><updated>2021-10-03T23:05:58.154-07:00</updated><title type='text'>Upstox new user referral code: Earn Rs 1000 as credit using https://bv7np.app.goo.gl/D3D6B</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;aju&quot; style=&quot;align-items: center; background-color: white; color: #222222; cursor: default; display: flex; float: none; font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif; height: 80px; min-width: 40px; padding: 0px 16px;&quot;&gt;&lt;div class=&quot;aCi&quot; style=&quot;position: relative;&quot;&gt;&lt;img aria-hidden=&quot;true&quot; class=&quot;ajn&quot; data-hovercard-id=&quot;grespot@gmail.com&quot; data-name=&quot;Sanket P&quot; id=&quot;:pp_1-e&quot; jid=&quot;grespot@gmail.com&quot; name=&quot;:pp&quot; src=&quot;https://ssl.gstatic.com/ui/v1/icons/mail/profile_mask_2x.png&quot; style=&quot;background-color: #cccccc; border-radius: 50%; display: block; height: 40px; width: 40px;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Hey, have you tried Upstox?&amp;nbsp; Upstox is one of India&#39;s largest and fastest-growing investment platforms with over 50 lakh users. Recently they’ve introduced a new app, which is swifter, smarter, smoother and easy-to-use, for both pro traders and beginners. It allows you to invest in Stocks, Futures, Options, Mutual Funds, IPOs and more and offers Rs. 1000 brokerage credit valid for the first 30 days. Opening an account is fast and paperless! Sign up now with my link to open your account:&amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://bv7np.app.goo.gl/D3D6B&quot;&gt;https://bv7np.app.goo.gl/D3D6B&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/5019271008533826997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/5019271008533826997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5019271008533826997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5019271008533826997'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2021/10/upstox-referral-code-earn-rs-1000-using.html' title='Upstox new user referral code: Earn Rs 1000 as credit using https://bv7np.app.goo.gl/D3D6B'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-6325029264834396211</id><published>2012-07-31T10:38:00.000-07:00</published><updated>2012-07-31T10:38:24.526-07:00</updated><title type='text'>Synchronize time of two or more PCs with NTP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1) At first check whether NTP is installed or not. Install if its not installed.&lt;br /&gt;
&lt;br /&gt;
#apt-get install ntp&lt;br /&gt;
&lt;br /&gt;
2) Start or restart ntp using&lt;br /&gt;
&lt;br /&gt;
#/etc/init.d/ntp restart/start&lt;br /&gt;
&lt;br /&gt;
3) On server machine do following things.&lt;br /&gt;
Open /etc/ntp.conf and add following things&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
server ntp.ubuntu.com iburst&lt;br /&gt;
server pool.ntp.org&lt;br /&gt;
server 127.127.1.0&lt;br /&gt;
fudge 127.127.1.0 stratum 10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
restrict 192.168.10.0 mask 255.255.255.0 nomodify notrap&lt;br /&gt;
&lt;br /&gt;
Here first two lines are external ntp servers which will be used to synchronize to time. 3rd and 4th line is used if machine has infrequent internet connection. Last line is used so that any machine from network 192.168.10.0 can use this machine as a server to synchronize time. So result would be that you would see same time on all machines in that network 192.168.10.0 and current machine(server).&lt;br /&gt;
&lt;br /&gt;
Restart ntp using&lt;br /&gt;
&lt;br /&gt;
#/etc/init.d/ntp restart&lt;br /&gt;
&lt;br /&gt;
4) On client machine&lt;br /&gt;
Open /etc/ntp.conf and add ip address of the server machine. We assume that ip address of server machine was 192.168.10.12.&lt;br /&gt;
&lt;br /&gt;
so in ntp.conf enter&lt;br /&gt;
&lt;br /&gt;
server 192.168.10.12 iburst&lt;br /&gt;
&lt;br /&gt;
Restart ntp&lt;br /&gt;
# /etc/init.d/ntp restart&lt;br /&gt;
&lt;br /&gt;
Check using following command&lt;br /&gt;
&lt;br /&gt;
#ntpq -c lpeer&lt;br /&gt;
And you should see ip address or hostname of server machine.&lt;br /&gt;
&lt;br /&gt;
Thats it. Now onwards all the client machines in the network 192.168.10.0 and server machine(192.168.10.12) will always show same time and will remain synchronized.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/6325029264834396211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/6325029264834396211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6325029264834396211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6325029264834396211'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/07/synchronize-time-of-two-or-more-pcs.html' title='Synchronize time of two or more PCs with NTP'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-5292881119042899027</id><published>2012-07-31T10:24:00.000-07:00</published><updated>2012-07-31T10:25:55.740-07:00</updated><title type='text'>Clear cache memory used by linux kernel and processor cache</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You just give one command to do this:&lt;br /&gt;
# free &amp;amp;&amp;amp; sync &amp;amp;&amp;amp; echo 3 &amp;gt; /proc/sys/vm/drop_caches &amp;amp;&amp;amp; free&lt;br /&gt;
This would clear only disk cache.&lt;br /&gt;
&lt;br /&gt;
In order to clear processor cache memory, there is no perfect method. I can only suggest one method.&lt;br /&gt;
At first write a c program to allocate large amount of memory using malloc. That memory should be almost equal to the amount free memory available which you can see using top command. Now fill that allocated memory by writing it with random data or may be even 0. That would clear your processor cached.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/5292881119042899027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/5292881119042899027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5292881119042899027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5292881119042899027'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/07/clear-cache-memory-used-by-linux-kernel.html' title='Clear cache memory used by linux kernel and processor cache'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-3388713458058360296</id><published>2012-07-31T10:16:00.002-07:00</published><updated>2012-07-31T10:17:35.480-07:00</updated><title type='text'>Login without password using ssh</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
At first install openssh client and server using following commands.&lt;br /&gt;
#sudo apt-get install openssh-client&lt;/strong&gt;&lt;br /&gt;
#sudo apt-get install openssh-server&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Lets assume that there are two machines A and B. You want to login from B to A without using password..&lt;br /&gt;
&lt;br /&gt;
1) So from machine B give following commands.&lt;br /&gt;
# ssh-keygen&lt;br /&gt;
&lt;br /&gt;
After that press enter for the file (i.e. let it use default file), then press enter when asked for entering password.&lt;br /&gt;
&lt;br /&gt;
Example from my machine:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
root@hpc-13:~/.ssh# ssh-keygen&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa):&lt;br /&gt;
Enter passphrase (empty for no passphrase): (PRESS ENTER)&lt;br /&gt;
Enter same passphrase again:&amp;nbsp;&amp;nbsp;(PRESS ENTER)&lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
ac:d6:6a:b2:98:f6:8a:0f:df:76:af:a6:82:7c:4f:c1 root@hpc-13&lt;br /&gt;
The key&#39;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp;. &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; E &amp;nbsp;S &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;.o &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
|o. &amp;nbsp; .o . &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
|.=o=+.+. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
|.oB=*Ooo. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+-----------------+&lt;br /&gt;
&lt;br /&gt;
2) Now use ssh-copy-id command to do rest of the things.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;# ssh-copy-id -i ~/.ssh/id_rsa.pub username@hostname_of_remote_machine(machine A in our case)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Example from my machine:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
root@hpc-13:~/.ssh# ssh-copy-id -i ~/.ssh/id_rsa.pub user@hpc-12&lt;/div&gt;
&lt;div&gt;
The authenticity of host &#39;hpc-12 (10.192.19.158)&#39; can&#39;t be established.&lt;/div&gt;
&lt;div&gt;
RSA key fingerprint is 3f:9b:b2:b2:8e:36:09:4b:92:4c:df:bd:d6:14:b7:9f.&lt;/div&gt;
&lt;div&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;/div&gt;
&lt;div&gt;
Warning: Permanently added &#39;hpc-12,10.192.19.158&#39; (RSA) to the list of known hosts.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
user@hpc-12&#39;s password:&lt;/div&gt;
&lt;div&gt;
Now try logging into the machine, with &quot;ssh &#39;user@hpc-12&#39;&quot;, and check in:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; .ssh/authorized_keys&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
to make sure we haven&#39;t added extra keys that you weren&#39;t expecting.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) Now try ssh to machine A&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#ssh user@hostname_of_remote_machine(machine A in our case)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And you should be able to login without password.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/3388713458058360296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/3388713458058360296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3388713458058360296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3388713458058360296'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/07/login-without-password-using-ssh.html' title='Login without password using ssh'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-7799195983943588153</id><published>2012-07-10T10:05:00.002-07:00</published><updated>2012-07-10T10:05:41.678-07:00</updated><title type='text'>How to find cached copy of any webpage url</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Google stores all the pages in cache for few days and they can be found out by using this url&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://webcache.googleusercontent.com/search?q=cache:http://example.com/&quot;&gt;http://webcache.googleusercontent.com/search?q=cache:&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now just append the url who&#39;s cache copy you want to see. For example if you want to see cache copy of www.google.com then your url will be&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://webcache.googleusercontent.com/search?q=cache:http://www.google.com&quot;&gt;http://webcache.googleusercontent.com/search?q=cache:http://www.google.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You can offcourse try with those url which are not active currently for example facebook photos which are deleted later on.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/7799195983943588153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/7799195983943588153' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/7799195983943588153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/7799195983943588153'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/07/how-to-find-cached-copy-of-any-webpage.html' title='How to find cached copy of any webpage url'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-304739161324351546</id><published>2012-06-26T12:37:00.001-07:00</published><updated>2012-06-26T13:47:08.464-07:00</updated><title type='text'>error: Failed dependencies: libc.so.6 is needed</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I actually got this error while trying to install rpm of driver of a network card on RHEL 6.2 64 bit. That error looked something like this:&lt;br /&gt;
&lt;br /&gt;
# rpm -i&amp;nbsp; myri_dbl-2.&amp;nbsp; 1.0.51076-3636.x86_64.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;error: Failed dependencies:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6 is needed
by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6(GLIBC_2.0)
is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6(GLIBC_2.1)
is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
libc.so.6(GLIBC_2.1.3) is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6(GLIBC_2.3)
is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdl.so.2 is needed
by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdl.so.2(GLIBC_2.0)
is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libpthread.so.0 is
needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
libpthread.so.0(GLIBC_2.0) is needed by myri_dbl-2.1.0.51076-3636.x86_64&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
This error occurs because of some 32 dependencies which are required. The solution is to install 32 version of glibc.&lt;br /&gt;
&lt;span style=&quot;color: #1f497d; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, sans-serif; font-size: 15px;&quot;&gt;# yum install libstdc++-4.4.6-4.el6.i686&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This will mostly solve your problem.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/304739161324351546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/304739161324351546' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/304739161324351546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/304739161324351546'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/error-failed-dependencies-libcso6-is.html' title='error: Failed dependencies: libc.so.6 is needed'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-4718101967599566155</id><published>2012-06-22T17:24:00.000-07:00</published><updated>2012-06-25T13:13:14.536-07:00</updated><title type='text'>To check which application is using a particular port</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You give following command to check which application is using a particular port.&lt;br /&gt;
&lt;br /&gt;
# netstat -ltnp | grep portno&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
# lsof -i :portno&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/4718101967599566155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/4718101967599566155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4718101967599566155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4718101967599566155'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/to-check-which-application-is-using.html' title='To check which application is using a particular port'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-1767662221050247912</id><published>2012-06-22T17:18:00.000-07:00</published><updated>2012-06-25T16:17:09.677-07:00</updated><title type='text'>Check whether hyperthreading is enabled or not ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can check whether hyper threading is enabled or not without checking in bios by giving following command&lt;br /&gt;
# cat /proc/cpuinfo&lt;br /&gt;
If the number of siblings and number of cores you see is same then hyper threading is not enabled. If they are not same then its enabled.&lt;br /&gt;
If its enabled, then &quot;siblings&quot; give logical cores present and &quot;cpu core&quot; gives actual physical cores.&lt;br /&gt;
&lt;br /&gt;
Total number of cpu&#39;s is equal to maximum number of cpu id available in the result + 1.&lt;br /&gt;
&lt;br /&gt;
If you want to find out how many cores are present in a particular cpu and what there numbers are then you can give following command.&lt;br /&gt;
&lt;br /&gt;
#&lt;span &gt;&amp;nbsp;&amp;nbsp;cat /sys/devices/system/cpu/cpu2/topology/core_siblings_list&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/1767662221050247912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/1767662221050247912' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/1767662221050247912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/1767662221050247912'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/check-whether-hyperthreading-is-enabled.html' title='Check whether hyperthreading is enabled or not ?'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-189946088913591240</id><published>2012-06-22T17:10:00.003-07:00</published><updated>2012-06-22T17:10:41.281-07:00</updated><title type='text'>CPU affinity using taskset command in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In case of a machine having mulitple processor like NUMA processes generally perform better on one processor when compared to other processors. So its necessary to attach process to that particular processor so as to maximize performance. For such reasons, a tool named taskset can be used. The linux scheduler then acts according to processor affinity set by taskset command. But generally scheduler tries to keep process on same CPU as long as it supports natural affinity. So this taskset command may not work in all cases.&lt;br /&gt;
&lt;br /&gt;
Command to check affinity of process with pid&lt;br /&gt;
# taskset -p pid&lt;br /&gt;
This command tells which cores have been assigned to the process with taht pid.&lt;br /&gt;
&lt;br /&gt;
Command to set affinity of process&lt;br /&gt;
# taskset -p mask pid&lt;br /&gt;
This command is used to assign process with pid to cores given by that mask.&lt;br /&gt;
&lt;br /&gt;
Mask is defined as follows:&lt;br /&gt;
It is a bitmap of processors present in the system. For example if there are 4 cores then 4 bits will be used in bitmap and if there are 8 cores then 8 bits will be used in bitmap.LSB indicates first core and MSB indicates last core. So to assign process with pid 1111 to cores 0,2,4,6 we will give following command&lt;br /&gt;
# taskset -p 0X55 1111&lt;br /&gt;
To assign it to cores 1,3,5,7 we will give following command&lt;br /&gt;
&amp;nbsp;# taskset -p 0Xaa 1111&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/189946088913591240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/189946088913591240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/189946088913591240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/189946088913591240'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/cpu-affinity-using-taskset-command-in.html' title='CPU affinity using taskset command in linux'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-4257548624625365347</id><published>2012-06-20T17:11:00.000-07:00</published><updated>2012-07-23T12:24:04.352-07:00</updated><title type='text'>Lock paged memory when using memcached by using memcached -k option</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In case of memcached, paged memory should be locked for following reasons&lt;br /&gt;
&lt;br /&gt;
1) If we reserve some paged memory for memcached then time would be saved in allocating memory for key/value pairs dynamically.&lt;br /&gt;
So memcached has memcached -k option to lock paged memory. But generally when you use this option you tend to get following error.&lt;br /&gt;
&lt;br /&gt;
#memcached -u user -k &amp;amp;&lt;br /&gt;
warning: -k invalid, mlockall() failed: Cannot allocate memory&lt;br /&gt;
&lt;br /&gt;
This occurs because by default llocked memory is only 64K. You can check this using&lt;br /&gt;
# ulimit -l&lt;br /&gt;
&lt;br /&gt;
To change this, open /etc/security/limits.conf and then enter following lines at the end of file.&lt;br /&gt;
&lt;br /&gt;
root &amp;nbsp; - &amp;nbsp; &amp;nbsp; memlock &amp;nbsp; 1048576&lt;br /&gt;
&lt;br /&gt;
where root is the user who is going to run the memcached command from command line.&lt;br /&gt;
&lt;br /&gt;
After that logout and login again and then check by using&lt;br /&gt;
#ulimit -l&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/4257548624625365347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/4257548624625365347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4257548624625365347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4257548624625365347'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/prevent-page-locking-when-using.html' title='Lock paged memory when using memcached by using memcached -k option'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-4688305401080624454</id><published>2012-06-20T14:58:00.000-07:00</published><updated>2012-06-25T13:11:53.560-07:00</updated><title type='text'>vmap allocation for size=&lt;&gt; failed errror and adding kernel parameter while booting</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This error arrises because the virtual memory allocated when operating system boots is limited. In order to solve this problem we have to increase virtual memory by giving external parameter to kernel when its booting.&lt;br /&gt;
&lt;br /&gt;
This can be done in following way.&lt;br /&gt;
&lt;br /&gt;
1)On the splash screen showing grub i.e.where operating system to be booted is shown, press e.&lt;br /&gt;
&lt;br /&gt;
2)Then on the page which appears select that line which starts with the work &quot;kernel&quot;. Again press e and go to the end of the line and write vmalloc=&lt;size&gt;&lt;size&gt;&lt;/size&gt;&lt;/size&gt;&lt;br /&gt;
&lt;br /&gt;
3)After that press enter and boot that operating system. That would &amp;nbsp;remove that error.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/4688305401080624454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/4688305401080624454' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4688305401080624454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4688305401080624454'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/vmap-allocation-for-size-failed-errror.html' title='vmap allocation for size=&lt;&gt; failed errror and adding kernel parameter while booting'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-672306252736033086</id><published>2012-06-20T14:47:00.001-07:00</published><updated>2012-06-25T13:11:34.687-07:00</updated><title type='text'>Error inserting module  : unknown symbol _udivdi3 undefined</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This error occurs on 32 bit operating system. This won&#39;t come if you are using 64 bit operating system. If you wan&#39;t to avoid this error in 32 bit operating system then you will have to do following thing.&lt;br /&gt;
&lt;br /&gt;
In your code wherever you are doing division by using &quot;/&quot; operator replace it by following&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;uint32_t do_div(uint64_t dividend, uint32_t divisor)&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;So a/b would be do_div(a/b).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/672306252736033086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/672306252736033086' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/672306252736033086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/672306252736033086'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/error-inserting-module-unknown-symbol.html' title='Error inserting module  : unknown symbol _udivdi3 undefined'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-6524288088440699631</id><published>2012-06-20T14:15:00.000-07:00</published><updated>2012-06-25T13:10:27.193-07:00</updated><title type='text'>RHEL Network card not detecting ( Troubleshooting network )</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There might be many reasons for network not working as per our requirement. I am going to point out few things which I always do when there is some problem with network. And after working over all theses things for long time, I guess I will be covering most of the reasons for network not working as per our requirement.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Before you start, you can disable firewall using&lt;/div&gt;
&lt;div&gt;
#service iptables stop&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1)You can use following command to configure your network adaptor&lt;/div&gt;
&lt;div&gt;
#system-config-network&lt;/div&gt;
&lt;div&gt;
After that you can give it IP address, netmask, broadcast address or allow it to take ip from dhcp server. Then you can save and quit and give following command.&lt;/div&gt;
&lt;div&gt;
#service network restart
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2) #ifconfig&lt;/div&gt;
&lt;div&gt;
This is the command which you should use first to check if the network interfaces are as per your requirement. So this will confirm that network adaptor is enabled.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3)After this you can try connecting i.e. pinging some ip address in your network which is active. If ping does not work then mostly cable is not properly attached. You can use ethtool to figure that out.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#ethtool ethX&lt;/div&gt;
&lt;div&gt;
If cable is fine then it will show at the bottom &quot;Link detected : yes&quot;&lt;/div&gt;
&lt;div&gt;
Otherwise it will show &quot;no&quot; instead of &quot;yes&quot;. In that case you can try fixing the cable properly.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4) If there is still problem you can check further information about network card and just cross check it with following command.&lt;/div&gt;
&lt;div&gt;
#ethtool -i ethX&lt;/div&gt;
&lt;div&gt;
This will show information about network card&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5)You can also check whether network card driver has loaded properly by using following command.&lt;/div&gt;
&lt;div&gt;
#lsmod | grep &lt;nameofdriver&gt;&lt;/nameofdriver&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/6524288088440699631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/6524288088440699631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6524288088440699631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6524288088440699631'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/rhel-network-card-not-detecting.html' title='RHEL Network card not detecting ( Troubleshooting network )'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-4133883298846957641</id><published>2012-06-15T16:28:00.001-07:00</published><updated>2012-06-27T13:41:46.124-07:00</updated><title type='text'>Installing Memcached with libevent and benchmarking it with memslap</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Memcached is &quot;&lt;span style=&quot;line-height: 18px; text-align: -webkit-auto;&quot;&gt;Free &amp;amp; open source, high-performance, distributed memory object caching system&lt;/span&gt;&lt;span style=&quot;line-height: 18px; text-align: -webkit-auto;&quot;&gt;, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load&lt;/span&gt;&lt;span style=&quot;color: #333333; line-height: 18px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&quot;&amp;nbsp;Memcached is used by most of the companies today including Facebook, Craiglist, Flickr and Twitter. This is one of the thing which I worked on during my summer intern. I am just going to mention the steps for installing memcached and the problems which I faced doing it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Installation:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;1)&amp;nbsp;&lt;/span&gt;Download libevent from&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://libevent.org/&quot;&gt;http://libevent.org/&lt;/a&gt;&amp;nbsp;. This is one of the dependency for installing memcached.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;2) Extract it&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;3) Go inside extracted directory and type following things&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;#./configure --prefix=/usr/local&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
(If you don&#39;t put --prefix then chances are that later on while installing memcached it might give problems.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;# make &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;4) Download source code of memcached from&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.memcached.org/&quot;&gt;http://www.memcached.org/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
5) Extract it&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
6) Go inside the extracted directory.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
#./configure --libevent-with=/usr/local&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
# make &amp;amp;&amp;amp; make install&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
7) You can check whether memcached is working by giving following command&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
# memcached -u nobody &amp;amp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
After that you can do&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
# ps -el | grep memcached&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
to see if memcached is started.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
8)Now its time to install memslap which is client for memcached. Its used for benchmarking purpose.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
9) Download couchbase from&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/&quot;&gt;http://www.couchbase.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
10) Extract it and go inside libmemcached directory present in it.&lt;br /&gt;
&lt;br /&gt;
11) Then build libmemcached.&lt;br /&gt;
&lt;br /&gt;
# ./configure&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
12) Now go inside clients directory present inside libmemcached and give following command&lt;br /&gt;
# ./memslap -s server_ip&lt;br /&gt;
to start benchmarking process. After some time (600s) you will get some output. You can vary parameters as per documentation of memslap.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/4133883298846957641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/4133883298846957641' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4133883298846957641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/4133883298846957641'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/installing-memcached-with-libevent-and.html' title='Installing Memcached with libevent and benchmarking it with memslap'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-5226642947262566097</id><published>2012-06-14T20:34:00.002-07:00</published><updated>2012-06-25T13:09:18.425-07:00</updated><title type='text'>Installing g++ on rhel and the error &quot; libtool: link: unsupported hardcode properties&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First let me just tell you how generally g++ is installed on RHEL and then the problem which I faced after installing that.&lt;br /&gt;
&lt;br /&gt;
For RHEL,&lt;br /&gt;
# yum install gcc-c++&lt;br /&gt;
&lt;br /&gt;
After I installed g++ on RHEL , then when I tried installing some tool/utility from its source code, I got following error &quot;libtool: link: unsupported hardcode properties&quot; while building the source code. This is what I did to solve this problem.&lt;br /&gt;
&lt;br /&gt;
#make distclean&lt;br /&gt;
# ./configure&lt;br /&gt;
# make&lt;br /&gt;
# make install&lt;br /&gt;
&lt;br /&gt;
And this solved my problem&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/5226642947262566097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/5226642947262566097' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5226642947262566097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5226642947262566097'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/installing-g-on-rhel-and-error-libtool.html' title='Installing g++ on rhel and the error &quot; libtool: link: unsupported hardcode properties&quot;'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-6727673176623148932</id><published>2012-06-14T20:30:00.003-07:00</published><updated>2012-06-14T20:30:48.116-07:00</updated><title type='text'>No route to host error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is one of the very common problem and at times it can be really irritating since it can be difficult to figure out the problem if you are not experienced user of linux and especially RHEL. Even after using RHEL for more than 2 years I got stuck over this problem for 4-5 hours trying to do everything possible and later realizing that problem was with firewall. Here are few steps which you can do.&lt;br /&gt;
&lt;br /&gt;
1) First of all give ifconfig and check all interfaces and whether they are according to your requirement.&lt;br /&gt;
2) Give command #system-config-network and check network configuration&lt;br /&gt;
3) Check firewall rules. Disable it using&lt;br /&gt;
# service iptables stop&lt;br /&gt;
&lt;br /&gt;
I guess in most of the cases problem must be with firewall. Remember newly installed RHEL does have firewall enabled by default. So that can cause problem if you are not experienced RHEL user.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/6727673176623148932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/6727673176623148932' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6727673176623148932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/6727673176623148932'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/no-route-to-host-error.html' title='No route to host error'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-679188486040179610</id><published>2012-06-14T10:40:00.003-07:00</published><updated>2012-06-14T10:40:32.000-07:00</updated><title type='text'>Force user to logoff from remote or any terminal</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So at times it may happen the a user logs in from remote terminal and forgets to log off. So in order to kill such a session of a remote user, following things can be done.&lt;br /&gt;
# who -u&lt;br /&gt;
This will give you the pid of the process user is using to log in.&lt;br /&gt;
Then you can kill that process using&lt;br /&gt;
#kill -9 pid&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/679188486040179610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/679188486040179610' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/679188486040179610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/679188486040179610'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/force-user-to-logoff-from-remote-or-any.html' title='Force user to logoff from remote or any terminal'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-5215518169814658921</id><published>2012-06-12T19:36:00.003-07:00</published><updated>2012-06-12T19:51:02.207-07:00</updated><title type='text'>Registering RHEL 6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Initially when you install a new RHEL 6 on your pc and try using even basic utilities like gcc, it will show errors like no package named gcc installed. Even when you do yum install gcc it won&#39;t work and will throw errors like:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
# sudo yum install gcc&amp;nbsp;
&lt;br /&gt;
Updating Red Hat repositories.
&lt;br /&gt;
Setting up Install Process
&lt;br /&gt;
Error: Nothing to do&lt;/div&gt;
No package gcc available.
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
If you try&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
#sudo yum grouplist&lt;/div&gt;
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
No group data available
Error: for configured repositories
&lt;br /&gt;
If you try&lt;br /&gt;
#sudo yum repolist&lt;br /&gt;
Loaded plugins: product-id, subscription-manager&lt;br /&gt;
Updating Red Hat repositories.
&lt;br /&gt;
repolist: 0&lt;br /&gt;
&lt;br /&gt;
All these problems are mostly because your newly installed RHEL is not registered. You can confirm this by giving following command.&lt;br /&gt;
# yum repolist all&lt;br /&gt;
&lt;br /&gt;
If the system is not registered it will give ouptut status as disabled. Now you can register your system with following command and then enter the required details.&lt;br /&gt;
# sudo rhn_register&lt;br /&gt;
&lt;br /&gt;
After it has successfully registered, give following command.&lt;br /&gt;
#yum update

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/5215518169814658921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/5215518169814658921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5215518169814658921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5215518169814658921'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/06/registering-rhel-6.html' title='Registering RHEL 6'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-5508815688559754460</id><published>2012-05-28T13:08:00.003-07:00</published><updated>2012-06-27T13:42:07.744-07:00</updated><title type='text'>Laser chess source code (c++ and cilk++)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the source code of game named laser chess (computer vs human) written in c++ and cilk++ so as to run it on super computer. In order to run this code you should install cilk++. This program can also be run on normal pc where the code will be same as running it on single core of a computer. For running it on super computer you can refer to intel&#39;s cilk++ guide. To run it on normal pc, just install cilk++ on your machine and run it. More details can be found inside manual provided along with the source code.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://sharecash.org/download.php?file=2869133&quot;&gt;Manual: Laser chess&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://sharecash.org/download.php?file=2869133&quot;&gt;Laser chess source code (parallel version)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Serial version of this game can also be found on&amp;nbsp;&lt;a href=&quot;https://github.com/sanketp123/Laser-chess&quot;&gt;git@github.com:sanketp123/Laser-chess.git&lt;/a&gt; . &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/5508815688559754460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/5508815688559754460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5508815688559754460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/5508815688559754460'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/05/laser-chess-source-code-c-and-cilk.html' title='Laser chess source code (c++ and cilk++)'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-1682556121440343870</id><published>2012-05-28T11:56:00.000-07:00</published><updated>2012-05-28T11:57:38.813-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kernel install uninstall"/><title type='text'>Installing and Uninstalling ubuntu kernel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

Steps for installing ubuntu kernel&amp;nbsp;&lt;/h3&gt;
&lt;/div&gt;
&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;li&gt;Get the source code&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apt-get source linux-image-$(uname -r)&lt;/div&gt;
&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;li&gt;Perform this step only for the first time you build kernel.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Downloading dependencies&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo apt-get build-dep linux-image-$(uname -r)&lt;/div&gt;
&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;li&gt;Building kernel&amp;nbsp;&lt;/li&gt;
Now move inside the downloaded kernel directory and type following commands. &lt;/ul&gt;
&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;fakeroot debian/rules clean
&lt;br /&gt;
fakeroot debian/rules binary-headers binary-generic
&lt;/ul&gt;
After this step, 3 files with .deb extension would be generated in the parent directory of your current folder. Install them using this command&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;sudo dpkg -i linux*2.6.38-7.37*.deb&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;

&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Now reboot. After rebooting you can do uname -r to check whether you have booted into new kernel.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

Steps for uninstalling ubuntu kernel
&amp;nbsp;&amp;nbsp;&lt;/h3&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open the Synaptic package manager. If its not present you can at first install it.&lt;/li&gt;
&lt;li&gt;Now check your current kernel version using uname -r . Or just make a note of the kernel version which you want to remove.&lt;/li&gt;
&lt;li&gt;Now inside Synaptic package manager you will find &quot;search&quot;. Inside that type &#39;linux-image&#39;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;After that you will see different kernel images which are installed in your pc.&lt;/li&gt;
&lt;li&gt;Now select the one which you want to remove and mark it for removal.&lt;/li&gt;
&lt;li&gt;After that apply the changes to remove that kernel version. &lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/1682556121440343870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/1682556121440343870' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/1682556121440343870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/1682556121440343870'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2012/05/installing-and-uninstalling-ubuntu.html' title='Installing and Uninstalling ubuntu kernel'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-3939712887602941439</id><published>2011-07-31T08:17:00.000-07:00</published><updated>2011-07-31T08:24:18.141-07:00</updated><title type='text'>Configure a system to use an existing LDAP directory service for user and group information</title><content type='html'>#system-config-authentication&lt;br /&gt;
Then select &quot;ldap&quot;&lt;br /&gt;
Enter base dn and ldap server name&lt;br /&gt;
Download certificate by entering given url.&lt;br /&gt;
select authentication method</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/3939712887602941439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/3939712887602941439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3939712887602941439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3939712887602941439'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2011/07/configure-system-to-use-existing-ldap_31.html' title='Configure a system to use an existing LDAP directory service for user and group information'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-8788578465327716670</id><published>2011-07-31T07:21:00.000-07:00</published><updated>2011-07-31T07:21:03.904-07:00</updated><title type='text'>Diagnose and address routine SELinux policy violations</title><content type='html'>Use either of the given below files to check logs    &lt;br /&gt;
/var/log/audit/audit.log&lt;br /&gt;
/var/log/messages&lt;br /&gt;
#sealert</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/8788578465327716670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/8788578465327716670' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/8788578465327716670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/8788578465327716670'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2011/07/diagnose-and-address-routine-selinux.html' title='Diagnose and address routine SELinux policy violations'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-2279811865939972605</id><published>2011-07-31T07:19:00.001-07:00</published><updated>2012-01-15T08:36:19.640-08:00</updated><title type='text'>Use boolean settings to modify system SELinux settings</title><content type='html'>To find boolean selinux of a service&lt;br /&gt;
# getsebool -a | grep servicename&lt;br /&gt;
eg:&lt;br /&gt;
# getsebool -a | grep http&lt;br /&gt;
&lt;br /&gt;
Change boolean&lt;br /&gt;
#setsebool -P [boolean = &lt;on (1) | off (0)&gt;]&lt;br /&gt;
eg:&lt;br /&gt;
# setsebool -P httpd_enable_homedirs=1</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/2279811865939972605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/2279811865939972605' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/2279811865939972605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/2279811865939972605'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2011/07/use-boolean-settings-to-modify-system.html' title='Use boolean settings to modify system SELinux settings'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-3140747098467633921</id><published>2011-07-31T07:15:00.001-07:00</published><updated>2012-01-15T08:39:35.746-08:00</updated><title type='text'>Restore default file contexts</title><content type='html'>#restorecon -R filename</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/3140747098467633921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/3140747098467633921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3140747098467633921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3140747098467633921'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2011/07/restore-default-file-contexts.html' title='Restore default file contexts'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2566141705595754113.post-3955583658260375780</id><published>2011-07-31T07:14:00.001-07:00</published><updated>2012-01-15T08:39:25.543-08:00</updated><title type='text'>List and identify SELinux file and process context</title><content type='html'>List file context&lt;br /&gt;
#ll -Z filename&lt;br /&gt;
&lt;br /&gt;
SELinux uses three different contexts to enforce security: user, role, and domain&lt;br /&gt;
&lt;br /&gt;
User context:&lt;br /&gt;
unconfined_u    Unprotected user&lt;br /&gt;
system_u        System user&lt;br /&gt;
user_u          Normal user&lt;br /&gt;
&lt;br /&gt;
Role context:&lt;br /&gt;
object_r        File&lt;br /&gt;
system_r        Users and processes&lt;br /&gt;
&lt;br /&gt;
Domain context:&lt;br /&gt;
unconfined_r    Unprotected file or process&lt;br /&gt;
&lt;br /&gt;
To see Process context&lt;br /&gt;
#ps -Zl</content><link rel='replies' type='application/atom+xml' href='http://sanketpadawe.blogspot.com/feeds/3955583658260375780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2566141705595754113/3955583658260375780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3955583658260375780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2566141705595754113/posts/default/3955583658260375780'/><link rel='alternate' type='text/html' href='http://sanketpadawe.blogspot.com/2011/07/list-and-identify-selinux-file-and.html' title='List and identify SELinux file and process context'/><author><name>SANKET PADAWE</name><uri>http://www.blogger.com/profile/13068805206666421402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>