Running raspi-blinka.py as sudo
This commit is contained in:
parent
e15f80d0c6
commit
b8742e6cdb
4
setup.sh
4
setup.sh
@ -72,7 +72,7 @@ else
|
||||
fi
|
||||
|
||||
# Create and activate Python virtual environment
|
||||
cd "$PROJECT_DIR"
|
||||
cd "$PROJECT_DIR/"
|
||||
chmod ugo+x ./raspi-blinka.py ./temp-calc.py
|
||||
python3 -m venv . --system-site-packages
|
||||
echo -e "$line\nVirtual environment created.\n$line\n"
|
||||
@ -83,7 +83,7 @@ echo -e "$line\nInstalling dependencies...\n$line\n"
|
||||
pip3 install --upgrade setuptools click adafruit-python-shell adafruit-circuitpython-dht
|
||||
|
||||
echo -e "$line\nSetting up raspi-blinka...\n$line\n"
|
||||
python3 raspi-blinka.py
|
||||
sudo python3 raspi-blinka.py
|
||||
|
||||
echo -e "\n\n\n$line$line$line\nSetup completed.\nExecute the command 'python3 temp-calc.py' to calculate\nthe temperature.\n# DESIGNED AND ENGINEERED BY KSHITIJ.\n# END OF SCRIPT\n$line$line$line\n\n\n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user