Modifying GPU Fan Curve on Ubuntu Cluster

I am running scientific calculations on a GPU cluster, and have found myself needing to modify the GPU fan curves. Our cluster is set up so that each individual node has 4 GPUs, and runs Ubuntu 18.04 off of a head node. I have come across nvidia-settings --cool-bit=28 flag, but I am unable to run the nvidia-settings command on an individual node as I get the error:

libgtk-3.so.0: cannot open shared object file: No such file or directory
libnvidia-gtk3.so: cannot open shared object file: No such file or
directory
libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory
libnvidia-gtk2.so: cannot open shared object file: No such file or
directory

ERROR: A problem occured when loading the GUI library. Please check your
installation and library path. You may need to specify this library when
calling nvidia-settings. Please run nvidia-settings --help for usage
information.

I thought this was due to a missing package on the head node, so I downloaded gtk2.0 and gtk3.0 with sudo apt-get install gtk3.0, but I still receive that error even after rebooting.

Is there a way to use nvidia-settings on a setup like mine, with only command line arguments?

Thank you!

This would require running an Xserver and xscreens on each gpu, so not really feasible in your case.