Sysads Gazette

Linux tutorials, howtos and step by step guides

Install K Desktop Environment on CentOS 6.5

[code language=”js”]# yum -y groupinstall “KDE desktop” “X Window System” “Fonts”[/code] [code language=”js”]# vi /etc/inittab[/code] [code language=”js”]# init 6[/code]

Installing GNOME GUI on CentOS 6.5

 <pre># yum -y groupinstall "FTP server"</pre> <p> <em><span style="color: #000080;">Any questions, please feel free to ask 🙂</span></em> </p>

Prevent Google crawling using ZXTM traffic script

[code language=”powershell”]User-agent: * Disallow: /[/code] [code language=”powershell”] $host = http.getHostHeader(); $qs = http.getpath(); if (($host == “sysads.co.uk”) && ($qs =="/robots.txt")) { if (resource.exists( “robots.txt”)) { # robots.txt exists on ZXTM, return content of txt file to client http.sendResponse( 200, “text/plain”, resource.get(“robots.txt”), “ZXTMServed: True”); } } [/code]