While Balancer operates independently without relying on third-party services, it does require certain open-source software to be installed on the host machine running the instance. Ensuring these dependencies are properly set up is essential for a smooth deployment.
Before proceeding, run the following command to update the packages used by the OS:
sudo apt update -y && sudo apt upgrade -y && sudo apt-get update -y && sudo apt-get upgrade -y
Tip: you can paste into the terminal by pressing Ctrl+Shift
and then V
.
Installing Docker
-
Set up Docker's apt repository:
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update
-
Install the Docker Packages:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
-
Verify that the installation is successful by running the
hello-world
image:sudo docker run hello-world
For more information, visit:
Install Docker Engine on Ubuntu
Installing nvm
The nvm
bash script can be installed as follows:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
If the above command fails, run this one:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
Once nvm
's installation is complete, install and activate the version required by Balancer (Node.js ^22.11.0
& npm ^10.9.0
):
nvm install 22.11.0 && nvm use 22.11.0
If you get the error nvm: command not found or see no feedback on the terminal, reboot the machine by running the following command: reboot now
.
Finally, verify the installation was successful:
node --version && npm --version
# v22.11.0
# 10.9.0
For more information, visit:
Installing landscape-sysinfo
Newer versions of Ubuntu Server come with landscape-sysinfo
preinstalled. However, if it's not available on your machine, you can install it by running:
sudo apt install landscape-common