Learn How To Do Stuff

Just in case you didn't know, now they have a book to show you how...

Make you own sign at signgenerator.org

Move Your Firefox Close Tab Button

I recently had to re-install my PC and I decided to take the opportunity to freshen up my Firefox profile by abandoning my prefs.js file and only migrating settings and extensions as needed.

As part of this, I ran into an issue I dealt with a while back and had to look up once more.

http://ffextensionguru.wordpress.com/2006/10/22/firefox-20-close-tab-buttons/

I don't like having my little red X to close the tabs actually in the tab. I like it at the end of the tab-bar. Just a quick rundown of how to change this:

Browse to about:config and filter for browser.tabs.closeButtons. Set that value to 3.

Broadcom BCM5754 NIC on FC5

At work we got in a brand spankin' new Dell PowerEdge SC440. And what's the problem with brand spankin' new hardware? Driver support. Fedora Core 5 didn't install drivers for our ethernet interface. As seen in lspci...

05:00.0 Ethernet controller: Broadcom Corporation Unknown device 167a (rev 02)

How do you solve this? Well, first off, you need to make sure that you have kernel 2.6.18 or higher on your system. If you don't have this yet, and you have some other means to network access, run yum update. Otherwise you'll probably have to use sneakernet to get the kernel RPM file on there. Then, after installing and rebooting into the new kernel, add this line to /etc/modprobe.conf

alias eth0 tg3

Reboot and run netconfig.

UPDATE: You can alternatively let kudzu try to find the device itself, after you do the kernel update. First you need to make kudzu believe that this is the first time the device has been inserted. Remove these lines for /etc/sysconefig/hwconf:

-
class: NETWORK
bus: PCI
detached: 0
device: dev1804289383
driver: tg3
desc: "Broadcom Corporation Unknown device 167a"
network.hwaddr: 00:1a:a0:18:aa:98
vendorId: 14e4
deviceId: 167a
subVendorId: 1028
subDeviceId: 01df
pciType: 1
pcidom:    0
pcibus:  5
pcidev:  0
pcifn:  0

Run "rmmod tg3" to uload the module, then run "/etc/init.d/kudzu start" and "modprobe tg3". Run "ifconfig -a" and you should now see the ethernet interface. Run "netconfig" or netconfig -d eth1" (if you have this as a secondary interface) to configure it.

Change Your Default syslog Options to Disable DNS Lookups

Disclaimer: Nevermind. Turns out that this only disables lookups on remote syslog entries (from another syslog host). Still looking for a solution on this one. Feel free to read on if you wish.

So this weekend, someone (as happens quite frequently) attempted to gain access to my server via the FTP daemon. No big surprise there. What was interesting about it was that there was one attempt from an rhost named "oa". Not oa.1337hacker.com, or even an IP, just.... oa. As expected an nslookup of "oa" yielded nothing.

So I ended up turning off reverse lookups on syslog. I'd suggest you do the same. You can't really trust reverse lookups. What's to prevent someone who has control over their PTR record to create any bogus reverse lookup, even google.com or yourdomain.com and attempt the same thing? You have no means at that point to actually identify the attacker positively by IP.

To turn off reverse lookups for syslog on FC6, just add -x to this line in /etc/sysconfig/syslog:

SYSLOGD_OPTIONS="-x ... "

See here for my bug report on Redhat's Bugzilla. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=227357