-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser_script.sh
More file actions
executable file
·84 lines (62 loc) · 2.05 KB
/
user_script.sh
File metadata and controls
executable file
·84 lines (62 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# script to run to install the environement in the user directory
# MAD dec 2020
# see update.sh for updating an existing account
# first create user (je crois que j'ai les bonnes commandes)
# user new_user - in group newlab and euftgrp
# >> sudo addgroup newlab (par exemple)
# >> sudo adduser new_user --ingroup newlab
# >> sudo adduser new_user euftgrp
# cd to his home dir
# sudo su new_user
# then execute this script
version="1.1"
echo "EUFT Installation - version $version"
# init of conda
/opt/anaconda3/condabin/conda init
source .bashrc
# create environment
# conda create -y --use-local -n Spike numpy scipy matplotlib pytables pandas ipympl
# conda activate Spike
conda install --use-local -y numpy scipy matplotlib pytables pandas ipympl
# and populate
# jupyter
pip --log pip.log install --user jupyter_contrib_nbextensions
echo '# >> jupyter nbextension' >> .bashrc
echo 'export PATH="'$HOME'/.local/bin:$PATH"' >> .bashrc
echo '# << jupyter nbextension' >> .bashrc
source .bashrc
jupyter contrib nbextension install --user
pip --log pip.log install --user jupytext
jupyter serverextension enable jupytext
# program
pip --log pip.log install --user voila
pip --log pip.log install --user -U spike-py
# eventuellement Faire les tests
#python -m spike.Tests -D DATA_test
# Installer les outils locaux
fossil clone http://localhost:8070/EUFT_Spike EUFT_Spike.fossil
mkdir -p EUFT_Spike
cd EUFT_Spike
fossil open ../EUFT_Spike.fossil
rm AFAIRE.md
ls Easy*.py |xargs -n 1 jupytext --to notebook
# and move to $HOME
mv EasyDisplayLCFTICR.ipynb ../LCMS_Tool.ipynb
mv EasyProcessFTICR-MS.ipynb ../Process_Tool.ipynb
mv EasyDisplayFTICR2D.ipynb ../2D_Tool.ipynb
cd ..
# pour enlever les plugins inutiles:
EUFT_Spike/clean_plugins.sh
# créer le lien vers les données
if [ -f "FTICR_DATA" ] ; then
echo "FTICR_DATA present"
else
ln -s SeaDrive/ FTICR_DATA
fi
# pour les taches automatiques
pip --log pip.log install --user doit
# "=== update crontab"
python EUFT_Spike/install_cron.py
# then show version numbers
echo "=== Done"
python -m EUFT_Spike