Files
DRB-CnC/Client/setup.sh
2023-05-20 00:01:12 -04:00

29 lines
613 B
Bash

#!/bin/bash
# Check if the user is root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Check for updates
apt-get update
# Install Node Repo
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
# Update the system
apt-get update
apt-get upgrade -y
# Install the necessary packages
apt-get install -y nodejs npm libopus-dev gcc make alsa-utils libasound2 libasound2-dev libpulse-dev pulseaudio apulse python3.9
# Ensure pulse audio is running
pulseaudio
# Install the node packages from the project
npm i
# Install the python packages needed for the bot
pip install -r