Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, April 5, 2010

Recursively remove .svn files

Following command can be used to recursively remove .svn files.

Following command can be used to list out .svn files.

find . -type d -name .svn

Following command can be used to remove all .svn files.
 
rm -rf `find . -type d -name .svn`

Wednesday, January 20, 2010

Resolving permission issue with Tomcat

When you download and start running catalins.sh, you might get following error.

The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program


To resolve this;
1) Check $CATALINA_HOME and $JAVA_HOME set properly.

2) Check whether the relevant files in $CATALINA_HOME/bin have necessary permissions required for execution.

$ chmod u+x catalina.sh
$ chmod +x ./setclasspath.sh
$ chmod +x ./startup.sh
$ chmod +x ./shutdown.sh

Tuesday, June 2, 2009

Checking Hardware configuration of your Linux Distribution

Following are some useful commands to check your h/w configuration in linux.

1.Linux Flavor
$ cat /etc/issue

2.CPU
$ cat /proc/cpuinfo

3.RAM
$ cat /proc/meminfo

4.Hard Disk
$ df -h

Thursday, September 11, 2008

Tool for writing TeX/LaTeX documents in Windows and Linux

I came across this tool a few months back when I had to write my literature survey. LyX combines the power and flexibility of TeX/LaTeX with the ease of use.Using this tool is like using MS Office or OpenOffice. It is a GUI based tool and you do not have to write a single line of code to make a LaTex document. It is having an installer for windows and Linux distributions.