From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.help Subject: Re: problems with X11 forwarding inside frame Date: Tue, 14 May 2013 15:21:20 -0300 Message-ID: <861u99o21r.fsf@gly.ath.cx> References: <86d2stk2ph.fsf@gly.ath.cx> <20130514163043.GA1763@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368555721 25971 80.91.229.3 (14 May 2013 18:22:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 May 2013 18:22:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 14 20:22:00 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcJrL-0000WA-LN for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 20:21:59 +0200 Original-Received: from localhost ([::1]:36760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcJrL-0007J3-72 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 14:21:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcJr9-0007Ga-B2 for help-gnu-emacs@gnu.org; Tue, 14 May 2013 14:21:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcJr6-0002M6-OS for help-gnu-emacs@gnu.org; Tue, 14 May 2013 14:21:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcJr6-0002Ln-Db for help-gnu-emacs@gnu.org; Tue, 14 May 2013 14:21:44 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcJqy-0000BN-89 for help-gnu-emacs@gnu.org; Tue, 14 May 2013 20:21:36 +0200 Original-Received: from dynamic34-29.dynamic.dal.ca ([129.173.34.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 20:21:36 +0200 Original-Received: from jrm by dynamic34-29.dynamic.dal.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 20:21:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 97 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dynamic34-29.dynamic.dal.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Cancel-Lock: sha1:owY5aiHlxR3yCGwrMIr5ropqNbg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90770 Archived-At: Bob Proulx 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