Flash NIC LEDs
February 25th, 2008 . by DaveSometimes 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
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
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
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.
Generally people tell you to freeze the disk. Condensation will likely make the problem worse. But do try refrigerate it, that gives good results
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.”
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