[A JuJu Adventure] Baby Steps into WordPress Charm

For a while now, I have being toying with the idea to move away from a WordPress.com hosted site for this blog. The main reason: I am not really happy to have to pay for every single simple stuff.. add an additional URL to the site, take aways advertising, edit a CSS… it really stops me from playing :)

What had prevented me from doing this in the past was that I haven’t really got much experience setting up WordPress or MySQL. What I really needed was a save (and free) sandbox to try changes to my site, until I was happy with it, and then easily deploy it live… Can you say Juju?

With Juju you can do all your playing locally using LXC, save all the changes into a Charm and then just deploy them into a public cloud. Perfect!

 

The first thing I did was to set-up an Amazon AWS account and configure my juju environment to deploy to the public cloud. My rationale here was: if I can’t get vanilla WordPress in a live public site, then there is little point continuing with the experiment.

This was actually pretty easy, I just followed the Getting Started guide. The only stumbling block was that I was using my travel laptop at the time that didn’t have my launchpad ssh keys. You need to create ssh keys to use Juju, but apparently you also need to publish them into your launchpad account. Once this was done, I had a public WordPress instance in just 5 commands.

Next step: destroy the environment and stop paying :) Now I needed to bring up my cheap sandbox.

Again this is pretty easy to setup, just follow the Getting Started guide. I hit another road block once my deployment instances seemed not be doing much, “juju status -e local” showed them in pending state and the logs did not display any activity…A bit of Googling later , I found that Jorge Castro had hit the same problem and found the solution in Ask Ubuntu.

With my WordPress local instance now fully up and running, now I needed to upload my own content. To do this, I just needed to upload the wordpress importer plugin. Fairly trivial to get gone by hand, thanks to the very useful “juju scp” and “juju ssh” commands, but how to do it via a Charm. I wanted to make sure that the next time a deploy wordpress, it would have already this plugin install. Crudly this is what I did:

  • Using the charm-tools I got the wordpress charm loc ally (charm get wordpress)
  • I then edited the install file under hooks/ to include:
    apt-get -y install wordpress pwgen wget unzip
    wget http://downloads.wordpress.org/plugin/wordpress-importer.0.6.zip
    sudo unzip wordpress-importer.0.6 -d /usr/share/wordpress/wp-content/plugins/
  • redeploy using locally stored charm. juju deploy –repository=~/charms local:precise/wordpress -e local

Guess what, it worked. I did get some warnings (WARNING Charm ‘.mrconfig’ has an error) that I am yet to iron out, but when the wordpress instance came up the new plugin was there:

That is all for today, and before I go, one last useful hint courtesy of James Page: Add “default: {name of your env}” if you have multiple environments  but you normally always use one. Save me having to type “-e local” all the time.

Chrome OS Gets A New “Retro” Look

I had a CR-48 Chromebook for a while, which has recently fallen in disuse. While I have never being totally convinced about Chrome OS being a polished, well designed, interface that simplifies the “always connected” user journey that Google was envisioning, I liked the concept.

Now I am reading in ArsTechnica that Chrome OS is getting a brand new look, that is … basically.. well, not new. While I am sure there are many technical advantages of a fully hardware accelerated windows managers, my issue is with the [lack of] concept.

Read more of this post

Going Agile: Scrum or Kanban?

I have been using Scrum for a while. Back at my previous role, we tried using Scrum within the integration team that was creating the nightly builds and our bi-weekly releases. It brought good results, the team specially liked the visibility of the task board and the daily stand-ups.

We did found a bit artificial to have a cadence. We were suppose to put out a release every two weeks but we end up doing it as often as we could (or made sense), as we were not in control of when the new software was landing in our plate.

Since then, I’ve this nagging thought that Scrum might not be appropriated to service teams or teams with a large portion of maintenance/customer support work. I have found iterations shorter than 2 weeks, can be over burden by the demo, planning and sizing overheads. In the other hand, two weeks is too much time for teams with Service Level Agreements of days or hours. It also seems a bit cumbersome for short project (~1 month), were you end up with 2 or 1 iterations… What to do!?

In Canonical several teams have used Kanban in order to improve their development processes, so I started reading up on it when I stumbled on this excellent article on Kanban vs Scrum.

The author won me over straight away by not trying to decide which of the two practices is best but instead doing a great job at remaining impartial.

Looking back at the Symbian Foundation’s integration team it seems that Kanban would have been better suited. It retains the focus on making information visible while concentrating on reducing WIP.  It seems better suited to a “specialist” team, where most members share the same skills and work on similar tasks. Scrum seems to work better for cross-discipline project teams.

Also, the emphasis on managing constant flow of work is one that resonates with teams that have a work “currency” measured in days of effort (bugs?) rather in large projects lasting months at the time.

While Scrum has been very successfully adopted by the Certification team at Canonical, My previous experience with the Integration team had stopped me from cheering on Scrum in teams that have a constant flow of work. Now, we are thinking on going Kanban! Don’t get me wrong, we are going to continue using Scrum. It is just a case of using the right tool for each job. I will keep you posted on how it goes.

If you have any advice, tips or gotchas that you could share with us, I would be most grateful if you could drop your comments here!

