I have a small PC with Ubuntu 10.04 LTS desktop edition used for basic computing and as a backup location. I want to use it to set up a NAS and personal webserver. I've been reading a little bit about having a webserver at home have read some nebulous comments about security concerns of having something like the Gnome shell installed, but nothing I've found has been especially clear why.
Is it safe to run a webserver on a box with desktop packages installed? Are there a few things I can change to prevent security risks? Or do I need to install server edition instead?