Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: info-gnus-english@gnu.org
Subject: Re: How to pull a gui gnus from linux to windows desktop
Date: Fri, 03 Dec 2010 16:49:00 +1100	[thread overview]
Message-ID: <m21v5zjtir.fsf@rimspace.net> (raw)
In-Reply-To: <87mxoos1gn.fsf@newsguy.com>

Harry Putnam <reader@newsguy.com> writes:
> Daniel Pittman <daniel@rimspace.net> writes:
>
>>>> 2. Set your DISPLAY appropriately on the Linux server.[2]
>>>
>>>    ( [2]  Either forward it through SSH, or just point it an 
>>>           the Win32 machine.
>>>
>>> Errr . .  you don't mean just ssh -X do you?  And how would one set
>>> point it at the win machine?  By IP or UNC or what?
>>
>> Yup.  The DISPLAY variable is a standard X feature, with the syntax:
>>
>>     ${host}:${display}
>>
>> Eg:  export DISPLAY=win64.example.com:0
>>      export DISPLAY=127.0.0.1:0
>>
>> Your display number should be zero (the first X display), and it
>> will make a TCP connection to port 6000 + <display number> on the
>> target machine to display things.
>
> Sorry to keep hacking away about this but I'm not getting the expected
> results.

OK.  To make sure I am actually helping, you want a GUI Emacs window to
display on the Win32 system, but Emacs to be running on Linux, right?

> Does X11 have to be running on remote (linux) box?

No.  X11 has a client/server model: the "display server" is the bit that draws
the Windows on the screen, and Emacs is a client of that.

When you set DISPLAY to ${hostname}:${display} you tell the client (Emacs) to
open a TCP connection to that system and draw all the GUI stuff there.

So, only client libraries on the Linux side. :)

> When I attempt the connection in that situation I get an error on the
> linux remote if I try to connect to a running emacs daemon.
>
> Using putting to ssh to remote then:
>
> emacsclient  -s nognus -c (where `nognus' is the daemons name)
>
>   Waiting for Emacs...
>   *ERROR*: Display 192.168.0.3:0 can't be opened
>
> The ip number there is the windows machines' static IP on home lan.  As you
> see the display is set to it.

*nod*  My guess is that you have a firewall problem or something like that, or
possibly that your Xming server doesn't allow access from the Linux machine.

You could try the following:

1. Check the Windows firewall is allowing connections on TCP port 6000.
2. Check Xming is listening on the network, not just loopback.
3. Run 'xhost +${ip_of_linux}' on the Win32 machine.

Alternately, these cover using SSH X forwarding on Win32:

http://www.cse.unsw.edu.au/~helpdesk/documentation/Putty.html
http://qiu.bioweb.hunter.cuny.edu/index.php?option=com_content&view=article&id=110

> If I start emacs separate from the daemon it just starts in -nw mode in the
> teminal on the remote.  Maybe there is no way to do this without X running
> on remote?

Emacs on the Linux system needs to be compiled with X support, and needs to be
willing to open a new X display, but that *should* be possible if you are
getting as far as that error.

        Daniel
-- 
✣ Daniel Pittman            ✉ daniel@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

  reply	other threads:[~2010-12-03  5:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01  4:16 Harry Putnam
2010-12-01 10:05 ` Daniel Pittman
2010-12-01 20:35   ` Harry Putnam
2010-12-02  0:41     ` Daniel Pittman
2010-12-02 14:18       ` Harry Putnam
2010-12-03  5:49         ` Daniel Pittman [this message]
2010-12-04  0:41           ` Harry Putnam
     [not found] <mailman.6.1291177080.29914.info-gnus-english@gnu.org>
2010-12-01 10:19 ` Eric S Fraga

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=m21v5zjtir.fsf@rimspace.net \
    --to=daniel@rimspace.net \
    --cc=info-gnus-english@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).