My day with Ubuntu Edgy Eft

3 January 2007

*Happy New Year everyone! *

System Message: WARNING/2 (<string>, line 1); backlink

Inline emphasis start-string without end-string.

Some relatives saved up half a dozen problems with their Windows PC and hoped I would fix them.

Did I?

Regular readers will know the answer is...

...did I heck!

Instead I finally got to try out Ubuntu properly! Regular readers will also know that I am a ardent Gentoo Linux user, but actually I had a great time. Lets start the year with something a little different. This is no how to or guide, just a rough diary of my little Ubuntu festival.

The Install

I downloaded the Desktop install CD via bittorrent to my Gentoo macbook and burnt it to CD-R. I then used your friendly neighbourhood gparted to reduce the Windows partition to give some blank space.

Next I ran the Ubuntu installer, in Finnish no less, and I was quite shocked at how little I had to do. I cannot remember being asked any technical questions at all, I just provided the person's username, password and timezone. Unlike a Redhat install, there were no questions about window managers or web servers. It was quite smart of Ubuntu to separate out the Desktop from its other CDs.

The one thing that still requires a tiny of bit of common sense and/or documentation is the disk partitioning step, where you have to choose between two or three checkboxes. This is an observation rather than a criticism, I have no idea how this can be improved further.

The LiveCD environment meant that I could surf the web with a full copy of Firefox while I waited for the packages to be copied. Once they had then I rebooted and had a working computer with a decent set of default applications.

The Ubuntu Desktop with Firefox, webcam app and Gnome Terminal

Peripherals

Next step was to sort out the large pile of legacy peripherals that lay on and around the desk. The wireless rat (including scroll wheel), headset and speakers worked out of the box. The wireless keyboard was a Logitech affair with all the extra buttons so I just called up the "Keyboard shortcuts" tool and 20 seconds later I had a fully working set of eight buttons to help with volume, media, email, web and so on.

Next was the Webcam - a Logitech Quickcam Messenger, which to be honest, I had already written off as 'never going to work'. Unfairly as it turned out, one download and one script later I could see myself in full post-sauna glory.

System Message: ERROR/3 (<string>, line 59)

Error in "image" directive: invalid option block.

.. image:: http://commandline.org.uk/images/posts/webcam/midnight-ish.png
    :alt: Me about midnight, just after a late sauna, had not yet figured
    out how to take shot at a good resolution
Now about 3am, but I had fixed the resolution Another late one, this is the elven look!

A Digital Camera was next, HP Photosmart R818 with a rather attractive "R-series dock". There was a small bug but once I had overcome that, it worked out fantastically, far better than Windows. You just throw the camera into the dock, press the button and voila, your pictures are displayed in an application called "gthumb".

gthumb in action

Lastly and definitely least was the all in one Printer/Scanner combo, the Canon Pixma MP110. I think the printer is the same as the LP1000, however not that it helped me much. I managed to get the printer to accept jobs but it cannot be bothered to push the paper through. So a rather large doorstep so far. Moral of the story, do not buy cheap printers that do not have proper ghostscript support. I have not had the heart to look into the scanner yet.

Fixing Camera support on Ubuntu Edgy Eft

The slight bug was an Ubuntu Edgy Eft problem, easily fixed. When gthumb or whatever launched itself, it spat out this error:

> An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

Not very jovial, but the part about read/write reinforced my idea that a permissions problem was by far the most likely culprit. To the rescue came the lsusb command, this gave me the following line:

> Bus 001 Device 010: ID 03f0:7e02 Hewlett-Packard

The code in the middle is the key, the first half refers to the vendor, the second to the product, I added those numbers into the following line:

SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="7e02", MODE="0660", GROUP="plugdev"

Which I then posted into /etc/udev/rules.d/45-libgphoto2.rules . Now it all works perfectly, far better than HP's own Windows application.

Software

First thing was to install all the usual crap: Java, Flash, MP3 support and so on. I then set up Ekiga and Skype.

I was surprised to find that instead of one GUI package manager, there were four. The main one called "Add/Remove" had pride of place at the bottom of the Applications Menu. There was also Synaptic of Debian fame, as well as one called gdebi-gtk and another that had something to do with dpkg.

If they just added a preferences button to the Add/Remove tool that could replace Synaptic, i.e. so you could select your repositories and so on. If they added an "open downloaded package" button then it could replace the other two.

