Script to get yourself some conkyrc files

2011-10-08 1 min read Fedora Learning Linux

Continuing from where we left, here is a script that can do all this for you šŸ™‚

curl http://ubuntuforums.org/showthread.php?t=281865\&page=$i | sed -n '/\\/pr/ p'| sed '// d'| sed 's##\n-----------------------------------\n\n\n#' >conkyrc
	dos2unix conkyrc
	cp conkyrc .test
	while [ $(wc -l .test|sed 's/[^0-9]//g') != 0 ]
	do
		sed -n '1,/------------------------/ p' .test|sed '$d' >conkyrc.$count
		diff .test conkyrc.$count |sed 's/^<.//'|sed '1, /---------------------/ d;2d'>.test
		((count++))
	done

This will create couple of conkyrc.files in the current directory. Each of these is one from the web-page that I mentioned earlier. So, enjoy….

Continue reading

Get yourself some conkyrc files.

2011-10-05 2 min read Fedora Linux

If you are looking for some nice conkyrc files, then you can head over to :

Ubuntu Forums

In this thread you can see some very nice conkyrc files with screenshots. You can browse through the thread and get the one that you like. But if you are like me and would like to download all of them to see the features and commands in each of them then you would need to copy each of these files and paste them separately. But if you have to do everything manually then there’s not much of being on Linux šŸ™‚

Continue reading

Creating a chroot environment in Fedora with bash and other utils.

2011-09-19 2 min read Bash Fedora Learning Linux

[ad#ad-2]

I am testing some of my scripts to work on a very old system and there the versions of the most popular applications are very old, real old :(. So, some of things that I am very used to since last couple of years, do not seem to work as expected and I need to keep verifying a lot of things on the server, very inconvinient to keep testing the script on the server (need to connect on VPN) just to test some very simple things.

Continue reading

debug call function() to debug a function in vim

2011-09-04 1 min read Vim Tips

Drawn in Autosketch + pasting in words from Excel
Image via Wikipedia

Have you ever wished that you could either see what is going on initially at the vim startup like you could do with C program in the gdm mode, but really did not want to go through gdb. Or rather you sometime felt that some function defined by some plugin is causing some issue and you wanted to debug just that function. Well you need not wish anymore, the functionality is already there.

Continue reading

Installing Full Blin g theme on N900

2011-08-03 1 min read Maemo N900

I was going through the post : http://talk.maemo.org/showthread.php?t=46739
and found the theme quite intrugingĀ but not complete to the point where I can download the deb file and install it in /usr/share/theme/ dir with simple commandsĀ ā€œapt-getā€ or at max just use mkdir command to create the dir and dump everything in that dir. So, I wrote this couple of bash one liners to copy the required files to my N900.

Continue reading

Installing Bling Theme on N900

2011-06-18 2 min read Maemo N900

Nokia N900 communicator/internet tablet
Image via Wikipedia

There is a very nice theme for N900 and it is called Bling theme. There is a problem though with the theme, the theme still does not have a installable .deb file, and thus the files need to be directly copied to ā€œ/usr/share/iconsā€ and you have to manually do the mkdir and all such command in the terminal in a N900, which does not seem familiar to quite a lot of people using N900. So here, is for the benefit ofĀ  all, I am posting a script that can do the job. The one lines can be run from any bash script (Linus/Windows with cygwin/Mac or even N900). Though the one liners should be self explanatory, if you have a doubt, feel free to ping me.

Continue reading

Total upload and download on any interface.

2011-06-05 1 min read Bash Fedora

Something that I have been searching for a long time, finally some look inside the <a class=“zem_slink” title=“Procfs” rel=“wikipedia” href=“http://en.wikipedia.org/wiki/Procfs" _mce_href=“http://en.wikipedia.org/wiki/Procfs">/proc got me what I wanted. Hope this will save someone’s day. So far, the only option I could think of was to run conky which becomes a little heave on some of the very old laptops I have to use sometimes šŸ™

  <td>
    <div class="text codecolorer">
      &nbsp;cat /proc/net/dev|grep eth2|awk '{print $2/1024/1024"&nbsp; "$10/1024/1024}'
    </div>
  </td>
</tr>
1
Enhanced by Zemanta
Older posts Newer posts