Archive for the ‘HowTo’ Category

How to reload your bashrc file

Here’s a quick way to reload your bachrc file without having to invoke a new shell. [root@bambee]# source ~/.bashrc or [root@bambee]# . ~/.bashrc

How to configure a static ip in Linux

This is a newbie question I get quite often. Configuring your Linux machine to run on a static IP is easy. Tools like system-config-network and netconfig provide you simple GUIs to do this. For today, I’ll show you how to do this from the command line instead. Navigate to /etc/sysconfig/network-scripts/ [root@baboo]# cd /etc/sysconfig/network-scripts/ Every network [...]

How to send a process to the background

Sending a process to the background in Linux is quite easy. All you need is bg, fg, &, and ctrl+Z ( ^Z ). For this example I will use a simple bash script test.sh I put together to print “Test” every 5 seconds. #!/bin/bash #This script will print “Test” every 5 seconds # while [ [...]

How to disable directory listing in Tomcat

This is how you turn off directory list for yr Tomcat server. 1. Edit the default servlet in the {$CATALINA_HOME}/conf/web.xml file. 2. Look for the <init-param> section within the <servlet section> <servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet </servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> 3. Change the <param-value> to false for the <param-name>listing</param-name> [...]

Disable Nuffnang Polls

Nuffnang recently launched it’s smart poll feature which enabled polls to be shown together with your campaign ads. Since it’s launch I’ve only seen one poll across all blogs and sites running Nuffnang ads. It’s a cool idea to run polls but till the poll questions increase I’d rather have the polls feature turned off [...]

Page 18 of 23« First...10«1617181920»...Last »
© 2008-2009 The Danesh Project
Powered by Wordpress and made by Guerrilla. Best viewed in Mozilla Firefox