Planet Ubuntu
Subscribe to Planet Ubuntu feed
Planet Ubuntu - http://planet.ubuntu.com/
Updated: 3 hours 11 min ago

Lubuntu Blog: Trusty Tahr β2

Thu, 2014-03-27 21:05
Almost there! A new beta has been released at the mirrors, Lubuntu 14.04 Trusty Tahr beta 2. You already know all the stuff: a few improvements, updated packages, lots of fixes, etc. Look, we were busy: pcmanfm 1.2.0 (folder settings, dual pane view, menu editing) artwork (new icons, theme update, more compatibilities) new interface for lxsession-default-apps firefox fixings But still beta,

Luis de Bethencourt: snappy has arrived to 1.0

Thu, 2014-03-27 20:02
snappy is an open source media player that gathers the power and flexibility of GStreamer inside the comfort of a minimalistic Clutter interface.

The snappy development team is proud to announce it's 1.0 release.
Codename: "I'll be back", Terminator

We think the project has achieved the maturity worthy of a 1.0 release. It does one thing and it does it well.



Some of the changes you will notice are:
  • It’s been given some needed visual polish
  • Playback speed adjustable
  • Video and audio synchronization tweeking
  • Time left of stream viewer
  • Better drag and drop
  • Better media history handling
  • More features accessible from Clutter interface
  • Bug fixes


Features already included from previous releases:
  • Subtitle support
  • Desktop launcher
  • Video and audio synchronization tweeking.
  • Multi-screen full-screen
  • Media queues
  • History of played media
  • Seeking/muting/cycling through languages (audio streams)
  • Frame stepping
  • Much more


Download a tarball: xz
Clone the git repo
Packages in distributions will be updated soon

Thanks to all who helped in snappy's creation!


Disclaimer: No moose were harmed during the making of this release. One got homesick and an other disappeared for days in a Breaking Bad marathon, but that's about it.

Ubuntu GNOME: Ubuntu GNOME Trusty Tahr Final Beta has been released

Thu, 2014-03-27 19:36

Hi,

Ubuntu GNOME Team is happy to announce the release of Ubuntu GNOME Trusty Tahr Final Beta.

Please see the release notes.

We’re preparing Ubuntu GNOME 14.04 LTS, the Trusty Tahr, for distribution in 17th of April 2014. With this Beta 2 release, you can see what we are trying out in preparation for our next stable version. We have some interesting things happening, so read on for highlights and information.

NOTE:
This is a Beta 2 Release. Ubuntu GNOME Beta Releases are NOT recommended for:

  • Regular users who are not aware of pre-release issues
  • Anyone who needs a stable system
  • Anyone uncomfortable running a possibly frequently broken system
  • Anyone in a production environment with data or workflows that need to be reliable

Ubuntu GNOME Beta Releases are recommended for:

  • Regular users who want to help us test by finding, reporting, and/or fixing bugs
  • Ubuntu GNOME developers

To help with testing Ubuntu GNOME:
Please see Testing Ubuntu GNOME Wiki Page.

To contact Ubuntu GNOME:
Please see our full list of contact channels.

Thank you for choosing and testing Ubuntu GNOME!

Ubuntu Podcast from the UK LoCo: Season 7 is coming!

Thu, 2014-03-27 17:35

Just a quick note to say we’re coming back with a brand new season of the Ubuntu Podcast, Live on Wednesday 2nd April 2014. Listen to this episode to hear all about it!

 Download OGG  Download MP3 Play in Popup

Please send your comments and suggestions to: podcast@ubuntu-uk.org
Join us on IRC in #uupc on Freenode
Leave a voicemail via phone: +44 (0) 203 298 1600, sip: podcast@sip.ubuntu-uk.org and skype: ubuntuukpodcast
Follow our twitter feed http://twitter.com/uupc
Find our Facebook Fan Page
Follow us on Google Plus

Canonical Design Team: Latest from the web team — March 2014

Thu, 2014-03-27 15:16

