Files
DRB-CnC/Client/setup.sh
Logan Cusano 95c99971a2 Revert to Naudiodon and Update Config
- Changed to .env file
2023-04-30 03:52:20 -04:00

26 lines
537 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
# Ensure pulse audio is running
pulseaudio
# Install the node packages from the project
npm i