Skip to content

Commit

Permalink
Create install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
becklog authored Mar 8, 2024
1 parent 6158ca4 commit 7e82acf
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Aktualisiere die Paketlisten
sudo apt-get update

# Installiere Nginx (ersetze 'nginx' mit 'nginx=specific_version', wenn nötig)
sudo apt-get install -y nginx

# Installiere Abhängigkeiten für Libcamera (Beispiel für eine generische Installation)
sudo apt-get install -y libcamera-dev

# Installiere Python3 und pip, falls noch nicht vorhanden
sudo apt-get install -y python3 python3-pip

# Upgrade pip
pip3 install --upgrade pip

# Installiere Python-Abhängigkeiten aus requirements.txt
pip3 install -r requirements.txt

# Arduino CLI installieren
cd /tmp
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh

# Füge den Arduino CLI binären Pfad zur Umgebungsvariablen PATH hinzu
export PATH=$PATH:/home/pi/bin

# Verifiziere die Installation
arduino-cli version

# Nachbearbeitung oder zusätzliche Konfigurationen hier hinzufügen

echo "Installation abgeschlossen."

0 comments on commit 7e82acf

Please sign in to comment.