Skip to main content

2. Software Dependencies

In this step you will update Ubuntu and the base packages, and install dependent software.

What is being installed?

Software List
  • curl is a tool for transferring data from or to a server.
  • python3-pip and pip are installer programs for python modules.
  • postgresql-client, postgresql, and postgresql-contrib provide database functionality for cMixx node data.
  • nvidia-driver-[version]-server and dependencies are for GPU and computation.
  • boto3, pyOpenSSL, and requests handle commands, upgrades and send logs via AWS.
  • substrate-interface and packaging are for interacting with a Substrate node.
sudo apt -y update && sudo apt -y upgrade

If updates were installed it is recommended you restart the computer but if none were installed you can skip rebooting the computer.

sudo shutdown -r now

Install cMixx dependent Ubuntu packages

sudo apt install -y curl python3-pip postgresql-client postgresql postgresql-contrib nvidia-driver-550-server

After installing the dependencies you should restart the computer.

sudo shutdown -r now

Install cMixx dependent Python modules

note

If you are installing on Ubuntu Server 24.04 LTS, you will likely see the following message when installing the Python modules.

error: externally-managed-environment.

This should only be required for Ubuntu Server 24.04 LTS.

To resolve this error, run the following commands:

sudo mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.bak

You should now be able to continue.

sudo pip3 install -U pip
pip3 install --user -U boto3 pyOpenSSL substrate-interface packaging requests