Welcome to iraf.net Friday, April 26 2024 @ 09:39 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Cygwin/x11/iraf/ds9 issues
   
peters
 08/09/2007 08:47AM (Read 18207 times)  
+----
Newbie

Status: offline


Registered: 08/09/2007
Posts: 2
I am using Cygwin on a windows XP system. I installed iraf but have not been able to open an xgterm window. I can open an xtern window. I am unsure if I have installed the correct X11iraf package as there does not seem to be a cygwin version. I loaded the macintel version but this was unhappy with the system being cygwin and not macintel. This install also needed the user to be root but my cygwin installation does not have a root user rather it has system. I am unclear how to correctly install a version of x11iraf on my system. Any advice would be appreciated.

 
Profile Email
 Quote
fitz
 08/09/2007 08:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
A binary for XGterm is available at https://iraf.net/ftp/pub/fitz/xgterm.cygwin A full X11IRAF build is pending but since XImtool is limited by 8-bit displays at the moment DS9 is the preferred image display for XP (see ftp://sao-ftp.harvard.edu/pub/rd/ds9 for a binary). To use xgterm, just be sure the file is executable and in your path.-Mike

 
Profile Email
 Quote
peters
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 08/09/2007
Posts: 2
Thanks Mike That worked fine.

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Firstly, apollogies for resurecting an old thread. If this is unacceptable please let me know and I'll happily start a new one.Secondly, I have a problem (of course!<g>Wink. I followed the CygWin/IRAF installation instructions given here: <http://www.iac.es/sieinvens/siepedia/pmwiki.php?n=HOWTOs.IrafCygwin>All is fine, except running DS9 appear to do anything. Same with executing 'xgterm -font lucidasanstypewriter -sb -ls&' (and variations thereof). X11 appears to startup ok and I can start as many xterm sessions as I like. Any suggestions?Regards
Robin

 
Profile Email
 Quote
