Archive for May, 2004

Anonymous posts blocked

Monday, May 31st, 2004

If you frequently visit KarKomaOnline, Geeklog based, you probably have noticed a lot of unwanted spam and porn related comments.

As I want to mantain this site clean I am forced to disable anonymous comments for now. If you find this site somehow useful, please take a couple of minutes and fill the form to become a member of KarKomaOnline.

Regards.
Karkoma.

Debugging Shell scripts

Monday, May 31st, 2004

You can set your shell script excution verbose mode either by adding line set -vx at the begining of script or sh -x script_name.

#!/bin/sh
set -vx
date

Target architecture of a binary file

Friday, May 28th, 2004

If you want to know the targeted architecture of an executable file you can use the Gnu C Compiler, gcc.

The dumpfile debugging option prints the compiler’s target machine. Simply type:

gcc -dumpmachine

and you’ll get something like this:

i686-pc-linux-gnu

Listing PCI devices

Tuesday, May 4th, 2004

To list PCI devices in GNU/Linux simply type:

/sbin/lspci

or for more info type…

/sbin/lspci -v
/sbin/lspci –help