Archive for the 'Unix' Category

Using gcj under gentoo

If you follow the instructions off of gentoo’s website (they are very good instructions) for x86 on 2004.1 then you end up with a system that doesn’t have gcj. Here’s what I did to get it working.

Using Perl instead of awk or sed

You want to use Perl to process things on the command line but you don’t want to write/save a file. You want to replace sed with something more clunky. :)

[user@server tmp]$ ls / | perl -e ‘while (){ print $_; }’
bin
boot
dev
etc
home
initrd
lib
lost+found
misc
mnt
opt
proc
root
sbin
tmp
usr
var
[user@server tmp]$ ls / | perl -e ‘while (){ print “/” . $_; […]

Finding busy disks with iostat and awk

So you want to find busy disks in solaris? Maybe you want a quick iostat summary? Need an easier way to find slow disks? Getting percent busy info from iostat is easy with awk. Usually any disk with %busy greater than 0 (some people prefer >= 2) is a sign of […]

An example md.tab on an E450

The E450 has a potential of 20 internal disks, none of them labeled in any particular order (ctd numbers) and it was a pain to configure most of them as a big stripe.
Here’s the md.tab I created, note the u02 section showing how to string 7 disks (slice 2 is the whole disk) all together. […]

tg3 problem and resolution on poweredge 2650

I had a flaky network problem where high loads (fast downloads from tux.org or sun.com) would cause a hang or complete drop of all network connections on the box. Originally, I had plugged in two CAT5 cables hoping that it would be one of the gbit ethernet ports but that had no effect.
When the […]

Login delay in ProFTPd fix - reverse lookups

So you’ve tried everything to get rid of the login delay to ProFTPd. You’ve configured ProFTPd over and over again but it still doesn’t work?! You’re not running ProFTPd in standalone mode and you’ve come to the end of your rope right!?!? “What is causing the login delay?!” you ask in vain, […]

Pictures of iPod under Linux

Got an iPod for Xmas. Santa deserves a Nobel Prize.
After admiring the packaging, manuals and the well designed manuals; I popped it into my USB slot and realized that I don’t have a USB 2.0 slot. Can’t believe it. So I’ll have to order a new Motherboard. This might seem drastic […]

Example Disk Suite Configuration (md.tab)

An example of mirroring the root disks with DiskSuite on Solaris 9. Step by step instructions on how to mirror 2 internal root disks with the bundled version of DS.

RedHat 8.0 to 9.0 upgrade

I started this install log because I thought upgrading to 9.0 would be a serious pain in the neck. It turns out it went very smoothly and there’s not much to say here.

Here’s a quick list of steps that took me through the update. The update to Gnome 2.2 is worth it. […]

A nice bash prompt

Throw this into your /etc/bashrc for all users to pick up this more interesting bash prompt. If you just want to test it out on a single user’s profile, add to ~/.bashrc (at the end is good).