[์งˆ๋ฌธ] Can't open display [3]

[์งˆ๋ฌธ] Can't open display

2003-02-25 00:00 - ๋ฐ•์ •ํ›ˆ

์•ˆ๋…•ํ•˜์„ธ์š”?
๋ฐ•์ •ํ›ˆ์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

ํ•œ์ปด ๋ฆฌ๋ˆ…์Šค 2.0์„œ๋ฒ„์— ์ ‘์†ํ•ด์„œ X-Manager๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ
๋กœ๊ทธ์ธ์€ ๋˜๋Š”๊ฒƒ ๊ฐ™์€๋ฐ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค.
hosts.allow์— ๊ณต์ธ๋œ IP๋ฅผ ์‚ฌ์šฉ์ค‘์ด๊ณ ์š”.
๊ทธ๋ฆฌ๊ณ  xterm, hanterm์— -ls -display ์˜ต์…˜๋„ ๋ฐ”๊พธ์–ด
๋ณด์•˜๋Š”๋ฐ ์ž‘๋™์ด ์•ˆ๋˜์„ธ์š”.
์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

--------------------------------------------------------
Connected to xxx.xxx.xxx.xx:22.

Exchanging SSH version...Done.
Server: SSH-1.99-OpenSSH_3.0.2p1.
Client: SSH-2.0-Xssh_1.0.
SSH2 is enabled.

Negotiating algorithms...
Initiating key exchange...Done.
Exchanging Diffie-Hellman KeyEx message...Done.
Waiting for new key message...Received.
Fingerprint: xxxxxxx.Verifying host key...
Algorithm negotiation has been finished...
CS Cipher: 3des-cbc, SC Cipher: 3des-cbc
CS Compress: zlib, SC Compress: zlib
CS MAC: hmac-sha1, SC MAC: hmac-sha1

Trying to login as jhpark.
Trying password authentication...Done.

Requesting session channel...Done.

Requesting X11 forwarding...Done.

Executing remote command...Done.
/usr/bin/X11/xterm Xt error: Can't open display:

-------------------------------------------------------------
์œ„์™€ ๊ฐ™์€ ์ •์ƒ์„ ํ•ด๊ฒฐํ• ๋ ค๊ณ  ํ•˜๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋Š”์ง€์š”.
๋‹ต๋ณ€ ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
์ข‹์€ ํ•˜๋ฃจ ๋˜์‹ญ์‹œ์š”.



[์งˆ๋ฌธ] Can't open display

2003-02-25 00:00 - ๋„ท์‚ฌ๋ž‘

์•ˆ๋…•ํ•˜์‹ญ๋‹ˆ๊นŒ?
๋„ท์‚ฌ๋ž‘์ปดํ“จํ„ฐ ๊ธฐ์ˆ ์ง€์›ํŒ€์ž…๋‹ˆ๋‹ค.

localhost์˜ ip๋ฅผ ์ฐพ์ง€ ๋ชปํ•ด์„œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ๋ผ๊ณ  ์ƒ๊ฐ๋ฉ๋‹ˆ๋‹ค. localhost์˜ ip๋ฅผ ๋“ฑ๋กํ•ด๋ณด์‹  ํ›„ ์‚ฌ์šฉํ•ด ๋ณด์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

์ ‘์†ํ•œ ์„œ๋ฒ„์˜ /etc/hosts ํŒŒ์ผ์—
127.0.0.1 localhost.localdomain localhost
์„ ์ถ”๊ฐ€ํ•ด ๋ณด์„ธ์š”.

๊ธฐํƒ€ ๋‹ค๋ฅธ ๋ฌธ์˜ ์‚ฌํ•ญ์ด ์žˆ์œผ๋ฉด ์—ฐ๋ฝ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ผ๋‹ˆ๋‹ค.
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.


[์งˆ๋ฌธ] local host์— ๊ด€ํ•œ ์‚ฌํ•ญ์€ ์ด๋ฏธ ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

2003-02-25 00:00 - ๋ฐ•์ •ํ›ˆ

๋‹ต๋ณ€ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

ํ•˜์ง€๋งŒ local host์— ๊ด€ํ•œ ์‚ฌํ•ญ์€

์ด๋ฏธ ์„ค์ •๋˜์–ด ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค.

๋‹ค๋ฅธ ์ชฝ์— ๋ฌธ์ œ๋Š” ์•„๋‹๊นŒ ์ƒ๊ฐ์ด ๋˜๋Š”๋ฐ์š”.


[์งˆ๋ฌธ] local host์— ๊ด€ํ•œ ์‚ฌํ•ญ์€ ์ด๋ฏธ ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

2003-02-26 00:00 - ๋„ท์‚ฌ๋ž‘

์•ˆ๋…•ํ•˜์‹ญ๋‹ˆ๊นŒ?
๋„ท์‚ฌ๋ž‘์ปดํ“จํ„ฐ ๊ธฐ์ˆ ์ง€์›์ž…๋‹ˆ๋‹ค.

์ €ํฌ๊ฐ€ ๋ช‡๊ฐ€์ง€์— ๋Œ€ํ•ด ๋น ๋œจ๋ฆฐ๊ฒŒ ์žˆ์Šต๋‹ˆ๋‹ค.

์šฐ์„  localhost ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋ฆฌ๋ˆ…์Šค์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„๋„ /etc/hostsํŒŒ์ผ์—
๋“ฑ๋กํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ  ๋ฆฌ๋ชจ์ฝ˜์˜ ์‹คํ–‰๋ช…๋ น๋ž€์—๋„ "-display $DISPLAY"๋กœ ํ•˜์‹œ๊ฑฐ๋‚˜ ์•„์˜ˆ ์ด๋ถ€๋ถ„์„
๋นผ๊ณ  ์‹คํ–‰ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์ด์™€ ๋‹ค๋ฅธ ์„ค์ •์ด ์žˆ์œผ๋ฉด "can't open display"๋ผ๋Š”
์—๋Ÿฌ ๋ฉ”์‹œ์ง€๊ฐ€ ์ถœ๋ ฅ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿผ์—๋„ ๋ฌธ์ œ๊ฐ€ ๊ณ„์†๋  ๊ฒฝ์šฐ์—๋Š” ์‹คํ–‰๊ฒฐ๊ณผ ๋ณด์—ฌ์ฃผ๊ธฐ์˜ "๋ชจ๋“ " ์—๋Ÿฌ๋ฉ”์‹œ์ง€๋ฅผ
๋ณด๋‚ด์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ๋”๋ถˆ์–ด xmanager.logํŒŒ์ผ๋„ ๋ณด๋‚ด์ฃผ์‹œ๋ฉด ๋น ๋ฅธ ๋ฌธ์ œ ํ•ด๊ฒฐ์—
๋„์›€์ด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.


์ด์ „ ์กฐํšŒ์ˆ˜: 951