#!/bin/bash set -e echo "Starting Dummy Installation Test..." if [ "$EUID" -ne 0 ]; then echo "❌ Error: Please run this script with sudo." exit 1 fi echo "======================================" echo "1. Installing test tools ('cowsay' and 'htop')..." echo "======================================" # Update package list silently and install tools apt-get update -yq apt-get install -yq cowsay htop echo "======================================" echo "2. Verifying Installation..." echo "======================================" if command -v htop &> /dev/null; then echo "✅ 'htop' installed successfully! (Type 'htop' in the terminal to see a cool task manager)" fi if command -v /usr/games/cowsay &> /dev/null; then echo "✅ 'cowsay' installed successfully!" /usr/games/cowsay "Hello from the automated script! If you see this, the remote execution test was a massive success!" fi echo "======================================" echo "🎉 Test Complete!" echo "To clean up and remove these test tools later, just run:" echo "sudo apt-get remove --purge -y cowsay htop" echo "======================================"