In this tutorial, we will walk you through the steps required to install Maza ad-blocking on Ubuntu Server latest version. Maza is an open-source ad-blocker that blocks ads, trackers and malware from your device.
Open a terminal window on your Ubuntu Server by pressing CTRL + ALT + T
and run the following command to install Git:
sudo apt-get update
sudo apt-get install git
Run the following command to clone Maza's repository:
sudo git clone https://github.com/maza-ad-blocking/maza-ad-blocking.git
Maza requires Docker to be installed on your machine. Follow the given steps to install it.
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker "$USER"
cd maza-ad-blocking
cp config.sample.ini config.ini
nano config.ini
Make the following changes to the configuration file:
forwarder
to "localhost#5053"
.cache_dir
to "data"
.Save and exit the editor.
Run the following command to build Maza:
sudo docker build -t maza:latest .
Run the following command to start the Maza container:
sudo docker run -d -v $(pwd)/data:/opt/maza/data -p 5053:53/udp --restart always --name maza maza:latest
Maza should now be up and running on your machine. You can verify this by visiting http://localhost/admin
on a web browser. If everything was done correctly, you should see the Maza web interface.
In this tutorial, we have shown you how to install and configure Maza ad-blocking on Ubuntu Server latest version. Maza is a powerful ad-blocker that helps in blocking ads, trackers and malware from your device.
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!