Install the DEs manually instead of from metapackages so ,out don’t end up with their entire software suites being installed. Additionally, probably use Debian instead of Ubuntu if you’re gonna be doing stuff like that, less fingers in the pie make for an easier tinkering experience.
Dualshock 4 is great.
If you’re not gonna use it often and want a cheaper one, the Logitech F710 (wireless version of the f310) is great, just don’t use it for your submarines