Chromium and Chrome driver Setup:

Important Note: This setup is only required for the users who followed the SELF-HOST method for deploying Cat Userbot. This is not required for Docker or Docker-Compose (recommended method) methods.

Why should you do this setup? : Chromium binary and Chrome-driver is a mandatory requirement for many awesome plugins and commands like AI tools, Screenshot, Rayso, Rayso based logs, Carbon, etc.

Here we will show how to setup this in 2 popular and widely used distros only (Ubuntu and Debian). Other distro users have to install and setup the Vars accordingly.

For Ubuntu users:

1) In terminal, run below command to install chromium and chromium based chrome driver:

sudo apt install chromium-browser chromium-chromedriver

2) Now go to your Cat Userbot directory and open the config.py file using:

nano config.py

3) Add below 2 lines at the end:

CHROME_BIN = "/usr/bin/chromium-browser"
CHROME_DRIVER = "/usr/bin/chromedriver"

use Ctrl+O and press Enter and Ctrl+X to exit.

----------------------------------------------------------------------------------------------------

For Debian users:

1) In terminal, run below command to install chromium and chromium based chrome driver:

sudo apt install chromium chromium-driver

2) Now go to your Cat Userbot directory and open the config.py file using:

nano config.py

3) Add below 2 lines at the end:

CHROME_BIN = "/usr/bin/chromium"
CHROME_DRIVER = "/usr/bin/chromedriver"

use Ctrl+O and press Enter and Ctrl+X to exit.

Last updated