Under "System" in the top menu, the first two choices are "Preferences" and "Administration". Under these two options are a combined 41 tools! I know my program choices added a couple but cripes that is one big mess.

On the other hand each tool is very well labelled and easy to use, so it is not quite as bad as the "Windows Control Panel", where all the options are hidden inside a tab inside a completely differently labelled icon, or the Apple 'Finder' which does the exact opposite of its name.

Conclusion

I think Ubuntu is my favourite binary Linux Distribution so far. The package manager, despite multiple GUIs, is rather less painful than the RPM world (yum notwithstanding). It also has very sensible defaults and a nice set of default applications, remarkable considering the applications have to share the one CD with an operating system and a graphical LiveCD environment. (I remember using Redhat where you had to burn 4 CDs but only ever used the first one).

I will certainly be recommending it to others. It is very easy to get a good desktop setup out of this. Now I am off to emerge sync before I come down with something...

1 Phill says...

I'm glad you liked Ubuntu, it's definitely my favourite distro at the moment. You should check out Easy Ubuntu, it allows you to install a whole lot of other cool stuff. Particularly useful if you have an nvidia / ati graphics card.

Posted at 8:57 a.m. on January 3, 2007


2 Arangel says...

Thanks for the tip, I just bought a new Canon camera yesterday and had the same problem.. :)

Cheers!

Posted at 9:08 a.m. on January 5, 2007


3 Sean says...

Hi nice job on the quickcam messenger, how the hell did you do that? I have everything working except it. Arch Linux had a package for it.

Don't know if you help with these kinds of things, I came across your site looking for quickcam help. At least I know it's possible. Thanks.

