Differences between revisions 9 and 19 (spanning 10 versions)
Revision 9 as of 2024-11-07 10:54:19
Size: 1100
Comment:
Revision 19 as of 2024-11-07 11:43:14
Size: 2382
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
  *
Line 20: Line 19:


 * Download the installer on the command line:
{{{#!highlight
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
}}}

 * install
{{{#!highlight
bash Miniforge3-$(uname)-$(uname -m).sh
}}}

 * インストールはOK

 * 仮想環境のレシピを持ってくる
  * テストサーバーの ~/etc/ligo-summary-pages がgit repo
  * 大本は https://git.ligo.org/detchar/ligo-summary-pages/
  * at local computer, git clone git@git.ligo.org:detchar/ligo-summary-pages.git and scp to k1detms0:etc/

 * install virtual environment by using the recipe

{{{#!highlight
cd etc/ligo-summary-pages/conda
mamba env create --file environment.yaml
}}}

 * conda関連の設定ファイルを編集する
  * functionsファイルを新しい環境用に変更

{{{#!highlight
conda_activate() {
    local name=$1
    [ -z $repodir ] && local name="ligo-summary-3.10"
    if [[ $(hostname) = "k1"* ]]; then
        source /home/controls/miniforge3/etc/profile.d/conda.sh
    else
        source /cvmfs/software.igwn.org/conda/etc/profile.d/conda.sh
    fi
    conda activate ${name}
}
}}}

Line 24: Line 66:

 * 必要なパッケージを使えるようにする
  * emacs
  * htop
  * tmux
  * apache

background

  • we will install the latest summary page in Kamioka detchar cluster.
    • configuration of the cluster is summarized wiki

  • 作業終了後に英語にして記録を残します
  • クラスターにloginはできた
  • HTcondorはインストールされている
  • apacheが必要だがまだ入っていない、htopとかtmuxも欲しい
  • controlsとopsがあるが、ユーザーはcontrolsのみ使うので関係ない
  • mambaをインストールする、condaは全部アンインストールする
  • Download the installer on the command line:

   1 curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
  • install

   1 bash Miniforge3-$(uname)-$(uname -m).sh
  • インストールはOK
  • 仮想環境のレシピを持ってくる
  • install virtual environment by using the recipe

   1 cd etc/ligo-summary-pages/conda
   2 mamba env create --file environment.yaml
  • conda関連の設定ファイルを編集する
    • functionsファイルを新しい環境用に変更

   1 conda_activate() {
   2     local name=$1
   3     [ -z $repodir ] && local name="ligo-summary-3.10"
   4     if [[ $(hostname) = "k1"* ]]; then
   5         source /home/controls/miniforge3/etc/profile.d/conda.sh
   6     else
   7         source /cvmfs/software.igwn.org/conda/etc/profile.d/conda.sh
   8     fi
   9     conda activate ${name}
  10 }
  • 環境を用意する
  • テストサーバーでの作業メモ https://klog.icrr.u-tokyo.ac.jp/osl/?r=31462

  • repositoryの差分を取る?
  • functionsの中にmamba用のsourceを追加する
  • 必要なパッケージを使えるようにする
    • emacs
    • htop
    • tmux
    • apache

KAGRA/Subgroups/PEM/SummaryPage/memo_20241106 (last edited 2025-01-30 11:49:11 by HirotakaYuzurihara)