all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joseph Mingrone <jrm@ftfl.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: problems with X11 forwarding inside frame
Date: Tue, 14 May 2013 15:21:20 -0300	[thread overview]
Message-ID: <861u99o21r.fsf@gly.ath.cx> (raw)
In-Reply-To: 20130514163043.GA1763@hysteria.proulx.com

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	other threads:[~2013-05-14 18:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 15:20 problems with X11 forwarding inside frame Joseph Mingrone
2013-05-14 16:30 ` Bob Proulx
2013-05-14 18:21   ` Joseph Mingrone [this message]
2013-05-14 19:52     ` Joseph Mingrone
2013-05-16  5:17       ` W. Greenhouse
2013-05-19  1:46         ` Joseph Mingrone
2013-05-17 23:31     ` Bob Proulx
     [not found] <mailman.25746.1368546463.855.help-gnu-emacs@gnu.org>
2013-05-19  8:38 ` J G Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861u99o21r.fsf@gly.ath.cx \
    --to=jrm@ftfl.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.