Spring has officially (but not technically…) arrived, and we’re getting busier and busier in preparation for Ubuntu 14.04 LTS release next month.

In the last few weeks we’ve worked on:

  • Ubuntu Resources: we’ve just launched a new version of the site
  • Ubuntu.com: we’ve launched a localised Chinese homepage that highlights Ubuntu Kylin
  • Juju GUI: Matthieu has worked on a new icon set for charms which will be released in the next few weeks
  • Fenchurch: we completely rewrote the Juju charm that updates canonical.com
  • Landscape sprint: Carla has been to Rome for the Landscape team’s sprint, where she helped to wireframe changes for 14.04 and beyond

And we’re currently working on:

  • Ubuntu Resources: we’re now working on expanding the styles of the site to accommodate desktop screen sizes and adding even more features
  • Ubuntu 14.04 release: we’re reskinning the OpenStack Horizon dashboard for the OpenStack 14.04 release, and we’ve started working on updated images for the release
  • Responsive ubuntu.com: we’ve been testing on various devices and fixing lots of little rendering issues; we’ve also been tackling larger challenges like the navigation and footer; you can follow our progress in the series of posts we’re publishing on this blog!
  • Fenchurch: we’re currently updating the contributions and download pages so that it works on Fenchurch
  • Juju: we’re doing some user research to understand engineer workflows
  • Cloud section: we’ve finished wireframing and the first round of designs for the 14.04 refresh of www.ubuntu.com’s cloud section
  • Partners section of ubuntu.com: we’re at the wireframing stage of this project

This month we’ve also welcomed a new member of the team: Robin is our new back-end developer.

Testing Ubuntu Resources on a Kindle Fire HD

Have you got any questions or suggestions for us? Would you like to hear about any of these projects and tasks in more detail? Let us know your thoughts in the comments.

Sam Hewitt: Fish Tacos

Thu, 2014-03-27 15:00
Who doesn't love a fish taco?

I don't have a fancy name for these, they're just something I put together, but they were tasty, so here you go.

I'm using "~" in a lot of places here because they are my best guess to what I actually use as I eyeball things nearly always.

Cooking involves chemistry but it need not be exact, for me, that's part of the fun of cooking. You can play around with recipes, which is something few people do; a recipe is not set-in-stone, have fun and change things!

    Fish Ingredients
  • ~1 kg white fish fillet, such as cod, tilapia, etc.
  • ~1 cup all-p flour
  • salt & pepper
  • ~3 tablespoons butter
    Garlic-Chili-Lime Aioli Ingredients
  • ~1/4 cup mayonaisse
  • ~1/4 cup sour cream
  • 2 garlic cloves
  • ~1 tablespoon hot sauce (such as sriracha)
  • 1 lime, juice of
  • freshly ground black pepper
    Assembly Ingredients
  • flour tortillas
  • green cabbage, shredded
  • fresh cilantro, chopped
  • garlic-chili-lime aioli
  • guacamole
    Aioli Directions
  1. Place everything in a blender and blend.
  2. Transfer to a container or (food-safe squeeze bottle –I have a bunch myself).
  3. Refrigerate.
    Fish Directions
  1. Preheat a frying pan over medium-high heat.
  2. Salt and pepper both sides of the fish fillet.
  3. Dredge the fillet(s) in flour
  4. Melt the butter in the pan. When it begins to sizzle place the fillets in the pan.
  5. Let it brown on that initial side (perhaps ~4 minutes) & resist the urge to move it.
  6. Flip, brown the other side.
  7. Remove from the heat an set aside.
    Assembly
  1. On a tortilla, squirt/smear on some of the aioli.
  2. Place some of the shredded cabbage atop that, and next some of the pan-fried fish.
  3. Garnish with the chopped cilantro, and guacamole, and a squeeze of lime if you like.
  4. Enjoy. :-)

Canonical Design Team: Ubuntu Resources — beta 2!

Thu, 2014-03-27 09:16

