Are you swapped? Increase the performance of Linux machine.

2010-07-14 2 min read Fedora Linux

With the ever increasing cost of the Hardware, the amount of physical RAM available on the system is increasing day by day. For example, couple of years back, I had a system which was very high end Desktop with 256MB RAM and today I have a 2GB RAM Desktop. So, whats the point.

The Linux systems (right word should be kernel) are desiged to use both RAM and swap partition. Swap partition is a partition on Hard disk and is used mostly like RAM. Problem is that HDD access is always slower than RAM access and hence inherently, the system will work little slower even if you have enough RAM not to use swap. The term ”swappiness” is used to determine how the kernel should try to seam-balance between the use of RAM and swap. By default, most of the distro’s have a swappiness of 60. A higher value of swappiness means that the RAM will be swapped out faster.

Continue reading

A Five-Way Linux Distribution Comparison In 2010

2010-07-14 0 min read Linux Uncategorized
\"Tux,
Image via Wikipedia

<a href="http://www.phoronix.com/scan.php?page=article&item=linux_2010_fiveway&num=1" target="_blank">A five way linux comparison.

A very good comparison of the most common and famous distributions of <a class="zem_slink freebase/guid/9202a8c04000641f8000000000dafbd5" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">Linux. Very comprehensive and detailed. Love this guy.<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5585048/spotify-streaming-music-player-comes-to-linux">Spotify Streaming Music Player Comes to Linux [Downloads] (lifehacker.com) <li class="zemanta-article-ul-li"><a href="http://sathyasays.com/2010/07/13/spotify-for-linux/">Spotify for Linux (sathyasays.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_c16.gif" alt="Enhanced by Zemanta" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

blogtk — Unsupported XML-RPC protocol

2010-06-29 2 min read Linux

Earlier I had talked about this blog client, did I. If not then there is a nice blogging clinet called BloGTK, which can be used directly to post into the blog.

So today I reinstalled it and I was completely at loss with the client being unable to start with the error below:

/usr/lib/python2.5/site-packages/blogtk/BloGTK.py:407: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
self.publishCheck.set_active(gtk.TRUE)
Traceback (most recent call last):
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 1244, in module
blogtk = BloGTK()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 138, in __init__
self.grabConfig()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 426, in grabConfig
self.rpcServer = proxy.get_xmlrpc_server(self.url)
File &#8221;/usr/lib/python2.5/site-packages/blogtk/proxy.py&#8221;, line 66, in get_xmlrpc_server
return server(url)
File &#8221;/usr/lib/python2.5/xmlrpclib.py&#8221;, line 1414, in __init__
raise IOError, &#8221;unsupported XML-RPC protocol&#8221;
IOError: unsupported XML-RPC protocol

Continue reading

wordpress blog stats monitoring from remote using curl and bash and send it in mail.

2010-06-25 3 min read Bash Fedora Linux

Here&#8217;s something that I had been planning to do for sometime now. I have my blog on wordpress and have Statpress plugin installed. The plugin does give me a good idea of the visits to my site. Now, I have to keep logging in every now and then to check the stats. Also since I did not want to spend some more amount 🙂 so I do not have the shell access to the server, too bad 🙁

Continue reading

MySQL tutorial and reference manual

2010-06-25 1 min read Database Linux

The refence for the mysql could be found at

<a class="aligncenter" title="MySQL Help" href="http://http://dev.mysql.com/doc/refman/5.0/en/index.html" target="_blank">MySQL Help

Useless use of cat awards

2010-06-25 22 min read Linux

<a href="http://partmaps.org/era/unix/award.html#cat">Here you will find some useless use of cat command in linux. Really interesting and quite informative.

Useless Use of Cat Award

If you&#8217;ve been reading <a href="news:comp.unix.shell">comp.unix.shell or any of the related groups <a href="news:comp.unix.questions">(comp.unix.questions inter alia) for any amount of time, this should be a familiar topic.

I made this web page on the topic primarily so I&#8217;d have a simpler URL than one of those ghastly Deja News searches to hand to people. I&#8217;ve tried to reconstruct Randal&#8217;s standard form letter from looking at his postings <a href="http://partmaps.org/era/unix/award.html#forms">(see end) and added some comments of my own.

Continue reading

Getting the list of IOCTLS in the kernel.

2010-06-25 1 min read Linux

Sometime back I was helping one of my friends in looking for all the IOCTLs supported by the kernel. Well we did not find the info we were looking for and thus thought to write a perl script to get all the IOCTLS supported by the kernel. Here it is, simple script to scan through the code and give you a list:

#!/usr/bin/perl —

@files = `grep -r &#8221; _IO&#8221; /usr/src/redhat/SOURCES/linux-2.6.20/* |grep define ioctls_grep`;
open (DAT, &#8221;ioctls_grep&#8221;) ||die &#8221;could not open ioctls_grep&#8221;;
@files = DAT;
close(DAT);
my %ioctls_numbers;
print &#8221;Grep completed..\n&#8221;;
open (DAT, &#8221;ioctls_numbers_found&#8221;);

Continue reading
Older posts Newer posts