.comment-link {margin-left:.6em;}

IntTech

Friday, March 28, 2008

IP Address Changes on Red Hat Linux

To change your IP edit the file /etc/systconfig/network-scripts/ifcfg-eth0 where eth0 represents the port you wish to change. The ports are numbered starting at 0, so if you only have one port it should be eth0.

After editing that file restart networking by running /etc/init.d/network restart. You may also need to start other services that depend on networking.

Bookmark and Share

Sun's Java Archive

I have found the Sun Archive of old Java versions very useful when working with legacy java code in a corporate environment.

Bookmark and Share

Wednesday, March 26, 2008

Vi search and replace

After 20 years of working on UNIX I am just now finding the need to learn more than the basics of VI. (Yes I have been a emacs person for many many years.) Here is how to do a global search and replace in vi.
 1,$s/oldstring/newstring/g  
The 1 means the first line of the file (obvious) and $ means the last line of the file (less obvious).

Bookmark and Share

Google