Peter, Replied too soon. Tried setting DISPLAY back to :0.0 after assigning an IP address of 127.0.0.1 to the loopback device and it all works nicely. Thanks again for your help. Ben.