Skip to content

hping - [send_icmp] Unsupported icmp type

When performing tests you may sometimes want to send specially crafted icmp packets. hping is a handy tool for that.

However, the default behavior is to refuse to send "unsupported" Type/Code combinations. eg
hping3 -c 1 --icmp -C 33 -K 0 192.168.70.1
HPING 192.168.70.1 (wlan0 192.168.70.10): icmp mode set, 28 headers + 0 data bytes
[send_icmp] Unsupported icmp type!

Fortunately, there is an (undocumented) --force-icmp option that you can add to bypass the check:
hping3 -c 1 --icmp --force-icmp -C 33 -K 0 192.168.70.1
HPING 192.168.70.1 (wlan0 192.168.70.10): icmp mode set, 28 headers + 0 data bytes

--- 192.168.70.1 hping statistic ---
1 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms

  • Twitter
  • Bookmark hping - [send_icmp] Unsupported icmp type at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg hping - [send_icmp] Unsupported icmp type
  • Mixx hping - [send_icmp] Unsupported icmp type
  • Bloglines hping - [send_icmp] Unsupported icmp type
  • Technorati hping - [send_icmp] Unsupported icmp type
  • Fark this: hping - [send_icmp] Unsupported icmp type
  • Bookmark hping - [send_icmp] Unsupported icmp type at YahooMyWeb
  • Bookmark hping - [send_icmp] Unsupported icmp type at Furl.net
  • Bookmark hping - [send_icmp] Unsupported icmp type at reddit.com
  • Bookmark hping - [send_icmp] Unsupported icmp type at blinklist.com
  • Bookmark hping - [send_icmp] Unsupported icmp type at Spurl.net
  • Bookmark hping - [send_icmp] Unsupported icmp type at NewsVine
  • Bookmark hping - [send_icmp] Unsupported icmp type at Simpy.com
  • Bookmark hping - [send_icmp] Unsupported icmp type at blogmarks
  • Bookmark hping - [send_icmp] Unsupported icmp type with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)

In Ubuntu Karmic (and possibly Jaunty ?), when you install libsane, it adds a file /lib/udev/rules.d/40-libsane.rules which contains rules that match on supported scanners and set the environment variable "libsane_matched" to "yes".

This in turn triggers the following in /lib/udev/rules.d/70-acl.rules:
# USB scanners
ENV{libsane_matched}=="yes", ENV{ACL_MANAGE}="1"
<snip>
# apply ACL for all locally logged in users
LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"

In the end, the result is that an ACL is created for the device, which allows locally logged in users to use it (read/write permission). eg for my scanner:
~# lsusb
Bus 001 Device 005: ID 04b8:011c Seiko Epson Corp. Perfection 3200
~# ls -l /dev/bus/usb/001/005
crw-rw-r--+ 1 root root 189, 4 2009-12-28 00:11 /dev/bus/usb/001/005
~# getfacl /dev/bus/usb/001/005
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/005
# owner: root
# group: root
user::rw-
user:crox:rw-
group::rw-
mask::rw-
other::r--
~#

However, I also wanted to allow access to the scanner from other workstations through saned. In older Ubuntu versions, you could just add saned (or whatever user the service runs as) to the scanner group. This no longer works since the device belongs to root:root, and ACLs are added for specific users. The solution that works for me is to create a file /etc/udev/rules.d/99-sane-group.rules with the following contents:
# change group to scanner for sane devices
ENV{libsane_matched}=="yes", GROUP="scanner"

Then you just need to run
sudo udevadm trigger
and the group of the device magically changes to scanner.

Of course you could also add a similar rule specifically for a certain device instead, in my case this would work too:
ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", GROUP="scanner"


To check that it worked, run the following:
sudo su -s /bin/bash -c 'scanimage -L' saned



  • Twitter
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)
  • Mixx Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)
  • Bloglines Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)
  • Technorati Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)
  • Fark this: Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at YahooMyWeb
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at Furl.net
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at reddit.com
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at blinklist.com
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at Spurl.net
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at NewsVine
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at Simpy.com
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) at blogmarks
  • Bookmark Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Making a Dell computer running Linux silent (Dell Precision noise problem)

