Welcome to iraf.net Friday, May 10 2024 @ 12:31 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Running Xgterm on Mac...
   
DrPaulHardersen
 03/18/2008 04:19PM (Read 13121 times)  
+----
Newbie

Status: offline


Registered: 02/10/2006
Posts: 9
Greetings -- I've just installed IRAF on a Mac OSX 10.5.2. IRAF runs, DS9 runs, I've installed X11 and X11IRAF (primary through www.macsingularity.org). My only problem is screen gibberish when running IRAF in the Terminal.app program.IRAF was set up to run on an xgterm. I know the gibberish means there is a mis-match in the terminal type, but I've been unable to get xgterm to run in the /usr/local/bin directory. I type xgterm and the terminal just sits.Suggestions?Thanks,Paul

Dr. Paul S. Hardersen Assistant Professor Director, ND Space Grant Consortium Director, ND NASA EPSCoR 4149 University Avenue Stop 9008 526 Clifford Hall
 
Profile Email Website
 Quote
fitz
 03/18/2008 04:19PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The Terminal.app cannot be used for doing IRAF graphics, you'll need to use XTerm or XGterm. For the latter, be sure you're using the latest binary version from https://iraf.net/ftp/iraf/x11iraf/ , I'm not sure what version is distributed by macsingularity.org.-Mike

 
Profile Email
 Quote
DrPaulHardersen
 03/18/2008 04:19PM  
+----
Newbie

Status: offline


Registered: 02/10/2006
Posts: 9
Hi Mike -- I have the current X11IRAF installed. The issue is starting up xgterm. When I invoke xgterm in a shell, nothing happens.....an xgterm window does not appear. And I'm not sure why. Paul

Dr. Paul S. Hardersen Assistant Professor Director, ND Space Grant Consortium Director, ND NASA EPSCoR 4149 University Avenue Stop 9008 526 Clifford Hall
 
Profile Email Website
 Quote
fitz
 03/18/2008 04:19PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The first thing to check is whether other X applications can start correctly (e.g. try an xclock or xterm). If you see a similar "hang", check the value of your DISPLAY variable to be sure they aren't actually running but showing up on some other computer. OTOH, of those work fine, then try running the command as [code:1:cef9bfecbf]% sudo /usr/local/bin/xgterm[/code:1:cef9bfecbf]I'm not running leopard, but some systems require that xterm-like windows be run as root, or try adding the '-ut' flag so it doesn't write a utmp entry when it starts up. If that works, chown the binary so it's owned by root and give it setuid permissions, i.e.[code:1:cef9bfecbf]
% sudo chown 0 /usr/local/bin/xgterm
% sudo chmod 4755 /usr/local/bin/xgterm
[/code:1:cef9bfecbf]Write back if it still doesn't work.-Mike

 
Profile Email
 Quote
DrPaulHardersen
 03/18/2008 04:19PM  
+----
Newbie

Status: offline


Registered: 02/10/2006
Posts: 9
OK, Mike, here's what I've learned...-- Other X apps do not seem to be working. They also hang.-- The DISPLAY variable is blank when I check setenv. Should it be set to a specific value? -- I don't know if it's significant, but the group is listed as staff.-- The TERM is set to xterm-color.-- X11 is running during all of this. Not sure why the apps aren't working.Let me know what you think,Paul

Dr. Paul S. Hardersen Assistant Professor Director, ND Space Grant Consortium Director, ND NASA EPSCoR 4149 University Avenue Stop 9008 526 Clifford Hall
 
Profile Email Website
 Quote
fitz
 03/18/2008 04:19PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try forcing the display with either[code:1:7f014446c9]
% xterm -display localhost:0.0or % setenv DISPLAY localhost:0.0
% xterm
[/code:1:7f014446c9]X11 under Leopard was/is seriously broken for some things, be sure you've installed whatever the latest update for X11 is. This version also has an "auto-launch" feature for X11 when you start xterm, so try *not* starting X from the dock first and let xterm/xgterm doit for you.-Mike

 
Profile Email
 Quote
DrPaulHardersen
 03/18/2008 04:19PM  
+----
Newbie

Status: offline


Registered: 02/10/2006
Posts: 9
Mike -- I tried both suggestions.When I did this: % xterm -display localhost:0.0, the result was this:xterm Xt error: Can't open display: localhost: 0.0When I did this: % setenv DISPLAY localhost:0.0
and this: % xterm, this was the result:xterm Xt error: Can't open display: localhost: 0.0I tried to install the latest X11 update on MacOSforge, but for some reason, it won't install.....I'll keep trying in the morning. Thanks for the help and suggestions,Paul

Dr. Paul S. Hardersen Assistant Professor Director, ND Space Grant Consortium Director, ND NASA EPSCoR 4149 University Avenue Stop 9008 526 Clifford Hall
 
Profile Email Website
 Quote
fitz
 03/18/2008 04:19PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
You might also see the FAQ on Leopard and X11 athttp://forums.macosxhints.com/archive/index.php/t-80171.htmlI'm sure this is all documented at Apple someplace as well (esp their x11 mailing list).-Mike

 
Profile Email
 Quote
DrPaulHardersen
 03/18/2008 04:19PM  
+----
Newbie

Status: offline


Registered: 02/10/2006
Posts: 9
Hi Mike -- Well, I updated the MacOS and X11 to the most recent versions and X11 now works....and as such, xgterm is now working. Thanks for the help!Paul

Dr. Paul S. Hardersen Assistant Professor Director, ND Space Grant Consortium Director, ND NASA EPSCoR 4149 University Avenue Stop 9008 526 Clifford Hall
 
Profile Email Website
 Quote
   
Content generated in: 0.27 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login