[Zeth's answer is below]

Posted at 3:53 a.m. on January 12, 2007


4 Zeth says...

Hi Sean,

  1. Make sure that you have the module videodev available in your kernel,

    i.e. try:

> modprobe videodev

Then test it with

> lsmod | grep videodev

Then unload it again:

> modprobe -r videodev

You will not get very far without that. If you do not have it then you will have to recompile your kernel and add support for it if not. Some distros make this very easy while some make it very hard.

2. Get this file and unpack it: http://home.mag.cx/messenger/source/qc-usb-messenger-1.6.tar.gz

  1. Run the script as a normal user:

> ./quickcam.sh

Do everything it says, you might have to stop several times and get the dependencies or whatever.

It threatens you several times through the process with something like:

> WARNING: If you press Enter, I'll try to continue anyway but this probably will fail. You SHOULD press Ctrl+C now.

This was true for quite a few times but somewhere near the end (I cannot remember exactly) it was wrong and I was right - it did not fail and it worked well. So if you have done something it tells you to do (and you can otherwise verify it somehow) and it throws a warning anyway, then carry on regardless. That is what I did anyway.

Since I have no idea about your system, that is all I can say now,

Good Luck! Zeth

Posted at 9:33 p.m. on January 12, 2007


5 Sean says...

Thanks for the reply, still can't get it working. One big problem is it's not creating a /dev/video0 device. I'll keep trying of course. Thanks again.

[17217352.148000] usb 1-1: new full speed USB device using uhci_hcd and address 7 [17217352.332000] usb 1-1: configuration #1 chosen from 1 choice [17217352.336000] quickcam: QuickCam USB camera found (driver version QuickCam Messenger/Communicate USB 1.5 $Date: 2006/11/05 00:00:00 $) [17217352.336000] quickcam: Kernel:2.6.17-10-generic bus:1 class:FF subclass:FF vendor:046D product:08DA [17217352.336000] quickcam [57.523132]: poisoning qc in qc_usb_init [17217352.336000] quickcam [57.526003]: Filed qc_stv_set()=-32 [17217352.336000] quickcam [57.526016]: qc_stv_set STV_ISO_ENABLE=0 failed -32 [17217352.336000] quickcam [57.526029]: failed qc_usb_init()=-32

Posted at 1:45 a.m. on January 13, 2007


6 Polygon says...

Thank you so much for providing a fix to that camera problem. It now works perfectly.

Posted at 4:40 a.m. on January 17, 2007


7 Polygon says...

And also, ive submitted your fix as a "howto" to the ubuntu forums (ubuntuforums.org), and its helped a few other people :D

thanks again for writing it!

thread if you want to see it:

http://ubuntuforums.org/showthread.php?p=2117143

Posted at 5:05 a.m. on February 7, 2007


8 dR_schneider says...

OMG. It worked. Your tip to modify /etc/udev/rules.d/45-libgphoto2.rules was successful. However I did a very funny mistake at the beginning. When you are mentioning the command lsusb, the letter l looks like /. So I tried executing /susb.(;. But I found out another way of retreiving the vendor and the product ID. If you go to System -> Administration -> Device Manager, and then look up your camera and choose the Advanced 'option', there are the variables usb.vendor_id and usb.product_id. Thanks alot.

Posted at 9:04 a.m. on February 24, 2007


9 Zeth says...

Polygon's link for extra camera help has changed to: http://ubuntuforums.org/showthread.php?t=340271

Posted at 11:23 a.m. on March 31, 2007


10 bosteboarty says...

Hi People How are you doing?

Posted at 7:17 p.m. on October 14, 2009


What do you have to say?

Show Editing Help

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Zeth

November 29, 2009
Hi Jordan, yes that URL is gone now. I have a new contact form on this site.
Python CGI contact forms

Jordan

November 29, 2009
Zeth attention! Your form, http://zeth.me.uk/contact/, is not working The explorer says connecting ..but nothing happens Sorry for my poor English: I am Spanish Regards
Python CGI contact forms

Jordan

November 26, 2009
Sorry: tell me , not tellme (I'm spaniard) And http://zeth.me.uk/contact/ don't work
You got the touch, you got the power

David Jones

November 25, 2009
Your mad skillz are too l33t! for me. I specifically switched to Google Reader so that I could show people what blogs I read. But I couldn't work out how ...
How to find the fashionable blogs quickly

Brian R. Hickey

November 20, 2009
Symantec picked it up too.
How to bring down Internet Explorer with six words

Zeth

November 17, 2009
Thanks djm, I am the moose here. Christian, assuming one actually does Internationalise the countries, it should still work I guess, as the gettext stuff will happen before the list ...
Countries in Django

Phillip Temple

November 17, 2009
Good start, but: a) wouldn't I want None back rather than 'ZZ'? b) why not add a 'shortcut' boolean, then prepend flagged fields (plus usual '-----' separator) to the actual ...
Countries in Django

djm

November 17, 2009
Am I being a moose or did you mean: from whatever.countries import CountryField instead of from whatever.countries import CharField ? Good post though, cheers.
Countries in Django

Christian Joergensen

November 17, 2009
Wouldn't the ordering get messed up after i18n?
Countries in Django

Steve - Electronic Cigarettes Fan

November 17, 2009
Very well done. Is your blog just you writing? Nicely done, Steven.
Blogger vs Wordpress

vetetix

November 15, 2009
Sorry to bother you nearly two years after you wrote this blog article, but I can't manage to find how to modify an existing field. I am trying to change ...
Three Useful Python Bindings - ClamAV, Apt and Evolution

Manju

November 4, 2009
I am transferring some files using psftp to other device's FAT partition. But the filestamp of the file being transferred is modified to that of FAT device, after the transfer. ...
PuTTY Series: Using PSFTP

iki

November 2, 2009
or simpler: socket.gethostbyname_ex(socket.gethostname())[2]
How to find out your IP address in Python

iki

November 2, 2009
local_ip = set([ i[4][0] for i in socket.getaddrinfo(socket.gethostname(), None) if i[0] == 2 ])
How to find out your IP address in Python

Fred

November 2, 2009
testing rst ------------- - point 1
An Introduction to ReStructuredText

Ano

October 27, 2009
"You simply found the license of the StumbleUpon Toolbar for Internet Explorer." That's possible. I've got some more interesting information to add. Firstly, go to this page: https://addons.mozilla.org/en-US/firefox/addon/138 - this ...
Are your Firefox extensions proprietary software?

Ken

October 21, 2009
Stumbled in here at lunch. This is the best find of the week. Thanks.
Three classic command line tips

Jim

October 19, 2009
Thanks for the rtsp:// post - that's something that has been bugging me for a while!
Three classic command line tips

Zeth

October 18, 2009
Thanks for the comments guys. Great to see the all the gang are still here!
Three classic command line tips

Bubba

October 18, 2009
Is there any way psftp can return the true transfer rates oberved during the actual transfer?
PuTTY Series: Using PSFTP