25.03.2004
Took my laptops (which I call plates bty) down to BLAG in Loughborough.
Plate 1:- Hewlet Packard Compaq nx9005, A.K.A, "The frying pan"
Ozzy: Windahs xp and Fedora Core One
Problem:- Windahs XP overwrote the MBR so I have to boot up with a Fedora floppy, which is a pain.

Grrrr big time. Sent an email to Jeff, who sent back a few commads, one of which was <lshw>. Fine. Read the man page, noted the options and tried the command. Bah! Nothing doing - command not found. Did a <man -k pcm> to find all of the pcmcia - related man pages, then I had a though....

... why don't I write a short script to tell me which commands work?

Basic steps ¬}

part 1 | part 2 >> somefile.txt

part 1 is man -k foo # this lists all the man pages that relate to foo
part 2 awk '/bar/ {print $1}' # this prints the first word of part one, which __usually__ is a commad

somefile.txt # the output of `part 2` is a list of commands extracted from the man pages that relate to the command `foo`.

loop and which # I looked over Jeff's shoulder and he used a for loop so athat a variable changed dynamically at each itteration of said loop. {Methinks : neat}

Wrote the thing last night and it does work! Will put it some where after I return from work. Where shall I put this bash script lads? Here or on the wikki thingy?

I'll think of a way of documenting it so that you all could make sense of it immediately and slag it of || use it accordingly.

Ya, the `lshw` thing was so I could find out what kind of card you have. I did get the photo of it, but I need to know the /insides/ ;) I hadn't heard of the card ("safeway" IIRC). Most pcmcia ethernet cards work fine. This one is likely a re-labeled common chipset. Basically, finding out what chipset is in it will make it possible to use the correct driver.

If the man pages for lshw are there, the command is there. The full path is:
/usr/sbin/lshw

Also, running lshw as root will give you more info than running it as a regular user.

As user root, those are the paths that get searched for a command. As a regular user /sbin and /usr/sbin are left out as they are typically run as root. I usually add them to my path as will by editing my .bashrc
PATH=$PATH:/usr/sbin:/sbin

Thanks Jeff! Please forgive the rather long post earlier. (Taking up band width and stuff). Haven't tried your recommendations yet 'cos I've spent most of this weekend doing various other stuff. However, I've managed to utilies my domain and web space.

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum