Hi,
We have sucessfully set up DSpace on a Linux box which uses a bash shell (I
think). To talk to it we use an SSH client Putty, from a Windows OS to
securely get access to the remote computer (Linux).
So when we open putty in Windows we get this black screen. Before we can
talk to the linux box to run any commands, some environment varibales
including the one that Kenza mentioned must be loaded. They are presently
stored in a file /usr/dspace_config.txt as
export JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
export JSSE_HOME=$JAVA_HOME/jre/lib
......plus some others
To run this file, in putty, we use the command 'source' [filename] : this
loads all of our environment variables for us. But once putty is closed the
environment variables are lost and so must be loaded again the next time
putty is opened.
Where are these varibles set? Are they set on the linux box or are they set
on the connection between putty and linux?
Why are they erased so that they must be reset everytime Putty opens? I am
looking for a way to load them once and for all.
-----Original Message-----
From: Jason Simms [mailto:***@utk.edu]
Sent: Thursday, June 24, 2004 11:04 AM
To: sadik kenza
Cc: dspace-***@lists.sourceforge.net
Subject: Re: [Dspace-tech] environment variable for dspace
Kenza,
This question does not have an immediate answer, because the correct
answer is "it depends." Environment variables are handles differently
depending on which shell you are running. So, for instance, bash is
different the tcsh; although the concepts are the same, the syntax will
vary. For bash, such variables are often placed in .bashrc, but you
can also put them in shell scripts, etc. depending on your needs. A
safe bet would be to look for a file in the user's home directory the
contains the PATH variable, examine its syntax, and then recreate it
for JAVA_OPTS. It should also be similar to how JAVA_HOME is handled,
etc.
--
Jason Simms
Computer Programming and Design
University of Tennessee, Knoxville
865.974.8508
Post by sadik kenzaHello
JAVA_OPTS="-Wmx512M -Xms64M -Dfile.encoding=UTF-8"
thanks
Kenza
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger
!Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
DSpace-tech mailing list
https://lists.sourceforge.net/lists/listinfo/dspace-tech
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com