• AIPS 安装

    日期:2011-09-24 | 分类:

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://shiningsky.blogbus.com/logs/163340377.html

    1. 创建安装目录。

    # su
    # mkdir /astrosoft
    # mkdir /astrosoft/aips
    # cd /astrosoft
    # chmod 777 aips
    # exit
    2. 下载安装脚本
    $ cd /astrosoft/aips
    $ wget ftp://ftp.aoc.nrao.edu/pub/software/aips/31DEC10/install.pl
    3. 赋予脚本可执行权限
    $ chmod +x install.pl
    4. 安装
    $ perl ./install.pl
    回车后会有如下提示,让你选择是否进行binary安装,我选择的是。
    =================================================
    AipsWiz: ==> a binary installation? [Y/N, default N] : Y
    =================================================
    之后会出现一些提示,有些需要进行交互。主要是一些目录的设置。
    ==================================================
    Screen 0: INTRODUCTION
    ----------------------
    Welcome to the AIPS Install Wizard (AipsWiz)!
    It will do the following:
      1.  Look for (and/or download) the 'tarball' for 31DEC10
          (skipped if installing from CD or network)
      2.  Unpack it wherever you specify (skipped if CD or network)
      3.  Ask you for various settings through a set of menus
      4.  Review your settings, and
      5.  Do the installation with no further input needed.
    Things can go wrong (!) so this procedure is not perfect,
    but it saves state in a file .AIPSRC in your home area.
    So you can easily restart an interrupted install attempt,
    without re-entering all your settings.  You can also go
    back a screen by typing 'B' to most prompts, or you
    can Quit at any menu by entering 'Q'.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Press or to get started:
    ===============================================
    ===============================================
    Screen 2: Confirmation
    ----------------------
    Proceeding with 31DEC10 install/upgrade.  Please check:
    that this is the file you want (should be >89 Mbytes)
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Proceed [Y/N, default Y]
    ===============================================
    ===============================================
    Screen 3: Where to unpack
    -------------------------
    Please tell me where to unpack the 31DEC10 version of AIPS
    (This is the so-called AIPS_ROOT area).
    The default is /astrosoft/aips
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> AIPS Root area:
    ======================================================
    我在安装时直接从screen 0跳到了screen 4。前面的screen 2和3是我输入B后返回看到的,但始终没有出现screen 1.
    ======================================================
    Screen 4: Group Ownership
    -------------------------
    If more than one account is going to be using AIPS, you should select
    a 'Unix group' for these accounts.  This can,
    but need not be, their primary group.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> What group should be used for AIPS? [yjh]
    ==================================================
    ==================================================
    Screen 4b: Group Write
    ----------------------
    If more than one account will use AIPS, and you are using
    a group (yjh) to permit filesharing, you should also allow this group
    write access to certain AIPS files.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Allow yjh to have write access? [YES]
    ================================================
    在screen 5中输入站点名(如,我使用的YJHNAOC)
    ================================================
    Screen 5: Site Name
    -------------------
    You have already indicated your site name to be YJHNAOC
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Press to confirm, or enter a new name: YJHNAOC
    ===============================================
    ================================================
    Screen 5a: Site type
    --------------------
    If your site consists of a single portable computer
     which may get different names at different times,
     it is best to force the name for AIPS to LOCALHOST.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> If you want this, enter Y or y [N]
    ================================================
    ================================================
    Screen 5b: Architecture Confirmation
    ------------------------------------
    Your architecture appears to be LINUX
    If this is correct, press RETURN or ENTER.
    If not, enter the correct architecture (or ? for a list)
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Enter the architecture for this system [LINUX]
    ================================================
    ===============================================
    Screen 6: Additional hosts if any
    ---------------------------------
    You may configure your installation so it runs on many systems,
    sharing the AIPS ROOT area via NFS.  The list of host(s) is now:
    YJH-NAOC
    Any new hosts will initially be set to arch=LINUX, but you can
    change this by editing HOSTS.LIST in /astrosoft/aips
    when the install is finished.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Enter new hosts (no commas!) or YJH-NAOC to reset:YJH-NAOC
    ================================================
    在screen 7 设定数据目录
    ===============================================
    Screen 7: User Data Areas
    -------------------------
    At least one data area needs to be defined for AIPS user data.
    Do it here unless there is already a DADEVS.LIST file.  It is
    important that the host name in caps appear in the data area name.
    Currently these area(s) are defined:
      (no data areas have been defined yet)
    You can add to this list after installing by editing the two files
    DADEVS.LIST and NETSP in the /astrosoft/aips/DA00/ directory.
    Please enter (additional) data area(s) now as a space-separated list,
    or the word RESET to re-set the list.
       (If you want to use symlinks, use the notation
           actual_directory_location:symbolic_link_location
      instead of a simple directory location.)
    The suggested data area is /astrosoft/aips/DATA/YJH-NAOC_1
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Data Areas: /home/yjh/work/data/aips/YJH-NAOC_1
    ===============================================
    screen 8 设置打印选项。可先输入D,查看一下系统支持的打印机
    =================================================
    Screen 8: Printers
    ------------------
    You may define several printers for use with AIPS.
    These will appear on startup as numbered choices to the user
    At least one printer must be defined.  Currently defined:
      (no printers are defined yet)
      Paper Format: A
    You can modify printer definitions after the install by
    editing the file /astrosoft/aips/DA00/PRDEVS.LIST .
    Please indicate whether you want to
      - add (N)ew printers
      - (D)iscover your system's printers (may not work),
      - (A)ccept the current settings as is, or
      - (R)eset to clear the list.
    (Paper format - A or A4 - will come next)
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Your choice (default: Accept): D
    ===============================================
    由于在我的系统中安装了HP LaserJet p2055dn 的打印机,我在输入D后返回以下信息。
    ==============================================
    AipsWiz: Configuring 1 printers.  For each, you will be asked if you
    AipsWiz: want to configure AIPS to use it, its type, options, and a
    AipsWiz: description.  AIPS priner types are:
    AipsWiz:   PS       Black-and-white PostScript printer
    AipsWiz:   COLOR    (or COLOUR) Color/Colour PostScrip printert
    AipsWiz:   TEXT     Plain text printers (including line printers)
    AipsWiz:   QMS      QUIC format (QMS [not QMS PS!], Talaris) printers
    AipsWiz:   PREVIEW  Screen Previewers, e.g. gv, ghostview, pageview
    AipsWiz: And the valid AIPS printer options are:
    AipsWiz:   NONE     (default), nothing special.
    AipsWiz:   DUP      Printer will print on both sides of the paper
    AipsWiz:   DEF      This will be the default AIPS printer
    AipsWiz:   BIG=nnn  Force use of this printer for jobs > nnn lines

    AipsWiz: If you want to specify multiple options for a printer,
    AipsWiz: separate them with commas (NO SPACES!)

    AipsWiz: ==>   Printer    type for HP-LaserJet-p2055dn|HP LaserJet p2055dn (N to skip) [PS]:

    ==============================================
    ===============================================
    Screen 9: Tape Drives
    ---------------------
    If your network has any tape drives you would like to use for AIPS,
    you can specify those now.  You need to configure each tape drive
    machine to run AIPS (or a subset of it).  Current definitions:
        (no tape drives are defined yet)
    You can add to this list after the install by editing TPDEVS.LIST
    in the /astrosoft/aips/DA00 area.
    Please indicate whether you want to
        add (N)ew tape drive(s)
        (D)iscover tape drives on YJH-NAOC (may not work)
        (A)ccept the current settings as is, or
        (R)eset to clear the list.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Your choice (default: Accept):
    ===============================================

    ===============================================
    Screen 9B: Tape Hosts
    ---------------------
    THIS IS IMPORTANT:  READ ME!
    The TPMON daemons that are automatically started or restarted
    with each AIPS session are servers that give remote systems
    access to your local tape drives (TPMON2,3,...) and FITS
    disk area (TPMON1).  There is a mechanism to restrict connections
    to a set of hosts and/or IP addresses.  You need to indicate what
    remote system(s) if any are allowed to use your tapes
    and FITS disk area.  The default configuration is to ONLY allow
    your local host (127.0.0.1).  The list of hosts and/or IP addresses
    is currently set to:
    -----------------------------------------------------------------
        127.0.0.1
    -----------------------------------------------------------------
    You can modify this list after the install by editing file TPHOSTS
    in the /astrosoft/aips/DA00 area.  Each line in the file can be
        - an IP address, e.g. 192.33.115.11
        - a fully qualified domain name, e.g. orangutan.cv.nrao.edu,
        - a limited IP address wildcard, e.g. 192.33.115.*, or
        - a limited domain name wildcard, e.g. *.cv.nrao.edu.
    Please indicate whether you want to
        add (N)ew entries
        (A)ccept the current settings as is, or
        (R)eset to the default.
             [You may also type B for back, or Q to Quit]
    AipsWiz: ===> Your choice (default: Accept):
    ==============================================
    在安装时,我又没看到screen 10.
    最后在screen 11 给你一次检查设置的机会。然后回车,就开始装了。
    =============================================
    Screen 11: FINAL REVIEW before installing!
    ------------------------------------------
    This is your last, best hope for checking the settings before
    committing to the install.  Please check these settings, and
    make sure they are what you want:
       AIPS_ROOT (screen 3): /astrosoft/aips
           Group (screen 4): yjh
     Group Write (screen 4): YES
    Architecture (screen 5): LINUX
       Site name (screen 5): YJHNAOC
      AIPS hosts (screen 6): YJH-NAOC
      Data areas (screen 7): /home/yjh/work/data/aips/YJH-NAOC_1
        Printers (screen 8): PS-CMYK      NONE  COLOR
                             HP-LaserJet-p2055dn|HP LaserJet p2055dn            PS       DUP  A321
      Paper type (screen 8): A4
     Tape drives (screen 9):
      Tape hosts (screen 9): 127.0.0.1
    You can skip back to a previous menu by entering its number,
    or use the phrase 'start over' to go back  to the beginning.
             [You may also type B for back, or Q to Quit]

    AipsWiz: ===> [A]ccept (default) or menu number:
    =============================================

    ==============================================
    AipsWiz: ==> Confirm: start the install with these settings [Y]:
    ================================================
    之后就迅速滚屏了。
    =================================================
    AipsWiz: /astrosoft/aips/31DEC10 does not exist, will be created.
    ***************************************************************************
     National Radio Astronomy Observatory computing facilities are exclusively
      for the use of authorized personnel, who are expected to abide by the
         terms of the NRAO Computing Security and Computing Use Policies.
    ***************************************************************************
    receiving incremental file list
    SYSTEM/
    SYSTEM/AREAS.DAT
    SYSTEM/NOTICE.TXT
    SYSTEM/XEDIT1.STR
    SYSTEM/XEDIT2.STR
    SYSTEM/XLATE.FOR
    SYSTEM/CVS/
    SYSTEM/CVS/Entries
    SYSTEM/CVS/Repository
    SYSTEM/CVS/Root
    SYSTEM/UNIX/
    SYSTEM/UNIX/ADVERB
    SYSTEM/UNIX/AIAS
    SYSTEM/UNIX/AIGREP
    SYSTEM/UNIX/AIMAN
    SYSTEM/UNIX/AIPS.BOOT
    SYSTEM/UNIX/AIPS.MSG
    SYSTEM/UNIX/AIPSASSN.CSH
    SYSTEM/UNIX/AIPSASSN.SH
    SYSTEM/UNIX/AIPSCC
    SYSTEM/UNIX/AIPSEXEC
    SYSTEM/UNIX/AIPSPATH.CSH
    SYSTEM/UNIX/AIPSPATH.SH
    SYSTEM/UNIX/AIPSROOT.DEFINE
    SYSTEM/UNIX/AIPSWC
    SYSTEM/UNIX/AIPWD.C
    SYSTEM/UNIX/AIWHICH
    SYSTEM/UNIX/ALLRSH
    .......
    ........
    ============================================
    剩下的一路回车即可。直到退出安装界面。
    最后会出现如下界面,然后按照提示配置一下就可以用了。
    ============================================
    >AipsWiz: Copying DA00/YJH-NAOC/* files to 31DEC10/LINUX/TEMPLATE/ area
    AipsWiz:  =====> We're DONE!  Let's have a nice Banana Split! <======
    AipsWiz: Here are the final setup instructions for running AIPS
        1.  Reference the LOGIN.SH file in your .profile file
              (dot it now too, via ". ./LOGIN.SH")
        2.  Check that it works:
            aips notv tpok
              (this will not start a TV or tape servers).
            Try 'print 2 + 2' for a very basic test.
        3.  Make a cron entry for the do_daily.YJH-NAOC file
              that the MAKE.MNJ created, so you can run the
              AIPS 'midnight job'.  This is optional but
              strongly recommended.
    AipsWiz: That's it.  You should now have the latest AIPS!  Enjoy.
    ===================================================

    5. 配置(只能保证可以运行)

    在~/.bashrc中加入这样一行

    . /your_aips_root_dir/LOGIN.SH

    这里/your_aips_root_dir是AIPS的安装目录。

    下面是在我机器上的操作:

    $ vim ~/.bashrc

    加上了这样一行 (注意前面的点儿不可以丢):

    . /astrosoft/aips/LOGIN.SH

    以root身份,把下面内容加入/etc/services中。

    ================我是分割线=======================

    sssin           5000/tcp        SSSIN      # AIPS TV server
    ssslock         5002/tcp        SSSLOCK    # AIPS TV Lock
    msgserv         5008/tcp        MSGSERV    # AIPS Message Server
    tekserv         5009/tcp        TEKSERV    # AIPS TekServer
    aipsmt0         5010/tcp        AIPSMT0    # AIPS remote FITS disk access
    aipsmt1         5011/tcp        AIPSMT1    # AIPS remote tape 1
    aipsmt2         5012/tcp        AIPSMT2    # AIPS remote tape 2
    aipsmt3         5013/tcp        AIPSMT3
    aipsmt4         5014/tcp        AIPSMT4
    aipsmt5         5015/tcp        AIPSMT5
    aipsmt6         5016/tcp        AIPSMT6
    aipsmt7         5017/tcp        AIPSMT7
    ====================我是分割线===========================
    6. 使用
    o(∩∩)o...哈哈。终于看到曙光了,测试一下吧。
    重新打开一个终端,输入以下命令。
    $ aips

    收藏到:Del.icio.us