Sunday, 24 May 2009

palm sync jpilot - on ubuntu gutsy - needed udev and /etc/modules tweaks

Oh no! Palm worked seamlessly with linuxes for a while.
(and other usb sync just by setting device "usb:" as the thing to sync.)
Now ...
The bad old messy config days are back (hopefully momentarily - I'm briefly stuck on gutsy for a bit on home pc).

$ cat /etc/lsb-release
$ uname -a
Linux xx 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux

To get palm sync working (with jpilot):
1. add visor to list in /etc/modules
sudo vi /etc/modules
sudo modprobe visor # to load module just for now without restarting
2. Make (or add to 10-custom.rules the below KERNEL=="ttyUSB*" entry (and rm entry from 60-symlinks.rules
BUS=="usb", SYSFS{product}=="*[vVisor]*", KERNEL=="ttyUSB[13579]", NAME="pilot",\
GROUP="dislout", MODE="0660"
sudo /etc/init.d/udev restart
3. some tests
pilot-xfer -p /dev/ttyUSB0 -l # doesn't work? works?
sudo pilot-xfer -p /dev/ttyUSB0 -l
udevinfo --query=all --name=/dev/ttyUSB0
4.And argh I ran sudo jpilot and did a sync (as root) The group setting was wrong so jpilot as normal user couldn't sync.
# fix ownerships (be careful with find ... -exec chown or chown -R in general, ...
# did I ever tell you about the time I killed a server with a recursive chown?
find /home/jamesc/.jpilot/ -user root -exec chown jamesc:jamesc {} \;
5. add group dialout for your user
sudo usermod -a -G dialout `whoami`
5.1 login again then check new group is enabled for your user
#hotsync button on palm first, then hotsync button in application j-pilot problems in Feisty Hotsync Palm Centro on Ubuntu Gutsy

No comments: