diff --git a/anaconda_env b/anaconda_env old mode 100644 new mode 100755 index 897bb71..142f79a --- a/anaconda_env +++ b/anaconda_env @@ -6,6 +6,7 @@ #fi dest=/sf/bernina/anaconda/4.4.0 +#dest=/sf/bernina/anaconda/ahl echo Loading PSI Anaconda Python distribution 3.6 module load psi-python36/4.4.0 diff --git a/anaconda_testenv b/anaconda_testenv new file mode 100755 index 0000000..ccb8033 --- /dev/null +++ b/anaconda_testenv @@ -0,0 +1,15 @@ +#!/bin/bash + +#if [ $# != 1 ]; then +# echo "Usage: $0 [alvra|bernina]" +# exit 1 +#fi + +dest=/sf/bernina/anaconda/ahl + +echo Loading PSI Anaconda Python distribution 3.6 +module load psi-python36/4.4.0 + +echo Activating BERNINA Conda environment +source activate $dest + diff --git a/chrome b/chrome new file mode 100755 index 0000000..d5a7093 --- /dev/null +++ b/chrome @@ -0,0 +1,2 @@ +#/bin/bash +google-chrome --user-data-dir=$HOME/.config/chrome-profiles/$HOSTNAME "$@" diff --git a/chromeAs b/chromeAs index 8c15ad4..d0b149b 100755 --- a/chromeAs +++ b/chromeAs @@ -8,4 +8,6 @@ #} #set-title "chrome terminal" -gnome-terminal -e "su $1 -c google-chrome" + +#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome" +gnome-terminal -x sh -c "su - $1 -c chrome" diff --git a/chrome_as b/chrome_as new file mode 100755 index 0000000..d1c7520 --- /dev/null +++ b/chrome_as @@ -0,0 +1,15 @@ +#!/bin/bash +#function set-title() { +# if [[ -z "$ORIG" ]]; then +# ORIG=$PS1 +# fi +# TITLE="\[\e]2;$*\a\]" +# PS1=${ORIG}${TITLE} +#} +#set-title "chrome terminal" + + +#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome" +PASSWD="$(zenity --password --title=Chrome as User)\n" + +echo -e "$PASSWD" | sudo -u $1 -S chrome diff --git a/eco b/eco index 7082696..a7e6af4 100755 --- a/eco +++ b/eco @@ -1,9 +1,6 @@ #/bin/bash -source /opt/gfa/python -export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python -ipython --pylab --no-banner -c "\ -print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\ -from eco.instruments import bernina;\ -from eco.instruments.bernina import *;\ -" -i +#source /opt/gfa/python +source anaconda_env +export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/eco +python /sf/bernina/config/src/python/eco/startup.py -s bernina "$@" -l diff --git a/eco_bams_bpms b/eco_bams_bpms new file mode 100755 index 0000000..cbce0a1 --- /dev/null +++ b/eco_bams_bpms @@ -0,0 +1,9 @@ +#/bin/bash +#source /opt/gfa/python +source anaconda_env +export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python +ipython --pylab --no-banner -c "\ +from eco_bams_bpms.instruments import bernina;\ +import eco_bams_bpms.instruments.bernina *;\ +" -i + diff --git a/eco_dev b/eco_dev new file mode 100755 index 0000000..c72c202 --- /dev/null +++ b/eco_dev @@ -0,0 +1,14 @@ +#/bin/bash +PS1=$PS1"\[\e]2;eco_dev - Bernina \a\]" +source anaconda_env +export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/devel +ipython --pylab --no-banner -c "\ +print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\ +import h5py;\ +h5py.enable_ipython_completer();\ +import IPython.utils as _ipy_utils;\ +_ipy_utils.terminal.set_term_title('eco_dev Bernina');\ +from eco.instruments import bernina;\ +from eco.instruments.bernina import *;\ +" -i + diff --git a/eco_dev~ b/eco_dev~ new file mode 100755 index 0000000..2d2c662 --- /dev/null +++ b/eco_dev~ @@ -0,0 +1,9 @@ +#/bin/bash +source anaconda_env +export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/devel +ipython --pylab --no-banner -c "\ +print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\ +from eco.instruments import bernina;\ +from eco.instruments.bernina import *;\ +" -i + diff --git a/eco_old b/eco_old new file mode 100755 index 0000000..6ea0ee2 --- /dev/null +++ b/eco_old @@ -0,0 +1,17 @@ +#/bin/bash +#source /opt/gfa/python +source anaconda_env +export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python +ipython --profile=operation --pylab --no-banner -c "\ +print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\ +import h5py;\ +h5py.enable_ipython_completer();\ +import IPython.utils as _ipy_utils;\ +_ipy_utils.terminal.set_term_title('eco Bernina');\ + +from eco_old.instruments import bernina;\ +from eco_old.instruments.bernina import *;\ +from escape.parse.swissfel import parseScanEco_v01;\ +#%config IPCompleter.use_jedi=True;\ +" -i + diff --git a/google-chrome b/google-chrome new file mode 100755 index 0000000..d5a7093 --- /dev/null +++ b/google-chrome @@ -0,0 +1,2 @@ +#/bin/bash +google-chrome --user-data-dir=$HOME/.config/chrome-profiles/$HOSTNAME "$@" diff --git a/hdfview b/hdfview new file mode 100755 index 0000000..72d7945 --- /dev/null +++ b/hdfview @@ -0,0 +1,4 @@ +#!/bin/bash +module add HDFView +HDFView $@ + diff --git a/laseroff b/laseroff new file mode 100755 index 0000000..471e007 --- /dev/null +++ b/laseroff @@ -0,0 +1,2 @@ +#!/bin/bash +caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "HIGH" diff --git a/laseron b/laseron new file mode 100755 index 0000000..85f78a8 --- /dev/null +++ b/laseron @@ -0,0 +1,2 @@ +#!/bin/bash +caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "LOW" diff --git a/phonebook b/phonebook new file mode 100755 index 0000000..422b9d1 --- /dev/null +++ b/phonebook @@ -0,0 +1,3 @@ +#!/bin/bash +clear +cat /sf/bernina/config/phonelist diff --git a/pshell_be b/pshell_be index 82cfe73..39236b3 100755 --- a/pshell_be +++ b/pshell_be @@ -2,7 +2,6 @@ /opt/gfa/pshell/pshell \ -jvmarg="-Duser.home=/sf/bernina/data" \ - -last \ -dlaf \ -r \ -py3 \ diff --git a/rdpWater b/rdpWater new file mode 100755 index 0000000..19a5015 --- /dev/null +++ b/rdpWater @@ -0,0 +1,2 @@ +#!/bin/bash +xfreerdp -u WaterLab --no-nla -d WORKGROUP -g 1500x1000 WaterT450s diff --git a/remoteDesktop b/remoteDesktop index 501dba9..79cae83 100755 --- a/remoteDesktop +++ b/remoteDesktop @@ -1,2 +1,2 @@ #!/bin/bash -xfreerdp -u $1 --no-nla -d PSICH -g 2000x1000 $2 +xfreerdp -u $1 --no-nla -d PSICH -g 2560x1600 $2 diff --git a/restart_service b/restart_service new file mode 100755 index 0000000..5d4138f --- /dev/null +++ b/restart_service @@ -0,0 +1,7 @@ +#!/bin/bash +sudo su - dbe +sudo systemctl restart $1.service +sleep 5 +ech "done sleeping" +exit + diff --git a/screen_panel b/screen_panel index a724597..cdecbbd 100755 --- a/screen_panel +++ b/screen_panel @@ -3,13 +3,13 @@ /opt/gfa/pshell/pshell \ -jvmarg="-Duser.home=/sf/bernina/data" \ - -test -dlaf \ + -dlaf \ -home=/sf/bernina/config/pshell_be \ -data=/sf/bernina/config/pshell_data \ -l -d -k -q -b -e -g -n -buf=10 -poll=250 -clog=SEVERE \ -p=SfCamera.java \ -p=Inventory.java \ -p=CameraCalibrationDialog.java \ - -p=ScreenPanel2.java \ + -p=ScreenPanel3.java \ -srv_url=sf-daqsync-01:8889 -cam_srv_url=sf-daqsync-01:8888 $@ diff --git a/screen_panel_100pulseAvg b/screen_panel_100pulseAvg new file mode 100755 index 0000000..131332c --- /dev/null +++ b/screen_panel_100pulseAvg @@ -0,0 +1,2 @@ +#/bin/bash +/sf/op/bin/screen_panel -integration=100 diff --git a/screen_panel_10pulseAvg b/screen_panel_10pulseAvg new file mode 100755 index 0000000..fb6ed84 --- /dev/null +++ b/screen_panel_10pulseAvg @@ -0,0 +1,2 @@ +#/bin/bash +/sf/op/bin/screen_panel -integration=10 diff --git a/termAs b/termAs new file mode 100755 index 0000000..365ac50 --- /dev/null +++ b/termAs @@ -0,0 +1,13 @@ +#!/bin/bash +#function set-title() { +# if [[ -z "$ORIG" ]]; then +# ORIG=$PS1 +# fi +# TITLE="\[\e]2;$*\a\]" +# PS1=${ORIG}${TITLE} +#} +#set-title "chrome terminal" + +#gnome-terminal -e "bash - -c 'su - $1;$SHELL'" +su - $1 -c "gnome-terminal -x sh -c 'su - $1;$SHELL'" +#gnome-terminal -x sh -c "su - $1 -c chrome" diff --git a/terminalAs b/terminalAs index b412150..39ee2f4 100755 --- a/terminalAs +++ b/terminalAs @@ -8,4 +8,5 @@ #} #set-title "chrome terminal" -gnome-terminal -e "bash -c 'su $1;$SHELL'" +#gnome-terminal -e "bash - -c 'su - $1;$SHELL'" +gnome-terminal -x sh -c "su - $1;$SHELL" diff --git a/useful_commands b/useful_commands new file mode 100755 index 0000000..2b85ae1 --- /dev/null +++ b/useful_commands @@ -0,0 +1,4 @@ +#/bin/bash +clear +cat /sf/bernina/config/help_commands +