Category Archives: My works

apt-venv — apt virtual environment

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

Fluxbox Light Themes

Fluxbox Light Themes is a porting of Ubuntu Themes for Fluxbox.

Install

You can choose to use this ppa or take directly the deb package.
Alternatively you can download the archive and install themes manually by copying Ambiance and Radiance into your local Fluxbox styles folder:

cp -r Ambiance ~/.fluxbox/styles
cp -r Radiance ~/.fluxbox/styles

Tips

Remember to update these settings in your ~/.fluxbox/init:

session.*.titlebar.left:    Close Minimize Maximize
session.*.titlebar.right:

Preview

Ambiance

Ambiance with menu

Radiance

Radiance with menu

Forum ubuntu-it gets a new theme and a new engine

Hi all,

after many many weeks working on forum.ubuntu-it.org, we finally done!

The forum for ubuntu-it.org has been migrated from SMF 1.X (MySQL) to PhpBB3 (PSQL). The entire work has taken more than one month, considering the huge data (almost 5GB database) to migrate.

The new theme is inspired to the ubuntu-it website and ubuntu design guidelines, hope you like it.

 

Thanks to #canonical-sysadmin to help me in tuning psql, apache, php, etc… PphBB3 (default) is not so fast with big forums as I expected.

HYM – Help you to merge

The idea is provide new (incoming) developers with a grafic tool that should be helpful during the merge operation.

I called it HYM (but suggestions are welcome!) and got a first approach using balsamiq. I would like to proceed following these steps:

  1. Show mockup and get feedbacks (in particular I would know if there were actions to remove/add/change at gui that developers usally do during merge)
  2. Apply feedbacks and create project in LP (with the maintainers group, all architects are welcome)
  3. Start modelling application using UML (specify, construct and document the artifacts)
  4. Call for feedbacks again about structure and choose which technologies will be used to deploy/develop application.
  5. Start development.

I don’t know if a tool like this one could be helpful to improve the development of Ubuntu. Considering I would like to know your thoughts about, I’m going to show you the mockup (step 1). Click on the image below (direct link) and please leave a feedback/suggestion:

Note that image could change in the next days.

Ciao!

Ubuntu is us all together

In the last weeks (as already posted in Ubuntu-it gets new website article) we redesigned ubuntu-it website in order to fall template into line with the new brand of Ubuntu.

While we were working on homepage, we asked ourself how to realize the concept of community and how mix it to the invitation to join us, all in a single image. The result was a “ubuntu” writing, collected with heads of planet.u.c and planet.u-it.org. The following image is in high resolution format (6000×1500) so you could print it (if you want) and show it during a party/meeting/or_similiar to convey the idea that ubuntu is made by me, by you, by your friends and your family, by us all together.

Ciao!

A simple theme for Gwibber…

This is a simple theme for Gwibber designed to match the Dust GTK+ theme and based on gilouche.

Preview:
gwibber-dust

You can download the code using bazaar:

bzr branch lp:~l3on/gwibber/dust-theme

To install, put it into this directory:

~/.local/share/gwibber/ui/themes/

and pick the new theme from Gwibber’s preferences.

License: GPL

Suggestions are welcome. :)

EDIT:
13-07-09: updated image according to new bzr revision. [Added border at content]

A simple plugin for Sonata…

This simple plugin uses pynotify to notify on song changes in sonata.

This is when you don’t have the album cover:

no-album-cover

This one shows a preview of plugin when option “Album art” is checked (and mp3 file has some decent id3-tags):

notify-with-album-prew

Download:
You can download it using bzr:

bzr branch lp:~l3on/sonata/sonata-plugins

Then copy notify.py into the plugins directory of sonata.

Required:
* Sonata git
* python-notify package

Suggestion:
For a better result, uncheck: Sonata → Preferences → Extra → Popup notification on song changes

Regards.