Andrew Glover wrote:
Trying to run Xnest with :
Xnest :1
which runs fine, however, trying to run an xterm on it doesnt work:
xterm -display :1
Xlib: connection to ":1.0" refused by server Xlib: Client is not authorized to connect to Server xterm Xt error: Can't open display: :1
And I cant run xhost, either, so does anyone know how I can automatically start an xterm on Xnest, or some other solution please?
Xnest appears to have some options that are not in the man page. The first possible solution is the '-ac' option which disables access control. The other solution which I haven't tested would be:
1. Generate a magic cookie with xauth and store it in a file. 2. Start Xnest with the -auth option and specify that file. 3. Set XAUTHORITY to the that file (and export it) before starting clients.
HTH Steve.