A new version of the Ubuntu Resources site is now live, with many tweaks and layout improvements targeted mainly at visitors using medium-sized screens, such as tablets.

Ubuntu Resources homepage viewed on a Kindle Fire HD

Filtered search

If you search for a specific term, you can now filter the search results by topic (such as cloud, phone, support, etc.) or type (case study, white paper, event, etc.). Further down the line, we’d like to expand this so people are able to sort the results by date, popularity and more, and filter by date, language and other options.

Search results filters

Still on the subject of search, some users mentioned that their phones didn’t necessarily show a “Go” button in the keypad when typing inside the search box, so we’ve added a search icon which doubles as a “Go” button inside the input field but doesn’t get in the way if you have no need for it.

Search input field, viewed on a Nexus 7

Layout and font sizes

We’ve added a maximum width to text areas instead of the full width text blocks that were optimised for small screen view, so visitors to the site using tablets and other medium sized screens won’t have to deal with really long text lines. This can be seen in screens such as the homepage and topic landing pages, but most importantly in single article views, where we’ve also moved the content that followed the article text to the right hand side. In future versions of the site, we might review the order in which these right column elements appear and perhaps their content too.

A news page with sidebar viewed on an iPad

Following the typographic scale that we introduced in the new canonical.com website, the font sizes and spacing between elements in medium sized views have also been updated: everything is slightly larger, as there is more screen real estate and elements can have a little more breathing space.

We’ve made some tweaks to the spacing between elements, namely in the homepage and landing pages, like adding more space between articles to make lists clearer to understand.

‘Add to’

We’ve also added links to “Add to Instapaper” and “Add to Pocket” in single article view screens, which we hope will be useful for anyone that wants to save a resource for later.

Colour consistency

A hardly noticeable change, but one that we thought was important in order to keep consistency across different Ubuntu products and platforms was the update of the grey colour we were using in tags, labels and event details. The new grey now matches the new phone greys: we went from #AEA79F to a slightly darker and more readable #888888. If warm grey is used on dark aubergine, the HEX reference is now #B2B2B2.

Darker grey in event details

Even more changes

We’ve also fixed many other bugs and issues like 404 pages, incorrect tagging, elements’ positioning, incorrect title tags, errors in the email sharing default text, and more.

Next steps

In the next few weeks we’ll be focusing on extending our styles to accommodate larger screens nicely and improving the medium screen size layouts based on the feedback we’ll receive from users.

We hope you have a look at the updated site and let us know your thoughts on it. You can use the handy feedback link at the bottom of the site or just comment here!

Randall Ross: Putting Some Spin Back Into Ubuntu

Thu, 2014-03-27 03:14

What would the Ubuntu logo look like if it really did spin?

That's a question explored recently by Andrew Kvalheim, a talented member of Ubuntu Vancouver.

I can't really add much more to his eloquent analysis other than to share it with all of you. Click the circle of friends below to read Andrew's thoughts... and to see it spin!

Click to see the spin!

---
Thanks Andrew for your permission to cite.

Adnane Belmadiaf: Update on the Ubuntu HTML5 SDK UI

Wed, 2014-03-26 22:45

As you may know HTML5 apps are first class citizens on Ubuntu, to acheive that the Ubuntu plateform provides a set of APIs and UI elements like the QML SDK, in this post i'll provide some updates on the HTML5 UI elements.

Ubuntu Shape

The actual implementation is using an image as background with the pseudo class :after which is very limited the design team have suggested that we used a simple CSS border-radius for now, a proposal made by Stuart Langridge.

Swipe To delete

Last week-end i had to seat and work on this missing feature, it's still a work in progress since i need to finished the design of the API and how it should be declared.

i18n

The first proposal was based on JSON files, but we thought that this will need a lot of work to be consistent with Launchpad translation infrastructure.

The HTML translation is done by using :

  • data-i18n-translate : this is used to collect all the strings that needs be translated used by JavaScript and used for pot generation
<h1 data-i18n-translate>Good Morning</h1>
  • data-i18n-args : JSON data used to replace variables in the string, it only supports one level so far
<h1 data-i18n-translate data-i18n-args='{ "user": "daker" }'>Good Morning </h1>
  • data-i18n-plural : This is the plural string, here Kyle suggested that we hardcode the "n" counter used to determine if the string will be plural or not to "num", so the dev have to passe the "num" in the data-i18n-args instead of a proper data-i18n-n.
<h1 data-i18n-translate data-i18n-plural="I have cars" data-i18n-args='{ "num": "1", "brand": "Mercedes" }'>I have a car</h1>

For the JS API, we will provide tree functions i18n.tr and i18n.dtr like in QML and a function to do string replacement i18n.strargs :

  • tr(text);
  • tr(singular, plural, int n);
  • dtr(domain, text);
  • dtr(domain, singular, plural, n);
i18n.tr('Good Morning'); i18n.strargs(i18n.tr('Good Morning '), '{ "user": "daker" }')); i18n.strargs(i18n.tr('I have a car', 'I have cars', '1'), '{ "num": "1", "brand": "Mercedes" }')); Grid Layout

I have tried to use the flexbox technique to provide a simple implementation of a grid layout by using data attributes :

  • data-role="row" : To define a row
  • data-role="column" : To define a column
  • data-align="top, bottom, center" : To define the vertical alignment
  • data-role="column" + data-offset="[10, 20, 25, 33, 34, 50, 66, 67, 75, 80, 90]" : To define the offset of the column
  • data-role="column" + data-size="[10, 20, 25, 33, 34, 50, 66, 67, 75, 80, 90]" : To define the size of the column

If you want to helps us by contributing, by fixing bugs or share your opinions ping me "daker" or "alex-abreu" on #ubuntu-webapps channel on freenode.

Ubuntu GNOME: Why Ubuntu GNOME 14.04 LTS will not be shipped with GNOME 3.12?

Wed, 2014-03-26 20:15

Hi,

Many users, for the last 5 months since the Trusty Tahr Cycle has started until now, are asking Ubuntu GNOME Team the same question over and over again. We thought to give our final, direct and clear answer for everyone.

Q: Why Ubuntu GNOME 14.04 LTS will not be shipped with GNOME 3.12?

A: Simply, because Ubuntu GNOME 14.04 LTS will be released in 17th of April, 2014 and GNOME 3.12 has been just released today. Please see the announcement of GNOME 3.12 release.

Q: So what? there is still time to introduce GNOME 3.12 into Ubuntu GNOME 14.04 LTS, right?

A: No. Because in the 20th of February, 2014 Trusty Tahr Cycle has reached to Feature Freeze:

“At this point we stop introducing new features, packages, and APIs, and concentrate on fixing bugs in the development release.”

That said, there is no time to introduce any new feature and at that time, GNOME 3.12 wasn’t yet released.

Q: But I like Ubuntu GNOME and I’d like to use it with the latest GNOME version?

A: Sure, no problem. That is why we do have our PPA.

Q: Hm, so with your PPA, can I run GNOME 3.12 with Ubuntu GNOME Trusty Tahr right now?

A: Please note that Ubuntu GNOME Trusty Tahr is ‘still’ under heavy development and testing and the main focus now is to work hard on our very first LTS release. That said, once our PPA is ready for GNOME 3.12 which has been just released today, we shall update everyone with new post on our website and all our other channels (Social Media + Mailing List). Stay tuned

Hope our answers will clear any confusion.

If you’re still in doubt, please Contact Us.

Thank you for choosing and using Ubuntu GNOME!

Ubuntu Women: Career Days with Laura Czajkowski on Saturday April 5th

Wed, 2014-03-26 19:16

The Ubuntu Women project is back again with another Career Days session!

This time we’re delighted to have Laura Czajkowski, the EMEA Community Manager at MongoDB where she drives adoptions and supports the open source database community in EMEA.

