Alright this is a review. An l-user's review (ugh! l - linux )
I do not own the trademark Fedora which belongs to Redhat .. blah blah blah..
The first cut review of the desktop of Fedora Core 3 from an average Java Developer's perspective.
Sitting on a borrowed desktop this weekend. This is sure making me jealous. A 64 bit AMD machine with a 32 bit version of Fedora Core 3 running on it. With TFT display and Bose speakers.
Fedora Core 3 seems to have finally made it to the stability level of say a RH 9 or a RH 7.3 or a patched and updated Mandrake 10.
I log into the default desktop (GNOME.. nah! I am a KDE user).
Get myself the customary(!) sudo access to root shell. Open a nice looking terminal by right clicking on the desktop and
#cat /etc/redhat-release
Fedora Core release 3 (Heidelberg)
I wish debian based distro's start using the above convention too. ( don't pick up the chainsaw yet)
$java -version
java version "1.4.2"
jdkgcj 0.3.1 (http://www.arklinux.org/projects/jdkgcj)
gcj (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Its finally there. Despite this notice of non-fitness I suspect it can be usable.
$javac -version
Eclipse Java Compiler 0.319_R21x, Copyright IBM Corp 2000-2003. All rights reserved.
This looks promising. Will I have a fully Open Source Java stack now.
( for the FSF-ish types .. would I be less sinful now .. but I still develop/help develop proprietary software )
#locate tomcat
#which ant
Hey! where's tomcat and ant. Thats cheating FC2 had them.
Alright lets get it installed.
Clicked on the blue globe with mouse icon ( my Mozilla .. )
And thus opened up Mozilla Firefox 1.0.
The htmlview %u script which is the icon on desktop's for the browser has changed finally to firefox. FC3++.
Download Ant
cd $HOME ( Firefox promised me it downloads the stuff on Desktop by default but it seems to have dumped it on $HOME).
Clicked it on it again to download it. Saves apache-ant-2.6.2-bin.tar.gz for me in the $HOME.
Does it look like a new bug. If they are still offering money for finding bugs you may want to report it.
$md5sum apache-ant-1.6.2-bin.tar.gz
Look it up on the Apache's Main Site.
$sudo -s
#su -
( Getting my root shell with environment )
#cd /usr/local
#tar -zxvf ~tarundua/apache-ant-1.6.2-bin.tar.gz
#ln -s apache-ant-1.6.2 ant
#echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/rc.local
#source /etc/rc.local
#which ant
/usr/local/ant/bin/ant
Thats it.
Download Tomcat 5.5.4. Compare the md5sum.
#tar -zxvf ~tarundua/jakarta-tomcat-5.5.4.tar.gz
#ln -s jakarta-tomcat-5.5.4 tomcat
#echo 'export CATALINA_HOME=/usr/local/tomcat' >> /etc/rc.local
#echo 'export PATH=$PATH:$CATALINA_HOME/bin' >> /etc/rc.local
#source /etc/rc.local
#catalina.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
#export JAVA_HOME=/usr
#catalina.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Time to install the "non-free" JDK.
A different point GCJ based Tomcat in Fedora - avoid it
To complete the setup. Download JDK for Linux from sun's site. Install it in /usr/local and create a symbolic link java to the installed directory and export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
Note the use of $JAVA_HOME/bin before $PATH to help avoid the pre-installed JVM.

I used this as a guide: worked perfectly, but...
...when I close the terminal and open it again, catalina is running, but 'java' points back to gcj and JAVA_HOME, CATALINA_HOME is unset. Also, you didn't establish these things as services. How do you do that?
I'm new to Java/Linux, as you can tell.
TIA!
Add these to /etc/profile
Edit your /etc/profile and check if you have
export JAVA_HOME=/usr/local/java
export CATALINA_HOME=/usr/local/tomcat
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
Also note that these environment variables are automatically loaded after the reboot.
#source /etc/profile
Better yet add it to your .bash_profile ( if you are using bash )
Some OS'es use /etc/rc.d/rc.local instead of /etc/rc.local
/etc/profile
what makes the difference when i add the Enviroinmental Variables in .bash_profile and /etc/profile
debian_version
Instead of redhat-release, debian follows another convention which is /etc/debian_version file
How to determine which distribution
Easiest newbie way IMHO to determine which distribution you are using is to install webmin and find out. It should detect most installs.
easiest way for me is
easiest way for me is
less /etc/*release*
or
uname -r
if the kernel from the distribution is used
Post new comment