MusicBot logo MusicBot

centos Installation on CentOS is majorly untested and is not officially supported due to issues. Please keep this in mind when seeking support.

The installation steps for CentOS vary depending on your version of the OS.

CentOS 6.9

# Install dependencies
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install https://centos6.iuscommunity.org/ius-release.rpm
sudo yum -y install gcc openssl-devel bzip2-devel libffi-devel make
sudo yum -y install yum-utils opus-devel libsodium-devel 

# Install Python3.10
cd /opt
wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz
tar xzf Python-3.10.13.tgz
cd Python-3.10.13
sudo ./configure --enable-optimizations
sudo make altinstall
cd ..
sudo rm Python-3.10.13.tgz

# Install FFmpeg
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
sudo yum -y install ffmpeg ffmpeg-devel -y

# Install libsodium from source
mkdir libsodium && cd libsodium
curl -o libsodium.tar.gz https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar -zxvf libsodium.tar.gz && cd libsodium-stable
./configure
make && make check
sudo make install
cd ../.. && rm -rf libsodium

# Clone the MusicBot
git clone https://github.com/Just-Some-Bots/MusicBot.git MusicBot -b master
cd MusicBot

# Install bot requirements

python3 -m pip install -U -r requirements.txt
python3 -m pip install -U pynacl

CentOS 7.4

# Install dependencies
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum -y install curl opus-devel libffi-devel libsodium-devel
sudo yum -y install gcc openssl-devel bzip2-devel make

# Install Python3.10

cd /opt
wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz
tar xzf Python-3.10.13.tgz
cd Python-3.10.13
sudo ./configure --enable-optimizations
sudo make altinstall
cd ..
sudo rm Python-3.10.13.tgz

# Install FFmpeg
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum -y install ffmpeg ffmpeg-devel -y

# Clone the MusicBot
git clone https://github.com/Just-Some-Bots/MusicBot.git MusicBot -b review
cd MusicBot

# Install bot requirements

python3 -m pip install -U -r requirements.txt

Once everything has been completed, you can go ahead and configure the bot and then run with sudo ./run.sh.