Laura has been active in Open Source communities since 2000 and in that time has been involved in various actives, leading and organising conferences on software testing,documentation and advocacy. She has also served 4 years on the Ubuntu Local council and currently sits as an elected Ubuntu Member on the Community council.

Laura is an open source advocate and regular conference speaker who is passionate about getting people–everyone from students at primary school to professionals at Tier 1 Banks–involved in open source communities both on IRC and in face-to-face discussions.

The session will be held on Saturday April 5th at 16:00 UTC in #ubuntu-classroom and #ubuntu-classroom-chat on irc.freenode.net

Also accessible via the webchat link here: http://webchat.freenode.net/?channels=ubuntu-classroom%2Cubuntu-classroom-chat&uio=d4

For more information, please check out http://wiki.ubuntu-women.org/CareerDays or contact myself at lyz@ubuntu.com

Ubuntu LoCo Council: Get involved with App Development during Global Jams!

Wed, 2014-03-26 18:03

Calling all Local Community teams!

Do you wanted to know what App Development in Ubuntu and Ubuntu touch is all about? Then read on…

Daniel and David from the Canonical Community Team have put together some materials on App Development in Ubuntu and they are planning sessions to help you also to contribute to the Ubuntu Touch through Global Jam events.

Seems interesting? Read on the original blog post by Daniel Holbach here.

Get involved and get your hands dirty with Ubuntu Touch!

Happy learning and happy hacking!

Ubuntu App Developer Blog: Ubuntu App Development events

Wed, 2014-03-26 16:48

There is lots of excitement around Ubuntu on phones and tablets. Especially with two handsets coming out later this year and features and more beauty landing every single week, it’s a lot of fun to watch the whole story unfold.

What many haven’t realised yet, is how easy it is to write apps for Ubuntu and that new apps are not only going to run on phones and tablets, but also on the desktop as well. To remedy that we put some work into making it easy to go out to events and give talks about Ubuntu and its app ecosystem.

What we have available now is:

  • improved presentation materials,
  • we made it easier for newcomers to step in, learn and present,
  • we reach out to app developer communities and our LoCo teams at the same time.

We have two great sets of events coming up soon: the Ubuntu Global Jam coming up in just 2 weeks and soon followed by the 14.04 release and its release parties.

Interested? So how do you prepare? Easy:

  • As somebody who can organise events, but might need to find a speaker: Ask in #ubuntu-app-devel on Freenode or on the ubuntu-app-devel@ mailing list, to see if anyone is in your area to give a talk. Ask on your LoCo’s or LUG’s mailing list as well. Even if somebody who’s into programming hasn’t developed using Ubuntu’s SDK yet, they should be able to familiarise themselves with the technologies quite easily.
  • As somebody who has written code before and didn’t find the Ubuntu app development materials too challenging, but might need to find some help with organising the event: Ask on the loco-contacts@ mailing list. There are LoCos all around the world and most of them will be happy to see somebody give a talk at an event.

Whichever camp you’re in:

  • Check out our docs. They explain what’s required to make the event a success.
  • Join our Q&A session. It’ll be at 27 March 2014, 18:00 UTC on Ubuntu on Air. (The video of session today is up here.)
  • Talk to us. Just comment on the blog post and we can surely help you out somehow.

Let’s make this happen together. Writing apps for Ubuntu and publishing them has never been easier, and they’ll make Ubuntu on phones/tablets much more interesting, and will run on the desktop as well.

Svetlana Belkin: Ubuntu Scientists Team

Wed, 2014-03-26 13:08

A month or so ago, I created a team for the scientists that use Ubuntu and its favours called the Ubuntu Scientists team.  The goal of the team is the closest to the Ubuntu Women team; which is to help women to get careers and acceptation in the FOSS/Ubuntu Linux Community.  But for the Ubuntu Scientists team, it’s to help scientists of all sorts (political, biological, chemists, ect.) to get careers and acceptation in the FOSS/Ubuntu Linux Community.

