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

Leo Iannacone: apt-venv — apt virtual environment

Tue, 2014-05-13 07:19

Quickly collect information about packages in different Debian and Ubuntu releases.

apt-venv creates a sort of virtual environments in $HOME/.local/share/apt-venv (one for each release), able to exec bash sessions where apt thinks to be in another distro/release. In these sessions a $APT_VENV variable is set and points out the release name in use.

If you want to customize environment you can modify files in:

$HOME/.config/apt-venv/$release

apt-venv is already available in Debian and Ubuntu utopic unicorn.

Use case

Show which version of some package is in Debian and Ubuntu, simply:

# init apt database for releases for release in unstable stable trusty lucid ; do apt-venv $release -u done # do what you want for release in unstable stable trusty lucid ; do apt-venv $release -c "apt-cache madison base-files | grep Source | tail -1" done

If you do not specify -c option you will entry an interactive shell.

Usage $ apt-venv -h usage: apt-venv [-h] [-D DEBUG] [-v] [-d] [-c COMMAND] [-l] [release] positional arguments: release the debian/ubuntu release optional arguments: -h, --help show this help message and exit -D DEBUG, --debug DEBUG set debug level -v, --version show program's version number and exit -c COMMAND, --command COMMAND exec the given command instead of entry the interactive shell -d, --delete delete venv for release -l, --list list all venv installed in your system -u, --update update the apt indexes

The Fridge: Ubuntu Weekly Newsletter Issue 367

Tue, 2014-05-13 00:38

Welcome to the Ubuntu Weekly Newsletter. This is issue #367 for the week May 5 – 11, 2014, and the full version is available here.

In this issue we cover:

The issue of The Ubuntu Weekly Newsletter is brought to you by:

  • Elizabeth Krumbach Joseph
  • Paul White
  • Diego Turcios
  • Emily Gonyer
  • Jim Connett
  • Jose Antonio Rey
  • And many others

If you have a story idea for the Weekly Newsletter, join the Ubuntu News Team mailing list and submit it. Ideas can also be added to the wiki!

Except where otherwise noted, content in this issue is licensed under a Creative Commons Attribution 3.0 License BY SA Creative Commons License

Stuart Langridge: Nomad CHARGEKEY/CHARGECARD review

Mon, 2014-05-12 21:40

Recently I received a gift from Nomad, one each of their CHARGEKEY and CHARGECARD products. So I’ve been trying them out. They’re both similar in concept, so I’ll speak of them as one item for now.

Basically, it’s a very very portable charging lead for your phone. The CHARGEKEY is about two inches long, with a slim full USB plug1 on one end and either a micro USB or an iPhone 5 lightning plug on the other.2 And there’s a little place to attach it to your keyring. Basically, the idea here is that you’ll stick this on your keyring and the next time you find yourself somewhere where you’d want to charge your phone you’ll have a way to do so, without having to carry a long USB charging lead around everywhere you go like some sort of arse. The CHARGECARD is a similar idea, and again comes in two flavours, but instead of being a little stick that hangs unimpedingly on your keys, it’s the size and thickness of a credit card and goes in your wallet, or wherever you keep cards.3

So, the simple verdict: if you often find yourself wishing you’d brought your charging lead with you, you’ll find this bloody useful.

Me… I didn’t, so much. I often find myself wishing that I could charge my phone up, but the problem isn’t that I don’t have a lead: it’s that even if I had a lead I’d have nowhere to plug it in. Pub tables don’t have USB ports. Coffee shops don’t have USB ports. If I’m working from a desk in an office somewhere I’ve got my laptop bag, and that’s got one of every lead I ever need in it (hasn’t yours? Why hasn’t it? Go and put a spare one of every lead you need in your laptop bag!).

I do sometimes find myself places where I could charge up. Coffee shops do have wall sockets. But for that I’d need an actual lead and an adaptor. On my desk, where I am all day, I have a charging lead. Interestingly, whenever I’m at a conference there are always tweets in the backchannel asking if anyone has an iPhone charging lead — it’s never any other phone. So I suspect iPhone people who haven’t grasped the idea of having a spare lead in their bag may find this hugely useful. If you’re taking my above advice about buying a spare lead then getting one of these is no bad idea because it’s tiny.  Similarly, if places of entertainment started putting USB sockets on every table, this would be superbly useful.4

Perhaps I’m unusual, though. To find out, I gave the CHARGEKEY to my dad. And, interestingly, he’s already talking about using it at work. Just plug into the computer in the office, and the lead is on your keyring ready for you when you need it. And it’s not bothering you when you don’t. It’s for drive-by charging. For a moment of opportunity. If you hit those a lot, you’ll like Nomad’s stuff.

Me, I’ll wait until they put USB sockets in bars.

  1. one of those flat ones that plugs into the bottom half of a USB socket
  2. It comes in two flavours; one for iPhones, one for every other device on the planet
  3. Well, it’s about the thickness of two or three credit cards, but it’ll go in your wallet fine; it did in mine
  4. If you’re running a political party in England and you add “USB sockets on every pub table by law!” to your manifesto then you’ve significantly increased your chances of getting my vote, and every other tech person in the country too. Unless you’re UKIP in which case don’t bother

Pages