<?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: exporting DISPLAY in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884447#M935366</link>
    <description>You can put this into /etc/profile or .profile:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(/usr/bin/who -muR | awk '{print $NF}'):0.0"&lt;BR /&gt;&lt;BR /&gt;It will automatically set the name or IP address of the incoming machine. NOTE: you mentioned: 'dial in to the system console' Normally, this is a serial port. If you have the serial port connected to a terminal server, the performance will be very, very slow for Xwindows. It is much better to use a local terminal emulator rather than incur the large data transactions used by Xwindows.</description>
    <pubDate>Fri, 17 Jan 2003 13:39:37 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-01-17T13:39:37Z</dc:date>
    <item>
      <title>exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884445#M935364</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm tryin to write a script that runs an x script on a remote terminal. It gets the ip address of the user from the who command, sets the DISPLAY variable to point back to the user's pc and runs the x command. This works fine until someone dials in to the system console.&lt;BR /&gt;Does anyone know how to pick up the ip address of someone logged into the console, or of another way round this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Gary.</description>
      <pubDate>Fri, 17 Jan 2003 13:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884445#M935364</guid>
      <dc:creator>gary phipps</dc:creator>
      <dc:date>2003-01-17T13:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884446#M935365</link>
      <description>You can either use:&lt;BR /&gt;who -mT&lt;BR /&gt;&lt;BR /&gt;or the last command:&lt;BR /&gt;last -R | grep username | grep in$</description>
      <pubDate>Fri, 17 Jan 2003 13:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884446#M935365</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-17T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884447#M935366</link>
      <description>You can put this into /etc/profile or .profile:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY="$(/usr/bin/who -muR | awk '{print $NF}'):0.0"&lt;BR /&gt;&lt;BR /&gt;It will automatically set the name or IP address of the incoming machine. NOTE: you mentioned: 'dial in to the system console' Normally, this is a serial port. If you have the serial port connected to a terminal server, the performance will be very, very slow for Xwindows. It is much better to use a local terminal emulator rather than incur the large data transactions used by Xwindows.</description>
      <pubDate>Fri, 17 Jan 2003 13:39:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884447#M935366</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-01-17T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884448#M935367</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;This what I use in my .profile&lt;BR /&gt;&lt;BR /&gt;# -- Do trick to set the display in case of remote login&lt;BR /&gt;     HOST=`who am i -R |awk '{print $NF}' | sed "s/(\(.*\))/\1/"`&lt;BR /&gt;     if [ "$HOST" != "" ] &amp;amp;&amp;amp; [ "$HOST" != ":0" ] &amp;amp;&amp;amp; [ "$HOST" != ":0.0" ];&lt;BR /&gt;     then&lt;BR /&gt;        if [ "$HOST" = `who am i -R |awk '{print $NF}' | sed "s/(\(.*\))/\1/"` ]&lt;BR /&gt;        then&lt;BR /&gt;          HOST=$HOST:0.0&lt;BR /&gt;        fi&lt;BR /&gt;          echo "     +--&amp;lt;&amp;lt;"&lt;BR /&gt;          echo "     |  Remote login detected, setting DISPLAY to $HOST"&lt;BR /&gt;          echo "     +--&amp;gt;&amp;gt;"&lt;BR /&gt;        DISPLAY=$HOST&lt;BR /&gt;        export DISPLAY&lt;BR /&gt;     fi&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 17 Jan 2003 13:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884448#M935367</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-01-17T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884449#M935368</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;perhaps you can find further informations on this issue by following url:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90136/B2355-90136_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90136/00/00/7-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90136/00/00/7-toc.html&amp;amp;searchterms=Managing%7cBSD&amp;amp;queryid=20030117-065101" target="_blank"&gt;http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90136/B2355-90136_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90136/00/00/7-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90136/00/00/7-toc.html&amp;amp;searchterms=Managing%7cBSD&amp;amp;queryid=20030117-065101&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;have also a look at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com" target="_blank"&gt;http://www.docs.hp.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and search for BSD, I think that is the way to monitor remote running X sessions.&lt;BR /&gt;&lt;BR /&gt;Regards ...&lt;BR /&gt;Armin</description>
      <pubDate>Fri, 17 Jan 2003 13:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884449#M935368</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-01-17T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884450#M935369</link>
      <description>thanks for the responses but none of them returned an IP address. I've decided to go down an alternate route but if aynone has any other suggestions I'll be glad to hear them.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Gary.</description>
      <pubDate>Fri, 17 Jan 2003 14:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884450#M935369</guid>
      <dc:creator>gary phipps</dc:creator>
      <dc:date>2003-01-17T14:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884451#M935370</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;what do you mean with 'dial in to the system console'? Does he use a modem? If so it isn't possible because then the remote site does not have an ip address ...&lt;BR /&gt;&lt;BR /&gt;Or have I misunderstood your question?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;   Jochen</description>
      <pubDate>Fri, 17 Jan 2003 15:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884451#M935370</guid>
      <dc:creator>Jochen Heuer</dc:creator>
      <dc:date>2003-01-17T15:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884452#M935371</link>
      <description>Jochen,&lt;BR /&gt;&lt;BR /&gt;yes, they are using a modem. Can you think of any way around this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gary.</description>
      <pubDate>Fri, 17 Jan 2003 16:24:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884452#M935371</guid>
      <dc:creator>gary phipps</dc:creator>
      <dc:date>2003-01-17T16:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884453#M935372</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;the only way I can think of is to use ppp or slip instead of a direct connection to getty.&lt;BR /&gt;&lt;BR /&gt;But I have never configured ppp on HP-UX. I am not sure if it's even available (did not find anything on the porting site) ...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;   Jochen</description>
      <pubDate>Fri, 17 Jan 2003 23:12:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884453#M935372</guid>
      <dc:creator>Jochen Heuer</dc:creator>
      <dc:date>2003-01-17T23:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884454#M935373</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;it looks as if HP-UX includes a pppd (server daeemon) from 10.30 onward. Have a look at these documents:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000066028178" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000066028178&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062952526" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062952526&lt;/A&gt; (pppd)&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;   Jochen</description>
      <pubDate>Fri, 17 Jan 2003 23:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884454#M935373</guid>
      <dc:creator>Jochen Heuer</dc:creator>
      <dc:date>2003-01-17T23:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884455#M935374</link>
      <description>Me again ... :-)&lt;BR /&gt;&lt;BR /&gt;Sometimes you don't have to look that far away. Search &lt;A href="http://www.docs.hp.com" target="_blank"&gt;www.docs.hp.com&lt;/A&gt; for 'pppd' and voila:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/B2355-90137/B2355-90137.html" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/B2355-90137/B2355-90137.html&lt;/A&gt; (Installing and Administering PPP)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;   Jochen</description>
      <pubDate>Fri, 17 Jan 2003 23:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884455#M935374</guid>
      <dc:creator>Jochen Heuer</dc:creator>
      <dc:date>2003-01-17T23:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884456#M935375</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;If I understand your question correctly, I don't think you're going to be able to do X through the console port. You *won't* have an IP from the console - you're just /dev/console &amp;amp; because it's a terminal, the termcap for the term type announced probably won't support graphics - let alone X.&lt;BR /&gt;If you need to use dialup (PAINFULLY slow thru a modem) - you'll have to use the modem port (if avail) or a mux port &amp;amp; use PPP or SLIP. &lt;BR /&gt;&lt;BR /&gt;I would never advise anyone to use the console port for ANYTHING other than console access - big security hole.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 17 Jan 2003 23:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884456#M935375</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-01-17T23:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884457#M935376</link>
      <description>If someone dial up to your server with a modem, you cannot get any IP information from the remote client,because it's not a TCP/IP connection ,but a  PPP instead.</description>
      <pubDate>Sat, 18 Jan 2003 01:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884457#M935376</guid>
      <dc:creator>Fred.Wu</dc:creator>
      <dc:date>2003-01-18T01:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884458#M935377</link>
      <description>The best way for you would be to ask the user to dial into your network(which might use a RAS ) this will return the user an IP adress and then ask him to do an Telnet to the HP server you now got an IP which you can check using who -R|grep &lt;USERNAME&gt;&lt;BR /&gt;you can then export the display to that IP.&lt;BR /&gt;&lt;BR /&gt;Rajeev&lt;/USERNAME&gt;</description>
      <pubDate>Sat, 18 Jan 2003 02:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display/m-p/2884458#M935377</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-01-18T02:57:40Z</dc:date>
    </item>
  </channel>
</rss>

