Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > X11 for remote connections

X11 for remote connections
Thread Tools
Daytonaaaaa
Fresh-Faced Recruit
Join Date: Aug 2002
Location: Concord, CA
Status: Offline
Reply With Quote
Jan 10, 2003, 02:54 AM
 
Ok, I just d/led X11 onto my PB. I personally don't care about using X11 locally, but I do want to connect back to the campus's linux server and run emacs off there graphically...

I launched X11, connected to the server, typed "emacs &", nothing happended. tty output is suspeneded

What am I missing here?

Daytona
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jan 10, 2003, 03:19 AM
 
On your xterm, you must

xhost <hostname>

or

xhost + (opens your display to the world)

on the remote machine

set DISPLAY=<your local host name or IP>:0.0

then

run anything you want.

But, if you have routers, etc you will need to forward appropriate ports.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
mmurray
Grizzled Veteran
Join Date: Sep 2000
Location: Adelaide, Australia
Status: Offline
Reply With Quote
Jan 10, 2003, 03:43 AM
 
Originally posted by Daytonaaaaa:
Ok, I just d/led X11 onto my PB. I personally don't care about using X11 locally, but I do want to connect back to the campus's linux server and run emacs off there graphically...

I launched X11, connected to the server, typed "emacs &", nothing happended. tty output is suspeneded

What am I missing here?

Daytona
An alternative to what Kristoff posted would be to do


ssh -X [email protected]us

where username is your username on the
campus linux server and linux.server.campus is its name. Then doing emacs & should result in emacs appearing on your powerbook. This
method has the advantage that it tunnels all the X traffic through a secure ssh connection.

Michael
     
asmodeus
Forum Regular
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Jan 10, 2003, 12:33 PM
 
Wow.. that's really awesome. I logged into my uni's student Linux server and ran a few X11 apps from their server. Wasn't incredibly fast, but it was pretty neat.
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jan 11, 2003, 01:07 AM
 
Apple's X11 is fast on the LAN. But still has bugs.


Try this out, if your remote machines are running XDMCP:

from the regular terminal WITHOUT X11.app running,

/usr/X11R6/bin/X -query <remote_host_name_or_IP>
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Daytonaaaaa  (op)
Fresh-Faced Recruit
Join Date: Aug 2002
Location: Concord, CA
Status: Offline
Reply With Quote
Jan 11, 2003, 03:56 AM
 
Tried it on my DSL at home. It was a little slow to get emacs fully started up, but after that it works like a CHARM!!!

Thanks for the help!

Daytona
     
simon.toon
Fresh-Faced Recruit
Join Date: Oct 2002
Location: London, England
Status: Offline
Reply With Quote
Jan 14, 2003, 08:41 AM
 
Originally posted by Kristoff:
Try this out, if your remote machines are running XDMCP:

from the regular terminal WITHOUT X11.app running,

/usr/X11R6/bin/X -query <remote_host_name_or_IP>
Strange - I got a lot of feedback in my Terminal but no login screen appeared on my Mac. How do you know whether XDMCP is running or not? What should the process be called?
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 14, 2003, 02:50 PM
 
Another thing worth mentioning. If you're planning on using SSH to get to the remote box that will be displaying back, be sure to enable compression in SSH if you have a slow connection (it will slow things down if you're on a LAN).

To do this in OpenSSH (which comes with OSX) add the -C flag. To do it in ssh1 (if memory serves), you add -z 6 to the ssh arguments.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jan 14, 2003, 03:23 PM
 
Originally posted by simon.toon:
Strange - I got a lot of feedback in my Terminal but no login screen appeared on my Mac. How do you know whether XDMCP is running or not? What should the process be called?
It depends on which display manager the server is running.

I run KDM on my linux box, so in /usr/share/config/kdm/kdmrc I have:

Code:
[Xdmcp] Enable=true KeyFile=/etc/X11/xdm/xdm-keys Willing= Xaccess=/etc/X11/xdm/Xaccess
for GDM, you would look in /etc/X11/gdm/gdm.conf


I am not sure for other Display Managers.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 09:00 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,