Ubuntu 12.04 LTS was released 04/26. The LTS means Long Term Support -- and for the first time Ubuntu is including the desktop in the 5year support. I know some people don't like Unity, but once you get used to it, it is soo much faster than using a mouse. I absolutely love it plus the new HUD. So, yesterday I started working on a new Quickstart image based on it by updating the Quickstart scripts to work with the new 12.04 repositories. (A LOT has changed since 11.04, and many of the scripts hadn't been updated since 09). I'm interested in working with Michael Cole (or anyone else), and thought I'd post here in order to open up the possibility for better collaboration. I'm often in IRC if anyone wants to chat.
In the interest of getting something released sooner, than later, I'm trying to change as little from the original scripts as possible. That said, there are a few things I feel should be addressed:
- Security: by default security should be strong. The predominant impression of linux is that its secure. The Quickstart image is essentially a PC on your network -- and the current image is inherently insecure. It also doesn't make it obvious to new users that security has been disabled plus extra doors for sharing on the network have been opened. I feel it's just dangerous. It might make sense to include a script to allow users to easily loosen security, but then the onus is on users to make sure they are working in a way to keep the bad guys out.
- Drush: I would like to upgrade the default setup to Drush 5.1 -- but know a few things need fixes. I saw one patch, but others I'm sure would be welcome.
- Default Ubuntu: Leave a bit more of the defaults in-tact (especially the accessibility packages). I still plan to eliminate as many packages as I can that are not directly related to development, in order to reduce image size, but leave as many defaults intact that aren't directly related to development/theming.
- Ideas for Future:
- Eliminate default developer cruft in favor of more addon scripts. For instance, bazaar, mercurial, xdebug, Netbeans + Eclipse, add a lot of weight if you don't use them often. I'd prefer to create some scripts (e.g., prune existing scripts and move to new install scripts) that make it easy for people to install the options valuable to them.
- Extremely Lightweight image: build a second image based on LXDE desktop or XFCE with a more minimal set of requirements.
Comments
Comment #1
Sean Buscay commentedMike. I'm interested in working with you. Michael Cole and I spoke earlier this year about my assisting him with converting a lot of his shell scripts to use Puppet or Chef.
Perhaps we can all touch base via a Google Hangout or Skype?
I have not mentioned this to Michael yet, but I've been thinking about whether the project might benefit from having code maintained in two parts. The server image build, which gets updated less frequently and the drush modules which may be updated more frequently and might also be abstracted to use in any Linux Enviroment and home directory structure.
Thoughts?
Comment #2
rei commentedhi, I already installed the quickstart 1.0 script to ubuntu Server 12.04 (I don't use ubuntu desktop)
here are some adjustment I made:
- Mysql 5.1 is not compatible with ubuntu 12.04. (need to be upgrade to mysql-server-5.5)
- change to drush 5.1 (apply patch from http://drupal.org/node/1511728) - works fine
- remove drush make (drush make is not compatible with drush 5.1)
- install samba (need to set samba password: sudo smbpasswd quickstart -a)
- change to auto login
- set static ip on eth1 (using host only adapter on virtualbox)
- innodb is default engine in mysql 5.5, only add 'skip-innodb' alone will make mysql not working. (need to add: "default-storage-engine=MyISAM" on mysql.cnf)
Comment #3
mike stewart commented@Sean sounds good. I'll try to use your contact form to find you -- feel free to hit me up through my profile or company website: www.MediaDoneRight.com
re: multiple versions ... makes sense. I'd actually like to abstract the scripts a bit more ... but my first goal is to simply get them working with 12.04 desktop. I'm 90% done.
@rei - thanks for sharing!
Comment #4
frobPost a link so I can start testing as soon as you can.
Comment #5
dkl4 commented@mike stewart
I'm interested in getting a version of QuickStart onto Ubuntu 12.04 which can be shared among the community like
the original QuickStart 1.0 image was.
If you have a task which can be delegated to me, there's a good chance I can help. I can possibly help with the LXDE image.
Let me know if you need any help.
David
Comment #6
mike stewart commented@David - thanks. help is always welcome. I can be found in IRC as mdrmike (try #drupal or #drupal-contribute)
I could use testers for the current script that builds the image in multiple desktop setups (LXDE and XUBUNTU both on my radar -- as is MINT, etc.). You can obtain the script here: http://drupal.org/project/quickstart/git-instructions
Simply install a clean vanialla image of ubuntu -- then copy the quickstart script folder to your home folder and run the install-quickstart.sh please submit any new issues you find as bugs in the issue queue, here.
Patches are very welcome and I'll make a point to include attribution!
Currently, known problems are:
there are also some old bugs in the script that I haven't delt with. xphrof doesnt get installed correctly. in drush .inc files, apache2ctrl doesnt appear to work in 1204 -- not sure it did in 1104 either -- and should probably be replaced with /etc/init.d/apache2 restart. maybe I'll do that today, too -- since it was that quick to type ;-)
I have a 32-bit version of the image that is syncing in my public dropbox folder at this moment. been churning for about an hour. once its available -- I'll post it on front page -- probably not before tonight or tomorrow.
Comment #7
the_g_bomb commentedFor Apache restart, you could also try:
service apache2 restart
Comment #8
patcon commentedHey guys, haven't had time to read the full thread, but should we move to using vagrant, moving between distros is potentially as simple as changing basebox values in the Vagrantfile from "lucid64" or "lucid32" to "precise64" or whatever -- all the build instructions ("cookbooks" if we go with Chef, which has my +1) will be the same.
For the duration that we stick with distribution via VM image, for what it's worth, most Drupal hosting services like Pantheon and Acquia seem to still be on Lucid. This would mean that using quickstart, the software versions on local development environment might vary considerably from production.
Perhaps it might be worth evaluating what the hosted solutions are offering, rather than bumping to 12.04 and potentially having many many packages out of sync?
Again, working with Vagrant/Chef, this update would be fairly trivial. And in the few places where a cookbook wasn't yet compatible with 12.04, the solution would involve contributing to the community cookbooks for the Chef community, which I think would be a good thing -- solving others' problems, and not just our own little problems in drupal-narnia :)
Comment #9
mike stewart commented@patcon yep - definitely something like this (http://vagrantup.com/docs/base_boxes.html) for v3.x
For ver 2.x the main idea is simply to update the current build, update drush, and a few other minor options and get something working ASAP.
Comment #10
patcon commentedCoolio. For what it's worth, I've been working on something similar-ish project:
https://github.com/myplanetdigital/ariadne
In case it's useful for implementation ideas -- its stardardizes as much as possible, from cookbook versions and sources (via Cheffile) to ruby versions (via RVM)
Comment #11
mike stewart commented@patcon - wow... impressive. would love to chat with you about this. maybe merge or find synergies, etc.
Comment #12
patcon commentedyeah man, totally down for that :)
I know there are a few other people working on standard vagrant environments. and right now, mine is pretty mac-specific -- mostly to be able to get a built-in vagrant-dns resolver and shiz like that.
But yeah, ping me on irc sometime. would love to sync up
Comment #13
tuzonghua commentedThe constant error (besides constantly being prompted to run "service apache2 restart") is "sudo: unable to resolve host qs1204."
Any suggestions for fixes?
Comment #14
mike stewart commentedHi @tuzonghua - wow, first, thanks a lot for checking out the work thus far! I haven't even posted a release candidate... and would love some feedback on experiences.
However, your post is "off topic" for this issue. This issue is about collaboration on features that should be included in a new build... and should probably be closed (at least soon) since features are essentially frozen for Quickstart 2
Since you had two problems, I've submitted two issues (links below). However, on both I need more info in order to debug. Can you give me specifics on both of these? (more than a sentence,,, or spend at least a reasonable amount of time helping me to help you)
#1593184: unable to resolve host
#1593200: being prompted to run "service apache2 restart"
Thanks again, and don't hesitate to submit issues you find in the new build. (I know there are a few)
Comment #15
tuzonghua commentedWhoops! My bad. Will try to spend some time on the code tonight to see where/when/why these errors are being generated and put comments in the related tix.
Apologies again and thanks for the work!
Comment #16
dkl4 commentedIt took me a while to figure this out, but mike stewart's work on this has moved to project "DrupalPro" :
http://drupal.org/project/drupalpro
Comment #17
2dareis2do commentedThanks for the tips. this saved me when I was forced to upgrade after the upgrade path was started for what ever reason and when I restarted entered grub rescue mode! Nice d;-).
First I needed a working copy of Ubuntu that I burned to a dvd for my purposes of rescuing my system. I my case I used the following:
http://ubuntu-rescue-remix.org
Oh yes, when installing I simply reused by user credentials i.e. username and password and set the machine name to something similar.
Be sure to select automatic login at this point to avoid any headaches later.
As rei says, the version of mysql supported will need to be a later version, otherwise this will break alot of things in your install script including phpmyadmin drush make etc. To fix, you can simply modify your quickstart-3-lamp.sh install script to run the following :
sudo apt-get install mysql-server mysql-client as opposed to server v5.1 which was previously specified.
Also there may be other issues like having to remake you xhprof (which is complicated by the presence of two versions of php? - not sure). I think this is setup to be called when drush is called and will return an error if not configured, although I think you can ignore this if you do not use xhprof.
There are also some good tips here on how to turn of bridged networking and use a different port to access your virtual machine from your host machines browser.
http://superuser.com/questions/527507/use-ubuntu-server-as-web-server-on...
One thing I also noticed is that the location of the shared folder seems to have moved from /mnt to /media. Took me a while to figure this out, so It is possible therefore that you will need to relink this shortcut. when turning on Virtual Boxes support for shared folder that is linked to sf-shared under /media
I am not sure if samba is required or not, but right clicking a folder in ubuntu and selecting the share this folder option also seems to prompt for a Samba install whic h is made very straightforward via the UI.
Also, I understand that you will need to set up Ubuntu's specific guest additions on top of the generic one that ship with VirtualBox. This is important if you want to get your display and other things working correctly. In fact, upon closer inspection it appears that this is included in the quickstart-1a-guest.sh script:
add the correct linux headers installed
dkms - required for loading linux modules?
virtualbox-ose-guest-x11
Seeing a grub rescue mode is a nightmare and there may be an easier way of recovering from this, but it is little scary especially if you are under pressure to learn this and may be easier to simply reinstall using the an ubuntu install disk or otherwise.
At least I don't have 'your version of OS is not supported any more messages' showing anymore!