| 1 |
|
|---|
| 2 | = IRAF Setup on Ubuntu/Debian =
|
|---|
| 3 |
|
|---|
| 4 | This page describes how to setup IRAF on a 32-bit Ubuntu/Debian machine.
|
|---|
| 5 | Installation of X11IRAF, DS9, Tables, and STSDAS are also included.
|
|---|
| 6 |
|
|---|
| 7 | It will be easiest if you just copy-paste the instructions one by one.
|
|---|
| 8 | Please be sure to read and implement the instructions in [[brackets]] as well.
|
|---|
| 9 |
|
|---|
| 10 | (For 64-bit installation, use
|
|---|
| 11 | http://geco.phys.columbia.edu/~rubab/iraf/iraf-64-bit_step_by_step_installation )
|
|---|
| 12 |
|
|---|
| 13 | Please send questions or comments to:
|
|---|
| 14 | rubab@astro.columbia.edu
|
|---|
| 15 |
|
|---|
| 16 | --------------------------------------------------------------------------------------------------------------------------------
|
|---|
| 17 |
|
|---|
| 18 | sudo apt-get install tcsh
|
|---|
| 19 |
|
|---|
| 20 | wget http://geco.phys.columbia.edu/~rubab/iraf/ldso_1.9.11-15_i386.deb
|
|---|
| 21 |
|
|---|
| 22 | sudo dpkg -i ldso_1.9.11-15_i386.deb
|
|---|
| 23 |
|
|---|
| 24 | wget http://geco.phys.columbia.edu/~rubab/iraf/libc5_5.4.46-15_i386.deb
|
|---|
| 25 |
|
|---|
| 26 | sudo dpkg -i libc5_5.4.46-15_i386.deb
|
|---|
| 27 |
|
|---|
| 28 | wget http://geco.phys.columbia.edu/~rubab/iraf/termcap-compat_1.2.3_i386.deb
|
|---|
| 29 |
|
|---|
| 30 | sudo dpkg -i termcap-compat_1.2.3_i386.deb
|
|---|
| 31 |
|
|---|
| 32 | [[Use System>Administration>Users and Groups to create an account with username "iraf",
|
|---|
| 33 | real name "IRAF Maintenance", home directory "/iraf/iraf/local", shell "/bin/tcsh",
|
|---|
| 34 | and a secure password. For sudo commands here on, use this password.]]
|
|---|
| 35 |
|
|---|
| 36 | sudo chown -R iraf:iraf /iraf
|
|---|
| 37 |
|
|---|
| 38 | su iraf
|
|---|
| 39 |
|
|---|
| 40 | mkdir /iraf/irafbin
|
|---|
| 41 |
|
|---|
| 42 | mkdir /iraf/irafbin/bin.linux
|
|---|
| 43 |
|
|---|
| 44 | mkdir /iraf/irafbin/noao.bin.linux
|
|---|
| 45 |
|
|---|
| 46 | mkdir /iraf/x11iraf
|
|---|
| 47 |
|
|---|
| 48 | mkdir /iraf/extern
|
|---|
| 49 |
|
|---|
| 50 | cd /iraf/iraf
|
|---|
| 51 |
|
|---|
| 52 | wget http://iraf.net/ftp/iraf/V2.13-BETA/as.pcix.gen.gz
|
|---|
| 53 |
|
|---|
| 54 | tar -zxf as.pcix.gen.gz
|
|---|
| 55 |
|
|---|
| 56 | rm as.pcix.gen.gz
|
|---|
| 57 |
|
|---|
| 58 | cd /iraf/iraf/unix/bin.redhat/
|
|---|
| 59 |
|
|---|
| 60 | mv * ../bin.linux/
|
|---|
| 61 |
|
|---|
| 62 | cd /iraf/irafbin/bin.linux
|
|---|
| 63 |
|
|---|
| 64 | wget http://iraf.net/ftp/iraf/V2.13-BETA/ib.rhux.x86.gz
|
|---|
| 65 |
|
|---|
| 66 | tar -zxpf ib.rhux.x86.gz
|
|---|
| 67 |
|
|---|
| 68 | rm ib.rhux.x86.gz
|
|---|
| 69 |
|
|---|
| 70 | cd /iraf/irafbin/noao.bin.linux
|
|---|
| 71 |
|
|---|
| 72 | wget http://iraf.net/ftp/iraf/V2.13-BETA/nb.rhux.x86.gz
|
|---|
| 73 |
|
|---|
| 74 | tar -zxpf nb.rhux.x86.gz
|
|---|
| 75 |
|
|---|
| 76 | rm nb.rhux.x86.gz
|
|---|
| 77 |
|
|---|
| 78 | setenv iraf /iraf/iraf/
|
|---|
| 79 |
|
|---|
| 80 | cd $iraf/unix/hlib
|
|---|
| 81 |
|
|---|
| 82 | source irafuser.csh
|
|---|
| 83 |
|
|---|
| 84 | [[Choose default paths as will be shown in on-screen prompt parentheses.
|
|---|
| 85 | Type "y" only where "yes" returns "huh?".]]
|
|---|
| 86 |
|
|---|
| 87 | sudo ./install
|
|---|
| 88 |
|
|---|
| 89 | sudo apt-get install libncurses4
|
|---|
| 90 |
|
|---|
| 91 | cd /iraf/x11iraf/
|
|---|
| 92 |
|
|---|
| 93 | wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v1.3.1-bin.redhat.tar.gz
|
|---|
| 94 |
|
|---|
| 95 | tar -zxf x11iraf-v1.3.1-bin.redhat.tar.gz
|
|---|
| 96 |
|
|---|
| 97 | mv lib.redhat lib.linux
|
|---|
| 98 |
|
|---|
| 99 | mv bin.redhat bin.linux
|
|---|
| 100 |
|
|---|
| 101 | sudo ./install
|
|---|
| 102 |
|
|---|
| 103 | rm x11iraf-v1.3.1-bin.redhat.tar.gz
|
|---|
| 104 |
|
|---|
| 105 | wget http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.5.0.tar.gz
|
|---|
| 106 |
|
|---|
| 107 | tar -zxf ds9.linux.5.0.tar.gz
|
|---|
| 108 |
|
|---|
| 109 | rm ds9.linux.5.0.tar.gz
|
|---|
| 110 |
|
|---|
| 111 | sudo mv ds9 /usr/local/bin/
|
|---|
| 112 |
|
|---|
| 113 | cd /iraf/extern/
|
|---|
| 114 |
|
|---|
| 115 | mkdir tables stsdas
|
|---|
| 116 |
|
|---|
| 117 | cd /iraf/extern/tables/
|
|---|
| 118 |
|
|---|
| 119 | wget ftp://ftp.stsci.edu/pub/software/stsdas/tables_v3.7/source/tables37.tar.gz
|
|---|
| 120 |
|
|---|
| 121 | tar -zxf tables37.tar.gz
|
|---|
| 122 |
|
|---|
| 123 | rm tables37.tar.gz
|
|---|
| 124 |
|
|---|
| 125 | cd bin.linux/
|
|---|
| 126 |
|
|---|
| 127 | wget ftp://ftp.stsci.edu/pub/software/stsdas/tables_v3.7/binaries/tables37.bin.redhat.tar.gz
|
|---|
| 128 |
|
|---|
| 129 | tar -zxf tables37.bin.redhat.tar.gz
|
|---|
| 130 |
|
|---|
| 131 | rm tables37.bin.redhat.tar.gz
|
|---|
| 132 |
|
|---|
| 133 | cd /iraf/extern/stsdas
|
|---|
| 134 |
|
|---|
| 135 | wget ftp://ftp.stsci.edu/pub/software/stsdas/stsdas_v3.7/source/stsdas37.tar.gz
|
|---|
| 136 |
|
|---|
| 137 | tar -zxf stsdas37.tar.gz
|
|---|
| 138 |
|
|---|
| 139 | rm stsdas37.tar.gz
|
|---|
| 140 |
|
|---|
| 141 | cd bin.linux
|
|---|
| 142 |
|
|---|
| 143 | wget ftp://ftp.stsci.edu/pub/software/stsdas/stsdas_v3.7/binaries/stsdas37.bin.redhat.tar.gz
|
|---|
| 144 |
|
|---|
| 145 | tar -zxf stsdas37.bin.redhat.tar.gz
|
|---|
| 146 |
|
|---|
| 147 | rm stsdas37.bin.redhat.tar.gz
|
|---|
| 148 |
|
|---|
| 149 | cd /iraf/extern/stsdas
|
|---|
| 150 |
|
|---|
| 151 | python python/compileall.py ./python
|
|---|
| 152 |
|
|---|
| 153 | python python/compileall.py ./python/*
|
|---|
| 154 |
|
|---|
| 155 | exit
|
|---|
| 156 |
|
|---|
| 157 | cd
|
|---|
| 158 |
|
|---|
| 159 | wget http://geco.phys.columbia.edu/~rubab/iraf/iraf
|
|---|
| 160 |
|
|---|
| 161 | sudo chmod u=rwx iraf
|
|---|
| 162 |
|
|---|
| 163 | mkdir ~/IRAF
|
|---|
| 164 |
|
|---|
| 165 | cd ~/IRAF
|
|---|
| 166 |
|
|---|
| 167 | mkiraf
|
|---|
| 168 |
|
|---|
| 169 | [[Select "xgterm" as your IRAF shell when prompted.]]
|
|---|
| 170 |
|
|---|
| 171 | -----------------------------------------------------------------------------------------------------------------------------------------------
|
|---|
| 172 |
|
|---|
| 173 | The command ./iraf will now launch a complete IRAF session containing DS9,
|
|---|
| 174 | xgterm and ecl, based in ~/IRAF. Alternately, type "ecl" for enhanced IRAF, "cl"
|
|---|
| 175 | for regular IRAF, and "ds9" for standalone DS9 launch. Please note that "tables"
|
|---|
| 176 | and "stsdas" can only be used within IRAF.
|
|---|
| 177 |
|
|---|
| 178 | Repeat the last 5 steps for each user as needed.
|
|---|
| 179 |
|
|---|
| 180 | = END =
|
|---|
| 181 |
|
|---|