From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia
[edit] Install Sun Java (JRE) 1.5
| Code: Install tools required to download and build JRE
|
apt-get install java-package lynx
|
[edit] Get the Package (do this as a non-root user)
| Code: Get the package
|
lynx http://www.java.com/en/download/manual.jsp
# Accept the cookies
# Hit the down arrow key until you get to "Linux (self-extracting file and not the RPM)
# Hit the right arrow key to follow this link
# Press "D" for Download
# Hit the down arrow key until you highlight "Save to disk" - Press the right arrow key to follow the link
# Save to file "jre-1_5_0_06-linux-i586.bin"
# Press "Q" to exit lynx
|
[edit] Build the Debian package (do this as a non-root user)
| Code: Create the .deb package
|
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
|
Note: The make-jpkg script will not run as root. It will ask for a maintainer name and other info. Just press "Enter" to accept defaults or enter as you see fit.
Note: Warnings and directory not found errors should be ignored as long as the .deb package builds successfully.
[edit] Installing the Sun JRE Package (as root)
| Code: Install JRE
|
dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
ln -s /usr/lib/j2re1.5-sun/bin/keytool /etc/alternatives/keytool
ln -s /etc/alternatives/keytool /usr/bin/keytool
#Set JAVA_HOME for the current shell.
export JAVA_HOME=/usr/lib/j2sdk1.5-sun
|
| File: /etc/profile - Add JAVA_HOME environment variable
|
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X$
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
export JAVA_HOME=/usr/lib/j2sdk1.5-sun
|