HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: i want to know,why DISPLAY must to :hostname:0...
Operating System - HP-UX
1837512
Members
3724
Online
110117
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
07-26-2004 04:14 AM
07-26-2004 04:14 AM
what's mean of 0.0?
is there any other usage?
like: hostname:0.1
hostname:1.0 ....or anything else?
is there any other usage?
like: hostname:0.1
hostname:1.0 ....or anything else?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 04:23 AM
07-26-2004 04:23 AM
Solution
Hi !
Display is set up as hostname:display.screen. It must be set like this because it's the way X-Window understands it.
hostname can be your IP or every name or alias it is resolved as on network.
display is the number of the X server you're connected at. You can configure your X server to be launched with a different number. It is usefull when running multiple X servers on 1 machine.
screen can be something else than 0 if you have more than 1 screen on your machine. If you have 2 graphical cards in your machine and put a screen on each, you can configure X to use both. Then you'll have :0.0 and :0.1.
regards,
Fred
Display is set up as hostname:display.screen. It must be set like this because it's the way X-Window understands it.
hostname can be your IP or every name or alias it is resolved as on network.
display is the number of the X server you're connected at. You can configure your X server to be launched with a different number. It is usefull when running multiple X servers on 1 machine.
screen can be something else than 0 if you have more than 1 screen on your machine. If you have 2 graphical cards in your machine and put a screen on each, you can configure X to use both. Then you'll have :0.0 and :0.1.
regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 04:38 AM
07-26-2004 04:38 AM
Re: i want to know,why DISPLAY must to :hostname:0.0?
Here is code that might help in /etc/profile
DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY
SEP
DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 04:52 AM
07-26-2004 04:52 AM
Re: i want to know,why DISPLAY must to :hostname:0.0?
If you're connected from CDE (or any other WM), your :display.screen is already displayed in "who" :
/>who -mu
root pts/0 Jul 26 18:51 . 11139 10.33.200.14:0.0
so I would use this :
DISPLAY=$(echo $(who -m -u | awk '{print $NF}' | cut -d ":" -f 1):0.0 | cut -d ":" -f 1,2)
Regards,
Fred
/>who -mu
root pts/0 Jul 26 18:51 . 11139 10.33.200.14:0.0
so I would use this :
DISPLAY=$(echo $(who -m -u | awk '{print $NF}' | cut -d ":" -f 1):0.0 | cut -d ":" -f 1,2)
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP