Installing and configuring FDS Console for Windows

See also:
http://directory.fedora.redhat.com/wiki/Howto:WindowsConsole

- at the FDS Server, create a /tmp/javalib.tar which contains all the files under java and lib directories beneath FDS root directory

# cd /opt/fedora-ds
# tar cvf /tmp/javalib.tar java lib

- at the Windows PC, install J2SDK 1.5.X on say c:\j2se directory

- insert c:\j2se\bin to the Windows system wide search path (Control Panel/System/…/Environment Variables)

- verify %PATH%, it should be something like:
c:\j2se\bin;c:\oracle\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\UltraEdit;C:\Program Files\Symantec\pcAnywhere\;C:\orant\bin;c:\cygwin\bin;C:\Reskit\

- verify java version, at C> prompt, type "java -version" and press return
C:\>java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

- create a C:\FDSConsole directory, you may name it anything you like, change to this directory

C:\FDSConsole>c:\putty\pscp gtay@sglnx01:/tmp/javalib.tar .
Using keyboard-interactive authentication.
Password:
javalib.tar               |       5710 kB | 815.7 kB/s | ETA: 00:00:00 | 100%

- use WinZip to unzip the javalib.tar and extract the files onto C:\FDSConsole

- create a FDSConsole.bat, it MUST BE placed in the directory of C:\FDSConsole\java, and contain:

java -ms8m -mx64m  -cp .\jss3.jar;.\ldapjdk.jar;.\fedora-base-1.0.jar;.\fedora-mcc-1.0.jar;.\fedora-mcc-1.0_en.jar;.\fedora-nmclf-1.0.jar;.\fedora-nmclf-1.0_en.jar -Djava.library.path=..\lib -Djava.util.prefs.systemRoot=. -Djava.util.prefs.userRoot=. com.netscape.management.client.console.Console -D -a http://

***Note***
In case you are wondering where these java parameters come from, they are very similar to the last line of /opt/fedora-ds/startconsole, "-D" is added for throwing debugging messages and "-a" is to specify an address.

java -ms8m -mx64m -cp ./java/jss3.jar:./java/ldapjdk.jar:./java/fedora-base-1.0.jar:./java/fedora-mcc-1.0.jar:./java/fedora-mcc-1.0_en.jar:./java/fedora-nmclf-1.0.jar:./java/fedora-nmclf-1.0_en.jar -Djava.library.path=./lib -Djava.util.prefs.systemRoot="$HOME/.fedora-console" -Djava.util.prefs.userRoot="$HOME/.fedora-console" com.netscape.management.client.console.Console $*

***

- create a shortcut at the Windows Desktop pointing to C:\FDSConsole\java\FDSConsole.bat

- That is all folks and enjoy!