DISPLAY=:0.0 이거 질문있습니다

ero의 이미지

export DISPLAY=localhost:0.0

도대체 저게 무슨뜻인가여 ??

아무리 뒤저봐도 저거에 대한 내용이 없어서..

Necromancer의 이미지

예전에 학교 수업때 들은 얘기라서 기억이 가물가물하지만..

localhost => 자기 자신

0.0 => 0번 X서버의 0번 Screen에 띄운다.

로 알고 있습니다.

한 컴터에 X서버 여러대 띄울때 0,1,2,3 순으로 순서 부여되고.
X서버 하나가 모니터 화면 여러개를 컨트롤할 경우 Screen 0,1,2,3 순으로 부여됩니다.

Written By the Black Knight of Destruction

protcol의 이미지

manpage를 참고하시면 됩니다.
$ man X
...
DISPLAY NAMES
From the user's perspective, every X server has a display name of the
form:

hostname:displaynumber.screennumber

This information is used by the application to determine how it should
connect to the server and which screen it should use by default (on
displays with multiple monitors):

hostname
The hostname specifies the name of the machine to which the
display is physically connected. If the hostname is not given,
the most efficient way of communicating to a server on the same
machine will be used.

displaynumber
The phrase "display" is usually used to refer to collection of
monitors that share a common keyboard and pointer (mouse,
tablet, etc.). Most workstations tend to only have one key-
board, and therefore, only one display. Larger, multi-user
systems, however, frequently have several displays so that more
than one person can be doing graphics work at once. To avoid
confusion, each display on a machine is assigned a display num-
ber (beginning at 0) when the X server for that display is
started. The display number must always be given in a display
name.

screennumber
Some displays share a single keyboard and pointer among two or
more monitors. Since each monitor has its own set of windows,
each screen is assigned a screen number (beginning at 0) when
the X server for that display is started. If the screen number
is not given, screen 0 will be used.
... 생략

ero의 이미지

영어해석... 대략 ...난감합니다.. ㅡ.ㅡㅋㅋ

암튼 도움을 주셔서 감사합니다~^^