Setting up WizBot on Linux
Operating System Compatibility
It is recommended that you use Ubuntu 20.04, as there have been nearly no problems with it. Also, 32-bit systems are incompatible.
Ubuntu 22.04 is ruled as incompatible so double check which ubuntu version you are using.
Compatible operating systems:
Ubuntu: 16.04, 18.04, 20.04
Mint: 19, 20
Debian: 10, 11
CentOS: 7
openSUSE
Fedora: 33, 34, 35
Linux From Source
Migration from v3 -> v4
Follow the following few steps only if you're migrating from v3. If not, skip to installation instructions.
Use the new installer script: cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/-/raw/v4/linuxAIO.sh && bash linuxAIO.sh
Install prerequisites (type
1
and pressenter
)Download (type
2
and pressenter
)Run (type
3
and pressenter
)Done
Installation Instructions
Open Terminal (if you're on an installation with a window manager) and navigate to the location where you want to install the bot (for example cd ~
)
Download and run the new installer script
cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/raw/v4/linuxAIO.sh && bash linuxAIO.sh
Install prerequisites (type
1
and press enter)Download the bot (type
2
and press enter)Exit the installer (type
6
and press enter)Copy the creds.yml template
cp wizbot/output/creds_example.yml wizbot/output/creds.yml
Open
wizbot/output/creds.yml
with your favorite text editor. We will use nano herenano wizbot/output/creds.yml
Click here to follow creds guide
After you're done, you can close nano (and save the file) by inputting, in order
CTRL
+X
Y
Enter
Run the installer script again
cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/raw/v4/linuxAIO.sh && bash linuxAIO.sh
Run the bot (type
3
and press enter)
Source Update Instructions
⚠ Stop the bot ⚠
Update and run the new installer script
cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/raw/v4/linuxAIO.sh && bash linuxAIO.sh
Update the bot (type
2
and press enter)Run the bot (type
3
and press enter)🎉
⚠ IF YOU ARE FOLLOWING THE GUIDE ABOVE, IGNORE THIS SECTION ⚠
Linux Release
Prerequisites
(Optional) Installing Redis
ubuntu installation command:
sudo apt-get install redis-server
Playing music requires
ffmpeg
,libopus
,libsodium
andyoutube-dl
(which in turn requires python3)ubuntu installation command:
sudo apt-get install ffmpeg libopus0 opus-tools libopus-dev libsodium-dev -y
Make sure your python is version 3+ with
python --version
if it's not, you can install python 3 and make it the default with:
sudo apt-get install python3.8 python-is-python3
You can use wizbot bash script prerequisites installer as a reference
Installation Instructions
Download the latest release from https://gitlab.com/WizNet/wizbot/-/releases
Look for the file called "X.XX.X-linux-x64-build.tar" (where X.XX.X is a series of numbers) and download it
Untar it
⚠ Make sure that you change X.XX.X to the same series of numbers as in step 1!
tar xf X.XX.X-linux-x64-build.tar
Rename the
wizbot-linux-x64
towizbot
mv wizbot-linux-x64 wizbot
Move into wizbot directory and make WizBot executable
cd wizbot && chmod +x WizBot
Copy the creds.yml template
cp creds_example.yml creds.yml
Open
creds.yml
with your favorite text editor. We will use nano herenano wizbot/output/creds.yml
Click here to follow creds guide
After you're done, you can close nano (and save the file) by inputting, in order
CTRL
+X
Y
Enter
Run the bot
./WizBot
Release Update Instructions
Stop the bot
Download the latest release from https://gitlab.com/WizNet/WizBot/-/releases
Look for the file called "x.x.x-linux-x64-build.tar" (where
X.X.X
is a version, for example 3.0.4) and download it
Untar it
⚠ Make sure that you change
X.X.X
to the same series of numbers as in step 2!tar xf x.x.x-linux-x64-build.tar
Rename the old wizbot directory to wizbot-old (remove your old backup first if you have one, or back it up under a different name)
rm -rf wizbot-old 2>/dev/null
mv wizbot wizbot-old
Rename the new wizbot directory to wizbot
mv wizbot-linux-x64 wizbot
Remove old strings and aliases to avoid overwriting the updated versions of those files
⚠ If you've modified said files, back them up instead
rm wizbot-old/data/aliases.yml
rm -r wizbot-old/data/strings
Copy old data
cp -RT wizbot-old/data/ wizbot/data
Copy creds.yml
cp wizbot-old/creds.yml wizbot/
Move into wizbot directory and make the WizBot executable
cd wizbot && chmod +x WizBot
Run the bot
./WizBot
🎉 Enjoy
Steps 3 - 9 as a single command
Don't forget to change X.XX.X to match step 2.
Running WizBot
While there are two run modes built into the installer, these options only run WizBot within the current session. Below are 3 methods of running WizBot as a background process.
Tmux Method (Preferred)
Using tmux
is the simplest method, and is therefore recommended for most users.
Start a tmux session:
tmux
Run the installer:
bash linuxAIO.sh
There are a few options when it comes to running WizBot.
Run
3
to Run the bot normallyRun
4
to Run the bot with Auto Restart (This is may or may not work)
If option
4
was selected, you have the following options
Run
1
to restart the bot without updating. (This is done using the.die
command)Run
2
to update the bot upon restart. (This is also done using the.die
command)
That's it! to detatch the tmux session:
Press
Ctrl
+B
Then press
D
WizBot should now be running in the background of your system. To re-open the tmux session to either update, restart, or whatever, execute tmux a
.
Systemd
Compared to using tmux, this method requires a little bit more work to set up, but has the benefit of allowing WizBot to automatically start back up after a system reboot or the execution of the .die
command.
Navigate to the project's root directory
Project root directory location example:
/home/user/wizbot/
Use the following command to create a service that will be used to start WizBot:
Make the new service available:
sudo systemctl daemon-reload
Start WizBot:
sudo systemctl start wizbot.service && sudo systemctl enable wizbot.service
Systemd + Script
This method is similar to the one above, but requires one extra step, with the added benefit of better error logging and control over what happens before and after the startup of WizBot.
Locate the project and move to its parent directory
Project location example:
/home/user/wizbot/
Parent directory example:
/home/user/
Use the following command to create a service that will be used to execute
WizBotRun.sh
:Make the new service available:
sudo systemctl daemon-reload
Use the following command to create a script that will be used to start WizBot:
Start WizBot:
sudo systemctl start wizbot.service && sudo systemctl enable wizbot.service
Setting up WizBot on a Linux VPS (Digital Ocean Droplet)
If you want WizBot to play music for you 24/7 without having to hosting it on your PC and want to keep it cheap, reliable and convenient as possible, you can try WizBot on Linux Digital Ocean Droplet using the link DigitalOcean (by using this link, you will get $10 credit and also support WizBot)
To set up the VPS, please select the options below
Setting up WizBot Assuming you have followed the link above to setup an account and a Droplet with a 64-bit operational system on Digital Ocean and got the IP address and root password (in your e-mail)
to login, it's time to get started.
This section is only relevant to those who want to host WizBot on DigitalOcean. Go through this whole section before setting the bot up.
Prerequisites
Starting up
Open PuTTY and paste or enter your
IP address
and then click Open. If you entered your Droplets IP address correctly, it should show login as: in a newly opened window.Now for login as:, type
root
and press enter.It should then ask for a password. Type the
root password
you have received in your e-mail address, then press Enter.
If you are running your droplet for the first time, it will most likely ask you to change your root password. To do that, copy the password you've received by e-mail and paste it on PuTTY.
To paste, just right-click the window (it won't show any changes on the screen), then press Enter.
Type a new password somewhere, copy and paste it on PuTTY. Press Enter then paste it again.
Save the new password somewhere safe.
After that, your droplet should be ready for use. Follow the guide from the beginning to set WizBot up on your newly created VPS.
Last updated