This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/trained-vision-app/draft/en/resources/starter.py" | |
RASPBERRY_PI_PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/trained-vision-app/draft/en/resources/raspberry_pi_starter.py" | |
ORIGINAL_USER=$1 | |
echo "Original user: $ORIGINAL_USER" | |
# First, check if Python 3 is available. If not, terminate the script and ask the user to fix that. | |
if ! which python3 | |
then | |
sudo -u $ORIGINAL_USER -- echo "Python3 does not appear to be installed on your system. Please install it and try running this script again." | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/image-identifier/draft/en/resources/project.py" | |
PROJECT_STARTER_IMAGE="https://raw.githubusercontent.com/raspberrypilearning/image-identifier/draft/en/resources/start.jpg" | |
ORIGINAL_USER=$1 | |
echo "Original user: $ORIGINAL_USER" | |
# First, check if Python 3 is available. If not, terminate the script and ask the user to fix that. | |
if ! which python3 | |
then | |
sudo -u $ORIGINAL_USER -- echo "Python3 does not appear to be installed on your system. Please install it and try running this script again." | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |