Welcome to iraf.net Tuesday, May 21 2024 @ 12:14 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Whoami
   
edbudding
 08/17/2010 02:13AM (Read 3088 times)  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
This is probably *very* elementary -- but there is something I do not understand about the way IRAF is now set up for me in the cygwin environment. When I now login, my home directory -- formerly /home/Edwin -- has become /cygdrive/c/irafuser.
Iraf seems to work ok. But the stuff I want it to work on is in /home/Edwin. That might not have been so bad -- if it
just meant shifting files around. But the original home directory
was also linked to some other initial data-handling software that
I am no longer able to fire up. I am wondering if this may be something
to do with there now being an additional .bashrc -- in /iraf/iraf/local --
apart from the one in /home/Edwin that enabled that other software to be accessed...(?)
Did I tick a wrong box somewhere during the installation...?
Ed --
PS I did see a message somewhere about the cygdrive/c/irafuser username change -- and this kind of thing happening if there is a space in my own username. But that is not the case here -- that is simply Edwin.
When I go "whoami" that is the answer I get.
Oops!

 
Profile Email
 Quote
fitz
 08/17/2010 02:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
What instructions did you use for the installation? "Normally" you would just download some tar files and unpack them using your normal user account, there are no 'boxes to tick' or user-name changes required. I know there are some third-party instructions out there but this doesn't sound familiar. Are you logging is as 'Edwin' or 'irafuser'?

 
Profile Email
 Quote
edbudding
 08/17/2010 02:13AM  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
I followed the procedure given on the Siepedia page.
I guess "ticking boxes" is a figure of speech -- because I think the procedure
does allow the use some options on setup as you go through the installation steps, but that probably means hitting the return key for the defaults.But, one idea is that I may have set up iraf in the wrong base directory.
I do have a Linux version set up on another box, and there it branches off from the /home directory, so that it looks like another username.
I understood the information on the SIEpedia page to indicate that iraf (in cygwin) should be set up from the root directory (i.e. / ).Is that right?Thanks for the input.Ed

 
Profile Email
 Quote
fitz
 08/17/2010 02:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The Siepedia instructions also mention problems caused by Cygwin paths such as '/cygdrive/c/Documents and Settings/user' (i.e. the spaces), part of your problem may be that the 'Documents and Settings' directory is in the 'user' path for both your iraf login and the other software.Installation instructions refer to /iraf in part as a convenient way to use a pathname, in reality the /iraf may be a link to some other directory (e.g. /home/iraf) or a much longer path - you just need to give a valid path for your system when running the installation script. If you create an 'iraf' user (as you might under linux) then the login dir for that iraf user would be e.g. /iraf/iraf/local and the .bashrc/.cshrc file would have effect, but IRAF is meant to be used by any user of the system so only the .bashrc for your 'edwin' account should matter.If you issue the 'env' command does the HOME or USER variable show any spaces? If you type 'mkiraf' or 'cl', exacty what are the error messages?

 
Profile Email
 Quote
edbudding
 08/17/2010 02:13AM  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
