Skip to content

Category Archives: AIX

IBM AIX info and tips.

Extract an RPM

04-Apr-08

This is one of those things I only do occasionally, so here’s a note on how to do it. rpm2cpio rpmarchive.rpm | cpio -idmv This should extract the entire rpm into the current dir, so make sure you are in a clean dir before you do this. The rpm2cpio command should be available on any [...]

Found: Unix/Linux Gold

16-Nov-06

I stumbled upon this invaluable gem: http://souptonuts.sourceforge.net/how_to_linux_and_open_source.htm It is a page of over 200 tips and tricks for all sorts of *nix and opensource goodies, like this: TIP 70: Generating Random Numbers. $ od -vAn -N4 -tu4 < /dev/urandom 3905158199 This guide is full of stuff that you may only do occasionally but you can [...]

Easiest way to get Vim colors in AIX

29-Dec-05

Put this in your .vimrc: :if has(“terminfo”) : set t_Co=16 : set t_AB=Esc[%?%p1%{8}%< %t%p1%{40}%+%e%p1%{92}%+%;%dm : set t_AF=Esc[%?%p1%{8}%< %t%p1%{30}%+%e%p1%{82}%+%;%dm :else : set t_Co=16 : set t_Sf=Esc[3%dm : set t_Sb=Esc[4%dm :endif (Note: the Esc's should be replaced with a real Esc (Ctrl-v Esc).) This should give you sixteen-color support if you are using an xterm (or a [...]

Find which CD a fileset is on

03-Dec-04

Need to load a base AIX fileset and don’t remember which CD it is on? Check the ‘.toc’ file in: /<mounted cdrom dir>/usr/sys/mvCD/.toc For example, if I vi the ‘.toc’ file and search for ‘bos.clvm’, I see something like this: vol%3/bos.clvm 4 R I bos.clvm { bos.clvm.enh 05.02.0000.0030 1 b B en_US Enhanced Concurrent Logical [...]