help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with X11 forwarding inside frame


From: Joseph Mingrone
Subject: Re: problems with X11 forwarding inside frame
Date: Tue, 14 May 2013 15:21:20 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Bob Proulx <bob@proulx.com> writes:
> There are details missing.  The emacsclient -nc is reporting first
> that it can't open the socket and probably included the next line
> suggesting to use server-start to start a server.  But then something
> else is "Starting Emacs daemon."  That isn't explained.

Here is the full output:

jrm@phe ~ % ssh -f gly 'emacsclient -nc'
0;jrm@phe|~emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
jrm@phe ~ % ("emacs")
Loading autorevert...
Loading autorevert...done
Loading paren...
Loading paren...done
Starting Emacs daemon.
Emacs daemon should have started, trying to connect again

Another prompt shows up, but I'm not doing anything after
ssh -f gly 'emacsclient -nc'.

>
> Something is setting your DISPLAY variable.  Did you configure your
> ssh to ForwardX11 on every connection?  It isn't explained how DISPLAY
> is getting set in the above.

In my ~/.ssh/config for the host gly I have:
ForwardX11 yes
ForwardX11Trusted yes

> In order for X programs to connect to your display they will also look
> at $XAUTHORITY or $HOME/.Xauthority to obtain the magic cookie
> credentials to be able to connect.  This is in addition to $DISPLAY to
> locate the communication socket.  If you just setting DISPLAY such as
> in a .bashrc file then that will probably not be sufficient.

I'm not manually setting DISPLAY.

I've pasted the environments for each setting below.

jrm@phe ~ % ssh -f gly 'emacsclient -nc' start a term buffer jrm@gly ~ %
env OLDPWD=/home/jrm/.ssh PWD=/home/jrm VISUAL=emacsclient
TEXEDIT=emacsclient +%d %s TEXDOCVIEW_pdf=xpdf %s
TEXDOCVIEW_html=firefox %s PAGER=less LESS=-i -X -P%f (%lt-%lb/%L
%pb\%)$ -x4 GTK_IM_MODULE=xim CLICOLOR=1 EDITOR=emacsclient
BROWSER=firefox SSH_CLIENT=129.173.32.xxx 12409 44422 LOGNAME=jrm
LANG=en_CA.UTF-8
TERMCAP=eterm-color:li#54:co#211:cl=\E[H\E[J...
MAIL=/var/mail/jrm
PATH=.:/home/jrm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin
EMACS=24.3.1 (term:0.96) DISPLAY=localhost:10.0
TERMINFO=/usr/local/share/emacs/24.3/etc/ COLUMNS=211 _=/usr/bin/env
TERM=eterm-color USER=jrm HOME=/home/jrm ALTERNATE_EDITOR=
SSH_CONNECTION=129.173.32.xxx 12409 129.173.34.xxx 44422
SHELL=/usr/local/bin/zsh MM_CHARSET=utf-8 LINES=54 BLOCKSIZE=K
INSIDE_EMACS=24.3.1,term:0.96 SHLVL=1

jrm@phe ~ % ssh -f gly 'xterm'
jrm@gly ~ % env 
VISUAL=emacsclient
TEXEDIT=emacsclient +%d %s
TEXDOCVIEW_pdf=xpdf %s
TEXDOCVIEW_html=firefox %s
PAGER=less
LESS=-i -X -P%f (%lt-%lb/%L %pb\%)$ -x4
GTK_IM_MODULE=xim
CLICOLOR=1
EDITOR=emacsclient
BROWSER=firefox
XTERM_SHELL=/usr/local/bin/zsh
LOGNAME=jrm
XTERM_LOCALE=en_CA.UTF-8
XTERM_VERSION=XTerm(292)
DISPLAY=localhost:10.0
WINDOWID=23068685
TERM=xterm
_=/usr/bin/env
OLDPWD=/home/jrm
PWD=/home/jrm
SHLVL=1
TERMCAP=eterm-color:li#36:co#149:cl=\E[H\E[J:...
USER=jrm
HOME=/home/jrm
MAIL=/var/mail/jrm
PATH=.:/home/jrm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin
MM_CHARSET=utf-8
LANG=en_CA.UTF-8
BLOCKSIZE=K
SHELL=/usr/local/bin/zsh
SSH_CLIENT=129.173.32.xxx 25693 44422
SSH_CONNECTION=129.173.32.xxx 25693 129.173.34.xxx 44422
ALTERNATE_EDITOR=

Thanks,

Joseph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]