CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ CnUnix ] in KIDS
글 쓴 이(By): guest (guest)
날 짜 (Date): 1996년04월12일(금) 02시27분47초 KST
제 목(Title): Re: Remote Machine 의 X-application 사용


대답 1. slirp내의 문서 또는 linux의 howto문서들을 읽어보면 
        slirp내에서 X를 사용할려면 어떻게 해줘야 하는지 나와 있을 겁니다.

대답 2. 앞의 chilly님의 DISPLAY 설정은 slirp을 위한 X 설정의 
        두번째 단계에 해당하는 것입니다. slirp에서 아래와 같은 
        것을 이용해서 redirection을 먼저 해줘야 합니다. (왜냐하면,
        X-window는 시스템의 보통 6000번 port를 사용하는데, 사실상
        다른 프로그램들이 linux의 6000번 port에 직접 연결되는
        것이 아니라 slirp을 거쳐서 linux에 연결되어야 하니깐..)

        redir X 10.0.2.15:0.0
  
추가대답 : X와 같은 이유로 외부에서 자기의 linux로 들어오는 것도
        linux의 port로 접속해야 하므로 아래와 같은 방식으로
        외부에서 telnet, ftp등으로 자기의 pc로 들어올려면 port를
        redirection해줘야 합니다. 

        redir tcp 5021 to 21
                allow users to ftp to your local machine using
                your host's port 21. (ftp your.hosts.name 5021)
        (slirp이 도는 곳의 5021(사용자영역) port로 접속하면 
         자기 linux의 21(ftp)로 연결되는 것임.)

p.s 근데, 왜 전 slirp을 쓰면 처음에는 잘되다가 점점 느려지면서
    나중에는 왜 완전히 멈춰버리는 걸까요??? (연결이 끊어진 것도
    아닌데....)

----(잠깐 뒤져보니 원래 설명서가 있군요..아래에 옮깁니다.)----
redir X [start RDISP] [ADDR][:DISPLAY[.SCREEN]]
    redirect a port for use with X
    
    usable: anywhere
    command-line: -X
    options:
        start RDISP     tell slirp to start looking for free ports starting
                        from N.  eg: if N = 2, slirp will try to grab port
                        6002 then 6003 etc.  this is useful for sites which
                        sometimes run their own X server and you don't want
                        to nab their port 6000, which they would naturally 
expec
        ADDR            our home ip address, or the address where the x 
server i
                        (if you have a LAN at home to connect more than one 
mach
                        to the net) (default 10.0.2.15 when in ~/.slirprc, the
                        source IP address when in command-line)
        DISPLAY         which display to redirect to (default :0)
        SCREEN          which screen to redirect to (default .0)
    Example:
        redir X 10.0.2.15:0.0
    Note:
        this will print the command needed to enter into each shell from
        where you launch your X apps
    See also:
        show X
    
    
show X
    show the command that needs to be given to your shell for any X port
    that has been redirected (in case you forget).
    
    usable: telnet
    command-line: NONE
    options:
        NONE
    Example:
        show X
    Note:
        this is useful if you forget the command to give to your shell for
        X redirection.
    See also:
        redir X, log start
    
------

 
[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.