1Quick Start Instructions for Using SXPC with Term.
2
3NOTE:  machines R and L may be the same  machine.
4R is the remote machine with the X clients
5L is the machine running term.
6T is the machine running the X server.
7The examples assume a csh-based shell.
8
9=========================================
10With TCP/IP support on the X Server host:
11(if you get errors about "network unreachable" or the like, see the next
12section.)
13(This section was written by Bill Reynolds, see README.term for
14more information.)
15
16On machine T:
17
18sxpc local localhost:0
19
20(anybody who talks to port 4000 will get forwarded to the local X
21server).
22
23On machine L (after we've set up term between it and machine T):
24
25tredir 4000 4000
26
27(now whoever opens port 4000 on machine L will really be talking to
28port 4000 on machine T)
29
30On machine R:
31
32setenv DISPLAY `sxpc remote L:0`
33
34(it looks like we want to use the main display on machine L, but
35that's not the case, read on!)
36
37=============================================
38Without TCP/IP support on the X server host:
39(This section written by Rob Ryan, based on the above section by
40Bill Reynolds.)
41
42Copy xconn.c from the sxpc distribution to the term source directory,
43and execute "make txconn" in that directory.  (Do this on the "remote"
44side, the side closer to the X clients, the version of txconn on the X
45server side doesn't matter.)
46
47On machine T compile sxpc with "make DEFINES=-DNOINETCONN", along with whatever other DEFINES are needed.  On machine L compile sxpc normally.
48
49On machine T:
50
51sxpc local :0
52
53(txconn will connect to X display :8, the display number above + 8.)
54
55On machine L (after term is up and running to machine T):
56
57setenv XSERVERPATH /tmp/.X11-unix/X8
58txconn
59
60On machine R:
61
62setenv XCOMPGATEPORT 6000
63setenv DISPLAY `sxpc remote L:9`
64
65(the 9 should be replaced with  the display number returned by txconn.)
66
67Now clients should be able to connect to R:17, unix:17, or :17 and display
68 on machine T.
69
70-Rob Ryan
71