I have a GPU server which requires cuda for example for machine learning tasks.
unfortunately, as soon as I install the NVIDIA drivers and cuda, apparently a variant of gnome is installed as well. This gnome variant can almost do nothing, the shell is not working and apparently it comes with some desktop settings which are really annoying me.
For example per default, it sets shutdown after 20 minutes inactivity. For a Server, this is very suboptimal to call it this way.
Do you know how to install the drivers and the cuda toolkit without gnome or (less preferrably) remove gnome after the fact and all its stuff (such as the 20 minute idle setting) which I definitely do not want on my Server?
Using the headless nvidia Driver did not help. The gnome comes from the cuda toolkit I guess.
I have been able to remove gnome but I am unsure, if this is a proper removal so I leave the question open for now. Note the two last steps in cuda installation:
sudo apt-get remove *gnome* && sudo apt-get purge *gnome*
Install Nvidia Drivers
sudo apt-get update && apt search nvidia-driver
sudo apt-get install [package name]
sudo shutdown -r 0
sudo lshw -C display
Install Cuda toolkit
sudo apt-get install gcc --yes
uname -r
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get remove *gnome*
sudo apt-get purge *gnome*
make sure to not
sudo apt-get --auto-remove
as this will remove coda toolkit as well again...