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

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

quadkonsole – multiple consoles to make your life easier

2011-11-21 1 min read Fedora Linux

First lets install quadkonsole:

yum install quadkonsole

Now, to launch the quadkonsole, just type quadkonsole in the run box (appears with Alt+F2).

You will by default see 4 console windows in single window but you can change that with command line options like so:

quadkonsole --rows 4 --columns 4

This will initiate windows with 16 consoles. How cool is that.

Enhanced by Zemanta

Add ssh key to remote host

2011-11-15 3 min read Bash Learning Linux Solaris

Example of tunnelling an X11 application over SSH
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. And here is  a script to do just that:

Continue reading

using `!#$’ to referance backward-word

2011-11-03 1 min read Bash Linux

Operating System Tablet Strategy
Image by jeffalldridge via Flickr

Here is something that I found on the commandlinefu

cp /work/host/phone/ui/main.cpp !#$:s/host/target

Ah well…its very interesting and very useful.

Some explanation:

!# – means the current command (similar to !! being the last command)

$ – represents the last parameter

:s – is used for substitution.

Enhanced by Zemanta
1