- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Lost DISPLAY variable
Operating System - HP-UX
1752565
Members
5721
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО02-27-2001 06:21 AM
тАО02-27-2001 06:21 AM
Lost DISPLAY variable
My maschine lost it`'s DISPLAY variable.
echo $DISPLAY gives no output.
How can I set the DISPLAY variable permantent ?
Thanks
Bettina
echo $DISPLAY gives no output.
How can I set the DISPLAY variable permantent ?
Thanks
Bettina
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 06:38 AM
тАО02-27-2001 06:38 AM
Re: Lost DISPLAY variable
You must check your .profile (or whichever shell login you are using or /etc/PROFILE and check that the DISPLAY is set up.
Make sure that uname -a knows the hostname, as you need to run:
# export DISPLAY=`hostname`:0.0
If the hostname is unknown or mixed up, it will mess up the DISPLAY variable..
MND
Make sure that uname -a knows the hostname, as you need to run:
# export DISPLAY=`hostname`:0.0
If the hostname is unknown or mixed up, it will mess up the DISPLAY variable..
MND
"A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 08:14 PM
тАО02-27-2001 08:14 PM
Re: Lost DISPLAY variable
There is nothing magic about $DISPLAY. It needs to be set each time you do a 'normal' login. Here's a script snippet you can include in your .profile that wil always set it automatically:
export DISPLAY="$(/usr/bin/who -muR | /usr/bin/awk '{print $NF}'):0.0"
This will as long as you are adjacent and not logged through 2 or more additional systems.
Bill Hassell, sysadmin
export DISPLAY="$(/usr/bin/who -muR | /usr/bin/awk '{print $NF}'):0.0"
This will as long as you are adjacent and not logged through 2 or more additional systems.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP