X11.app won't launch for me - a quick google tells me that others have the same problem.
The idea under Leopard is that X11 will launch automatically as required, so just typing
xterm in a Terminal window will launch a xterm window.
But for me this didn't work, since I had set DISPLAY = 0:0
To check, type
echo $DISPLAY if the response is 0:0 (as you might expect) you need to remove the entry for DISPLAY from
environment.plist (double-click on the file and the property list editor should open). On the other hand something bizarre:
mfourman$ echo $DISPLAY /tmp/launch-SKAysC/:0seems to be fine!
Note that some applications may set the DISPLAY variable on startup. I had to retire
sshLogin (a Mac port of
sshAskPass) because it insists on doing this. So I'm back to using
ssh-add from the terminal to set up my ssh identity before launching
Connecting via ssh from the xterm then sets up an X11 connection so that remote X applications can use your Mac screen. Use
ssh -X to forward X11 connections, or set this up, for hosts you trust, in your ssh configuration.
Your ssh configuration depends on various files in
authorized_keys config identity identity.pub known_hosts
You can set your
˜/.ssh/config on a per-host basis: for example
# Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the # configuration file, and defaults at the end. Host trusted.local ForwardX11 yes ForwardX11Trusted yes Host ssh.foo.uni.ac.uk Compression yes Cipher blowfish ForwardX11 yes Host ssh.foreign.com User alias Host * ForwardX11 no ForwardX11Trusted noNote X11 forwarding should be enabled with caution.
User Specifies the user to log in as, useful when you have a different user name on different machines.
The default configuration file (see
/private/etc/ssh_config) includes a list of common settings. The configuration files contain sections separated by ``Host'' specifications, and that section is only applied for hosts that match one of the patterns given in the specification. (Lines starting with `#' are comments. Copy this template, remove `#' and edit values as desired. For details see
# Host * # ForwardAgent no # ForwardX11 no # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no # GSSAPIAuthentication no # GSSAPIDelegateCredentials no # GSSAPIKeyExchange no # GSSAPITrustDNS no # BatchMode no # CheckHostIP yes # AddressFamily any # ConnectTimeout 0 # StrictHostKeyChecking ask # IdentityFile ~/.ssh/identity # IdentityFile ~/.ssh/id_rsa # IdentityFile ~/.ssh/id_dsa # Port 22 # Protocol 2,1 # Cipher 3des # Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no