Swizzling.org

Welcome to swizzling kids. The site with no real purpose and shocking low levels of content.

Flash NIC LEDs

February 25th, 2008 . by Dave

Sometimes you might need to identify which NIC is which or just flash the NIC LED for a laugh.
Give this a whirl

ethtool -p eth0

I broke yum

February 25th, 2008 . by Dave

Every once and a while yum does a full update and then nothing but errors.

I found this usually fixes it up

rm -rf /var/cache/yum
rpm –rebuilddb

Hard disk ticking sound :(

February 13th, 2008 . by Dave

Err my hard disk with the details for the Johnson account appear to be dead, and making a ticking sound.

Sorry friend, your disk is pooped and you’ve lost the account. If it helps I found this site with the sounds of various disk failures; slow motor, head damage and such.

Click Me

Generally people tell you to freeze the disk. Condensation will likely make the problem worse. But do try refrigerate it, that gives good results :)

Find public IP address from console

February 10th, 2008 . by Dave

These two approaches use text based web browsers to dump a website to stdout and then grep for the address line.

links –dump whatsmyip.org | grep “Address”

or – if you don’t have links installed

lynx –dump whatsmyip.org | grep “Address”

Expected output: “Your IP Address is xxx.xxx.xxx.xxx.”

Can’t resolve public IP in NAT environment

February 8th, 2008 . by Dave

Scenario:
Public <-NAT-> Private
87.114.220.20 <-NAT-> 192.168.1.20

Problem: The NAT’ed machine can not resolve (or ping) its public address.
Solution: Add a loopback interface with the public IP address on it.

This is particular useful on web servers where viewing the site on the server itself is required for testing etc.

Windows heads: How to add loopback interface
Linux heads: You’ll have to create a new lo interface with the public address. lo:1 for example

« Previous Entries