Since this team is new, there is a lot of work that is needed to be done and I’m seeking help.  Most of the help is required to get the team wiki pages set up.  I feel like there is more of information then what I have.  As I stated in this mailing-list thread, I’m looking for a person or two (or even more!) to help me to write some of the wiki pages for our team. Please reply to this e-mail if you have any questions or you want to help out.  If you want to join in to help me and the scientists in the Community, we have a LaunchPad team HERE.

There is also an IRC channel and it’s #ubuntu-scientists on irc.freenode.net.

Hopefully, this team will grow and help scientists within the Community.

EDIT 1: balachmar, in the IRC channel of the team, asked me about the goals since I wasn’t clear:

[10:13] <balachmar> Do you want to help scientists find FLOSS alternatives, or do you want scientist to be more involved in Ubuntu, or actually try to convince scientist to make a career in FLOSS development?
[10:13] <belkinsa> All three of them. Really.


Valorie Zimmerman: Thinking about thinking

Wed, 2014-03-26 09:59
Since I last wrote about this, I've done more reading and thinking about how we humans perceive, interpret, judge, learn, think and communicate about the world. Perhaps this started with Proust was a Neuroscientist, but there are loads of interesting books I've been finding. Even The Horse, The Wheel and Language: How Bronze-Age Riders from the Eurasian Steppes Shaped the Modern World was about how early culture and language shapes our modern world.

Last month I read one much more interesting than it sounds: The Great Debate: Edmund Burke, Thomas Paine, and the Birth of Left and Right, which details the debate in Enlightenment thinking between the English Burke and the American Paine, which produced the American Left and Right, and perhaps in Europe the British versus the continent. This followed Arthur Koestler's The Sleepwalkers: A History of Man's Changing Vision of the Universe, which detailed the changes in both knowledge and philosophy at the very beginning of the Enlightenment, chiefly through short biographies of Copernicus, Kepler, and Galileo. So that's the historical view; I want experiment and neuroscience!

The Articulate Mammal: An Introduction to Psycholinguistics was particularly interesting, since it covered how children learn language, as well as a survey of how linguistics as a field has thought about that. Now I'm reading two books simultaneously, and they are sparking thoughts back and forth. The Righteous Mind: Why Good People are Divided by Politics and Religion by Jonathan Haidt is an excellent follow-up to The Great Debate, but in an analytical way, rather than a philosophical debate. Right alongside, an older book by George Lakoff, Women, Fire, and Dangerous Things: What Categories Reveal about the Mind. This book is heavy, in every sense of the word, but so rich. I was glad I had read the psycholinguistics text first, and the analogy book last summer, so that I could make sense of this scholarly, radical, amazing tome. I must quote the top Amazon comment on the book:
Lakoff concentrates on the way people *really* think, not the way philosophers would like them to. His approach: We use cognitive models that we acquired in childhood to solve almost every problem - to estimate, to schedule, to infer. What strikes me most about the cognitive science of metaphor is the possibility to apply it to many fields like computer interface design, social sciences, linguistics, you name it. His argument is partly very sophisticated, yet understandable also for a non-philosopher, and he comes up with lots of examples and evidence. This book has become a kind of "creativity technique" to me, I find myself developing new ideas based on Lakoff's approach all the time. Among the people who have no scientific interest in the matter, I recommend this book to designers, programmers and everybody in the field of communication. It is worth every minute you read.I guess we all know that how we think we see and make sense of the world isn't the way we actually see and justify our decisions. The implicit bias tests prove that, over and over. But these books illustrate the inside of my own head, the life I've lead with my family, my culture, my fellow humans, and how we're getting along. I hope as more is understood, more of us will learn about human nature, so we can improve our lives, our families, companies, politics and policies. It is better than accepting the thinking that got us where we are today.

Valorie Zimmerman: Send a student to Armenia!

