lspci on FreeBSD?

By default, Linux come with lspci command to print PCI hardware on the machine. On FreeBSD, you can install pciutils in order to list pci hardware and make some tweaking on PCI IRQ/slots.

Installing pciutils on FreeBSD

To install pciutils, change directory to the directory and make install;


shell> cd /usr/ports/sysutils/pciutils
shell> make install clean

Print PCI Hardware Details

Print out PCI device details witht he command below


shell> lspci


00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:02.0 Ethernet controller: 3Com Corporation 3c900 10Mbps Combo [Boomerang]
01:03.0 Non-VGA unclassified device: Unknown device 0001:0000
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

If you would like to see more details, use lspci -vvv , for more information on lspci, do man lspci

Looking for External 56k Fax/Data Dial Up Modem

I am looking for 56k Fax/Data external Dial Up modem, as in serial com port, not USB or PCI. Just happened to know that serial com modem is not available in the market anymore after hunting few shops in low yat 2 days ago. Anyone who has it and would like to donate/sell at the cheap price, please contact me paul a.t takizo.com :)

Need it urgently, don’t mind if you have few units to sell/donate to me.

Parliament Dissolve today!

Out of topic, but it’s big thing in Malaysia. Parliament Dissolve Today! Election is coming…

Apache logs …

While troubleshooting apache webserver, it would be helpful to have an idea of what are the various status code for HTTP. e.g.

192.168.168.168 – - [09/Feb/2008:14:03:26 +0800] “POST /index.php/display/refresh HTTP/1.1″ 200 – “http://www.takizo.com/blog/…” …

the above log entry would mean the client (192.168.168.168) have connected and the page have been served.

if :

192.168.168.168 – - [09/Feb/2008:13:24:11 +0800] “GET / HTTP/1.1″ 500 – “-” …

would mean there is a error while getting the page. In my case, check mod_access’s allow & deny statements.

That’s all for now, Happy monitoring !!!

Pimp Safari & OSX …

picture-2.png

Safari has been used most of my internet browsing. Plugins are definitely helpful because the default features are useful but not enough. Sites such as PimpMySafari has enough plugins to fulfill my needs. Below are some plugins that i find it indispensable  :

  • SimBl – The first step of most plugins for Safari
  • ForgetMeNot – “When I use Safari, I like to keep a lot of tabs open; but when I close Safari, it forgets what I had open. Consequently, I wrote ForgetMeNot—a SIMBL plugin for Safari which saves the URLs you were visiting when Safari quits, and reloads those same websites for you when you start Safari again.”

Not only SimBl is for Safari, it can also use it on OSX :

  • Visor – a terminal that “drops” on your screen. :)

These are the few plugins that i currently see useful. Stay tune !!! :)