Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: jdamianb on August 26, 2013, 09:41:20 PM

Title: Package JAVA
Post by: jdamianb on August 26, 2013, 09:41:20 PM
Hi, now I'm taking another step on TC. I need to install Java JRE 6.0 to run my apps on TC. It was easy to install and to publish the JAVA_HOME and add it to path, I just extract the files and modified the /etc/profiles exporting JAVA_HOME and PATH.

Now I want to create a package which can be installed as a TCZ to extract the java files and to publish the JAVA_HOME. I succeeded to extract the files everytime I install the package I made, but I don't know how to get the JAVA_HOME created automatically. I'm using this method to create a package:

https://code.google.com/p/tcztools/

I don't know where to put a script that can create a file on /etc/profile.d so the JAVA_HOME get published.

Any ideas?

Thnks,
Title: Re: Package JAVA
Post by: tinypoodle on August 27, 2013, 04:45:40 AM
You could just add modified config files to your backup.
Title: Re: Package JAVA
Post by: Rich on August 27, 2013, 11:31:53 AM
Hi jdamianb
You can add a startup script under  usr/local/tce.installed  in your package. The name of the script will be the same
as the name of the package without the  .tcz  extension.