New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.6 - is it possible to X11 forward OS X to a linux box?


Post Reply New Thread Subscribe

 
Thread Tools
Suiname

 
Member Since: Oct 26, 2009
Posts: 4
Suiname is on a distinguished road

Suiname is offline
Hello all,
I just last week purchased and setup my first mac. I've used macs before a little, but I've never had one as my primary machine. For the past couple years I've mostly been running ubuntu, and I really like the remote control capabilites via ssh and having x11 forwarding setup. I know it is possible to X11 forward from linux to OS X, I've already set this up on my LAMP server so I can control it from my mac, however, is the reverse possible? I know that OS X is running on some form of a customized BSD kernel, so I thought it might be.
I tried doing this myself by turning ssh on, then editing the sshd config file. I found the line "#X11Forwarding no" in the config file and changed it to "X11Forwarding yes". Then I saved the file and restarted the ssh server. Now I can login to my mac via ssh, but when I try to run a command that would open a window, it doesn't get forwarded. For instance, if i do a "open -a safari" from the terminal on my mac, it would open a safari window, but when I do this remotely it just gives an error message. If someone could confirm that this is or is not possible, that would be great.
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
It might work for X11 applications, but it won't work for native OS X applications.

Safari, Mail, iMovie, Word, Photoshop, etc. are all native applications.
QUOTE Thanks
nabl

 
nabl's Avatar
 
Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
nabl has a spectacular aura about
Mac Specs: 2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09

nabl is offline
If I understand what you mean by X11 forwarding (I've read about it but never set it up personally), I'd say the answer is no. Even though Mac OS X is based on UNIX technologies, the window server is entirely different from X. Don't quote me on it, but I believe the network forwarding was the primary design goal of X, while OS X's window server was designed to use some form of Postscript on-screen. As a result of their differences in design, I don't think OS X's window server has such a capability.

Having said that, there are a few things you can do. First, Mac OS X does use the standard VNC protocol for remote desktop capabilities, and as of Leopard you can use a third-party VNC client (I believe Vinagre is currently the default in Ubuntu) to control OS X. Also, you might be able to configure X11—installed with OS X by default since Leopard and available before that on the installation disc—to be accessible over the network. However, even if that is possible (I've never researched it, but I see no reason it wouldn't be), you would only be able to use the X11 applications remotely.
QUOTE Thanks
Suiname

 
Member Since: Oct 26, 2009
Posts: 4
Suiname is on a distinguished road

Suiname is offline
Thanks for your input, you confirmed my suspicions. I have already setup vnc for remote desktop, though I have to say with my DSL connection at home it is not ideal for accessing remotely via VNC (a bit slow and sluggish sometimes). That's why I was wondering if there was a better way, X11 is pretty awesome since it only sends the active window, not the entire desktop, but it makes sense that it won't be able to send non-X windows, which unfortunately is everything I would want to run anyways. I'll stick with vnc and try to tweak the settings to get it working more to my liking.
QUOTE Thanks

Post Reply New Thread Subscribe


« Several Funny Things | OS for G4 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Booting Linux PPC from a USB Drive on my PowerBook edokid Running Windows (or anything else) on your Mac 5 06-23-2011 05:53 PM
How do I graphically browse files on a Linux box T-Fen Running Windows (or anything else) on your Mac 2 01-04-2009 01:49 PM
Getting Linux to boot on macbook pro BDBMX Running Windows (or anything else) on your Mac 8 11-15-2008 01:10 PM
My experiences of Mac & OSX miso Switcher Hangout 5 08-09-2007 02:41 PM
How To Install Apple X11 From Tiger Install Disks mac57 OS X - Apps and Games 18 06-03-2006 06:11 PM

All times are GMT -4. The time now is 07:35 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?