I wanted to set up Drubuntu to understand how it sets up hosts, uses dnsmasq and Apache virtual hosts, but I did not have the resources to set up the whole GUI environment. I ran the Drubuntu setup script on an Ubuntu 9.10 minimal install, and this worked perfectly fine except it triggered the installation of GUI libraries to support the GUI tools, web browsers, wine, etc.
Is there a reason why we can't separate the package collections into CLI tools and GUI tools so that I can build a Drubuntu environment without Eclipse, Firefox, etc. etc.?
I'm willing to make a patch.
Comments
Comment #1
Grayside commentedRelated: #1007080: More advanced tools (Varnish/Memcached/Solr/etc?)
Sounds like we might want a standardized mechanism to group packages and declare whether they are intended as options.
Comment #2
Grayside commentedThe refactor of drubuntu adds some new options and new challenges to this idea.
Implementation of optional installation could be handled on a per engine basis by adding an
'optional' => TRUEparameter to the engine definitions in drubuntu_drush_engines_TASK in engines.inc. Then drubuntu_task_invoke() can check for that engine before actually installing it.Tracking which engines are actually installed will be necessary in order to handle whether an engine's site_add or uninstallation routines should be run. Because of the scope of engines (at least at this point), enabled engines can probably be tracked in a simple flat file.
Comment #3
owen barton commentedAs Grayside said, there is already some control over what is installed (although I think I just removed the ability to skip entire tasks - easy to add it back again). That said, a totally non-GUI (i.e. Ubuntu server) install would take some additional work to see how things work, because you would need to set up Dnsmasq to listen to outside connections, change the reference to 127.0.0.1 to your external IP, and set up your desktop host to use your Drubuntu host as a DNS server. I haven't tried this, but it should be possible, and might be worth supporting for OS X users who would like to run only the LAMP side of Drubuntu in a VM.
If you are testing it out, make sure you use the 10.10 version (released just now), as it has quite a few improvements over the 9.10 version.
Comment #4
marcp commented@bangpound - If you come up with a patch for this I'd be happy to test it out. It'd be great to be able to use drubuntu to set up a test server environment.