Thanks for the response.From the env command I find USER=Edwin
but HOME=/cygdrive/c/irafuser
-- however, suspiciously, from what you say, we can also see
HOMEPATH=\Documents and Settings\Edwin
where the spaces do appear Oops! mkiraf does not show any error but reports that a new LOGIN.CL file has been set up in the current directory (which is /cygdrive/c/irafuser
and cl just fires up iraf in the expected way.
In other words -- if the other software linked to my original home directory
/home/Edwin could be fired up in this irafuser directory, I guess there wouldn't be a problem -- but I haven't been able to sort that fix out.My inclination was to delete everything in the current setup and start over --
probably taking extra care about anything to do with spaces that I might
have overlooked before. I have set up iraf in cygwin before (on a different machine), but I don't remember this problem from last time.
Would having another go from scratch be the quickest way to get things working for me would you guess...(?)Regards --- Ed

 
Profile Email
 Quote
edbudding
 08/17/2010 02:13AM  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
I cannot seem to make much progress with this. I deleted all the /cygdrive/c references to iraf, and reinstalled it again following the steps on SIEPedia. It mentions there that the irafuser directory is created in /cygdrive/c in order to avoid the difficulty of spaces in path Documents and Settings ---But what I can't understand is why it is necessary to link iraf to that part of the disk in any way. All the /cygdrive/c stuff is surely MSWindows related --
while the whole point of cygwin is surely to create a self-contained Linux-like environment in which to run Linux-based programs, including iraf.In any case, the reinstallation has not removed the home directory being reset to /cygdrive/c/irafuser -- even after I have deleted this directory (several times). Confused

 
Profile Email
 Quote
afarrow
 08/17/2010 02:13AM  
++---
Junior

Status: offline


Registered: 07/14/2008
Posts: 19
[quote:fbbd397ef3="edbudding"]I cannot seem to make much progress with this. I deleted all the /cygdrive/c references to iraf, and reinstalled it again following the steps on SIEPedia. It mentions there that the irafuser directory is created in /cygdrive/c in order to avoid the difficulty of spaces in path Documents and Settings ---But what I can't understand is why it is necessary to link iraf to that part of the disk in any way. All the /cygdrive/c stuff is surely MSWindows related --
while the whole point of cygwin is surely to create a self-contained Linux-like environment in which to run Linux-based programs, including iraf.In any case, the reinstallation has not removed the home directory being reset to /cygdrive/c/irafuser -- even after I have deleted this directory (several times). Confused[/quote:fbbd397ef3]I have used the same document for dealing with the cygwin install. it is very helpful, but it needs some work.you can successfully run 'mkiraf' in your home directory (/home/{USER}/) At MLO i am using /home/observer/iraf and used mkiraf there.
It is running perfectly fine for the observers i work with at MLO.

SDSU - Astronomy - Mount Laguna Observatory Superintendent
 
Profile Email Website
 Quote
afarrow
 08/17/2010 02:13AM  
++---
Junior

Status: offline


Registered: 07/14/2008
Posts: 19
I have made and used this script one at least 4 seperate machines and the systems have been running it fine. This is my no download script, so you must fetch all of the files off of this siteas.pcix.gen.gz
ib.cygw.x86.gz
nb.cygw.x86.gz
xgterm.cygwinds9 should actually be gotten and placed either in the /usr/bin or at c:/ds9 and add the location to your environment variables PATH in windows, I have commented out the ds9 section.
irafpreinstall script
[code:1:de1ad15367]
#!/bin/bash#
# irafinstall (c) AndrewFarrow 2008 Dec 16 Version 1.0 #
#
# Cygwin IRAF installer script
#
# tcsh and X11 Must be installed via cygwin installer
#echo "IRAF v2.14 setup, NO DOWNLOAD, ALL FILES MUST BE IN c:\iraf-files"
echo "Fetching IRAF v2.14"
cd /cygdrive/c/iraf-files
mv x11iraf-v1.3.2-bin.macintel.tar.gz x11irafv132.tar.gzecho "Installing xgterm and ds9"
cp xgterm.cygwin /usr/local/bin/xgterm
#cp ds9.cygwin /usr/local/bin/ds9
chmod a+x /usr/local/bin/xgterm
#chmod a+x /usr/local/bin/ds9echo "Making directory structure"
mkdir /iraf
mkdir /iraf/iraf
mkdir /iraf/irafbin
mkdir /iraf/irafbin/bin.cygwin
mkdir /iraf/irafbin/noao.bin.cygwin
mkdir /iraf/externecho "Installing IRAF Files"
cd /iraf/iraf
tar -zxvf /cygdrive/c/iraf-files/as.pcix.gen.gz
cd /iraf/irafbin/bin.cygwin
tar -zxvf /cygdrive/c/iraf-files/ib.cygw.x86.gz
cd /iraf/irafbin/noao.bin.cygwin
tar -zxvf /cygdrive/c/iraf-files/nb.cygw.x86.gz
mkdir /iraf/irafbin/x11iraf
cd /iraf/irafbin/x11iraf
tar -zxvf /cygdrive/c/iraf-files/x11irafv132.tar.gz# If you have externals, uncomment this
#echo "Installing external packages"
#./externalinstall
# Add more external files to irafexterninstall per
# example in fileecho "Initiating Test Install"
echo "If all messages seem correct run: ./install"cd /iraf/iraf/unix/hlib
./install -n
[/code:1:de1ad15367]irafuser script
[code:1:de1ad15367]
#!/bin/bash
echo "Terminal type for IRAF is: xgterm"
echo "ds9 should be in /usr/local/bin"stty erase ^H
declare -x PATH="${PATH}:${HOME}/bin"
declare -x IMTDEV="inet:5137:127.0.0.1"mkdir -p ~/iraf
cd ~/iraf
mkiraf
[/code:1:de1ad15367]

SDSU - Astronomy - Mount Laguna Observatory Superintendent
 
Profile Email Website
 Quote
edbudding
 08/17/2010 02:13AM  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
Smile
Hi Andrew -- Thanks for your input.I have tried mkiraf from my (original) home directory /home/Edwin
and I believe cl works ok from that directory.But, basically, I have fouled up something else somewhere
because -- for example -- cd [space and then return]
always returns me to /cygdrive/c/irafuser .
Even that would not be so bad, but I can't get the
original spectrograph reduction package (which involved some
extra instructions in my original .bashrc file) to fire up, because
(I think), that .bashrc has now been overprioritized by
something else, somewhere in the iraf suite.
(There is some .bash file that keeps being set up
in this usurping /cygdrive/c/irafuser directory, for instance,
that comes back every time, after I have deleted it.)I think there is nothing for it but to start over --
I am not too sure how to uninstall iraf myself,
but there is a fellow I know locally who has done this
and offered some help.
I will probably follow that lead next, and let you know
what happens.Thanks again --Ed

 
Profile Email
 Quote
edbudding
 08/17/2010 02:13AM  
+----
Newbie

Status: offline


Registered: 08/16/2010
Posts: 6
Big Grin Ok. Identity crisis over!The thinking is now that I had not completed the full run of instructions on the SIEpedia install page properly before firing up iraf in Cygwin.I deleted all the previous Cygwin setup (actually a non-trivial task) and started again from the beginning.
Things do now function normally, with -- e.g. cd [space] returning me to the correct home directory, which agrees with what whoami reports.
iraf branches off from the root directory and there is no irafuser directory appearing among the MSWIndows directories. Sorry for any bother about this.Ed

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