import time import subprocess
def delayed_print(message, delay): print(message) time.sleep(delay)
delayed_print("Hello World! Sit back, relax, and enjoy the show! -Kyle Martin.", 5)
subprocess.run(['sudo', 'apt', 'install', 'wget', '-y'], check=True)
try: subprocess.run(['dpkg', '--version'], check=True) except FileNotFoundError: print('dpkg is not available on your system. Please make sure you are running this script on a Debian-based system.') exit(1)
print('Updating system packages...') subprocess.run(['sudo', 'apt', 'update'], check=True) subprocess.run(['sudo', 'apt', 'upgrade', '-y'], check=True)
print('Downloading Visual Studio Code...') subprocess.run(['wget', 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64', '-O', 'vscode.deb'], check=True)
print('Installing Visual Studio Code...') subprocess.run(['sudo', 'dpkg', '-i', 'vscode.deb'], check=True) subprocess.run(['sudo', 'apt', 'install', '-f'], check=True)
subprocess.run(['rm', 'vscode.deb'], check=True)
print('Opening Visual Studio Code...') subprocess.run(['code'], check=True)