@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.

22 lines
2.8 KiB

[ $(hostname) != "itl" ] && exit 1;
export DISPLAY=:0;
xset dpms force on;
# ip a
#[ ! -d drizzle ] && git clone https://github.com/Grissess/drizzle; tmux new -s drizzle -d -c ~/drizzle "xfce4-terminal --display=:0 -e 'python netlayer.py 9652 128.153.144.182: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 -c PCH set Master unmute 100% && amixer -c PCH set PCM unmute 100% && amixer -c PCH set Speaker unmute 100%; cd ~/itl_chorus/ && git checkout beta && git pull && tmux new -s itl_chorus -d -c ~/itl_chorus/ "DISPLAY=:0 python client.py -g 'saw_wave' -G pygame_notes --pg-fullscreen";
#cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer -c PCH set Master unmute 100% && amixer -c PCH set PCM unmute 100% && amixer -c PCH set Speaker unmute 100%; cd ~/itl_chorus/ && git pull && tmux new -s itl_chorus -d -c ~/itl_chorus/ "DISPLAY=:0 python client.py -g 'genharmonic(harmonic(mixer(tri_wave,0.3,square_wave,0.4,math.sin,0.3), 0, 0.1, 0.7, 0.5, 1.0, 0.25),1,0.5,1.2,0.5)' -G pygame_notes --pg-fullscreen";
#cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer -c PCH set Master unmute 100% && amixer -c PCH set PCM unmute 100% && set Speaker 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 \"erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg erg\"; done";
#cd ~; [ ! -d ~/itl_chorus ] && git clone https://github.com/Grissess/itl_chorus; amixer -c PCH set Master unmute 100% && amixer -c PCH set PCM unmute 100%; cd ~/itl_chorus/ && tmux kill-session -t itl_chorus;
#cd ~; vlc --gain=8.0 https://www.youtube.com/watch?v=t6bvqBBpjUs
#killall vlc
killall -9 python