@grissess batch scripts for the ITL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
1.4 KiB

[ $(hostname) != "itl" ] && exit 1;
export DISPLAY=:0;
xset dpms force on;
#tmux new -s drizzle -d -c ~/drizzle "xfce4-terminal --display=:0 -e 'python netlayer.py 9652 128.153.144.150:9652'"
#echo -n "$(hostname): "; ip a | echo -n "$(grep -o '128\.153\.[[:digit:]]\+\.[[:digit:]]\+/[[:digit:]]\+')";
#if ls | grep 'pc2' > /dev/null; then
# echo "present";
# cd pc2-9.2.4
# #bin/pc2team
# killall java
#else
# echo "NOT PRESENT";
#fi
#cd; wget http://www.ecs.csus.edu/pc2/code/v9/pc2-9.2.4-2837/pc2-9.2.4-2837.tar.gz; tar xvf pc2-9.2.4-2837.tar.gz; sed -i pc2-9.2.4/pc2v9.ini -e 's/localhost/128.153.144.233/g'
#cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer set Master unmute 100% && amixer set PCM unmute 100%; (ps -e | grep python) && echo "Already started!" && exit; cd ~/itl_chorus/ && tmux new -s itl_chorus -d -c ~/itl_chorus/ "python client.py -g square_wave";
#cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer set Master unmute 100% && amixer set PCM unmute 100%; cd ~/itl_chorus/ && tmux new -s itl_chorus -d -c ~/itl_chorus/ "python -c \"__import__('time').sleep(10*__import__('random').random())\"; while true; do espeak \"Graham watches pony porn.\"; done";
cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer set Master unmute 100% && amixer set PCM unmute 100%; cd ~/itl_chorus/ && tmux kill-session -t itl_chorus;