Wed, 2014-03-26 02:49
My beloved country used to believe in education, in supporting students, in funding science education and research. In recent years, that has changed, sadly.

Now my son Colin wants to attend Archaeology Field School this summer in Armenia. He's been accepted, but has no funding. He's started up a funding site at http://www.gofundme.com/7nuudw. If you care about these things, please donate.

Thanks so much for standing up for your values.

Serge Hallyn: Introducing cgmanager

Tue, 2014-03-25 23:17

LXC uses cgroups to track and constrain resource use by containers. Historically cgroups have been administered through a filesystem interface. A root owned task can mount the cgroup filesystem and change its current cgroup or the limits of its cgroup. Lxc must therefore rely on apparmor to disallow cgroup mounts, and make sure to bind mount only the container’s own cgroup into the container. It must also calculate its own cgroup for each controller to choose and track a full new cgroup for a new container. Along with some other complications, this caused the amount of code in lxc to deal with cgroups to become quite large.

To help deal with this, we wrote cgmanager, the cgroup manager. Its primary goal was to allow any task to seamlessly and securely (in terms of the host’s safety) administer its own cgroups. Its secondary goal was to ensure that lxc could deal with cgroups equally simply regardless of whether it was nested.

Cgmanager presents a D-Bus interface for making cgroup administration requests. Every request is made in relation to the requesting task’s current cgroup. Therefore ‘lxc-start’ can simply request for cgroup u1 to be created, without having to worry about what cgroup it is in now.

To make this work, we read the (un-alterable) process credentials of the requesting task over the D-Bus socket. We can check the task’s current cgroup using /proc/pid/cgroup, as well as check its /proc/pid/status and /proc/pid/uid_map. For a simple request like ‘create a cgroup’, this is all the information we need.

For requests relating to another task (“Move that task to another cgroup”) or credentials (“Change ownership to that userid”), we have two cases. If the requestor is in the same namespaces as the cgmanager (which we can verify on recent kernels), then the requestor can pass the values as regular integers. We can then verify using /proc whether the requestor has the privilege to perform the access.

But if the requestor is in a different namespace, then we need to uids and pids converted. We do this by having the requestor pass SCM_CREDENTIALS over a file descriptor. When these are passed, the kernel (a) ensures that the requesting task has privilege to write those credentials, and (b) converts them from the requestor’s namespace to the reader (cgmanager).

The SCM-enhanced D-Bus calls are a bit more complicated to use than regular D-Bus calls, and can’t be made with (unpatched) dbus-send. Therefore we provide a cgmanager proxy (cgproxy) which accepts the plain D-Bus requests from a task which shares its namespaces and converts them to the enhanced messages. So when you fire up a Trusty containers host, it will run the cgmanager. Each container on that host can bind the cgmanager D-Bus socket and run a cgproxy. (The cgmanager upstart job will start the right daemon at startup) Lxc can administer cgroups the exact same way whether it is being run inside a container or on the host.

Using cgmanager

Cgmanager is now in main in trusty. When you log into a trusty desktop, logind should place you into your own cgroup, which you can verify by reading /proc/self/cgroup. If entries there look like

2:cpuset:/user/1000.user/c2.session

then you have your own delegated cgroups. If it instead looks like

2:cpuset:/

then you do not. You can create your own cgroup using cgm, which is just a script to wrap rather long calls to dbus-send.

sudo cgm create all $USER sudo cgm chown all $USER $(id -u) $(id -g)

Next enter your shell into the new cgroup using

cgm movepid all $USER $$

Now you can go on to https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/ to run your unprivileged containers. Or, I sometimes like to stick a compute job in a separate freezer cgroup so I can freeze it if the cpu needs to cool down,

cgm create freezer cc bash docompile.sh & cgm movepid freezer cc $!

This way I can manually freeze the job when I like, or I can have a script watching my cpu temp as follows:

