Sunday, December 15, 2013

changing tomcat port from 8080 to 80

Advertisements

Tomcat by default runs on port 8080. How to make it  run on port 80? so that you don't have to specify :8080 along with the url. In this post we will see how to change the tomcat port from 8080 to 80 on Ubuntu Linux.

Open the tomcat mail configuration file server.xml. The path to this file may vary depending on your installation path and method.

#sudo vim /var/lib/tomcat7/conf/server.xml

Change the following line 

Installing eclipse kepler on ubuntu from tar source

Advertisements

Installing Eclipse Kepler in Ubuntu 12.04
First download the eclipse tar.gz package from http://www.eclipse.org/downloads/

We can do this from command line using wget also.

Make sure you downloaded the particular source for your system architecture. 32 bit or 64 bit.

keep the download in wherever you want the eclipse to install. In this example we are installing eclipse kepler on home directory of the user.

Thursday, December 12, 2013

converting ppk to pem in Ubuntu Linux

Advertisements

We have seen how to convert pem to ppk and how to convert ppk tp pem on windows systems. But how to do this on Linux? In this post we will see how this can be done in Linux command line. We will be using Ubuntu Linux in this example. We will be using the tool puttygen to do this.

Installing puttygen:
sudo apt-get install putty-tools

Converting pem to ppk
puttygen key.pem -o key.ppk

Converting ppk to pem
puttygen key.ppk -O private-openssh -o key.pem




Wednesday, December 11, 2013

Screen command in linux

Advertisements

I have wrote about screen command long back. But I'm writing it again because last few days I was fighting with network connectivity issues. screen is your best friend when you have a bad connection.

Why screen?
Suppose you are running a bash script. What if you lost connection in between? script fails.

How to use?
You can create a screen and run the script inside the screen. You can detach and attach to the  screen later whenever you want. Even if the connection fails between your remote server and laptop; the script will execute safe inside screen.