Simbiosis

Communiques from the wilderness

Photosmart 2575

I just got a HP photosmart 2575, which I will probably post more about in due course, but the useful snippet I am contributing today is this. If you want to scan over the network, you can use XSane, so long as you have the hp-makeuri address of the device. BUT, this only works with the IP of the device, not the mDNS name, so this script will lookup the name, and launch xsane with the IP address, provided it can be found.
If you try this with a non-2570 series scanner make sure you correct the xsane url.

#!/bin/sh# Start XSane with the device IP address
HOSTNAME=<NAME>.local
IP=`resolveip $HOSTNAME`
if [ $? -eq 0 ]; then
IP = `echo "$IP" | cut -f 6 -d ' '`
xsane hpaio:/net/Photosmart_2570_series?ip=$IP
else
zenity --error --text="The device could not be found"
fi

June 7, 2006 Posted by Nigel | debian, linux, technology | | No Comments Yet

Bluetooth Fuse OBEXFS under Debian

Because the Gnome Bluetooth tools are not in Debian it makes it kinda hard to transfer files to a BT enabled phone. However, there is a really neat project out there called OBEXFS, which uses Filesystem in Userspace to mount an OBEX device, like a phone, as another folder on your computer.

First thing is to set up the basic system for using fuse

modprobe fuse

or

echo fuse >> /etc/modules
adduser  fuse

Now, get and compile the obexfs programs

./configure && make && sudo make install

Finally, the magic lines. Nokia phones use channel 10 for OBEX transfer, so:

mkdir -p ~/mnt/bluetooth
obexfs -b <BT MAC ADDRESS> -B 10 ~/mnt/bluetooth/

If you need to find your BT MAC address use:

hcitool scan

Requirements:
apt-get install fuse-utils bluetooth

June 4, 2006 Posted by Nigel | bluetooth, debian, linux | | 6 Comments