Differences between revisions 74 and 93 (spanning 19 versions)
Revision 74 as of 2009-12-28 16:29:42
Size: 3541
Editor: NaokoOhishi
Comment:
Revision 93 as of 2010-01-05 13:02:08
Size: 3787
Editor: NaokoOhishi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 [[http://nibot-lab.livejournal.com/91787.html|参考]]  [[http://nibot-lab.livejournal.com/91787.html|参考サイト(こちらは32bitなので注意)]]
Line 14: Line 14:
=== パーティション設定 ===
Line 16: Line 17:
 いろいろあって、desktop版をserver版に変更し、名前をPORTAとした。  いろいろあって、desktop版をserver版に変更し、名前をPORTAとした。(28Dec2009)
Line 20: Line 21:
 5. logic 3.9GB F swap
 
 *apt-get install desktop-ubuntu
 *reboot
 5. logic 3.9GB F swap 
 <<BR>>
=== デスクトップ環境の追加 ===
Line 25: Line 25:
  IP:10.4.7.142  $apt-get install desktop-ubuntu
 restart
Line 27: Line 28:
 IPの設定には[[http://www.ubuntugeek.com/how-to-set-a-static-ip-address-in-ubuntu-810-intrepid-ibex.html|このページ]]を参考にしました。他にもいろいろありそうです。 === IPの設定 ===
 IP:10.4.7.142<<BR>>
 
[[http://www.ubuntugeek.com/how-to-set-a-static-ip-address-in-ubuntu-810-intrepid-ibex.html|このページ]]を参考にしました。他にもいろいろな方法がありそうです。
Line 42: Line 45:
 *libc6-dev-i386
Line 44: Line 46:
 *lib32readline5-dev
Line 47: Line 48:
 本文とはあまり関係ないけどsshとemacsも。  基本的にはmakeしたときにエラーが出たら適宜追加すればよいと思います。<<BR>>
 $dpkg -S /usr/lib/***.soなどでパッケージ名を探すことができます。<<BR>>
 本文とはあまり関係ありませんが、sshとemacsも入れました。<<BR>>
Line 53: Line 57:
 [[http://www.aps.anl.gov/epics/download/extensions/index.php|extensionsConfigure_20040406.tar.gz]]<<BR>>  [[http://www.aps.anl.gov/epics/download/extensions/index.php|extensionsConfigure_20070703.tar.gz]]<<BR>>
Line 62: Line 66:
 $tar -zxvf medm3_1_4.tar.gz <<BR>> (medm は $EPICS/extensions/src 以下におきます。)  $tar -zxvf medm3_1_4.tar.gz <<BR>>
 
(medm は extensionsを解凍してできる/opt/epics/extensions/src 以下におきます。)
Line 66: Line 71:
 $export EPICS_HOST_ARCH=linux-x86<<BR>>
 $export EPICS='~/app/linux64/epics/' <<BR>>
 $export EPICS_CA_ADDR_LIST="IP address"<<BR>>
 $export EPICS_CA_AUTO_ADDR_LIST=NO<<BR>>
 $export EPICS_HOST_ARCH=linux-x86_64<<BR>>
Line 71: Line 73:
 これは64bitの場合で、31bitの場合は参考サイトに従ってください。
Line 73: Line 77:
 $cd $EPICS/base <<BR>>  $cd /opt/epics/base <<BR>>
Line 75: Line 79:
    ここでcursesがimcompatibleとかではまりましたが、/usr/lib/のlibcurses.soとlibncurses.aの
 リンクを/usr/lib32/に貼り直したらエラーがでなくなりました。
Line 79: Line 80:
=== configure the extensions ===  /CONFIG.Unsupported.Common No such file or directory, というようなエラーが出たら、<<BR>>
 EPICS_HOST_ARCHが設定してあるか確認してください。
Line 81: Line 83:
 add the following line in $EPICS/extensions/configure/RELEASE <<BR>>
 set TOP=~/app/linux64/epics/base caution! different from reference site <<BR>>
 set EPICS_BASE=
=== compile medm ===
Line 85: Line 85:
 $cd /opt/epics/extensions/src/medm <<BR>>
 $make
Line 86: Line 88:
 modify Makefile at $EPICS/extensions/src/medm3_1_4 ns <<BR>>
                    $EPICS/extensions/src <<BR>>
 TOP=
=== パスを通します ===
Line 90: Line 90:
 modify $EPICS/base/configure/CONFIG  インストールが終わったら<<BR>>
 $export PATH="${PATH}":/opt/epics/base/bin/linux-x86_64/:/opt/epics/extensions/bin/linux-x86_64<<BR>>
 $export EPICS_CA_ADDR_LIST="10.4.7.141"<<BR>>
 を設定します。
Line 92: Line 95:
 modify printUtils/
 TOP=
=== Tips ===
=== 動作確認 ===
Line 96: Line 97:
If you find */CONFIG.Unsupported.Common No such file or directory,
when you make something, you should set EPICS_HOST_ARCH=linux-x86<<BR>>
 *.ADL ファイルをもってきて、<<BR>>
 $medm *.ADL<<BR>>
 で動作を確認しましょう。

Linux setup Memo

目的

初期設定

パーティション設定

  • Windows VISTAが入っていたsda2[7GB/15GB]を残して、 sda3をrootと4GBくらいのswapにpartitionを分け、Ubuntuを入れた。(26Nov2009)
    いろいろあって、desktop版をserver版に変更し、名前をPORTAとした。(28Dec2009)

  • primary 65.8MB fat16
  • primary 16.1GB ntfs
  • primary 480.0GB ext4 / 
  • logic 3.9GB F swap 


デスクトップ環境の追加

  • $apt-get install desktop-ubuntu restart

IPの設定

  • IP:10.4.7.142
    このページを参考にしました。他にもいろいろな方法がありそうです。

MEDMのインストール

インストールの準備

  • Synapticで
  • libxt-dev
  • libmotif-dev
  • x11proto-print-dev
  • libxmu-headers
  • libxp-dev
  • libxmu-dev
  • g++

    も入れました。

    基本的にはmakeしたときにエラーが出たら適宜追加すればよいと思います。
    $dpkg -S /usr/lib/***.soなどでパッケージ名を探すことができます。
    本文とはあまり関係ありませんが、sshとemacsも入れました。

ファイルのダウンロード

解凍

  • $tar -zxvf baseR3.14.10.tar.gz
    $ln -s base3.14.11/ base
    $tar -zxvf extensionsTop_20070703.tar.gz
    $tar -zxvf extensionsConfig_20040406.tar.gz
    $tar -zxvf medm3_1_4.tar.gz
    (medm は extensionsを解凍してできる/opt/epics/extensions/src 以下におきます。)

環境変数の設定

  • $export EPICS_HOST_ARCH=linux-x86_64
    これは64bitの場合で、31bitの場合は参考サイトに従ってください。

compile epics

  • $cd /opt/epics/base
    $make

    /CONFIG.Unsupported.Common No such file or directory, というようなエラーが出たら、
    EPICS_HOST_ARCHが設定してあるか確認してください。

compile medm

  • $cd /opt/epics/extensions/src/medm
    $make

パスを通します

  • インストールが終わったら
    $export PATH="${PATH}":/opt/epics/base/bin/linux-x86_64/:/opt/epics/extensions/bin/linux-x86_64
    $export EPICS_CA_ADDR_LIST="10.4.7.141"
    を設定します。

動作確認

  • .ADL ファイルをもってきて、
    $medm *.ADL
    で動作を確認しましょう。

dataviewerのインストール

graceのインストール

  • 関連ファイル:
  • libfftw3-3(libfftw3-doc, libfftw3-decもついでに)
  • libnetcdf4
  • lib1-5 xmhtml1
    とともにSynapticで入れました。

libxpm4

  • は入っているようなのでパス。

gdstools(diaguui. foton,)のインストール

CLIO/Tasks/DigitalControl/LinuxSetupMemo (last edited 2010-06-01 10:30:47 by NaokoOhishi)