Hasse's technical ramblings

a sysadm gotta do what...

Entries in the Category “Ubuntu”

Ubuntu 11.10 & usb printers

written by Alfafa, on Nov 3, 2011 10:11:00 AM.

Ubuntu has released 11.10 some time ago which broke my CUPS printserver somehow.

After using sometime debugging CUPS. I somehow came by a bug report about the kernel used in ubuntu 11.10 which breaks usb printing in general(I think that such thing should have found in the RC phase). I think it is an essential thing that should be fixed quick, but it seems that there is not a fixed kernel in the normal stable repository yet, so we have to used the proposed repository.

So all it takes is adding a source like the normal ones in /etc/apt/sources.list but with oneiric-proposed instead of just oneiric

That fixed my problem and cups could just detect my usb printer and I could add it in the webinterface again

– update – The “normal” ubuntu kernel is actually working fine now :)

Rygel fails on ubuntu server 10.10 (headless) solution

written by Alfafa, on Oct 16, 2010 7:07:00 PM.

Hi again

This time I would just mention a quick solution to a problem I had while using the Rygel upnp server on a headless server.

I recently decided to use Rygel on my home server(had used coherence upnp server once in a while before), but have had an interest in Rygel for a long time, but the version in the repositories have bin very old, and only recently did I get new enough libs to compile it(it depends on vala and quite new libraries for that..so on Debian Lenny it was to much a pain than I would like)

The problem was that after properly configuring Rygel and then starting you get a lot of warnings about dbus-launch(that is normal because we are running on a server without dbus running) and then other upn devices didn’t see any upnp serv at all, and there was no obvoius error message from Rygel. After taking som time to debug I tried to strace it and found that Rygel didn’t like that /home//.config didn’t exist because it would like to create a directory for its settings under that dir

So the solution is to create the .config dir :-)

Zine blog fails after upgrade to Ubuntu 10.10(solution)

written by Alfafa, on Oct 16, 2010 6:52:00 PM.

Hi

I have just upgraded. The upgrade caused the python module sqlalchemy to be upgraded to a version which have some changes in its interface which is causing the Zone blog system to fail(I should mention that it is fixed in the development source).

I have run Zine from the source tarball and while I have seen there is now a Zine package in Ubuntu. I won’t switch to it right away because I am not running apache/lighttpd etc and I am using a wsgi-to-fastcgi wrapper which I am not sure if the in-repo package is handling(I probably would look at it in a virtual machine to test and see because in the long run it is easier to just use the “official” package)

But the solution to the changed interface is this. In the Zine file database.py (mine is /usr/lib/zine/zine/database.py) you have to find the line:

impl = sqlalchemy.Binary
change to
impl = sqlalchemy.LargeBinary
and find the line:
for name in 'delete', 'save', 'flush', 'execute', 'begin', 'mapper', \
            'commit', 'rollback', 'clear', 'refresh', 'expire', \
            'query_property':
and change to:
for name in 'delete', 'save', 'flush', 'execute', 'begin', 'mapper', \
            'commit', 'rollback', 'clear', 'refresh', 'expire', \
            'query_property':
The next line is:
setattr(db, name, getattr(session, name))
after that add:
# Some things changed names with SQLAlchemy 0.6.0
db.save = session.add
db.clear = session.expunge_all
And it should work again :-)