I’d like to create an SD card for the Nano that is as small as possible and only contains the packages needed to execute Tensor RT for inference. The Nano would not be connected to a monitor, so the complete Ubuntu desktop is not required.
I have started with removing almost all standard Ubuntu desktop packages for this (using apt remove) and everything that is related to it. Could you provide guidance around if/what of the XServer and Wayland packages are needed in order to keep the Jetson Nano’s HW acceleration working? Are there any other low level debian packages that are needed to ensure Jetson Nano’s HW acceleration stays working?
I would only require HW accelaration as needed for AI inference in Tensor RT, i.e. running CUDA etc. Do we need to keep the XServer, X11 (or Wayland) running for this? I want to avoid the inference falling back to CPU only.
And if you want to make the setting persistent so it will still be headless on reboot:
sudo systemctl set-default multi-user.target
There is no need to uninstall them to free up ram. Just turn them off and they won’t run. There is no need to uninstall them.
Tip. You can still access consoles via HDMI and switch between them with Ctrl+number. You can also still run X applications via ssh -X even if X isn’t running on the nano. X apps are clients that connect to a display server. The server doesn’t have to be on the same machine, however graphically demanding apps will likely not perform well remotely.
Thanks for your suggestions. I’m not looking for temporary turning off X or trying to run X remotely. Our system does not require any UI and we are trying to make an SD card image that has as few packages as possible (for size and maintenance reasons). We only want to keep the absolute minimum required to run Tensorflow RT with CUDA (i.e. hardware supported AI inference). I’d like to confirm what components are needed to achieve that. I heard from other Jetson users that X might be required and removing it might disable CUDA or related things that Tensorflow RT is using.
I can now confirm that the xserver is not needed. CUDA and tensorflow are still working after removing the apt packages for X. You just have to make sure the nvidia cuda packages are not automatically removed. For this, run