Installing the bot on Debian is similar to Ubuntu, but requires some additional system dependencies obtained through apt
.
MusicBot can be installed on Debian. Older versions of Debian may require some manual build steps.
This guide is broken into three sections depending on your version of Debian.
If you’re unsure which version you have, you can find out by using the following command:
lsb_release -s -d
It should output something similar to one of the following:
Debian GNU/Linux 12 (bookworm)
or Debian GNU/Linux 10 (buster)
We’re interested in the last two bits of info, the number and code-name.
Version 12 (bookworm) and up
Debian 12 (bookworm) install steps.
For Debian 12 (bookworm) or later, Python 3 is system-managed.This means MusicBot must be installed in a Python Venv (Virtual Environment) to avoid complications between system python libraries and libraries that MusicBot depends on.
In practice, there are only a few extra commands to follow:
After these steps, MusicBot will be installed within
./MusicBotVenv/MusicBot/
and will need to be configured. Follow the Configuration guide before starting the MusicBot. Note: As long as the MusicBot cloned directory is inside the Venv directory, the
run.sh
and update.sh
scripts should find and load the Venv automatically.If you need to manually update python libraries for MusicBot, you will need to activate the venv before you can do so.
Version 11 (bullseye)
Debian 11 (bullseye) install steps.
For Debian version 11 (bullseye), the Python 3.8+ is available as a system package, so installing is pretty simple.Just follow these commands: Once finished, you need to Configure MusicBot.
After configuring you can use the command
./run.sh
to start the bot.
Version 10 (buster) and earlier.
Debian 10 (buster) install steps.
For Debian version 10 (buster) and earlier versions, you will need to compile a version of Python 3.8 or higher as well as installing pip.This can take a bit of time to complete and may require a little troubleshooting know-how if these steps are out-of-date or incomplete in some way.
If you're willing to carefully follow along, these steps should get MusicBot working: When install is finished you need to Configure MusicBot.
After configuring you can use the command
./run.sh
to start the bot.