planktoscope/history_working_pi

98 lines
3.4 KiB
Plaintext
Raw Normal View History

2020-02-07 08:37:11 +01:00
#MANUAL CONFIGURATION
#COPY PASTE LINE BY LINE
2020-02-07 08:18:22 +01:00
#Update and upgrade you Pi
2020-02-07 08:11:05 +01:00
sudo apt-get update -y && sudo apt-get full-upgrade -y
sudo reboot now
2020-02-07 08:18:22 +01:00
#Configure your Pi
2020-02-07 08:11:05 +01:00
sudo raspi-config
2020-02-07 08:18:22 +01:00
#Interfacing Options > Camera > Yes > OK
#Interfacing Options > SSH > Yes > OK
#Interfacing Options > I2C > Yes > OK
#Interfacing Options > SSH > No > Yes > OK
#Reboot > Yes
#Install librairies for the steppers (pump and focus)
2020-02-07 08:11:05 +01:00
pip3 install adafruit-blinka
sudo pip3 install adafruit-circuitpython-motorkit
2020-02-07 08:18:22 +01:00
#Install the librairy for the fan
2020-02-07 08:11:05 +01:00
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
sudo ./build
2020-02-07 08:53:38 +01:00
sudo apt-get install gcc -y
2020-02-07 08:18:22 +01:00
#Install Node-Red
2020-02-07 08:11:05 +01:00
cd
2020-02-07 08:53:38 +01:00
sudo apt-get install build-essential -y
2020-02-07 08:11:05 +01:00
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
2020-02-07 08:24:46 +01:00
#Press y and y again to confirm the installation of Node-RED and wait.
2020-02-07 08:11:05 +01:00
cd .node-red/
npm install node-red-dashboard
npm install node-red-contrib-python3-function
npm install node-red-contrib-camerapi
2020-02-07 08:18:22 +01:00
npm install node-red-contrib-gpsd
npm install node-red-contrib-web-worldmap
2020-02-07 08:24:46 +01:00
sudo systemctl enable nodered.service
2020-02-07 08:37:11 +01:00
#BUILD CONFIGURATION
#COPY PASTE BLOCK BY BLOCK
2020-02-07 08:18:22 +01:00
2020-02-07 08:11:05 +01:00
sudo pip3 install jupyter
pip install matplotlib
pip3 install matplotlib
2020-02-07 08:37:11 +01:00
sudo apt-get install exfat-fuse -y
sudo apt-get install exfat-utils -y
2020-02-07 08:11:05 +01:00
pip install paho-mqtt
pip3 install paho-mqtt
2020-02-07 08:37:11 +01:00
sudo apt-get install mosquitto mosquitto-clients -y
2020-02-07 08:24:46 +01:00
pip install -U git+https://github.com/morphocut/morphocut.git@pyrocystis
pip3 install -U git+https://github.com/morphocut/morphocut.git@pyrocystis
2020-02-07 08:11:05 +01:00
sudo pip3 install morphocut --upgrade
pip3 install morphocut --upgrade
pip3 uninstall morphocut
pip uninstall morphocut
pip uninstall -U git+https://github.com/morphocut/morphocut.git@pyrocystis
pip freeze | xargs pip uninstall -y
pip3 freeze | xargs pip3 uninstall -y
sudo pip3 freeze | xargs pip3 uninstall -y
pip3 uninstall morphocut
sudo pip3 uninstall morphocut
sudo pip3 install morphocut
sudo pip3 uninstall morphocut
pip install -U git+https://github.com/morphocut/morphocut.git@pyrocystis
pip3 install -U git+https://github.com/morphocut/morphocut.git@pyrocystis
2020-02-07 08:24:46 +01:00
2020-02-07 08:53:38 +01:00
sudo apt-get purge wolfram-engine -y
sudo apt-get remove vlc* -y
2020-02-07 08:11:05 +01:00
sudo apt-get update -y && sudo apt-get upgrade -y
2020-02-07 08:53:38 +01:00
sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libgtk2.0-dev -y
sudo apt-get install libatlas-base-dev gfortran -y
sudo apt-get install python2.7-dev python3-dev -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev -y
sudo apt-get install libfontconfig1-dev libcairo2-dev -y
sudo apt-get install libgdk-pixbuf2.0-dev libpango1.0-dev -y
sudo apt-get install libgtk2.0-dev libgtk-3-dev -y
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103 -y
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 -y
2020-02-07 08:11:05 +01:00
pip install "picamera[array]"
pip3 install opencv-contrib-python==4.1.0.25
2020-02-07 08:24:46 +01:00
2020-02-07 08:53:38 +01:00
sudo apt-get install ffmpeg git python3-picamera python3-ws4py -y
2020-02-07 08:11:05 +01:00
git clone https://github.com/waveform80/pistreaming.git
git clone git@github.com:Lawouach/WebSocket-for-Python.git
pip install ws4py
pip3 install ws4py
pip3 install pyzmq