IRAF Setup on Ubuntu/Debian
2013-03-28 23:05
204 查看
= IRAF Setup on Ubuntu/Debian = This page describes how to setup IRAF on a 32-bit Ubuntu/Debian machine. Installation of X11IRAF and DS9 are also included, plus installation of Tables and STSDAS are shown as an example of adding external packages. It will be easiest if you just copy-paste the instructions one by one. Please be sure to read and implement the instructions in [[brackets]] as well. For 64-bit installation, see - http://www.astronomy.ohio-state.edu/~khan/iraf/iraf_step_by_step_installation_64bit Please send questions or comments to: khan@astronomy.ohio-state.edu -------------------------------------------------------------------------------------------------------------------------------- sudo apt-get install tcsh sudo apt-get install libxss1 wget http://www.astronomy.ohio-state.edu/~khan/iraf/ldso_1.9.11-15_i386.deb sudo dpkg -i ldso_1.9.11-15_i386.deb wget http://www.astronomy.ohio-state.edu/~khan/iraf/libc5_5.4.46-15_i386.deb sudo dpkg -i libc5_5.4.46-15_i386.deb wget http://www.astronomy.ohio-state.edu/~khan/iraf/termcap-compat_1.2.3_i386.deb sudo dpkg -i termcap-compat_1.2.3_i386.deb [[Use System>Administration>Users and Groups to create an account with username "iraf", real name "IRAF Maintenance", home directory "/iraf/iraf/local", shell "/bin/tcsh", and a secure password. Be sure to grant admin privilege to this account. For sudo commands here on, use this password. An easy way to avoid confusion is to assign the same password to this account as to your other / sys-admin account.]] sudo chown -R iraf:iraf /iraf su iraf mkdir /iraf/irafbin mkdir /iraf/irafbin/bin.linux mkdir /iraf/irafbin/noao.bin.linux mkdir /iraf/x11iraf mkdir /iraf/extern cd /iraf/iraf wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/as.pcix.gen.gz tar -zxf as.pcix.gen.gz rm as.pcix.gen.gz cd /iraf/iraf/unix/bin.redhat/ mv * ../bin.linux/ cd /iraf/irafbin/bin.linux wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/ib.rhux.x86.gz tar -zxpf ib.rhux.x86.gz rm ib.rhux.x86.gz cd /iraf/irafbin/noao.bin.linux wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/nb.rhux.x86.gz tar -zxpf nb.rhux.x86.gz rm nb.rhux.x86.gz setenv iraf /iraf/iraf/ cd $iraf/unix/hlib source irafuser.csh [[Choose default paths as will be shown in on-screen prompt parentheses. Type "y" only where "yes" returns "huh?".]] sudo ./install // 此处应改为 “./install” **剩下的就是安装了,进入安装之后就是一路回车了,默认的设置对大多数人来说是不需要更改的,不过如果你要仔细的看看都有哪些步骤的话也是没问题的, 但是选的时候一定是输入”y”和”n”,你如果输入”yes”"no”的话,IRAF会返回”huh?”………期间有一步是网络的检查,如果不行的话也不要紧, 安装最后会提示你IRAF已经成功的安装。 sudo apt-get install libncurses5 cd /iraf/x11iraf/ wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.redhat.tar.gz tar -zxf x11iraf-v2.0BETA-bin.redhat.tar.gz mv lib.redhat lib.linux mv bin.redhat bin.linux sudo ./install rm x11iraf-v2.0BETA-bin.redhat.tar.gz wget http://hea-www.harvard.edu/saord/ds9/archive/linux/ds9.linux.6.2.tar.gz tar -zxf ds9.linux.6.2.tar.gz rm ds9.linux.6.2.tar.gz sudo mv ds9 /usr/local/bin/ exit cd wget http://www.astronomy.ohio-state.edu/~khan/iraf/iraf sudo chmod u=rwx iraf mkdir ~/IRAF cd ~/IRAF mkiraf [[Select "xgterm" as your IRAF shell when prompted.]] ----------------------------------------------------------------------------------------------------------------------------------------------- The command ./iraf will now launch a complete IRAF session containing DS9, xgterm and ecl, based in ~/IRAF. Alternately, start "xgterm' (typing xgterm), cd into the directory where you did "mkiraf", and type "ecl" for enhanced IRAF, "cl" for regular IRAF, and "ds9" for standalone DS9 launch. Repeat the last 5 steps for each user as needed. The following steps show how to add external packages. This example install Tables and STSDAS. If you don't need extra packages, then you are done already. ----------------------------------------------------------------------------------------------------------------------------------------------- su iraf cd /iraf/extern/ mkdir tables stsdas cd /iraf/extern/tables/ wget http://stsdas.stsci.edu/download/tables_3.12/tables3.12.tar.gz tar -zxf tables3.12.tar.gz rm tables3.12.tar.gz cd bin.linux/ wget http://stsdas.stsci.edu/download/tables_3.12/tables3.12.bin.redhat.tar.gz tar -zxf tables3.12.bin.redhat.tar.gz rm tables3.12.bin.redhat.tar.gz cd /iraf/extern/stsdas wget http://stsdas.stsci.edu/download/stsdas_3.12/stsdas3.12.tar.gz tar -zxf stsdas3.12.tar.gz rm stsdas3.12.tar.gz cd bin.linux wget http://stsdas.stsci.edu/download/stsdas_3.12/stsdas3.12.bin.redhat.tar.gz tar -zxf stsdas3.12.bin.redhat.tar.gz rm stsdas3.12.bin.redhat.tar.gz cd /iraf/extern/stsdas python python/compileall.py ./python python python/compileall.py ./python/* nano /iraf/iraf/unix/hlib/extern.pkg [[Now, edit this file so that it look like what follows. Do not delete any existing lines, just add the new lines that has "stsdas" or "tables" or "apropos" in them.]] ----------------------------------------- reset noao = iraf$noao/ task noao.pkg = noao$noao.cl reset tables = /iraf/extern/tables/ task tables.pkg = tables$tables.cl reset stsdas = /iraf/extern/stsdas/ task stsdas.pkg = stsdas$stsdas.cl task apropos = stsdas$apropos.cl reset helpdb = "lib$helpdb.mip \ ,noao$lib/helpdb.mip \ ,tables$lib/helpdb.mip \ ,stsdas$lib/helpdb.mip \ " keep ----------------------------------------- [[Use ctrl-x to exit, answer "y" to save file, press enter to confirm.] exit cd ----------------------------------------------------------------------------------------------------------------------------------------------- Now, tables and stsdas are available for use inside iraf. Some of the other commonly used packages are ared, mscred, color, ctio, fitsutil, gemini, gmisc, nmisc, rvsao and xdimsum. Google will help you find the packages and you can set them up (similar to the example given here for stsdas/tables) following the instructions of the host pages. The following are some notes on alternate way of doing things. ----------------------------------------------------------------------------------------------------------------------------------------------- 1. You can intall iraf without actually creating a separate user called "iraf". To do this, simply skip the [[ instructions ]] on how to create a new user, and *skip* these two lines - sudo chown -R iraf:iraf /iraf su iraf Instead, precede *all* your commands with "sudo". 2. Instead of installing the *.deb package of termcap-compat, you can install the rpm package. To do this, *skip* these lines - wget http://www.astronomy.ohio-state.edu/~khan/iraf/ldso_1.9.11-15_i386.deb sudo dpkg -i --force-architecture ldso_1.9.11-15_i386.deb wget http://www.astronomy.ohio-state.edu/~khan/iraf/libc5_5.4.46-15_i386.deb sudo dpkg -i --force-architecture libc5_5.4.46-15_i386.deb wget http://www.astronomy.ohio-state.edu/~khan/iraf/termcap-compat_1.2.3_i386.deb sudo dpkg -i --force-architecture termcap-compat_1.2.3_i386.deb Instead, do these - sudo apt-get install rpm wget http://www.astronomy.ohio-state.edu/~khan/iraf/libtermcap-2.0.8-47.x86.rpm sudo rpm -iv --force-debian --nodeps libtermcap-2.0.8-47.x86.rpm rm libtermcap-2.0.8-47.x86.rpm 3. Here are some other places to get packages from, or if you want to use x11iraf-1.5 wget http://iraf.net/ftp/iraf/v214/PCIX/as.pcix.gen.gz wget http://iraf.net/ftp/iraf/v214/PCIX/ib.rhux.x86.gz wget http://iraf.net/ftp/iraf/v214/PCIX/nb.rhux.x86.gz wget http://iraf.net/ftp/iraf/x11iraf/x11iraf-v1.5DEV-bin.redhat.tar.gz = END =
相关文章推荐
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- Installing Resin using the .deb package on Ubuntu and Debian
- Setting up Hudson on port 80 on a Debian or Ubuntu machine
- Quick Subversion (SVN) Server Setup on Ubuntu Server 12.04
- Installing Hudson on Debian and Ubuntu
- Using VNC on a debian/Ubuntu server with a OS X Mac
- Setting Up OpenERP (Odoo) 9 with Nginx on RHEL/CentOS and Debian/Ubuntu
- Setup SVN environment on Ubuntu 14.04
- Compile FFmpeg on Ubuntu, Debian, or Mint
- How to install MySQL on Ubuntu/Debian
- redis install on ubuntu/debian
- caffe setup on ubuntu 15.04 with CPU and NO GPU and NO Python
- [译]How to Setup Sync Gateway on Ubuntu如何在ubuntu上安装sync-gateway
- Setup a Lnmp on Ubuntu 12.04
- Installing TR-069 OpenACS on a fresh Debian setup
- Installing Resin using the .deb package on Ubuntu and Debian
- How-to setup Kubernetes to manage Docker Cluster on ubuntu