LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Palm device difficulties (https://www.linuxquestions.org/questions/linux-newbie-8/palm-device-difficulties-315801/)

rwillard 04-21-2005 03:15 PM

Palm device difficulties
 
I have a Palm device that I have been syncing without too much hassle to Evolution (FC3).

The difficulty is that each time I reboot, I have to give read/write access to non root for ttyS0 (done through nautilus as I don't know the command line yet), then regenerate the link to the pilot (ln -s /dev/ttyS0 /dev/pilot) and restart the pilot daemon.

Is there any way that I can set this up so I don't have to go through these steps each time?

Thanks!
Rob

oneandoneis2 04-21-2005 04:24 PM

I assume you're using udev, so go to /etc/udev/permissions.d and create a rule that says ttyS0 should be universally read-write-able. And then /etc/udev/rules.d and add a rule that says ttyS0 should be symlinked to pilot - you should be able to work out how this works from the existing config files.

Incidentally, the command from the CLI to change the permissions is "chmod 666 ttyS0"

rwillard 04-22-2005 10:25 AM

Great! Thanks oneandone...

I changed 50-udev.permissions to now read:

Code:

# serial+dialup devices
ttyS*:root:uucp:0666        <==== CHANGED
ippp*:root:root:0660
isdn*:root:root:0660
isdnctrl*:root:root:0660
capi*:root:root:0660
dcbri*:root:root:0660
ircomm*:root:uucp:0660
ttyUSB*:root:uucp:0660
tts/[0-9]*:root:uucp:0666  <==== CHANGED
tts/USB[0-9]*:root:uucp:0660

I wasn't sure which one change, so did both to be sure ;)

I also set gpilotd to look to /dev/ttyS0 instead of /dev/pilot, as it will always be going in the only serial port I have.

Thanks for the help!
Rob


All times are GMT -5. The time now is 09:47 AM.