<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d11356004\x26blogName\x3dxception\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://openrent.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://openrent.blogspot.com/\x26vt\x3d-2179510228592399674', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>


Use yum or up2date to install an entire block of software all at once. Some examples:

# yum groupinstall "X Window System"
# yum groupinstall "XFCE-4.2"
# yum groupinstall "KDE (K Desktop Environment)"

Use curl to fetch HTTP headers

# curl -i www.mylendlease.com

HTTP/1.1 200 OK
Date: Thu, 11 May 2006 21:27:23 GMT
Server: Oracle-Application-Server-10g/ Oracle-HTTP-Server OracleAS-Web-Cache-10g/ (G;max-age=428975992+0;age=0)
ETag: "f718-17d-422e135b"
Content-Length: 381
Content-Type: text/html
Last-Modified: Tue, 08 Mar 2005 21:04:27 GMT
Accept-Ranges: bytes
Vary: Accept-Encoding
Expires: Fri, 05 May 2006 21:48:36 GMT

Debug a specific logrotate script

This will run the 10g log rotation script in debug mode:
# logrotate -d /etc/logrotate.d/10g

Tell Anaconda to ignore storage

Red Hat's anaconda installer can be passed the "nostorage" command-line attribute at boot time, which tells it to not auto-probe storage adapters. This can save headaches when RHEL tries to install to a SAN disk rather than a local disk.

Bind an IP Address Range

Marius Ducea's blog has a great post about how to quickly setup a range of IP addresses in Linux:

Create a file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 if this doesn’t exist, or just add to it if you already have it, the following lines:


where: IPADDR_START is the first IP and IPADDR_END is the last IP in the range. CLONENUM_START is the number that will be assigned to the first IP alias interface (eth0:0 in this example).

If you need to add more ranges of IPs then just use a different file for ex. ifcfg-eth0-range1, for each one of the ranges.