RE: Set an environment variable for an app.

2012-05-22 Thread Philip Herlihy
I'm extremely rusty with all things Unix, and I've never played with Linux,
but this might help.

https://www.ccs.uky.edu/docs/cluster/env.html

Philip Herlihy   
Email:   phi...@herlihy.eu.com   

-Original Message-
From: vnc-list-boun...@realvnc.com [mailto:vnc-list-boun...@realvnc.com] On
Behalf Of Karen Thompson
Sent: 21 May 2012 20:41
To: vnc-list@realvnc.com
Subject: Set an environment variable for an app.

Hi, 
I need to set an environemt variable for a program running via
vncviewer.  It requires a env. variable JAVA_HOME=/usr/java/jre1.6.0_31.  I
have tried looking up on the web for hours and have had no luck.  I am sure
this is something very easy, if I just knew how.

Thanks,

Karen


___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list




___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


Re: Set an environment variable for an app.

2012-05-22 Thread Mike Miller

On Mon, 21 May 2012, Karen Thompson wrote:

I need to set an environemt variable for a program running via 
vncviewer.  It requires a env. variable JAVA_HOME=/usr/java/jre1.6.0_31. 
I have tried looking up on the web for hours and have had no luck.  I am 
sure this is something very easy, if I just knew how.



I would think that you could just add it to the ~/.vnc/xstartup file just 
after the first line (the first line is typically #!/bin/sh without the 
quotes):


export JAVA_HOME=/usr/java/jre1.6.0_31

(I removed a period from the end of that line assuming it wasn't meant to 
be part of the line.)


Mike

___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list


Re: Set an environment variable for an app.

2012-05-22 Thread Adrian Phillips
 Karen == Karen Thompson kthomp...@triumphenergy.com writes:

Karen Hi, I need to set an environemt variable for a program
Karen running via vncviewer.  It requires a env. variable
Karen JAVA_HOME=/usr/java/jre1.6.0_31.  I have tried looking up
Karen on the web for hours and have had no luck.  I am sure this
Karen is something very easy, if I just knew how.

man vncserver :-

   $HOME/.vnc/xstartup A shell script specifying X applications to
  be run when a VNC desktop is started.  If it doesn't
  exist, vncserver will create a new one which runs a
  couple of basic applications.

Specify whatever you want in there (its just a shell script).

Sincerely,

Adrian Phillips

-- 
Perl hacker | Ubuntu user
Skype: adrianp-mobile   | Fring: 4790594804

___
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list