[Fedora-directory-users] DS Console from a remote machine?

Dominik Bay d.bay at cablesurf.de
Wed Feb 8 18:08:33 UTC 2006


Sorry raj for mailling this directly to you

Am 08.02.2006 um 18:38 schrieb Rajkumar S:

> Dominik Bay wrote:
>> Copy starconsole and java into one directory on your Workstation,  
>> set JAVA_HOME properly to the directory where the java binary and  
>> the libs are located. Then simply do a ./startconsole -a http....
>
> Thanks for the tip Dominik. It worked!

Nice to hear :-)

And for all the Mac OSX Users here:

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 
1.5.0/
cd ~/fedora-ds
./startconsole -u admin -a http://127.0.0.1:2341/

do the job :-)

Just fyi. JAVA_HOME=/usr/bin doesn't work, /usr/bin/java is a script.

And here is a diff for the startconsole script:

liliana:~/fedora-ds eimann$ diff -u startconsole.orig startconsole.new
--- startconsole.orig   2006-02-08 18:50:54.000000000 +0100
+++ startconsole.new    2006-02-08 18:51:44.000000000 +0100
@@ -31,7 +31,7 @@
#
# Make sure java exists and is executable
#
-if [ ! -f $JAVA_HOME/bin/java -a ! -x $JAVA_HOME/bin/java ]
+if [ ! -f $JAVA_HOME/Home/bin/java -a ! -x $JAVA_HOME/Home/bin/java ]
then
    echo "$0: The java program is not in your path, or is not  
executable."
    exit 1
@@ -40,8 +40,8 @@
#
# See if libjava and libjvm exist, and set the lib path.  These are  
linked to by JSS.
#
-LIBJAVA_DIR=`find $JAVA_HOME -name libjava\.s[ol] | sed 's/\/libjava 
\.s.$//'`
-LIBJVM_DIR=`find $JAVA_HOME -name libjvm\.s[ol] | sed 's/\/libjvm\.s. 
$//'`
+LIBJAVA_DIR=`find $JAVA_HOME -name libjava.jnilib`
+LIBJVM_DIR=`find $JAVA_HOME -name libjvm.dylib`
if [ -z "$LIBJAVA_DIR" -a -z "$LIBJVM_DIR" ]
then
@@ -69,4 +69,4 @@
#
# Launch the Console
#
-cd java; $JAVA_HOME/bin/java -ms8m -mx64m  -cp .:./base.jar:./ 
mcc10_en.jar:./jss3.jar:./ldapjdk.jar:./mcc10.jar:./nmclf10_en.jar:./ 
nmclf10.jar -Djava.library.path=../lib -Djava.util.prefs.systemRoot=.  
-Djava.util.prefs.userRoot=.  
com.netscape.management.client.console.Console $*
+cd java; $JAVA_HOME/Home/bin/java -ms8m -mx64m  -cp .:./base.jar:./ 
mcc10_en.jar:./jss3.jar:./ldapjdk.jar:./mcc10.jar:./nmclf10_en.jar:./ 
nmclf10.jar -Djava.library.path=../lib -Djava.util.prefs.systemRoot=.  
-Djava.util.prefs.userRoot=.  
com.netscape.management.client.console.Console $*

It's just quick and dirty, so please don't blame me ;-)

-- 
Mit freundlichen Grüßen / Kind regards

Dominik Bay
Cablesurf Technik



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Signierter Teil der Nachricht
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20060208/7faf2547/attachment.sig>


More information about the Fedora-directory-users mailing list