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:

[cdu screenshot][2]
cdu screenshot
Enhanced by Zemanta

Interesting repository for Fedora.

2012-01-18 1 min read Fedora

Here is one repository that you can add to your Fedora to give it a few more hundred packages:

cat >/etc/yum.repos.d/rpm-sphere.repo <<EOF
[rpm-sphere]
name=RPM Sphere
baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/
gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/repodata/repomd.xml.key
enabled=1
gpgcheck=1
EOF
Enhanced by Zemanta

conky script used to monitor server status remotely.

2012-01-12 2 min read Bash Fedora
[A typical Conky look][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

Rekursive Grep on Solaris or AIX Systems without GNU egrep -r funcionality

2011-12-16 1 min read Learning Solaris

If you work regularly on a Solaris or systems which do not have the “-r” (recursive grep) for grep, then you know what a lifesaver this command can be.

Here is one from command line fu:

find . -type f -exec awk '/linux/ { printf "%s %s: %s\n", FILENAME, NR, $0; }' {} \;

The benefit of using awk here is that you can print the line number also 🙂

Continue reading

Consistent ethernet device names in Verne

2011-12-13 1 min read Fedora
[Català: Aquest es el logo de Gnome fet amb vec...][1]
Image via Wikipedia

Fedora now supports consistent device names across the network with bios device names for the ethernet devices. If you upgraded your earlier version of Fedora then you may need to go to root access to get this working.

Here is what you need to do:

Continue reading

rpmorphan – deborphan for the rpm based distros.

2011-12-07 2 min read Fedora
Lets first install the rpmorphan package:
    <td>
      <div class="bash codecolorer">
        &nbsp;<span class="kw2">sudo</span> <span class="kw2">yum install</span> rpmorphan
      </div>
    </td>
  </tr>
</table>
and here is the description of the package:
rpmorphan finds "orphaned"[1] packages on your system. It determines
which packages have no other packages depending on their installation,
and shows you a list of these packages.  It intends to be clone of
deborphan Debian tools for rpm packages.

It will try to help you to remove unused packages, for example:

Continue reading
1