I wrote in one of my last articles that it's handy to use the 'tasksel' command to install complete packages (called tasks in Ubuntu/Debian) like samba server or a virtual machine host. These are comparable with server roles & features as Microsoft calls that. I've been doing some more reading into this, but at the moment it is NOT advised to remove tasks with tasksel, as it might remove more then you'd like. Which in turn could render your system more or less unusable.