Osservatorio Astronomico Amatoriale

Pietro Dora Vivarelli

Install IRAF V2.16 on SuSE 12.2 (Dec 2013)

(funziona anche su UbuntU)


Iraf breve ( semplice ) manuale sull'utilizzo del software
1) Dowload http://iraf.noao.edu/  


     linux32 bit tp://iraf.noao.edu/iraf/v216/PCIX/iraf.lnux.x86.tar.gz
XImtool http://iraf.noao.edu/x11iraf/x11iraf-v2.0BETA-bin.redhat.tar.gz

da root
mkdir /iraf
mkdir /iraf/iraf
cd /iraf/iraf
tar zxvf iraf.lnux.x86.tar.gz

# si crea utente iraf (deve essere installato il pacchetto tcsh
zypper install tcsh)

useradd -d /iraf/iraf/local/ -g 100 -s /bin/csh iraf

passwd iraf
#si crea la password per l'utente iraf

su iraf
setenv iraf /iraf/iraf
setenv IRAFARCH linux64	<-- set system architecture
cd /iraf/iraf/unix/hlib/
source irafuser.csh
./install.csh 
 -------------------------------------------------------------------------
 IRAF V2.16 System Installation
                      ================================

       Welcome to the IRAF installation script.  This script will first
  prompt you for several needed path names.  The system will be verified
  for proper structure before the actual install begins, all error must
  must be corrected before you will be allowed to continue.  Recommend-
  ations for fixing problems will be made but no corrective action will
  be taken directly.  Once properly installed, you will be allowed to
  do some minimal configuration.

  For each prompt: hit  to accept the default value, 'q' to quit,
  or 'help' or '?' to print an explanation of the prompt.
-----------------------------------------------------------------------------
# seguire le sitruzioni del programma di installazione

exit 

# loggarsi come utente predeinito

mkdir x11
cd x11

tar zxv x11iraf-v2.0BETA-bin.redhat.tar.gz

sudo mv bin.redhat/* /usr/local/bin
sudo mv lib.redhat/* /usr/local/lib
sudo mv include/* /usr/local/include/

sudo rm -rf ~/x11

# scaricare DS9 (http://hea-www.harvard.edu/RD/ds9/site/Home.html)

mv ds9 /usr/local/bin/
sudo chmod +x /usr/local/bin/ds9

# creo il login per iraf

sudo vi /usr/local/bin iraf
---------------------------
#!/bin/csh -f
X11Iraf
---------------------------


sudo vi /usr/local/bin/X11Iraf

--------------------------------------
#!/bin/bash

if [ "$(id -u -n)" == "iraf" ]; then
    IRAFHOME="/iraf/iraf/local";
else
    IRAFHOME="$HOME/IRAF";
fi

mkdir -p $IRAFHOME;
pushd "$IRAFHOME" > /dev/null

if [ ! -f "login.cl" ]; then
    echo xgterm | mkiraf;
fi

if [ ! `pidof ds9` ]; then
    ds9 &
fi

if [ ! `pidof xgterm` ]; then
    xgterm -sb -geometry "80x40" -bg "magenta" -title "IRAF B09" -e "ecl" &
fi

popd > /dev/null
--------------------------------------------------------------------------------

sudo chmod +x /usr/local/bin/iraf
sudo chmod +x /usr/local/bin/X11Iraf

#  adesso รจ installato premere nel teminale iraf

(video tutorial http://www.youtube.com/watch?v=Z8id3TtjiCg



 
by backman