Selenoid is a powerful and efficient Selenium server replacement for running tests in Docker containers. In this tutorial, you will learn how to install Selenoid on Linux Mint latest version.
Before you can install Selenoid, you will need to have Docker installed on your Linux Mint system. Follow these steps to install Docker:
Open a terminal window.
Update your package list by typing the following command:
sudo apt-get update
Install Docker using the following command:
sudo apt-get install docker-ce docker-ce-cli containerd.io
After installation, start the Docker service using the following command:
sudo systemctl start docker
To install Selenoid on Linux Mint latest version, follow these steps:
Open a terminal window.
Download the Selenoid binary using the following command:
wget https://github.com/aerokube/selenoid/releases/latest/download/selenoid_linux_amd64
Make the binary executable by running the following command:
chmod +x selenoid_linux_amd64
Move the binary to the /usr/bin directory so that it can be used system-wide:
sudo mv selenoid_linux_amd64 /usr/bin/selenoid
Download the Selenoid UI binary using the following command:
wget https://github.com/aerokube/selenoid-ui/releases/latest/download/selenoid-ui_linux_amd64
Make the binary executable by running the following command:
chmod +x selenoid-ui_linux_amd64
Move the binary to the /usr/bin directory so that it can be used system-wide:
sudo mv selenoid-ui_linux_amd64 /usr/bin/selenoid-ui
After installing Selenoid, you will need to start it using Docker. Here's how:
Open a terminal window.
Create a directory for storing Selenoid configuration files:
sudo mkdir -p /etc/selenoid/
Download the configuration file for Selenoid using the following command:
sudo wget https://raw.githubusercontent.com/aerokube/selenoid/master/cm/selenoid.json -P /etc/selenoid/
Start Selenoid using the following command:
sudo docker run -d --name selenoid -p 4444:4444 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/selenoid:/etc/selenoid \
aerokube/selenoid:latest-release
Verify that Selenoid is running by visiting http://localhost:4444/status in your web browser or by running the following command:
sudo docker ps
To start the Selenoid UI, follow these steps:
Open a terminal window.
Start the Selenoid UI using the following command:
sudo docker run -d --name selenoid-ui \
--link selenoid \
-p 8080:8080 \
aerokube/selenoid-ui \
--selenoid-uri=http://selenoid:4444
Verify that the Selenoid UI is running by visiting http://localhost:8080 in your web browser.
Congratulations! You have successfully installed Selenoid on Linux Mint latest version.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!