Faced with a noisy Dell Precision 490 computer running Ubuntu Karmic, I found an easy way to reduce the noise level to an acceptable threshold. (fancontrol did not help since it seems not to be compatible with the chipset used by Dell at least on this computer.)

Step 1, install i8kutils:
sudo apt-get install i8kutils

Step 2, add i8k to /etc/modules:
sudo sh -c 'echo i8k >> /etc/modules'

Step 3, edit /etc/default/i8kmon so that it looks like this:
# /etc/default/i8kmon

# Change to one enable i8kmon
ENABLED=1
I8KMON_ARGS="--daemon --nouserconfig --auto"

Step 4, reboot and enjoy!

  • Twitter
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Making a Dell computer running Linux silent (Dell Precision noise problem)
  • Mixx Making a Dell computer running Linux silent (Dell Precision noise problem)
  • Bloglines Making a Dell computer running Linux silent (Dell Precision noise problem)
  • Technorati Making a Dell computer running Linux silent (Dell Precision noise problem)
  • Fark this: Making a Dell computer running Linux silent (Dell Precision noise problem)
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at YahooMyWeb
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at Furl.net
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at reddit.com
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at blinklist.com
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at Spurl.net
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at NewsVine
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at Simpy.com
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) at blogmarks
  • Bookmark Making a Dell computer running Linux silent (Dell Precision noise problem) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)

This is a copy of a post I made to the isdn4linux mailing-list.

The attached patch adds support to mISDN-1_1_9_2 for the Eicon DIVA USB ISDN adapter (071d:1005).

The bits I've added to hfcs_usb.c are from kernel 2.6.31. So far the adapter works fine for me (tested with 1 and 2 concurrent calls to asterisk 1.4.26.1 with chan_misdn).

You can get the patch here: misdn-1.1.9.2-Eicon-Diva-USB.patch.

Comments are set to "moderated" for this entry, please consider whether you should rather post to the list.
  • Twitter
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)
  • Mixx Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)
  • Bloglines Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)
  • Technorati Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)
  • Fark this: Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at YahooMyWeb
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at Furl.net
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at reddit.com
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at blinklist.com
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at Spurl.net
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at NewsVine
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at Simpy.com
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) at blogmarks
  • Bookmark Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)

I've recently acquired an HP Photosmart Premium C309a all-in-one device (CC335B). I planned to use the device mainly for its scanner with duplex-capable automatic document feeder (ADF), in order to archive our mail electronically (more on that later). But I was also happy to get a device which can replace man different ones: it is also a fax, and a nice printer for documents, pictures and even (special) CD/DVDs.

I already have a Canon Selphy CP740 dye sublimation photo printer, which I like very much but has two limitations: 1. it's limited to 10x15 format (4x6 in), and 2. it seems that it's impossible to get the printer to work correctly when attached to a PC as a usb printer. It works nicely in stand-alone mode (ie printing from a digital camera with PictBridge or directly from a CF card), but so far I've only managed to waste paper and ink when trying to print directly from the computer. (I've even installed a fresh Windows XP to try the software from Canon, it didn't work any better.) So the good quality of the HP as a photo printer was one more argument in its favour.

Here is how I was able to print borderless photos directly from The Gimp:

1. If you want no border at all, the image should obviously have the same aspect ratio as the paper you'll print on. If necessary, use "Image" -> "Canvas size" or the Crop tool to adjust it.

2. "File" -> "Page setup": select the correct printer and paper size

3. "File" -> "Print":

- in "Page setup", select "Photo Tray" as paper source
- in "Image Settings", check the box "Ignore Page Margins", then adjust Width/Height so that the picture fills the paper (if it doesn't, get back to step 1)
- in "Advanced", select "Photo" as Printout mode, and "1200 dpi, Photo, Full Bleed" under "Resolution, Quality, Ink Type, Media Type" ("Controlled by 'Printout Mode'" seems to do as well)

4. Click "Print"
  • Twitter
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)
  • Mixx Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)
  • Bloglines Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)
  • Technorati Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)
  • Fark this: Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS)
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at YahooMyWeb
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at Furl.net
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at reddit.com
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at blinklist.com
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at Spurl.net
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at NewsVine
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at Simpy.com
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) at blogmarks
  • Bookmark Borderless pictures from Gimp (HP Photosmart Premium C309a full-bleed printing on Linux/CUPS) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca