[fix] The install should be more streamlined

This commit is contained in:
alban 2020-10-14 17:16:25 +02:00
parent 5f7c61f616
commit 98538662b8
1 changed files with 31 additions and 47 deletions

View File

@ -1,48 +1,32 @@
#!/bin/bash #!/bin/bash
sudo apt upgrade
sudo apt install python3-pip # Check if root
sudo apt install redis-server [[ 0 -ne $UID ]] && { echo "Must run as root. Exiting."; exit; }
# for dedicated computer after fresh linux install. todo : ask if needed.
#sudo apt install git # Propose some packages
#sudo apt install syncthing echo -e "\nThe following packages are not mandatory, add them as needed.\n"
#sudo apt install htop declare -a ADD_PACK
#sudo apt install screen POS_PACK=( htop nginx screen ssh ssl-cert supervisor syncthing tmux )
#sudo apt install tmux POS_PACK_LEN=${#POS_PACK[@]}
#sudo apt install nginx for i in ${!POS_PACK[@]} ; do
#sudo apt install supervisor pack=${POS_PACK[i]}
#sudo apt install ssh read -e -n 1 -p "$((i+1))/${POS_PACK_LEN} Add package ${pack} ? [Y/n]: "
# todo one day : modify correct path in syncthing.conf REPLY=${REPLY:-Y}
#sudo cp syncthing.conf to /etc/supervisor/conf.d/ [[ "Y" == ${REPLY^^} ]] && ADD_PACK+=(${pack})
pip3 install scipy done
pip3 install numpy
#pip install pygame==1.9.2 # Propose the install
#pip3 install pygame==1.9.2 PACK_LIST=$( echo "cmake git libasound2-dev libjack-dev libsdl1.2-dev network-manager portaudio19-dev python3-dev python3-pip python3-rtmidi redis-server ${ADD_PACK[@]}" | sort )
pip3 install redis echo -e "\nYou are goind to install:\n$( for pack in ${PACK_LIST[@]}; do echo ' * '$pack; done; )\n"
pip3 install pysimpledmx read -e -n1 -p "OK? [Y/n]: "
pip3 install DMXEnttecPro REPLY=${REPLY:-Y}
sudo apt install libasound2-dev [[ "N" == ${REPLY^^} ]] && exit
sudo apt install libjack-dev
pip3 install python-rtmidi # Run the install
pip3 install mido apt install -y --no-install-recommends $LIST
git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && sudo ./setup.py install pip3 install setuptools
pip3 install tk pip3 install DMXEnttecPro mido numpy pysimpledmx redis scipy
cd ../ git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && ./setup.py install
python3 configure.py cd /tmp && git clone https://github.com/Ableton/link.git && cd link && git submodule update --init --recursive && mkdir build && cd build && cmake .. && cmake --build .
# todo : ask for computer ip and run updateUI.py cd /tmp/ && git clone --recursive https://github.com/gonzaloflirt/link-python.git && cd link-python && mkdir build && cd build && cmake .. && cmake --build .
cd /tmp cd /opt/ && git clone https://git.interhacker.space/teamlaser/LJ
sudo apt install portaudio19-dev
sudo apt install cmake
git clone https://github.com/Ableton/link.git
cd link
git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build .
cd /tmp/
git clone --recursive https://github.com/gonzaloflirt/link-python.git
cd link-python
mkdir build
cd build
cmake ..
cmake --build .