Technology Questions

Go Back   Technology Questions > Manufacturer Questions > Manufacturers > Apple > Apple Macintosh Hardware

Apple Macintosh Hardware Discuss the Apple Macintosh Hardware

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 02-06-2007, 07:17 PM
cpu
Newsgroup Contributor
 
Posts: n/a
X11 Forwarding

I'm trying to get more familiar with *nix.

Today I downloaded and installed Cygwin/X on to my WinXP machine at work. I
could then ssh into my Fedora Core 5 Linux box and run 'konqueror &' and the
Konqueror web browser would be displayed on my WinXP box.

How do I do the same with our Mac OS X 10.4.x box with X11 installed?

I can successfully ssh into it. The DISPLAY environment variable has been
manually set with:

export DISPLAY=ip_address_of_winxp_box:0

/etc/sshd_config has been modified with the line
X11 Forwarding Yes (instead of No)

When I run:

/Applications/Safari.app/Contents/* MacOS/Safari &

it comes back with an error something along the lines of "only root or the
console user can do that", so then I did:

sudo /Applications/Safari.app/Contents/* MacOS/Safari &

Safari comes up but its displaying on the Mac box and not my WinXP box.

What am I doing wrong?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 02-06-2007, 07:17 PM
  #2 (permalink)  
Old 02-06-2007, 07:17 PM
VAXman- @SendSpamHere.ORG
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

In article <4507d543$0$9241$afc38c87@news.optusnet.com.au>, "cpu" <postmaster@[127.0.0.1]> writes:
>
>
>I'm trying to get more familiar with *nix.
>
>Today I downloaded and installed Cygwin/X on to my WinXP machine at work. I
>could then ssh into my Fedora Core 5 Linux box and run 'konqueror &' and the
>Konqueror web browser would be displayed on my WinXP box.
>
>How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
>I can successfully ssh into it. The DISPLAY environment variable has been
>manually set with:
>
>export DISPLAY=ip_address_of_winxp_box:0
>
>/etc/sshd_config has been modified with the line
>X11 Forwarding Yes (instead of No)
>
>When I run:
>
>/Applications/Safari.app/Contents/* MacOS/Safari &
>
>it comes back with an error something along the lines of "only root or the
>console user can do that", so then I did:
>
>sudo /Applications/Safari.app/Contents/* MacOS/Safari &
>
>Safari comes up but its displaying on the Mac box and not my WinXP box.
>
>What am I doing wrong?
>



ssh -X ???

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

"Well my son, life is like a beanstalk, isn't it?"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 02-06-2007, 07:17 PM
VAXman- @SendSpamHere.ORG
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

In article <4507d543$0$9241$afc38c87@news.optusnet.com.au>, "cpu" <postmaster@[127.0.0.1]> writes:
>
>
>I'm trying to get more familiar with *nix.
>
>Today I downloaded and installed Cygwin/X on to my WinXP machine at work. I
>could then ssh into my Fedora Core 5 Linux box and run 'konqueror &' and the
>Konqueror web browser would be displayed on my WinXP box.
>
>How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
>I can successfully ssh into it. The DISPLAY environment variable has been
>manually set with:
>
>export DISPLAY=ip_address_of_winxp_box:0
>
>/etc/sshd_config has been modified with the line
>X11 Forwarding Yes (instead of No)
>
>When I run:
>
>/Applications/Safari.app/Contents/* MacOS/Safari &
>
>it comes back with an error something along the lines of "only root or the
>console user can do that", so then I did:
>
>sudo /Applications/Safari.app/Contents/* MacOS/Safari &
>
>Safari comes up but its displaying on the Mac box and not my WinXP box.
>
>What am I doing wrong?
>



ssh -X ???

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

"Well my son, life is like a beanstalk, isn't it?"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 02-06-2007, 07:17 PM
Cosmik Debris
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

On Thu, 14 Sep 2006 07:12:56 +1200, VAXman- <@SendSpamHere.ORG> wrote:

> In article <4507d543$0$9241$afc38c87@news.optusnet.com.au>, "cpu"
> <postmaster@[127.0.0.1]> writes:
>>
>>
>> I'm trying to get more familiar with *nix.
>>
>> Today I downloaded and installed Cygwin/X on to my WinXP machine at
>> work. I
>> could then ssh into my Fedora Core 5 Linux box and run 'konqueror &'
>> and the
>> Konqueror web browser would be displayed on my WinXP box.
>>
>> How do I do the same with our Mac OS X 10.4.x box with X11 installed?

....
>> What am I doing wrong?
>>

>
>
> ssh -X ???
>

Yes ssh -X or ssh -Y will work., that way you don't have to set the
DISPLAY variable.


--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 02-06-2007, 07:17 PM
Cosmik Debris
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

On Thu, 14 Sep 2006 07:12:56 +1200, VAXman- <@SendSpamHere.ORG> wrote:

> In article <4507d543$0$9241$afc38c87@news.optusnet.com.au>, "cpu"
> <postmaster@[127.0.0.1]> writes:
>>
>>
>> I'm trying to get more familiar with *nix.
>>
>> Today I downloaded and installed Cygwin/X on to my WinXP machine at
>> work. I
>> could then ssh into my Fedora Core 5 Linux box and run 'konqueror &'
>> and the
>> Konqueror web browser would be displayed on my WinXP box.
>>
>> How do I do the same with our Mac OS X 10.4.x box with X11 installed?

....
>> What am I doing wrong?
>>

>
>
> ssh -X ???
>

Yes ssh -X or ssh -Y will work., that way you don't have to set the
DISPLAY variable.


--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 02-06-2007, 07:17 PM
Stefan Lindstrom
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

"cpu" <postmaster@[127.0.0.1]> writes:

>
> How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
> I can successfully ssh into it. The DISPLAY environment variable has
> been manually set with:
>
> export DISPLAY=ip_address_of_winxp_box:0
>
> /etc/sshd_config has been modified with the line
> X11 Forwarding Yes (instead of No)
>

<snip>
>
> Safari comes up but its displaying on the Mac box and not my WinXP box.
>
> What am I doing wrong?


As others have already stated, you can only do this with X11 apps, not
Safari nor any other Mac application.

However, you should be aware that what you are doing (according to the
description) is *not* secure X11 forwarding. X11 forwarding implies that
you forward the X11 traffic over your SSH link. When you set DISPLAY to
ip_address_of_winxp_box:0 you tell the X11 traffic to pass over the
internet in the clear instead of over SSH.

As another poster said, to use secure forwarding of X11 you need to use
the SSH options -X och -Y. Then your DISPLAY variable will be correctly
set (most probably to localhost:10.0) and your X11 traffic will be
encrypted.

/Stefan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 02-06-2007, 07:17 PM
Stefan Lindstrom
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

"cpu" <postmaster@[127.0.0.1]> writes:

>
> How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
> I can successfully ssh into it. The DISPLAY environment variable has
> been manually set with:
>
> export DISPLAY=ip_address_of_winxp_box:0
>
> /etc/sshd_config has been modified with the line
> X11 Forwarding Yes (instead of No)
>

<snip>
>
> Safari comes up but its displaying on the Mac box and not my WinXP box.
>
> What am I doing wrong?


As others have already stated, you can only do this with X11 apps, not
Safari nor any other Mac application.

However, you should be aware that what you are doing (according to the
description) is *not* secure X11 forwarding. X11 forwarding implies that
you forward the X11 traffic over your SSH link. When you set DISPLAY to
ip_address_of_winxp_box:0 you tell the X11 traffic to pass over the
internet in the clear instead of over SSH.

As another poster said, to use secure forwarding of X11 you need to use
the SSH options -X och -Y. Then your DISPLAY variable will be correctly
set (most probably to localhost:10.0) and your X11 traffic will be
encrypted.

/Stefan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 02-06-2007, 07:17 PM
cpu
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding


"Stefan Lindstrom" <steli@lysator.liu.se> wrote in message
news:863bauq5rv.fsf@karlslund.homeunix.org...
> However, you should be aware that what you are doing (according to the
> description) is *not* secure X11 forwarding. X11 forwarding implies that
> you forward the X11 traffic over your SSH link. When you set DISPLAY to
> ip_address_of_winxp_box:0 you tell the X11 traffic to pass over the
> internet in the clear instead of over SSH.
>
> As another poster said, to use secure forwarding of X11 you need to use
> the SSH options -X och -Y. Then your DISPLAY variable will be correctly
> set (most probably to localhost:10.0) and your X11 traffic will be
> encrypted.
>
> /Stefan


Thanks for this very handy tip. I shall use ssh -X instead of exporting the
DISPLAY environment variable.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 02-06-2007, 07:17 PM
cpu
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding


"Stefan Lindstrom" <steli@lysator.liu.se> wrote in message
news:863bauq5rv.fsf@karlslund.homeunix.org...
> However, you should be aware that what you are doing (according to the
> description) is *not* secure X11 forwarding. X11 forwarding implies that
> you forward the X11 traffic over your SSH link. When you set DISPLAY to
> ip_address_of_winxp_box:0 you tell the X11 traffic to pass over the
> internet in the clear instead of over SSH.
>
> As another poster said, to use secure forwarding of X11 you need to use
> the SSH options -X och -Y. Then your DISPLAY variable will be correctly
> set (most probably to localhost:10.0) and your X11 traffic will be
> encrypted.
>
> /Stefan


Thanks for this very handy tip. I shall use ssh -X instead of exporting the
DISPLAY environment variable.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 02-06-2007, 07:17 PM
Eberhard Lisse
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

It is not possible to display Safari on your X workstation.

el

on 9/13/06 11:53 AM cpu said the following:
> I'm trying to get more familiar with *nix.
>
> Today I downloaded and installed Cygwin/X on to my WinXP machine at
> work. I could then ssh into my Fedora Core 5 Linux box and run
> 'konqueror &' and the Konqueror web browser would be displayed on my
> WinXP box.
>
> How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
> I can successfully ssh into it. The DISPLAY environment variable has
> been manually set with:
>
> export DISPLAY=ip_address_of_winxp_box:0
>
> /etc/sshd_config has been modified with the line
> X11 Forwarding Yes (instead of No)
>
> When I run:
>
> /Applications/Safari.app/Contents/* MacOS/Safari &
>
> it comes back with an error something along the lines of "only root or
> the console user can do that", so then I did:
>
> sudo /Applications/Safari.app/Contents/* MacOS/Safari &
>
> Safari comes up but its displaying on the Mac box and not my WinXP box.
>
> What am I doing wrong?


--
If you want to email me, replace nospam with el
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 02-06-2007, 07:17 PM
Eberhard Lisse
Newsgroup Contributor
 
Posts: n/a
Re: X11 Forwarding

It is not possible to display Safari on your X workstation.

el

on 9/13/06 11:53 AM cpu said the following:
> I'm trying to get more familiar with *nix.
>
> Today I downloaded and installed Cygwin/X on to my WinXP machine at
> work. I could then ssh into my Fedora Core 5 Linux box and run
> 'konqueror &' and the Konqueror web browser would be displayed on my
> WinXP box.
>
> How do I do the same with our Mac OS X 10.4.x box with X11 installed?
>
> I can successfully ssh into it. The DISPLAY environment variable has
> been manually set with:
>
> export DISPLAY=ip_address_of_winxp_box:0
>
> /etc/sshd_config has been modified with the line
> X11 Forwarding Yes (instead of No)
>
> When I run:
>
> /Applications/Safari.app/Contents/* MacOS/Safari &
>
> it comes back with an error something along the lines of "only root or
> the console user can do that", so then I did:
>
> sudo /Applications/Safari.app/Contents/* MacOS/Safari &
>
> Safari comes up but its displaying on the Mac box and not my WinXP box.
>
> What am I doing wrong?


--
If you want to email me, replace nospam with el
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Txt Forwarding Beverly Howard [Ms-MVP/MobileDev] Pocket PC General 0 01-19-2009 11:48 AM
Forwarding Messages JSmith Microsoft Office 1 07-12-2007 10:41 AM
forwarding messages Babs Windows Vista 5 06-17-2007 09:50 AM
Fax forwarding Jason Microsoft Office 1 03-02-2007 09:00 AM
Port forwarding Jack Black Windows XP 2 01-22-2007 04:15 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 01:04 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0