tora on Fedora 16 for mysql and Oracle.

2012-02-06 1 min read Database Fedora
Sometime back I had posted a article on Tora on Fedora. But that was a while back and things have progressed and we already have Fedora 16 (aka Verne). So, awhile back I installed Tora on my Fedora 16 and here are the steps to do so: First get the Tora sources from sourceforge.net . Download the source tar file and extract the same. Install the delel for some of the packages that you will need: Continue reading

Color disk usage on Fedora

2012-01-21 1 min read Fedora
For this tip, you would need to setup the rpm-shere repository. You can get the information here. Once you have done that you need to install the cdu package with the following command: sudo yum install cdu And then you can use “cdu” to view the disk usage in all beautiful colors with the command: cdu and the output looks like this: [][2]cdu screenshot Related articles Quickly install most of the things that you need on Fedora. Continue reading

Benchmarking the system/CPU performance

2012-01-15 2 min read bash Fedora Learning
Have you ever wanted to have a quick check on your CPU performance. I know that lot of people will say that this is not the right way to do this, but here is something that you can use to check the CPU speed. #!/bin/bash - #=============================================================================== # # FILE: benchmark.sh # # USAGE: ./benchmark.sh # # DESCRIPTION: Benchmark the CPU # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit. Continue reading

conky script used to monitor server status remotely.

2012-01-12 2 min read bash Fedora
[][1]Image via Wikipedia I was looking for something to monitor few details on the server. I thought about quite a lot of applications, some open source and some scripts developed in house. But my requirements were quite petty and the scripts and applications were quite heavy. So, I thought why not conky :). So, with some quick work on conky script, I was able to get what I wanted and here it is for all of you. Continue reading

Backup of files in the directory.

2011-12-01 2 min read bash Learning Linux
I was working on some scripts and the changes that I was making in the scripts was very dynamic, which I did want to keep backing up in the version control system. But for the peace of my mind, I wanted to keep a copy of the scripts, whenever it was in working state. Since I had multiple files, so it would make more sense to have a script that could copy all the files in the current directory to “old” directory without over-writing the existing files. Continue reading

Linux hardware details.

2011-11-28 3 min read bash Learning Linux
Here is one of the scripts that I found on the net while searching for something … Note the URL for the script in the Description. #!/bin/bash - #=============================================================================== # # FILE: linux_hw.sh # # USAGE: ./linux_hw.sh # # DESCRIPTION: http://www.howtogeek.com/howto/solaris/get-the-processor-type-on-solaris/ # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com # COMPANY: Roamware India Pvt Ltd # CREATED: 09/13/2011 03:57:34 PM IST # Last modified: Sun Oct 30, 2011 04:59PM # REVISION: --- #=============================================================================== function linux_hw_CPU { typeset num=0 typeset name=" Continue reading

Add ssh key to remote host

2011-11-15 3 min read bash Learning Linux Solaris
Image via Wikipedia If you are working on recent versions of the *nix OS like Fedora or Ubuntu then you would know about the commad ssh-copy-id. But if you land up using one of the older versions like Solaris or something where the command is not present, then probably you need a simpler solution to this. One of the simplest solution is with a lot of assumtions, simply copy the id_rsa file to remote server and hope it works. Continue reading
Older posts Newer posts