Category Archives: quickfire

Modify Windows XP routing table

During some network changes I’ve found the need to modify the routing table. To change the default route on Windows XP (and possibly Windows Vista, 2000, etc) you use the route command. The syntax is pretty simple, here is a quick example…. route change 0.0.0.0 mask 0.0.0.0 172.18.12.120 To delete or add routes, simply change [...]

Also posted in tips | Tagged , | Leave a comment

Check speed of connected link in Linux

If you’ve ever wanted to check on the status of your Ethernet links, you’ve probably used the ip commands (or ifconfig) to view some basic information.  However, you might have noticed these commands do not tell you what the current link speed is, or other possibly important details.  That’s where ethtool comes in. [jonmoore@megaton ~]$ [...]

Also posted in tips | Tagged , | Leave a comment

Cancel a traceroute on Cisco devices

Many times I’ve started a traceroute to either a mistyped IP address, the wrong IP or something else that I would really rather not wait for 30 hops to time out before moving on. When doing the traceroute the device tells yous to “Type escape sequence to abort,” but doesn’t share what exactly this escape [...]

Also posted in tips | Tagged | Leave a comment

Extend the timeout on SSH connections

A quick google search will quickly answer this question, but I’ve found myself asking it a few times lately.  Often when I let an SSH session go idle, I’ll end up being disconnected.  By adding ServerAliveInterval 60 to ~/.ssh/config I’ve managed to limit this from happening. There is also a similar server side fix for [...]

Also posted in tips | Tagged , | Leave a comment

Creating empty files in Linux

I had a need for several files of various sizes to do some network testing with.  I found a very good us for dd here. dd if=/dev/zero of=10mb-file.bin bs=1024k count=n Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed. Need a 10Mb file, n [...]

Also posted in tips | Tagged , | Leave a comment

Force the use of ‘www’ in your URL.

This is a pretty simple use of mod_rewrite to force the use www in your urls. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]\ The first line is only needed if mod_rewrite isn’t enabled on your server (though the module does need to be enabled). Replace example.com with your actual domain name of [...]

Posted in quickfire | Tagged | 2 Comments

Arrow keys not working in VMware?

Mine didn’t Luckily Google helped me find a solutation rather quickly, and using information from this site I was able to get things working again. Basically, I added xkeymap.nokeycodeMap = true to /etc/vmware/config and things started working right. Another on the forum suggested remapping the keys, but I didn’t try that.

Posted in quickfire | Tagged , | Leave a comment

Quickly mirror website…

This is going to (hopefully) be part of a much larger article on moving web sites from one host to another.  Until then, I leave with just a simple command to download almost all of an entire webpage to a local directory… <code>wget -rnp -nd www.example.com</code> Or, if we want to download the same files, [...]

Also posted in tips | Tagged | 2 Comments

Don’t let your luck run out.

Be careful when using the “I’m Feeling Lucky” search on Google. You do not get to see the result’s discription or what webpage you are about to visit and it could cause you some trouble. For example currently “zune windows theme” visits the download URL. So instead of a webpage you are instantly prompted to [...]

Also posted in tips | Tagged , , , , | Leave a comment