Author Topic: XDarwin on OS X  (Read 698 times)

heljy

  • Member
  • **
  • Posts: 70
  • Kudos: 0
XDarwin on OS X
« on: 19 November 2002, 20:23 »
I read that xdarwin is a X server for mac and went ahead and install it. However it didnt seem to be working as I expected.

Firstly, when I open emacs from the commandline (both rootless and full screen), "emacs &" the window gets suspended to the background and it didnt start up as a new window.

Secondly, when I ssh to my school acc, I couldnt get xterm, emacs, etc to start up on a new window too, says something like this "xterm Xt error: Can't open display:"

Is that any other settings that I should set? I have used linux before and it works right out of the box, since its an X window server.

Any advice/comments?

Thanks

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
XDarwin on OS X
« Reply #1 on: 20 November 2002, 01:52 »
What happens when you try and run emacs without the "&"?

As far as logging in to a remote machine and opening an xterm (or any other X app) you need to have your "DISPLAY" variable set on the remote term and the local X server has to have granted authority for other machines to connect to it (run "xhost +" in a local term, NOTE: only use the "+" for testing, use the remote host name instead if the "+" works, otherwise X is wide open for anyone to connect, better yet use "xauth"). Normally with ssh on Linux it will set this variable automatically if you have x11 forwarding turned on. If you are using telnet to log into the remote machine probably need to set it manually:

[heljy@remotemachine]$ export DISPLAY=machine.or.ipaddress:0

"machine.or.ipaddress" is the address that the remote machine sees you connected from. Do a "who -l" and next to your name is what you would use here. The "0" is the local display number that you want the remote X app to connect to. Usually you are only running one X server and it will be called "0" or "0.0". If you have more than one it could be a different number but you probably don't.

If your local machine is behind a firewall you will not be able to start remote apps unless you do it via ssh and x11 forwarding. In such a case look at the ssh man page under "X11 and TCP forwarding". Hope this helps.

[ November 19, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Pantso

  • Member
  • **
  • Posts: 1,249
  • Kudos: 55
    • http://www.support-freesoftware.org
XDarwin on OS X
« Reply #2 on: 20 November 2002, 02:37 »
I've used XDarwin but only with apps like GIMP or OpenOffice.org. However, I read at the XDarwin faqs, that it's better to start the Windows server from the terminal and not from the X icon on your dock or wherever you put it, with the command

startx -- -quartz

The reason for that, as it is explained here, is that if you use the X icon, applications might launch in a different environment. Unfortunately, that's the only explanation they give.

Anyway, try void's advise first and see what happens.   ;)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
XDarwin on OS X
« Reply #3 on: 20 November 2002, 02:46 »
Thanks Panos, I found a better link off of a forum listed in your link dealing with starting remote X apps. Not having used X on X (or even OS X) I was making a lot of assumptions, most of which were true. But here is a nice page describing exactly what you need to do for starting remote X apps and displaying them in X on your Mac (in more detail than what I gave you):

http://oroborosx.sourceforge.net/remotex.html

[ November 19, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Pantso

  • Member
  • **
  • Posts: 1,249
  • Kudos: 55
    • http://www.support-freesoftware.org
XDarwin on OS X
« Reply #4 on: 20 November 2002, 03:07 »
Void main, you never cease to amaze me! I've already bookmarked the link you provided, although I think heljy needs it more right now!  

heljy

  • Member
  • **
  • Posts: 70
  • Kudos: 0
XDarwin on OS X
« Reply #5 on: 21 November 2002, 02:30 »
Whoah thanks void!

I will look through the links that you posted and try them out  

Will post again if I need anymore advise  ;)