[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
>>> bfancher at bham dot lib dot al dot us 6/28/2006 3:04:38 PM >>>
I am not married to using the milup142_08.bin, but I am not certain how
to launch a millennium session by just using java.
<<<

Here's how we run Millennium on Linux (and Mac OS X). On Linux, we are running against the last version of 1.4.2_12 for Linux. On Mac OS X, I'm running it against 1.5.0_06.

Create a directory:
/usr/share/millennium

Place these three files in that directory:
iiirunner.jar - copied from an initial install atttempt of the client
iiirunner.png - created from the iiirunner.ico file
mil - shell script that takes the place of iiirunner.lax

All three should be world or group readable. The mil script needs to be executable to the same. None should be writable.

Here's the contents of the mil batch file. It checks the current user's directories to make sure the ones that Millennium uses exist. If not it creates them. There's no error checking, so if the directories exist and aren't writable or if they cannot be created, Millennium won't launch without any explanation. Edit to fit your local situation.

#!/bin/tcsh
if !(-e ~/Millennium/jardir && -d ~/Millennium/jardir) then
if !(-e ~/Millennium && -d ~/Millennium) then
mkdir ~/Millennium
mkdir ~/Millennium/jardir
else
mkdir ~/Millennium/jardir
endif
endif
cd ~/Millennium
java -classpath ./:/usr/share/millennium/iiirunner.jar iiirunner ip=our.innopac.edu port=2000 workdir=./

Then you create an shortcut in your window manager of choice that just points to the mil script. Users then click on it and away you go. The iiirunner.png is just there to put an icon on the shortcut (KDE uses png files).

As we automatically log in at the Circ Desk, we add " username=xxxxxxx password=xxxxxxx initials=xxxxxxx initpass=xxxxxxxx" at the end of the command line.

HTH,
David


_____________________________________________________________________
David Jones mailto:djones at scu dot edu
Library Systems Manager http://www.scu.edu/library/
University Library fax: 408-551-1805
Santa Clara University phone: 408-551-7167
500 El Camino Real
Santa Clara CA 95053-0500
_____________________________________________________________________
Reality is that which, when you stop believing in it, doesn't go away.
-- Philip K. Dick