image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old July 13th, 2005, 09:16 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rjmagyar is on a distinguished road
Newbie: Xterm help

Hi,

I am new to Mac OS but am a long time linux and unix user. I am running the X11 that was available on the Mac OS version 10.4 disk. When I open an xterm and try to run application &, no new window pops up. How do I enable this? I'd like to run emacs, for example, in a new window. Thanks, Rudy Magyar
Reply With Quote
  #2  
Old August 14th, 2005, 03:49 AM
Registered User
 
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
digit9 is on a distinguished road
You need to append the -DISPLAY flag at the end of your application. Most man pages document this flag.

Basically it's something like this
AppName -DISPLAY 192.168.0.1:0.0
Reply With Quote
  #3  
Old August 14th, 2005, 11:13 AM
spb spb is offline
Registered User
 
Join Date: Dec 2004
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
spb is on a distinguished road
Are you sure about needing to set $DISPLAY ?

When I check I do not have $DISPLAY set, but I can type "open-x11 gimp" and it works just fine.

Frankly, I've also had many problems, getting the X applications to work as I want them to, but I've not found that the problem is associated with the DISPLAY variable.

For example I've had problems getting remote x applications to tunnel with ssh. I've set "xhost +", I've used the -X flag with ssh, and I've manally set $DISPLAY, but I've still had problems.
Reply With Quote
  #4  
Old August 16th, 2005, 08:20 AM
gentsch's Avatar
Registered User
 
Join Date: Apr 2005
Location: Georgia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
gentsch is on a distinguished road
xterm

On other *ix's you may have to run xhost + to allow other X winders to pop on the host.
(xhost + is the least secure option, xhost +yourhostname is better)

My Mac is at home, so would have to actually try it and see if that indeed is the problem...
it may not be....seems like I have never had issues popping X on my mac...I do have to have the X11 program running, though, but if you alredy have an xterm up, and not a terminal you should be good.

Reply and let me know if I need to go dig on this. I am assuming you figured it out since this post is a month or so old.

S
Reply With Quote
  #5  
Old August 16th, 2005, 08:23 AM
gentsch's Avatar
Registered User
 
Join Date: Apr 2005
Location: Georgia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
gentsch is on a distinguished road
Xterm...

The display is a good point, as is the ssh -X (assuming your ssh config files allow it).

I somehow did not see the other responses before my post, so sorry....feels like Monday again.....terminal morning fog.
Reply With Quote
  #6  
Old August 16th, 2005, 02:12 PM
Registered User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
mambopanda is on a distinguished road
Quote:
Originally Posted by spb
Are you sure about needing to set $DISPLAY ?

When I check I do not have $DISPLAY set, but I can type "open-x11 gimp" and it works just fine.

Frankly, I've also had many problems, getting the X applications to work as I want them to, but I've not found that the problem is associated with the DISPLAY variable.

For example I've had problems getting remote x applications to tunnel with ssh. I've set "xhost +", I've used the -X flag with ssh, and I've manally set $DISPLAY, but I've still had problems.
I believe he is talking about launching emacs from xterm(which is an x11 app that lets you access the shell), instead of from terminal. In that case the DISPLAY flag is the way to go.
Reply With Quote
  #7  
Old November 10th, 2005, 08:22 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rjmagyar is on a distinguished road
I solved half of this problem. I can run many applications from the X11 window without a problem, but for some reason emacs prefers to run in the xterminal. I tried the display option and that failed. Also, I used to use an "xterm -e" option in linux. How do I get this to work? Thanks, Rudy
Reply With Quote
  #8  
Old November 10th, 2005, 02:09 PM
Registered User
 
Join Date: Mar 2005
Posts: 197
Thanks: 0
Thanked 1 Time in 1 Post
artov is on a distinguished road
Quote:
Originally Posted by rjmagyar
I solved half of this problem. I can run many applications from the X11 window without a problem, but for some reason emacs prefers to run in the xterminal. I tried the display option and that failed.
Are you sure you have X11 support compiled to your emacs? Normally
emacs uses X11 if it finds it, but if it has no X11 support, it will not even
try to search it.
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:51 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.