Floating Sun » debian http://floatingsun.net Mon, 07 Jan 2013 02:53:26 +0000 en-US hourly 1 http://wordpress.org/?v=3.5.1 HP Photosmart M425 on Debian Unstable http://floatingsun.net/2006/11/15/hp-photosmart-m425-on-debian-unstable/?utm_source=rss&utm_medium=rss&utm_campaign=hp-photosmart-m425-on-debian-unstable http://floatingsun.net/2006/11/15/hp-photosmart-m425-on-debian-unstable/#comments Wed, 15 Nov 2006 08:19:36 +0000 Diwaker Gupta http://floatingsun.net/blog/2006/11/15/768/ Related posts:
  1. Debian CD-ROM woes
  2. Today’s reads
  3. HOWTO: Ubuntu on IBM Thinkpad T42
]]>

My [[http://www.dpreview.com/news/0601/06010405hpm425.asp|HP Photosmart M425]] used to work perfectly on my laptop, which runs Kubuntu. On my shiny new desktop I’ve been running Debian Unstable/Experimental, and all of a sudden my camera stopped working with it. Digikam would detect it, but wouldn’t let me read the snaps off of it.

After some investigation, I figured out that the relevant [[wp>Udev|udev]] rules were missing from the Debian package. As a result, even though I was in the group ”plugdev”, I couldn’t read the camera but I could still read it as root. If you’re facing the same problem, here’s what you need to do:

* create a new file ”/etc/udev/rules.d/z80_custom.rules”
* paste the following lines into this file

ACTION!="add", GOTO="libgphoto2_rules_end"
SUBSYSTEM=="usb_device", GOTO="libgphoto2_rules_real"
SUBSYSTEM=="usb", GOTO="libgphoto2_rules_real"
BUS!="usb", GOTO="libgphoto2_rules_end"
LABEL="libgphoto2_rules_real"
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="8002", MODE="0660", GROUP="plugdev"
LABEL="libgphoto2_rules_end"

* make sure you belong to the group ”plugdev” and restart udev

Thats it!

Note that these instructions are for a Debian based system, but it should be relatively easy to adapt them to other systems as well.

]]>
http://floatingsun.net/2006/11/15/hp-photosmart-m425-on-debian-unstable/feed/ 1
Debian CD-ROM woes http://floatingsun.net/2004/05/11/debian-cd-rom-woes/?utm_source=rss&utm_medium=rss&utm_campaign=debian-cd-rom-woes http://floatingsun.net/2004/05/11/debian-cd-rom-woes/#comments Tue, 11 May 2004 06:22:43 +0000 Diwaker Gupta http://floatingsun.net/blog/?p=163 Related posts:
  1. HP Photosmart M425 on Debian Unstable
]]>

I feel like pulling my hair out!! Last night Himanshu had come over for dinner, I was making pao bhaji, we were sitting and listening to music and life was good. Himanshu wanted to listen to an audio CD, so I popped it into my laptop and fired up kscd (the kde audio cd player). And it didn’t work. It just didn’t work.

I was shocked, embarassed and disgraced!! Ragesh had his hearty laugh, and my roomies mocked at me. I was absolutely stupefied since the CD was the last thing I had expected to stop working on my Debian system. Everything rocked like hell with Fedora.

So began the battle. I started off by trying to mount the CD, and got a whole bunch of errors. It really scared me. Then I started looking at the boot messages — the CD seemed to be recognized alright by the kernel, but somehow it wasn’t reading from it. I thought perhaps I had messed up something in my kernel. Naturally, the first thing to do was to try out the other kernels — some of which are prepackaged by Debian.

After a plethora of reboots, things were still looking bleak, and I was absolutely shocked that even the prepackaged kernel’s didn’t work. Things couldn’t get worse, and I lost hope and went to bed. This morning, I got back into the fight with new vigour. I started playing with the kernel options, taking guesses at what might be causing the problem — I tried disabling DMA, compiling the floppy as a module and not inside the kernel, and a whole bunch of other things. Nothing worked, and I was really dejected.

Just then, I was reading something on debianHELP.org, that I realized that all this while I had been trying to mount audio CDs. Fact is, you CAN NOT mount audio CDs, since they don’t have a file system!!!! That revelation was releiving, but frustrating as hell and I already began to feel like a jack ass. So then I tried mounting a regular CD, and no problems.

So then I tried kscd again with the audio CD, and it still failed. Then it struck me that perhaps the problem was simply due to read/write permissions on the /dev/cdrom device. And lo behold!, when I ran the audio player as root, things worked just as expected! I felt really relieved, coz for a moment I panicked because I wasn’t able to figure out what the problem was. And I also felt really foolish for having wasted so much time over such a small thing. But well, lessons learnt the hard way are not easily forgotten :)

]]>
http://floatingsun.net/2004/05/11/debian-cd-rom-woes/feed/ 0