- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dhcp and the demon DISPLAY variable
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 11:21 AM
06-14-2001 11:21 AM
Any clues??
Thanx in advance,
Ron Irving
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 11:52 AM
06-14-2001 11:52 AM
Re: dhcp and the demon DISPLAY variable
All our servers and X-terms have static IP's.
In fact, @home has implemented dhcp for most locations and you can only get a static IP if you tell them that you run a UNIX machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 12:24 PM
06-14-2001 12:24 PM
SolutionThere are a couple of possibilities that I can think of that would help you deal with DHCP and the DISPLAY variable:
1) If you are using CDE (or any other XDMCP-compliant login mechanism) to login to your server, then the XDMCP protocol will handle the assignment of the DISPLAY variable for you. Whenever a UNIX server running CDE receives a request for a CDE session, the CDE login daemon (dtlogin) will set the DISPLAY variable based upon the IP address of the actual system performing the request. This does have two drawbacks, however:
a) If you are using a Windows NT DNS server, make sure that it provides both forward AND reverse resolution for your DHCP clients. Some NT-based DNS server implementations will hang when they receive an invalid request for a PTR lookup, and this will cause your CDE login to potentially fail.
b) If your IP address changes within a session, then you will still be in the same situation (however, you can always kill/restart your session and get the correct DISPLAY variable).
2) If you are using a PC-based client, such as Reflection/X or eXceed, they usually include a mechanism for embedding the DISPLAY variable in the command string. I believe for Reflection/X it is something like:
xterm
You could always set your application launch to do the same within Reflection/X.
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 04:28 AM
06-15-2001 04:28 AM
Re: dhcp and the demon DISPLAY variable
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 04:52 AM
06-15-2001 04:52 AM
Re: dhcp and the demon DISPLAY variable
You should be able to configure your eXceed session to perform an "XDMCP Direct" request. You will simply need to enter the IP address and/or hostname of your HP-UX server, and ensure that the "dtlogin" daemon is running.
If you have any further questions, I'd recommend looking at document ID KBRC00000465 - "How to setup Exceed to run CDE". You should be able to find this in the Technical Knowledge Base, or I can post this or email this to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 04:53 AM
06-15-2001 04:53 AM
Re: dhcp and the demon DISPLAY variable
Hello???
anyone...???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 06:40 AM
06-15-2001 06:40 AM
Re: dhcp and the demon DISPLAY variable
You can script it up yourself!
ie
MYTTY=$(who am i | awk nonsense print whatever field)
DISPLAY=$(who -R |grep $MYTTY| awk once more)
export DISPLAY!
I'm sure there's an easier way!!
(It's been a while since I've scripted!
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 06:46 AM
06-15-2001 06:46 AM
Re: dhcp and the demon DISPLAY variable
If you are using either an XDMCP session (ie, if you follow the document I mentioned and login through the CDE login banner), or you start up an xterm window with a command similar to:
xterm
you will find that your DISPLAY variable will be automatically set so you will not have to reset it in your .profile.
If your display variable is not already set, then you can do something like:
export DISPLAY=$( who -u am I | awk '{ print $8":0" }' )