state="thawed" while [ 1 ]; do d=`cat /sys/devices/virtual/thermal/thermal_zone0/temp` || d=1000; d=$((d/1000)); if [ $d -gt 93 -a "$state" = "thawed" ]; then cgm setvalue freezer cc freezer.state FROZEN state="frozen" elif [ $d -lt 89 -a "$state" = "frozen" ]; then cgm setvalue freezer cc freezer.state THAWED state="thawed"; fi; sleep 1; done

Nicholas Skaggs: Trusty looms closer: Final Beta is here!

Tue, 2014-03-25 21:00
It may be hard to believe but the next, and dare I say, best, LTS for ubuntu is releasing very soon. We need your help in polishing out critical bugs and issues!
How can I help?  To help test, visit the iso tracker milestone page for 'Trusty Beta 2'.  The goal is to verify the images in preparation for the release. Find those bugs! The information at the top of the page will help you if you need help reporting a bug or understanding how to test. 
So what's new? Besides the usual slew of updates to the applications, stack and kernel, unity has new goodies like minimize on click, menus in toolbar, new lockscreen, and borderless windows!
What if I'm late? The testing runs through this Thursday March 27th, when the the images for beta 2 will be released. If you miss the deadline we still love getting results! Test against the daily image milestone instead.
Thanks and happy testing everyone!

Tony Whitmore: The goose that laid the golden eggs, but never cackled

Tue, 2014-03-25 19:48

I’ve wanted to visit Bletchley Park for years. It is where thousands of people toiled twenty-four hours a day to decipher enemy radio messages during the second world war, in absolute secrecy. It is where some of the brightest minds of a generation put their considerable mental skills to an incredibly valuable purpose. It is also where modern computing was born, notably through the work of Alan Turing and others.

So I was very pleased to be invited by my friend James to visit Bletchley as part of his stag weekend. After years of neglect, and in the face of demolition, the park is now being extensively restored. A new visitors’ centre will be introduced, and more of the huts opened up to the public. I have no doubt that these features will improve the experience overall, but there was a feeling of Trigger’s Broom as I looked over the huts closest to the mansion house. Never open to the public before, they looked good with new roofs and walls. But perhaps a little too clean.

And it really is only the huts closest to the house that are being renovated. Others are used by the neighbouring National Museum of Computing, small companies and a huge number are still derelict. Whilst I hope that the remaining huts will be preserved, it would be great if visitors could see the huts in their current dilapidated state too. The neglect of Bletchley Park is part of its story, and I would love to explore the derelict huts as they are now. I would love to shoot inside them – so many ideas in my head for that!

Most of the people working there were aged between eighteen and twenty-one, so you can imagine how much buzz and life there was in the place, despite the graveness of the work being carried out. Having visited the park as it is today, I wish that I had been able to visit it during the war. To see people walking around the huts, efficiency and eccentricity hand-in-hand, to know the import and intellect of what was being carried out, and how it would produce the technology that we all rely on every day, would have been incredible.

Pin It

James Hunt: procenv update

Tue, 2014-03-25 19:21
Earlier today I released procenv 0.34. Quite a bit has changed since version 0.27 including:
  • Recognises AARCH64, SuperH (fix), PPC64, PPCspe, PPC64LE, OpenRISC systems.
  • Added symbolic names in '--ranges'.
  • Displays Linux binary personality (and flags).
  • Improved '--capabilities' output showing not only bounding set, but also whether each capability is supported, permitted, effective and inheritable values.
  • Added '--memory' which shows NUMA memory details.
  • Added '--cpu' which displays CPU affinity details.
  • Added rpm spec file allowing it to build on RHEL5, Fedora, etc.
  • Improved '--sizeof' which now shows lots more standard types.
  • Displays FreeBSD Capsicum capabilities.
  • Lots of fixes.
Version 0.34 is now available in Debian sid whilst Ubuntu Trusty will be released with procenv 0.33 (which lacks the binary personality information).

Take a look at the links on the main procenv page to see the different environments that it is currently building in (the build logs show the build environments as procenv runs itself as part of its build):

Pages