fitz
 08/09/2007 08:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Revisiting old threads is fine if the problem is similar.Do you get any kind of error message at all? A 'command not found' might simply mean your path doesn't include the /usr/local/bin directory where you might have installed these commands or the binaries aren't executable, a complaint about the X server may mean you didn't define a 'DISPLAY' environment variable (but then xterm would fail as well). Does the command 'which xgterm' correctly find the binary? Is there any output at all?-Mike

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Thanks for your reply.Nope, no error messages at all after running DS9 or xgterm. The 'which' command finds xgterm and ds9 in '/usr/local/bin'. Running 'echo $DISPLAY', from the bash shell returns ':0'. From xterm it returns ':0.0'.Unlike 'peters' I have not attempted to install XIRAF. I have only installed the basic CygWin X11 components, including the Adobe fonts and xeyes (I like them SmileRegards
Robin Lauryssen-Mitchell
Ex-pat Brit living in deepest darkest Germany

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Hi,Actually my last post was not strictly true! Running 'startx' produces three identical warning messages: 'Warning: Cannot convert string "nil2" to type FontStruct'. Not sure how relevant that is, but thought it should be mentioned.Regards
Robin

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Hi,Got DS9 working. Downloaded the latest version, installed to default location, recreated link in /usr/local/bin and it worked just fine.Still cannot get an xgterm window to appear though - nuts!Regards
Robin

 
Profile Email
 Quote
fitz
 08/09/2007 08:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Are you using XP or Vista? If you type 'xgterm' from a Cygwin window or xterm and [b:155fb72cc6]don't[/b:155fb72cc6] run it in the background, does the prompt come back or does the app look likes it's running and doing something? If you specify DISPLAY to be another machine, does it work (i.e. is the app not starting or is it a problem with the display?)-Mike

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Hi,OS is WinXPPro SP3. CygWin newly installed 23Dec2008 (built on a new hard drive).Running 'xterm' from the Bash shell generates "xterm Xt error: Can't open display: :0"Running 'xgterm' from the Bash shell locks up the shell. I can see the xgterm process in Windows Task Manager.Running 'xterm' from an X11 window creates another window (as expected).Running 'xgterm' from an X11 window locks the window. I can see the xgterm process in Windows Task Manager.I'm not seeing an .XResources file anywhere! Does that matter greatly?
Anything else I should try? Currently trawling the net looking for xgterm info, but not finding much.Regards
Robin

 
Profile Email
 Quote
fitz
 08/09/2007 08:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try starting as[code:1:8e54dfab3c]% xgterm -display :0.0[/code:1:8e54dfab3c]I suspect your DISPLAY may not be being picked up properly. If that doesn't work, then try both of[code:1:8e54dfab3c]% xgterm -ls
% xgterm +ls[/code:1:8e54dfab3c]These start the window as a login shell, and then as just a plain shell respectively. Something in your .login file or other startup may be causing the system to wait for something, the latter command will ignore your .login so if that works but the first one doesn't, please post your .login file (if you have one). Either way, let me know if these change anything.-Mike

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Hi,Sorry, but none of those worked Frown .I don't have a .login file but I do have .bashrc file. I have also listed the XWin.0.log in case it is useful. I'll try and resolve the TTF and OTF font issues noted in the log file.************************************************************
.bashrc
************************************************************# base-files version 3.7-1# To pick up the latest recommended .bashrc content,
# look in /etc/defaults/etc/skel/.bashrc
# Modifying /etc/skel/.bashrc directly will prevent
# setup from updating it.
# The copy in your home directory (~/.bashrc) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benificial to all, please feel free to send
# a patch to the cygwin mailing list.# User dependent .bashrc file
# Shell Options
# #############
# See man bash for more options...
# Don't wait for job termination notification
# set -o notify# Don't use ^D to exit
# set -o ignoreeof# Use case-insensitive filename globbing
# shopt -s nocaseglob
# Make bash append rather than overwrite the history on disk
# shopt -s histappend
# When changing directory small typos can be ignored by bash
# for example, cd /vr/lgo/apaache would find /var/log/apache
# shopt -s cdspell
# Completion options
# ##################
# These completion tuning parameters change the default behavior of bash_completion:
# Define to access remotely checked-out files over passwordless ssh for CVS
# COMP_CVS_REMOTE=1
# Define to avoid stripping description in --option=description of './configure --help'
# COMP_CONFIGURE_HINTS=1
# Define to avoid flattening internal contents of tar files
# COMP_TAR_INTERNAL_PATHS=1
# If this shell is interactive, turn on programmable completion enhancements.
# Any completions you add in ~/.bash_completion are sourced last.
# case $- in
# *i*) [[ -f /etc/bash_completion ]] && . /etc/bash_completion ;;
# esac# History Options
# ###############
# Don't put duplicate lines in the history.
# export HISTCONTROL="ignoredups"
# Ignore some controlling instructions
# export HISTIGNORE="[ ]*:&:bg:fg:exit"
# Whenever displaying the prompt, write the previous line to disk
# export PROMPT_COMMAND="history -a"# Aliases
# #######
# Some example alias instructions
# If these are enabled they will be used instead of any instructions
# they may mask. For example, alias rm='rm -i' will mask the rm
# application. To override the alias instruction use a \ before, ie
# \rm will call the real rm not the alias.# Interactive operation...
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
# Default to human readable figures
# alias df='df -h'
# alias du='du -h'# Misc Smile
# alias less='less -r' # raw control characters
# alias whence='type -a' # where, of a sort
# alias grep='grep --color' # show differences in colour# Some shortcuts for different directory listings
# alias ls='ls -hF --color=tty' # classify files in colour
# alias dir='ls --color=auto --format=vertical'
# alias vdir='ls --color=auto --format=long'
# alias ll='ls -l' # long list
# alias la='ls -A' # all but . and ..
# alias l='ls -CF' ## Functions
# #########
# Some example functions
# function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; }#IRAF stuff
export IMTDEV="inet:5137:127.0.0.1"#HEASoft stuff
HEADAS=/usr/local/bin/heasoft/i686-pc-cygwin
export HEADAS
alias heainit=". $HEADAS/headas-init.sh"************************************************************
XWin.0.log
************************************************************Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.5.3.0 (10503000)Contact: cygwin-xfree@cygwin.comXWin was started with the following command line:/usr/bin/X :0 -auth /home/RPEHLM/.serverauth.5996 ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1440 h 900
winInitializeDefaultScreens - Returning
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winPrefsLoadPreferences: /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
MIT-SHM extension disabled due to lack of kernel support
(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(--) 6 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000809" (00000809)
(--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
Could not init font path element /usr/share/fonts/TTF/, removing from list!
Could not init font path element /usr/share/fonts/OTF, removing from list!
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winDeinitMultiWindowWM - Noting shutdown in progress

 
Profile Email
 Quote
fitz
 08/09/2007 08:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Robin,I'm starting to run out of ideas: Your .bashrc file is mostly commented out and what is defined doesn't actually do much. The complaint about a 'nil2' when starting X is probably coming from some resource setting for the xterm menu, it shouldn't however be fatal.An unlikely explanation may be a corrupted binary, i.e. if you clicked the link on the web page and let the browser do the download it might not have used binary mode or set the permissions properly. You might try downloading again by typing the wget command entirely to see if it makes a difference. Until this gets sorted you can always use xterm as the window (just be sure to set xterm as the terminal type when you do a MKIRAF).-Mike

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Hi,Thanks for all your sugesstions thus far. I'll try using wget to reinstall xgterm again; although that is how it was done the first time. After that I'll go with the HEASoft folks sugesstion of downloading the entire CygWin installation (bit like using a sledgehammer to crack a nut though!). After that I'll go to a completely new machine and redo the whole darn thing from scratch!!! Patience is a virtue in astronomy (or hospitals<g>Wink.Regards
Robin

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
I installed the whole CygWin X11 section and xgterm now works - YIPEE!!!
Of course that means I have no idea what fixed it - NUTS!Now on to the IRAF tutorial stuff :-DRegards
Robin

 
Profile Email
 Quote
rpehlm
 08/09/2007 08:47AM  
+----
Newbie

Status: offline


Registered: 06/05/2006
Posts: 9
Oooops!!! I meant HEASARC of course!Now happily working my through several IRAF tutorials found on the 'net.Regards
Robin

 
Profile Email
 Quote
   
Content generated in: 0.59 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