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
Sunday, December 7, 2008
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.
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?
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.
Still I'm studying puppy linux. Await more details.
Tuesday, November 25, 2008
Essential software for a PC running on windows XP
First software I would ever install would be MS Office 2007. I have used few office packages, but MS Office 2007 is unparalleled. Especially I find Onenote very useful for me.
Second software would be Mozilla Firefox. Nothing much to say. Simply it is the best. With add-ons you can do virtually anything with it.
Third is a pdf reader. If possible a pdf creater as well. Adobe is the best. Foxit reader is good as well.
Then I would go for a good text editor; ie a notepad replacement. Ultra edit is the best text editor I have ever used. Column mode, enhanced search facilities and the ability to handle very large files are specialties of UE. JEdit and Crimson editor are good free alternatives for UE.
Then it is the time for a good file manager. File manager is an enhanced version of inbuilt my computer or windows exlorer. Most file managers support two frames and tabs. Two frames helps you to perform copy and paste operartions easily and tabs give you less clutter when working with many folders. FileAnt and Explorer2 are very good user friendly free file managers.
A good compression utility is essenstial as well. 7zip, winzip and Winrar are good compression utilities. I personally prefer 7zip
Second software would be Mozilla Firefox. Nothing much to say. Simply it is the best. With add-ons you can do virtually anything with it.
Third is a pdf reader. If possible a pdf creater as well. Adobe is the best. Foxit reader is good as well.
Then I would go for a good text editor; ie a notepad replacement. Ultra edit is the best text editor I have ever used. Column mode, enhanced search facilities and the ability to handle very large files are specialties of UE. JEdit and Crimson editor are good free alternatives for UE.
Then it is the time for a good file manager. File manager is an enhanced version of inbuilt my computer or windows exlorer. Most file managers support two frames and tabs. Two frames helps you to perform copy and paste operartions easily and tabs give you less clutter when working with many folders. FileAnt and Explorer2 are very good user friendly free file managers.
A good compression utility is essenstial as well. 7zip, winzip and Winrar are good compression utilities. I personally prefer 7zip
Test from scribefire
Found this. Let's give a try.
It is working.
Now this text is typed off line. Let's save this. Done
When
I open it back... I can find the saved note. Also I can preview my blog
in an environment similar to blogspot. That means offline preview!
Wonderful.
Ok let's try to publish this.
Yea it is working :-)
It is working.
Now this text is typed off line. Let's save this. Done
When
I open it back... I can find the saved note. Also I can preview my blog
in an environment similar to blogspot. That means offline preview!
Wonderful.
Ok let's try to publish this.
Yea it is working :-)
Sunday, November 23, 2008
Login to Linux without password as root
This is a very interesting fact. There is a method to log in to any Linux OS as root (super user) without a password. Further it is possible to change root password as well. Here is how to do it.
1. When you get the Grub boot loader screen select the linux OS
2. Press 'e'
3. You will be directed to another screen which is similar to Grub boot menu. Locate the entry having the word 'kernal'.
4. Press 'e' again.
5. You will be directed to a screen where you can edit the line having linux os. Type a space and single there.
6. Hit enter. Now you will come back to the Grub screen. Note that Linux Os line now has single attached to it.
7. Press 'b'
Now you will be logged in as root in to a shell.
Type passwd and hit enter. Now you can give a new root password. Enjoy...
1. When you get the Grub boot loader screen select the linux OS
2. Press 'e'
3. You will be directed to another screen which is similar to Grub boot menu. Locate the entry having the word 'kernal'.
4. Press 'e' again.
5. You will be directed to a screen where you can edit the line having linux os. Type a space and single there.
6. Hit enter. Now you will come back to the Grub screen. Note that Linux Os line now has single attached to it.
7. Press 'b'
Now you will be logged in as root in to a shell.
Type passwd and hit enter. Now you can give a new root password. Enjoy...
Subscribe to:
Posts (Atom)