jevgenijsr's picture

Hi, how do I install Sun Java JRE 1.6.0 on a Turnkey Linux 12.0? I am interested in adding Java to the Redmine appliance downloaded from Turnkey, but can't get through... All I'm getting is "Unable to locate package" and "has no installation candidate" in different variations.

Please help! What is the working sequence of commands to get JRE on the appliance?

Forum: 
Eric (tssgery)'s picture

Since TKL 12.0 is based upon debian squeeze, you can foillow the same instructions as for Debian.

 

I found these instructions and they're pretty good: http://codetalk.code-kobold.de/?p=289

 

1) Edit /etc/apt/sources.list and add the "non-free" repository

2) Update apt so it sees the new packages

apt-get update

3) make sure that apt now sees the new packages

apt-cache search sun-java6

4) Install whatever packages you need

apt-get install sun-java6-bin sun-java6-jdk

5) Make sure that the system knows to use sun java instead of openjava

update-java-alternatives -s java-6-sun

6) Add JAVA_HOME environment variable if desired

jevgenijsr's picture

Thanks! That did work for me.


Add new comment