Sunday, December 7, 2008

Error 530 Must perform authentication before identifying USER in FTP

This is one of most annoying issues you face when using ftp server in Red Hat linux. The solution is very straight forward.

Open the gssftp file. It is normally located at /etc/xinetd.d

Change the line "Server_args = -l -a'

to

"server_args = -l"

Then restart the ftp server

Saturday, December 6, 2008

Changing appBase in Tomcat 6

AppBase is the location where the Tom cat server searches for jsp files when called by a client. Default location is the webapps folder in tom cat home.

Changing this appBase involves bit of identifying the architecture of tom cat.

First thing you should remember is that every web application you are going to deploy should be in a separate folder. You cannot directly use that folder as the appBase. Instead you have to use parent folder.

eg: If your web application is at C:/myWebApps/firstwebApp, you have to use C:/myWebApps as the appBase.

Then calling the file C:/myWebApps/firstwebApp/hello.jsp can be done by http://localhost:8080/firstwebApp/hello.jsp


If you want to call the file C:/myWebApps/firstwebApp/hello.jsp just typing the URL http://localhost:8080/hello.jsp you have to rename the folder 'firstwebApp' with 'ROOT'.

Sorry for the lengthy description but first things first.

Then how to change the appBase.

  • Open conf/server.xml file in the tomcat home foulder.
  • Find the line containing Host name="localhost" appBase="webApps"
  • Change webApps with the parent folder of your web application folder.
  • Restart tomCat

Tuesday, December 2, 2008

Command line

Command line, MS DOS prompt, bash or any other command line utility should be familiar to you. AS most of people say they were used in ancient times. But still we use them, don't we? If we are using ssh what else do we have?

Need for a new generation of command lines

We all are familiar with IDEs. They provide us lot of helps when coding. Can't we create a ssh client that would help to type commands. For example when we type 'c' it should provide help listing all the commands starting with c along with their arguments.

Is there a tool like that? Or will I have to create such a tool?

Monday, December 1, 2008

Puppy Linux

I was looking for a good light weight OS to be used in virtual PC. Yesterday came across 'puppy linux'. Puppy linux is so small with only 96MB. Loads into RAM and runs pretty fast.

Still I'm studying puppy linux. Await more details.