|
|
setting DISPLAY variable
Hi,
My requirement is the command below
export DISPLAY=<IP Address>:0.0
I have to set the IP Address to local windows environment while
connecting remotely to UNIX box.
I am aware that I can get the IP address of local machine using
ipconfig command from windows or using nslookup from unix box......
Since I am too lazy....is there a way to type some generic command on
unix to get the IP address of local machine from which I connect to
UNIX box?
Mehaboob
|
|
0
|
|
|
|
Reply
|
mehaboob
|
6/5/2006 4:06:48 PM |
|
In article <1149523608.524561.304460@c74g2000cwc.googlegroups.com>,
mehaboob@gmail.com wrote:
> Hi,
>
> My requirement is the command below
>
> export DISPLAY=<IP Address>:0.0
>
> I have to set the IP Address to local windows environment while
> connecting remotely to UNIX box.
>
> I am aware that I can get the IP address of local machine using
> ipconfig command from windows or using nslookup from unix box......
>
> Since I am too lazy....is there a way to type some generic command on
> unix to get the IP address of local machine from which I connect to
> UNIX box?
You can try something like:
export DISPLAY=$(who -m -R | awk -F '[()]' '{print $2}'):0.0
Kevin
--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com
|
|
0
|
|
|
|
Reply
|
Kevin
|
6/5/2006 9:04:25 PM
|
|
Thanks Kevin.
Kevin Collins wrote:
> In article <1149523608.524561.304460@c74g2000cwc.googlegroups.com>,
> mehaboob@gmail.com wrote:
> > Hi,
> >
> > My requirement is the command below
> >
> > export DISPLAY=<IP Address>:0.0
> >
> > I have to set the IP Address to local windows environment while
> > connecting remotely to UNIX box.
> >
> > I am aware that I can get the IP address of local machine using
> > ipconfig command from windows or using nslookup from unix box......
> >
> > Since I am too lazy....is there a way to type some generic command on
> > unix to get the IP address of local machine from which I connect to
> > UNIX box?
>
> You can try something like:
>
> export DISPLAY=$(who -m -R | awk -F '[()]' '{print $2}'):0.0
>
> Kevin
> --
> Unix Guy Consulting, LLC
> Unix and Linux Automation, Shell, Perl and CGI scripting
> http://www.unix-guy.com
|
|
0
|
|
|
|
Reply
|
mehaboob
|
6/6/2006 2:07:19 PM
|
|
|
2 Replies
473 Views
(page loaded in 2.439 seconds)
Similiar Articles: setting DISPLAY variable - comp.sys.hp.hpuxHi, My requirement is the command below export DISPLAY=:0.0 I have to set the IP Address to local windows environment while connecting remotely to ... ssh DISPLAY variable not set - comp.unix.solarisHI, I have just upgraded a sefrver from S9 04/03 to 09/04 and now I had two wierd problems of one is solved(/tmp with wrong permission), the second ... Setting Environment Variable for ssh ForwardX11 Session - comp ...ssh DISPLAY variable not set - comp.unix.solaris Setting Environment Variable for ssh ForwardX11 Session - comp ... ssh, X11 forwarding, xhost and setenv DISPLAY - comp ... VNC setup and exporting DISPLAY - comp.unix.solarisGood morning; I have installed VNC 3.3.3.2 on a Sun Ultra-80 running Solaris 5.8 at 108528-29. I can export my DISPLAY env variable to that specified... How to set DISPLAY env. in script. - comp.sys.sun.adminXYZ xyz > mysource source mysource But after the running of the script, the env XYZ ... setting DISPLAY variable - comp.sys.hp.hpux ssh, X11 forwarding, xhost and setenv ... Question about setting environment variables for ssh remote ...setting DISPLAY variable - comp.sys.hp.hpux Question about setting environment variables for ssh remote ... ssh DISPLAY variable not set - comp.unix.solaris how to set ... ssh, X11 forwarding, xhost and setenv DISPLAY - comp.unix.solaris ...At the linux box or mac I do > an "xhost <solaris box>" and then set my DISPLAY variable to point > directly to that location. But it still is not allowed. how to set environment variable in solaris 10 - comp.unix.solaris ...setting DISPLAY variable - comp.sys.hp.hpux how to set environment variable in solaris 10 - comp.unix.solaris ... setting DISPLAY variable - comp.sys.hp.hpux how to set ... ssh x11 forwarding - comp.security.unixIf it was, your DISPLAY variable would be set for you (and, in fact, that's the only way you can be sure that the DISPLAY variable is correct). Warning: No display specified. You will not be able to display ...You will not be able to display graphics on the screen." whereas all is fine when I run it from the console. I tried to set the DISPLAY environment variable in the ... How do I set the DISPLAY variable on Linux - Powered By Kayako ...Solution Using Linux, and especially configuring Linux, normally require some insight, and we strongly suggest (to inexperienced linux users) to get some help from a ... Setting the DISPLAY Variable - San Francisco State UniversityThe Problem Many Unix applications need to open additional windows, generally for graphics. They use the environmental variable DISPLAY to tell them on what computer ... 7/21/2012 4:49:16 AM
|
|
|
|
|
|
|
|
|