AIPS インストール [ubuntu]

電波データの解析でよく使われているソフトの一つにAIPSがある。
たまに使うことがあるのでこれもインストールしておく。

【 参考サイト 】
http://www.btvm.ne.jp/~m_makoto1020/aips_install.html


1. /usr/localの下にaipsというディレクトリを作る
そのために、root になっておく。
$ su
パスワード:______________ <-- root になるためのパスワードを入力する。

そして、ファイルの作成。
# mkdir /usr/local/aips

2. aipsというディレクトリの権限をrootからaipsを使うuserに変えて、rootから抜ける。
[ user name ]は好きな名前を入力。
# cd /usr/local/
# chown [user name] aips/
# chgrp [user name] aips/
# exit


3. 作ったフォルダの中に入る。
$ cd /usr/local/aips/


4. aipsをインストールするためのファイルやらをダウンロードする。
最新のバージョンは「31DEC11」のようだ。
http://www.aips.nrao.edu/dec11.shtml
のサイトから、” install.pl ” をダウンロードする。
$ wget ftp://ftp.aoc.nrao.edu/pub/software/aips/31DEC11/install.pl


5. インストールする
perl install.pl -n


##############設定事項記入################
基本はそのまま Enter でいいが、途中2箇所ほど、入力するところがあるので、
その部分を飛ばさないように気をつけたい。

=========================================
Screen 0: INTRODUCTION
----------------------
.............................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Press or to get started: [press Enter key]


Screen 4: Group Ownership
-------------------------
.............................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> What group should be used for AIPS? [user name] [press Enter key]


Screen 4b: Group Write
----------------------
................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Allow [name] to have write access? [YES] [press Enter key]


Screen 5: Site Name
-------------------
..................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Your site name: [required, no default] kagoshima


Screen 5a: Site type
--------------------
..................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> If you want this, enter Y or y [N] [press Enter key]


Screen 5b: Architecture Confirmation
------------------------------------
..................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Enter the architecture for this system [LINUX] [press Enter key]


Screen 6: Additional hosts if any
---------------------------------
.................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Enter new hosts (no commas!) or [ user name ] to reset: [press Enter key]


Screen 7: User Data Areas
-------------------------
................................
The suggested data area is /usr/local/aips/DATA/[ user name ]_1 …**
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Data Areas: [**をコピペ (ex.)/usr/local/aips/DATA/[ user name ]_1]


Screen 8: Printers
------------------
................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Your choice (default: Accept): [press Enter key]
AipsWiz: ==> Do your printer(s) use A or A4 paper? [A]: [press Enter key]


Screen 9: Tape Drives
---------------------
..................................
[You may also type B for back, or Q to Quit]
AipsWiz: ===> Your choice (default: Accept): [press Enter key]


Screen 9B: Tape Hosts
---------------------
....................................
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 /usr/local/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):[press Enter key]


Screen 11: FINAL REVIEW before installing!
------------------------------------------
............................................
AipsWiz: ===> [A]ccept (default) or menu number:[press Enter key]
AipsWiz: ==> Confirm: start the install with these settings [Y]:[press Enter key]

===========================================

以降、ながーいインストールが始まる。
たまに、聞かれることがあるが、Enter を押せばOK!

最後に、
AipsWiz: That's it. You should now have the latest AIPS! Enjoy.

と出ればインストール完了!


6. /etc/serviceに下を書き加えて、元々ある、かぶっている番号をコメントアウトする。
$ sudo vi /etc/service

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


7. aips の起動
7.1. bashの場合
cd /usr/local/aips/
source LOGIN.SH
$CDTST
aips tv=local

7.2. csh,tcshの場合
cd /usr/local/aips/
source LOGIN.CSH
$CDTST
aips tv=local


8. エイリアスをはる。
aips を起動する度に上のコマンドを打つのは面倒なので、 ~/.bashrc を編集してやる。
$ vim ~/bashrc

以下の2行を付け足す。
PATH="$PATH":/usr/local/casa/casapy-31.0.13530-002:/usr/local/aips:/usr/local/bin
alias AIPS='source /usr/local/aips/LOGIN.SH;$CDTST;aips tv=local'

保存して、変更を有効にする。
source ~/.bashrc

これで、端末を開いて、 「 AIPS 」と打てば aips が立ち上がる。
nice!(0)  コメント(0)  トラックバック(0) 

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。