Also I was playing with a chroot attempting to add different tools to it, and ran into some snags with these:
man
java
Basically there are some dependancies to those that my create_chroot_env script fails to find and add, has anyone else tried to and been successfull @ adding those to a chroot environment?
You can see a similar example of the create_chroot_env script I am using in the middle of this article:
http://www.howtoforge.com/chroot_ssh_sftp_debian_etchI am basically using that with some slight edits and adding more apps to the list.
It uses ldd to attempt to sort out dependancies and copy them into the chroot.
But sadly it fails to grab all the dependancies for java and some other things and im not sure why.
Possibly may need to do a: #strings <appname> | grep *.so or something to get a more complete depenancy listing?
Anyone with idea's to get a more full list of dependancies I would much appreciate the help.
Update:
For reference I have Sun Java SE 6 JDK/JRE installed, and I am not suffering from the problem listed here:
http://java.sun.com/javase/6/webnotes/#linuxgetconf _NPROCESSORS_CONF returns 1 (one processor) in my chroot which is correct for that pc.
Also it appears all the key files are located in: /usr/lib/jvm
But even if you link or copy them all into the chroot java still have some issues finding everything.
java -jar responds if you do this where as java -version fails it could not find libjava.so.