48 lines
943 B
Bash
Executable File
48 lines
943 B
Bash
Executable File
|
|
if [ "pc15543.psi.ch" != "$(hostname)" ]; then
|
|
echo "Please run this script on pc15543"
|
|
exit 1
|
|
fi
|
|
|
|
module add psi-python39/2021.11
|
|
echo module add tmux/3.2 >> ~/.bashrc
|
|
echo module add redis/7.0.12 >> ~/.bashrc
|
|
|
|
source ~/.bashrc
|
|
|
|
cd ~/Data10
|
|
mkdir -p software/
|
|
mkdir -p ~/bec/scripts
|
|
cd software
|
|
|
|
git clone https://gitlab.psi.ch/bec/bec.git
|
|
git clone https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
git clone https://gitlab.psi.ch/bec/bec-widgets.git
|
|
|
|
python -m venv ./bec_venv
|
|
source ./bec_venv/bin/activate
|
|
|
|
cd bec
|
|
git checkout sastt-online-changes
|
|
pip install -e ./bec_server[dev]
|
|
|
|
cd ../csaxs-bec
|
|
pip install -e .[dev]
|
|
|
|
#redis-server --protected-mode no &
|
|
|
|
read -p "Do you want to set the current BEC account to $(whoami)? (yes/no) " yn
|
|
|
|
val=$(whoami)
|
|
|
|
case $yn in
|
|
yes ) echo ok, setting account to $val;
|
|
redis-cli SET internal/account:val $val;;
|
|
no ) echo ;;
|
|
* ) echo invalid response;
|
|
exit 1;;
|
|
esac
|
|
|
|
|
|
$(pwd)/open_tunnel.sh
|