How to install and configure tomcat 6 in ubuntu server

Tomcat is a well known and widely used java servlet container. These days I am planning a project, which needs a tomcat 6 in ubuntu server. I found that to make tomcat work in ubuntu is very easy, but you need have a little trick to change your server listening port from 8080 to 80. Here I give you the way that I make it work.

1. Install tomcat 6 in ubuntu

normally, you just need to type the following command to install it

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

2. Start tomcat

Continue reading

Advertisements

How to install and configure mod_python in apache 2 server

Recently I got a new server and need to host a service on it. I found that there are tons of versions for the installation and configuration of mod_python in apache 2 server, which made me confused. Here I try to make this process more clearly.

My server installed  ubuntu server 10.10, but i think it works for the other debian distribution.

Installation

First install apache 2, type the following command in terminal:

Continue reading

How to install gnuplot in Mac OS X lion

I just bought a macbook pro recently. The first thing that I need is to setup the latex environment to write. The tex installation is not hard to achieve, you can just search “mac os latex installation” in google, you will find the dmg file to install it. The problem is I need gnuplot to draw charts, but there is no mac os binary for the latest version. So i tried to compile it my self. It is not hard but need a little trick.

First, download the latest gnuplot source from here: http://sourceforge.net/projects/gnuplot/files/gnuplot/

Continue reading

How to add under line effect to multiple lines in Revtex

In Latex, the command \underline is for adding the under line effect in your text. For example,

This is an under example.

However, if you use this for multiple lines, the line wraps will disappear, the multiple lines come to be one unique line.

To solve this, you can use the ulem package.

usepackage{ulem}

And for highlighting your text by under line, use the \uline command.

This will provide you the under line effect for multiple lines.

A drawback of this method is that it changes the default emphasis behaviors. All the other text highlighted by command \emph will be underlined too. This might not be what we want. For example, in revtex, emphasis is shown by the italic font.

Continue reading

How to fix the “no permission to write in a NTFS partition” problem in Ubuntu 10.10

One of the possible solution is in my another post: https://bhou.wordpress.com/2010/10/24/problems-in-upgrading-ubuntu-10-04-to-10-10/

But I found another way which is much easier then the above one – a gui tool called ntfs-config

To install this tool, open a terminal and type the command:

sudo apt-get install ntfs-config

after that you can find this tool in the menu: system->administration->ntfs configuration tool

Continue reading