# Building im_server on NT using gnu

1. Setting up Cygnus environment
   Cygnus's cygwin-b20 is a direct port of GNU tools onto Win32, gcc, g++, gas, gld and others.
2. Setting up Samba server on your solaris machine
   Samba is an open source software suite that provides seamless file and print services to SMB/CIFS clients.
3. Building the server
4. Running the server

## Setting up Cygnus environment :

- Install cygnus-b20.
  You can download the installation package from ftp://sourceware.cygnus.com/pub/cygwin/cygwin-b20/full.exe
  or
  can get it from /net/edelweiss/export/home/rkumar/cygnus, if you can access it.

  Just run full.exe to install it on NT.

- Since the Makefiles of SDK source use /bin/sh (with absolute path),
  1. create a link to /bin.
  2. cd /
  3. ln -s /cygnus/cygwin-b20/H-i586-cygwin32/bin /bin

## Setting up Samba server on your solaris machine

- Install the Samba packages.
  You can download the packages from http://us1.samba.org/samba/download.html
  or
  You can get it from /net/edelweiss/export/home/rkumar/samba

  The archive contains the following packages :

  1. SAMBAman
  2. SAMBAroot
  3. SAMBAwatu
  4. SAMBAusr
  5. SAMBAwatr
  Install all the above packages in your system.
- Export your directory to NTFS.
  You need to run samba administor tool (swat) now.
  Open your browser and point to http://localhost:901 where localhost is your hostname.

  Enter the root password at the prompt. You can change the admin password later.

  Configure the GLOBAL and SHARES as follows : GLOBAL :

  WORKGROUP : | your workgroup

This should be whatever workgroup you are in. GPE in Eng domain.
secutiry : SHARE
encrypt passwords : Yes
update encrypted : Yes
os level : 65 (highest)
local master : Yes

SHARES:

- Create a new share name.
- Specify the directory you want to export in the subsequent screen.

Go to STATUS option :

- And restart nmbd and smbd.

You should now be able to access the above directory from your NT machine. under Network Neighborhood.

## Building the htt_server.

- Bringup a Cygwin B20 terminal.
  Double click on the "cygnus" under cygwin-b20 directory.
- Mount your unix directory to a mount point.
  (say
- /mnt
)
- cd to /mnt/ and go to the sdk1.2's src/server directory.
- Configure for build.
  /bin/sh configure
- At this moment, you have build each of the following modules. That means changing to the directory and doing a make there.
  - src/server/lib/IMdkit
  - src/server/lib/LE_Interface
  - src/server/programs/im_server
  - src/server/programs/language_engines/sampleja
- Type make all in each of the above directories.

## Running htt_server

- Since we don't have install script yet,
  copy the sampleja.dll created under src/server/programs/language_engines/sampleja to D:\\winnt\system32\iiimf
- Start htt_server from src/server/programs/im_server

Sun Microsystems, Inc. Confidential