Welcome to Cadamuro's class website. Here you will find information about the class including assignments, homework and helpful resources. The goal of this website is to ensure students have access to the course content, so that all students can achieve success.ย This is an innovative environment for 21st century teaching and learning. This method offers a variety of pathway opportunities for students living in a digital world.ย ย
"Tell me and I forget,show me and I remember, involve me and I understand"ย
- Benjamin Franklin
Name: install_dev_tools.sh
Open a terminal
chmod +x install_dev_tools.sh
./install_dev_tools.sh
#!/bin/bash
# This script automates the installation of Chromium, Python, Pygame, and VS Code
# on a Debian-based system like Linux Mint.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "--- Starting software installation script ---"
# Step 1: Update the package list
echo "Updating system package list..."
sudo apt update -y
# Step 2: Install Chromium
echo "Installing Chromium browser..."
sudo apt install chromium-browser -y
# Step 3: Install Python3 and pip (the Python package installer)
# Python3 is often pre-installed, but pip is not always.
echo "Installing Python3's package manager (pip)..."
sudo apt install python3-pip -y
# Step 4: Install Pygame using pip
echo "Installing Pygame library..."
# We use 'python3 -m pip' to ensure we are using the correct version of pip for Python 3.
python3 -m pip install pygame
# Step 5: Install Visual Studio Code
echo "Setting up repository for Visual Studio Code..."
# Install prerequisite packages for adding the repository
sudo apt install -y wget gpg software-properties-common apt-transport-https
# Add Microsoft's GPG key
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
rm packages.microsoft.gpg
# Add the VS Code repository to the sources list
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
# Update the package list again to include the new VS Code repository
echo "Updating package list with new repository..."
sudo apt update -y
# Install VS Code
echo "Installing Visual Studio Code..."
sudo apt install code -y
echo "--- Installation complete! ---"
echo "You can now run 'chromium-browser', 'code', and use 'pygame' in your Python projects."