Differences between revisions 74 and 94 (spanning 20 versions)
Revision 74 as of 2009-12-28 16:29:42
Size: 3541
Editor: NaokoOhishi
Comment:
Revision 94 as of 2010-02-02 10:17:16
Size: 3795
Editor: NaokoOhishi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
 パソコン:Dell desktop  パソコン:Dell Studio desktop 540
Line 10: Line 10:
 [[http://nibot-lab.livejournal.com/91787.html|参考]]  [[http://nibot-lab.livejournal.com/91787.html|参考サイト(こちらは32bitなので注意)]]
Line 14: Line 14:
=== パーティション設定 ===
Line 15: Line 16:
 desktop版をserver版に変更し、名前をPORTAとした。(28Dec2009)<<BR>>
 結局HDD(500MB)を増設し、ひとつにWindows XPを、もうひとつにUbuntuを入れ直した。(2Feb2010)<<BR>>
Line 16: Line 19:
 いろいろあって、desktop版をserver版に変更し、名前をPORTAとした。
 1. primary 65.8MB fat16
 2. primary 16.1GB ntfs
 3. primary 480.0GB ext4 / 
 5. logic 3.9GB F swap
 
 *apt-get install desktop-ubuntu
 *reboot
=== デスクトップ環境の追加 ===
Line 25: Line 21:
  IP:10.4.7.142  $apt-get install ubuntu-desktop<<BR>>
 restart<<BR>>
Line 27: Line 24:
 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 41:
 *libc6-dev-i386
Line 44: Line 42:
 *lib32readline5-dev
Line 47: Line 44:
 本文とはあまり関係ないけどsshとemacsも。  基本的にはmakeしたときにエラーが出たら適宜追加すればよいと思います。<<BR>>
 $dpkg -S /usr/lib/***.soなどでパッケージ名を探すことができます。<<BR>>
 本文とはあまり関係ありませんが、sshとemacsも入れました。<<BR>>
Line 53: Line 53:
 [[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 62:
 $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 67:
 $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 69:
 これは64bitの場合で、31bitの場合は参考サイトに従ってください。
Line 73: Line 73:
 $cd $EPICS/base <<BR>>  $cd /opt/epics/base <<BR>>
Line 75: Line 75:
    ここでcursesがimcompatibleとかではまりましたが、/usr/lib/のlibcurses.soとlibncurses.aの
 リンクを/usr/lib32/に貼り直したらエラーがでなくなりました。
Line 79: Line 76:
=== configure the extensions ===  /CONFIG.Unsupported.Common No such file or directory, というようなエラーが出たら、<<BR>>
 EPICS_HOST_ARCHが設定してあるか確認してください。
Line 81: Line 79:
 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 81:
 $cd /opt/epics/extensions/src/medm <<BR>>
 $make
Line 86: Line 84:
 modify Makefile at $EPICS/extensions/src/medm3_1_4 ns <<BR>>
                    $EPICS/extensions/src <<BR>>
 TOP=
=== パスを通します ===
Line 90: Line 86:
 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 91:
 modify printUtils/
 TOP=
=== Tips ===
=== 動作確認 ===
Line 96: Line 93:
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)
    結局HDD(500MB)を増設し、ひとつにWindows XPを、もうひとつにUbuntuを入れ直した。(2Feb2010)

デスクトップ環境の追加

  • $apt-get install ubuntu-desktop
    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)