<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatically set DISPLAY Variable ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370017#M195486</link>
    <description>I am using the who -um in .profile for the user. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  export DISPLAY=`who -um | awk '{print $NF}'`:0&lt;BR /&gt;echo "DISPLAY is set for $DISPLAY"&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Sep 2004 10:01:26 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2004-09-01T10:01:26Z</dc:date>
    <item>
      <title>Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370014#M195483</link>
      <description>I used rlogin for remote login. Each time i could type in the display variable value.&lt;BR /&gt;&lt;BR /&gt;With ssh i know how it works:&lt;BR /&gt;&lt;BR /&gt;ssh -X user@host&lt;BR /&gt;&lt;BR /&gt;Do anyone know how it works with rlogin ?&lt;BR /&gt;&lt;BR /&gt;Rene</description>
      <pubDate>Wed, 01 Sep 2004 09:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370014#M195483</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2004-09-01T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370015#M195484</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;You can add this to your .profile: -&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=`who -ma | awk '{print $8}'`:0</description>
      <pubDate>Wed, 01 Sep 2004 09:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370015#M195484</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-09-01T09:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370016#M195485</link>
      <description>Rene,&lt;BR /&gt;&lt;BR /&gt;We avoid the problem entirely by using remsh:&lt;BR /&gt;&lt;BR /&gt;remsh &lt;HOSTNAME&gt; -n /usr/bin/X11/hpterm -display $DISPLAY -ls -title $1 -n $1 -s&lt;BR /&gt;b -sl 500 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 01 Sep 2004 09:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370016#M195485</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-09-01T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370017#M195486</link>
      <description>I am using the who -um in .profile for the user. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  export DISPLAY=`who -um | awk '{print $NF}'`:0&lt;BR /&gt;echo "DISPLAY is set for $DISPLAY"&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2004 10:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370017#M195486</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-09-01T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370018#M195487</link>
      <description>I login with Exceed from a windows machine !&lt;BR /&gt;hostname: pc14-c803&lt;BR /&gt;&lt;BR /&gt;When i log on an other server machine via the unix server the host name of the server is set to the display variable an not the variable from the windows machine !&lt;BR /&gt;&lt;BR /&gt;How can i set a display variable on a remote machine like the display variable on the local machine ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rene</description>
      <pubDate>Thu, 02 Sep 2004 03:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370018#M195487</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2004-09-02T03:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370019#M195488</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;Edit your .profile and add the following line:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=$(/etc/ping $(who -muR | awk '{print $NF}') -n 1 | grep icmp | aw&lt;BR /&gt;k '{print $4}')0.0&lt;BR /&gt;&lt;BR /&gt;MB.</description>
      <pubDate>Thu, 02 Sep 2004 03:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370019#M195488</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2004-09-02T03:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370020#M195489</link>
      <description>There is a problem when using who command with -R&lt;BR /&gt;&lt;BR /&gt;-R is used to print hostname&lt;BR /&gt;&lt;BR /&gt;When ever your IP-Address get's resolved then only hostname will be in the who -am output&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;-- /etc/hosts --&lt;BR /&gt;ip-address test.test.com test &lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;&lt;BR /&gt;If you login as ,&lt;BR /&gt;&lt;BR /&gt;telent test&lt;BR /&gt;login/passwd&lt;BR /&gt;&lt;BR /&gt;check the who -am output now,&lt;BR /&gt;&lt;BR /&gt;it will be as test.test.com not with ip-address.&lt;BR /&gt;&lt;BR /&gt;Display value will get problem when using xterm there.&lt;BR /&gt;&lt;BR /&gt;So try to change as,&lt;BR /&gt;&lt;BR /&gt;IP=$(getip `who -am | awk '{ print $8 }'`)&lt;BR /&gt;DISPLAY=$(echo $IP:0)&lt;BR /&gt;export $DISPLAY&lt;BR /&gt;&lt;BR /&gt;on .profile file.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu</description>
      <pubDate>Thu, 02 Sep 2004 03:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370020#M195489</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-02T03:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370021#M195490</link>
      <description>Muthu,&lt;BR /&gt;&lt;BR /&gt;Thats's why the ping command is involved.&lt;BR /&gt;&lt;BR /&gt;MB.</description>
      <pubDate>Thu, 02 Sep 2004 04:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370021#M195490</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2004-09-02T04:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370022#M195491</link>
      <description>Setting the display variable works, but the X11Forwarding doesnÂ´t work !&lt;BR /&gt;&lt;BR /&gt;When you lo in you were asked typing in Display Variable ! What system script is that ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;re</description>
      <pubDate>Thu, 02 Sep 2004 04:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370022#M195491</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2004-09-02T04:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370023#M195492</link>
      <description>We have to set DISPLAY variable so that we can start the display on remote machine's shell. &lt;BR /&gt;&lt;BR /&gt;The discussion between me / marcel are based who command. We are getting IP-Address over from there. when ever it's IP-Address resolved then only hostname will come.&lt;BR /&gt;&lt;BR /&gt;Problem is, if we set DISPLAY with hostname then x-windows won't run. It will make problem. So that we can use getip or ping to get ip-address&lt;BR /&gt;&lt;BR /&gt;Remote shell testing.&lt;BR /&gt;&lt;BR /&gt;machine1 --&amp;gt; machine2&lt;BR /&gt;&lt;BR /&gt; I hope r* command setting for rhosts file are made.&lt;BR /&gt;&lt;BR /&gt; check as,&lt;BR /&gt; &lt;BR /&gt; machine 1# remsh machine2 hostname&lt;BR /&gt;            machine2&lt;BR /&gt;&lt;BR /&gt; So r* is working fine.&lt;BR /&gt;&lt;BR /&gt; Test:&lt;BR /&gt;&lt;BR /&gt; #!/usr/bin/ksh&lt;BR /&gt; # remote.ksh&lt;BR /&gt; # $1  - hostname&lt;BR /&gt; # $2 - user&lt;BR /&gt; if [[ $# -ne 2 ]]&lt;BR /&gt; then&lt;BR /&gt;   echo "Usage: remote.ksh &lt;HOSTNAME&gt; &lt;USER&gt;"&lt;BR /&gt;   exit 1&lt;BR /&gt; fi&lt;BR /&gt; &lt;BR /&gt; # Display variable&lt;BR /&gt; IP=$(getip `who -am | awk '{ print $8 }'`)&lt;BR /&gt; DISPLAY=$(echo $IP:0)&lt;BR /&gt; export $DISPLAY&lt;BR /&gt;&lt;BR /&gt; # Remote x11 testing&lt;BR /&gt; remsh $1 -l $2 -n "/usr/dt/bin/hpterm -display $DISPLAY"&lt;BR /&gt;&lt;BR /&gt; -------------------------&lt;BR /&gt;&lt;BR /&gt; It will start xwindows now.&lt;BR /&gt;&lt;BR /&gt; You can start it parrelel as &lt;BR /&gt; remsh $1 -l $2 -n "/usr/dt/bin/hpterm -display $DISPLAY" &amp;amp;&lt;BR /&gt; remsh $1 -l $2 -n "/usr/dt/bin/hpterm -display $DISPLAY" &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu&lt;BR /&gt;&lt;/USER&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Thu, 02 Sep 2004 04:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370023#M195492</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-02T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set DISPLAY Variable ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370024#M195493</link>
      <description>You don't need to set the DISPLAY on the remote machine that you are connecting to. You want the DISPLAY to come back to you, to be on the local machine you are working on, not the remote server.&lt;BR /&gt;&lt;BR /&gt;On the remote server that you connect to you want to make sure you have done `xhost +` and the response from the remote server would be &lt;BR /&gt;"access control disabled, clients can connect from any host"&lt;BR /&gt;&lt;BR /&gt;This function works from Exceed or any other X emulation application. The access control must be disabled to have X11 traffic forwarded&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 09:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-set-display-variable/m-p/3370024#M195493</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-09-02T09:57:12Z</dc:date>
    </item>
  </channel>
</rss>