Time to try something new (by theonlyanla)

 

Ubuntu Certification – Website Improvements

The Ubuntu Certification Website has just got better. We have roll-out improvements to how we list systems and provided a powerful search feature. We want to ensure that you get as quick as possible to the information that you need.

As part of the Certification website, we provide a feedback mechanism through Launchpad Answers. Over the last year, we have seen a trend of questions around:

  • Most models are sold with different graphics cards , processors… so which one is the one listed as certified?
  • Does the system listed as certified works with a version of Ubuntu that I can download from Ubuntu.com? Or only with the one that the manufacturer sales?
  • What release is this model certified for?

To address these questions, we have introduced some changes to the website. We now display what components are included on the certified system in the search results. We’ve also added a icon to indicate if the system is only certified with a vendor image or with the standard Ubuntu image.

The new and simpler search interface eliminates confusion on what data is presented. A small filter box has been added to the website allowing  users to select the device type, Ubuntu release and image type that they are interested in.

If you have any comments on the new website design, I would really like to hear from you!


Introducing odm.ubuntu.com

Coinciding with the 2011 Ubuntu Hardware Summit, we are launching a new portal aimed to help engineers at device manufacturers shipping Ubuntu systems: odm.ubuntu.com

The Ubuntu community is great. It provides users and developers with lots and lots of useful information. This means that sometimes finding the right informationfor you can take a bit longer than expected.

The odm.ubuntu.com portal content is a selection of the best articles in the Ubuntu community sites that are relevant to device manufacturers (OEM and ODMs) engineers. The content has been selected by the Canonical Hardware Enablement team and builds on the good work of the Ubuntu Kernel team.

We will continue to add and improve the content of the portal over the coming months, including news on tools and techniques to help you better integrate Ubuntu with your hardware. Please let us know if there is specific content you would like to see there.

Asus and Ubuntu in Portugal

The Future Of Personal Computing

I have previously complained about the about the amount of gadgets that seem to be piling by my bedside table charging quietly every night.. Laptops, Tablets, phones, kindle (yes the plural is not a typo).

On top of that I am growing frustrated with my DVR. Last week the new series of “The Mentalist” was broadcasted in the UK. I did set the record in advance but somehow it clashed and did not get recorded. Even with the missed show only one-click away, in the TV channel’s website, it turns out that my only options were to wait for a repeat on TV in 4 days or go upstairs and watch it in the office desktop. Why is it so complicated!?

All of this frustration got me thinking and I have come up to some conclusions of what the future of my home computing is going to look like.

Read more of this post

Ubuntu on ARM(Techcon)

Here is Ronald, doing a great job at explaining why Ubuntu on ARM is AWESOME!!!

Red Hat and Canonical agree on Secure Boot

If you follow the Canonical blog, you would have seen that a new white paper has been published on how to implement UEFI Secure Boot in a manner that can be used by all users, including Linux.  The paper is signed and authored by Matthew Garret from Red Hat, Jeremy Kerr from Canonical and James Bottomley, Linux Kernel developer.

Since Microsoft talked about their plans for Secure Boot at /Build2011, there has been lots of things said on the matter. With more than 16,000 people signing the Free Software Foundation statement on “Secure Boot vs Restricted Boot”, it is clear that this is an issue that needed some attention.

It is great to see companies like Red Hat and Canonical getting together, and coming up with recommendations that benefit the whole industry. The paper is well worth the read, Enjoy!

Padlocks of love by Wlodi

Ubuntu 11.10 on ARM

I have been using Ubuntu 11.10 on ARM now for a couple of days and I have to say: It Rocks! Ubuntu has had a long history of supporting ARM Systems on a Chip (SoC) since 2008, but Ubuntu 11.10 is a significant milestone.

Introducing.. Ubuntu Server on ARM – Technology Preview

Canonical announced back in August that Ubuntu Server 11.10 would include the first ARM version of the product, and here it is. While this is just the first step on an exciting journey, it is worth to celebrate that the voyage has started. I look forward to see what 12.04 LTS brings us on this space!

Playing with Ubuntu on ARM (Toshiba AC100)

It is hard to really grasp the full experience of Ubuntu on

ARM when you are playing with a development board. For this reason, we have released a demo image for the Tegra2-based (Nvidia) Toshiba AC100.

Running Unity 2D, it shows off  that Ubuntu on ARM is a great platform for computing, in a very compact design and with a very long battery life. For all these reasons, this is my system of choice to take to UDS-P.

If you have a Toshiba AC100, I encourage you to install Ubuntu 11.10 in it!

TI OMAP4 Panda Board

Powered by the Texas Instruments OMAP4430 processor, the Panda Board packs in “a dual-core 1 GHz ARM Cortex-A9 MPCore CPU, a PowerVR SGX540 GPU, a C64x DSP, and 1 GB of DDR2 SDRAM“.  Providing an affordable and competitive design tool for the embedded mobile space.

Ubuntu 11.10 on ARM is available in Headless and full image for Panda. You can find download links and installation instructions here. You can also find there Ubuntu 11.10 for OMAP3 (Beagle Board). Read more of this post

Follow

Get every new post delivered to your Inbox.