Penguin
Annotated edit history of XNotes version 5, including all changes. View license author blame.
Rev Author # Line
4 BenStaz 1 !!How do I run [X] programs on another machine?
1 IanMcDonald 2 (NB this is all insecure and for use on your own network)
3
4 By default on many installs [X] disables remote connections with a nolisten parameter to it.
5
6 So try and find this by something like <tt>sudo grep -n -r nolisten /etc</tt> and then comment this out from the appropriate file. Restart [X].
7
8 Then on a shell on the local machine type <tt>xhost +</tt> (or alternatively a host name instead of +). Then on the shell on the remote machine type <tt>DISPLAY = host:0.0 ; export DISPLAY</tt> where host is the hostname of the local machine. Now start your program in the remote shell by typing the commandline startup e.g. <tt>openoffice</tt> and it will appear on your local desktop.
2 BruceKingsbury 9
3 IanMcDonald 10 A better way of doing this; use "ssh -X" when you connect to the remote host. This will set up an encrypted tunnel for programs on the remote system to communicate with the X server, and set up the DISPLAY variable to use it.
4 BenStaz 11
12 !!What do these X display names mean? eg : 192.168.1.4:0.0
13
14 An X display name is in the form: hostname:displaynumber:screennumber
15
16 hostname
17 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.
18 displaynumber
19 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 keyboard, 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 number (beginning at 0) when the X server for that display is started. The display number must always be given in a display name.
20 screennumber
21 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
5 BenStaz 22
23 !! What is my display/screen number?
24 Try the command:
25 * echo "$DISPLAY"
2 BruceKingsbury 26
3 IanMcDonald 27 See also [SSHNotes]