- Get java from http://java.sun.com/javase/downloads/index.jsp, install JRE self extracting file jre-6u3-linux-i586.bin into the root of the linux system, then follow these command from the linux system
- mkdir /java
- mv /jre-6u3-linux-i586.bin /java/
- cd /java
- chmod 555 jre-6u3-linux-i586.bin
- ./jre-6u3-linux-i586.bin
- rm jre-6u3-linux-i586.bin
- Setup Java environment variables
- cd ~
- nano .bash_profile
- add lines
JAVA_HOME=/java/jre1.6.0_03
export JAVA_HOME
JAVAHOME=/java/jre1.6.0_03
export JAVAHOME - lower down, change from
PATH=$PATH:$HOME/bin
to
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin - exit nano, exit shell, and restart shell to get new environment set up
- Download tomcat 6.0.14 from http://tomcat.apache.org/download-60.cgi#6.0.14 to the root of your linux system as apache-tomcat-6.0.14.tar.gz, and follow these commands to install it
- mkdir /tomcat
- cd /tomcat
- mv /apache-tomcat-6.0.14.tar.gz .
- gunzip -c apache-tomcat-6.0.14.tar.gz | tar xopf –
- rm apache-tomcat-6.0.14.tar.gz
- Setup environment variables for tomcat
- cd ~
- nano .bash_profile
- add lines
CATALINA_HOME=/tomcat/apache-tomcat-6.0.14
export CATALINA_HOME - exit nano, exit shell, and restart shell to get new environment set up
- Test that tomcat is working.
- cd ~CATALINA_HOME/bin
- ./startup.sh
- From browser, verify that http://your-web-domain-address:8080/ returns the default tomcat page
- Change tomcat to run on port 80 instead of 8080
- cd $CATALINA_HOME
- cp conf/server.xml conf/server.xml.original
- nano conf/server.xml
- replace all 8080 with 80, then exit and save
- bin/shutdown.sh
- bin/startup.sh
- From browser, verify that http://your-web-domain-address/ returns the default tomcat page
- Setup manager for Tomcat
- nano $CATALINA_HOME/conf/tomcat-users.xml
- add this user
<tomcat-users>
<role rolename="standard"/>
<role rolename="manager"/>
<user username="managername" password="managerpwd" roles="standard,manager"/>
</tomcat-users>
replace managername and managerpwd with your real, super-duper top-secret values - restart tomcat
$CATALINA_HOME/bin/shutdown.sh
$CATALINA_HOME/bin/shutdown.sh
Tuesday, November 27, 2007
Installing Java and Tomcat (without apache) on base Linux system (Amazon EC2 Fedora Core 4 image)
For YIQYAQ we're running Tomcat as the web server, on basic Linux Fedore Core 4 images at Amazon EC2. These are the steps taken to install Java and Tomcat on those systems and get it running. I'm not much of a Linux, Java, or Tomcat expert, so I can't say these are the best steps to take, only that they're what I did and they seem to work.
Installing ImageMagick with JPEG and PNG Support
ImageMagick is a set of command-line tools for manipulating image files. By default it supports GIF but not the other command interweb formats of JPG (JPEG) and PNG. These are the steps I followed to install ImageMagick on an Amazon EC2 Fedora core-4 Linux image.
This process is also described at Installing ImageMagick with JPEG, TIFF and PNG Support, but I had some problems with a couple of the commands there, it was using files older than the current, and it included TIFF support which I don't expect to be using.
The first step was to get the required source files for each of the components required. These are the files I retrieved, and the web addresses were I retrieved them. (Note, the exact version numbers change over time.) Each of the .tar.gz files I downloaded and copied to the /usr/local/src directory of my EC2 linux system.
This process is also described at Installing ImageMagick with JPEG, TIFF and PNG Support, but I had some problems with a couple of the commands there, it was using files older than the current, and it included TIFF support which I don't expect to be using.
The first step was to get the required source files for each of the components required. These are the files I retrieved, and the web addresses were I retrieved them. (Note, the exact version numbers change over time.) Each of the .tar.gz files I downloaded and copied to the /usr/local/src directory of my EC2 linux system.
- ImageMagick.tar.gz from http://imagemagick.org/script/install-source.php#unix
- libpng-1.2.23.tar.gz from http://libpng.org/pub/png/libpng.html
- jpegsrc.v6b.tar.gz from http://www.ijg.org/files/
- zlib-1.2.3.tar.gz from http://www.zlib.net/
- cd /usr/local/src
- gunzip -c zlib-1.2.3.tar.gz | tar xvf -
- rm zlib-1.2.3.tar.gz
- cd zlib-1.2.3
- ./configure
- make
- make install
- cd /usr/local/src
- gunzip -c libpng-1.2.23.tar.gz | tar xvf -
- rm libpng-1.2.23.tar.gz
- cd libpng-1.2.23
- ./configure
- make
- make install
- cd /usr/local/src
- gunzip -c jpegsrc.v6b.tar.gz | tar xvf -
- rm jpegsrc.v6b.tar.gz
- cd jpeg-6b
- ./configure --enable-shared
- make
- make install
[may need to create man directories] - cd /usr/local/src
- gunzip -c ImageMagick.tar.gz | tar xvf -
- rm ImageMagick.tar.gz
- cd ImageMagick-6.3.7
- ./configure
[verify that jpeg and png are on] - make
- make install
- cd /
- identify –list Format
[verify that jpeg and png are on] - convert logo: logo.gif
- convert logo: logo.jpg
- convert logo: logo.png
[verify with separate viewer that this images are all OK]
Installing GCC on Amazon EC2 fedora core 4 base
I'm using the ec2-public-images/fedora-core4-base.manifest.xml image on Amazon's EC2 system. (I don't know how this differs from the develop-image.manifest.xml, but wanted to start with something as basic as possible).
This image comes without a GCC compiler. There's almost nothing you can make out of Linux without a compiler.
Adding a compiler is a piece of cake with this command
This image comes without a GCC compiler. There's almost nothing you can make out of Linux without a compiler.
Adding a compiler is a piece of cake with this command
- yum install gcc
Subscribe to:
Posts (Atom)