<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks!<br>
This information has been added to
<a class="moz-txt-link-freetext" href="http://directory.fedora.redhat.com/wiki/Howto:WindowsConsole">http://directory.fedora.redhat.com/wiki/Howto:WindowsConsole</a><br>
<br>
Tay, Gary wrote:
<blockquote
 cite="midA04B6AE6ED3BD742B64D5B17093F64E201414896@IMSSGPX01.ims.mhm.mhc"
 type="cite">
  <pre wrap="">FDS User Folks,

I have written a script to help to create a "startconsole.bat".

You have to run this script at RedHat server, it expects a "startconsole.txt" which is the output of RedHat "startconsole -D" command, and it generates "startconsole.bat".

You should edit "/opt/fedora-ds" in this script to reflect the FDS root directory of your installation.

You should edit also "ldap1.example.com" in this script to suit your need and copy "startconsole.bat" over to c:\fedora\java.

"startconsole.bat" should be run after "cd c:\fedora\java".

Content if "startconsole.txt"

/opt/fedora-ds/bin/base/jre/bin/java -ms8m -mx64m  -cp .:./mcc70_en.jar:./nmclf70_en.jar:./ldapjdk.jar:./mcc70.jar:./base.jar:./nmclf70.jar:./jss3.jar -Djava.library.path=/opt/fedora-ds/lib/jss  -Djava.util.prefs.systemRoot=/opt/fedora-ds/java/.java -Djava.util.prefs.userRoot=/opt/fedora-ds/java com.netscape.management.client.console.Console -D  -A <a class="moz-txt-link-freetext" href="http://ldap1.example.com:38900">http://ldap1.example.com:38900</a>

Content of "cr_startconsole_bat.sh"

#! /bin/sh
#
# cr_startconsole_bat.sh
#
# input: startconsole.txt
# output: startconsole.bat
#
sed -e 's/\/opt\/fedora-ds\/bin\/base\/jre\/bin\///' \
    -e 's/\/opt\/fedora-ds\/java/./g' \
    -e 's/\/opt\/fedora-ds\/lib/..\\lib/g' \
    -e 's/:/;/g' \
    -e 's/\//\\/g' \
    -e 's/http;\\\\/<a class="moz-txt-link-freetext" href="http:\/\//">http:\/\//</a>' \
    -e 's/ldap1.example.com;/ldap1.example.com:/' \
    startconsole.txt > startconsole.bat

Content of "startconsole.bat" generated by running "cr_startconsole_bat.sh"

java -ms8m -mx64m  -cp .;.\mcc70_en.jar;.\nmclf70_en.jar;.\ldapjdk.jar;.\mcc70.jar;.\base.jar;.\nmclf70.jar;.\jss3.jar -Djava.library.path=..\lib\jss 
      -Djava.util.prefs.systemRoot=.\.java -Djava.util.prefs.userRoot=. com.netscape.management.client.console.Console -D  -A <a class="moz-txt-link-freetext" href="http://ldap1.example.com:38900">http://ldap1.example.com:38900</a>


Enjoys.

Rgds
Gary


-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:fedora-directory-users-bounces@redhat.com">fedora-directory-users-bounces@redhat.com</a> [<a class="moz-txt-link-freetext" href="mailto:fedora-directory-users-bounces@redhat.com">mailto:fedora-directory-users-bounces@redhat.com</a>] On Behalf Of Sam Tran
Sent: Wednesday, July 06, 2005 9:47 PM
To: General discussion list for the Fedora Directory server project.
Subject: Re: [Fedora-directory-users] Open-source Management Console and Adminserver


On 7/6/05, Thierry Lanfranchi <a class="moz-txt-link-rfc2396E" href="mailto:thierry.lanfranchi@wanadoo.fr"><thierry.lanfranchi@wanadoo.fr></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> Sam Tran a écrit :
 On 7/5/05, <a class="moz-txt-link-abbreviated" href="mailto:uffe@loop.to">uffe@loop.to</a> <a class="moz-txt-link-rfc2396E" href="mailto:uffe@loop.to"><uffe@loop.to></a> wrote:
 
 
 Rich Megginson wrote:

 
 
 Sam Tran wrote:

 
 
 On 7/5/05, Rich Megginson <a class="moz-txt-link-rfc2396E" href="mailto:rmeggins@redhat.com"><rmeggins@redhat.com></a> wrote:


 
 
 Sam Tran wrote:



 
 
 Hi,

When are you planning to release the management console and admin 
server source code?




 
 Probably before the end of the year. We can't yet provide dates.



 
 Rich,

Are you planning to have a Windows version of the management console? 
It would be really convenient for admins who have a Windows box.


 
 I don't know if we will have an "officially supported version" for 
Windows, but you will be able to run it on Windows. You can run it 
right now if you know the java class and arguments - it's just a 
java/swing application. The startconsole binary just sets up the 
environment, classpath, ld library path, etc. then invokes java.
 
 Sam,
with only a little more hassle one can build or download the Win32 
bits of JSS, NSS and NSPR from mozilla.org and get SSL going too. 
Those are the only native parts of the Console besides the 
startconsole wrapper. That will allow your Console to connect to the 
Admin Server via https and the Directory Server via ldaps. It'll also 
be less fussy when creating ldaps replication agreements.

Launch the Console in debug mode with "startconsole -D" to see how to 
invoke java to get the Console to run.

 
 Thanks Rich and Uffe for your help.

It would be nice to have a HOWTO for that.

Sam

--
Fedora-directory-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a>


 
 Hi,
 
 This is how I proceeded to get the console working under Windows :
 
 * made a c:\fedora directory on my windows box and copied 
/opt/fedora-ds/java and /opt/fedora-ds/lib from red hat box to windows 
box
 * started console on the red hat box with the -D command line option like
Rich recommended, and obtained the full command line
 * created a .BAT in my c:\fedora\java directory on the windows box
 
 edited the .BAT to :
 * modify the path to the java executable
 * replace ':' in the -cp option with ';'
 * replace the / in the pathes with \ (except for the admin server 
url)
 
 I obtained a .BAT with that line (might be split into several lines 
by my mail client, but it's a single command line):  java -ms8m -mx64m  
-cp 
.;.\nmclf70.jar;.\base.jar;.\ldapjdk.jar;.\mcc70.jar;.\nmclf70_en.jar;
.\mcc70_en.jar;.\jss3.jar
-Djava.library.path=..\lib\jss 
-Djava.util.prefs.systemRoot=.\.java
-Djava.util.prefs.userRoot=.
com.netscape.management.client.console.Console -D  -A
<a class="moz-txt-link-freetext" href="http://myserver:55456">http://myserver:55456</a>
 
 (java executable is in my path and the .bat is ran from the 
c:\fedora\java
directory)
 
 working great so far
 
 Thierry
 
 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Fantastic Thierry!

Merci. ;)

Sam

--
Fedora-directory-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a> <a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a>

--
Fedora-directory-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a>
  </pre>
</blockquote>
</body>
</html>