Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
3/11/2013 11:53:52 PM EDT
To the guys who know way more about Linux than I do…

Is there away to change the permissions for a serial device to automatically reconfigure when a device is reconnected?

For example, to run Icom CS-1F00S .exe under WINE is no problem. Created a symbolic link to the WINE com port for /dev/ttyUSB0. Changed the permissions so it could be used (chmod 777 /dev/ttyUSB0) and I can read/clone my radios. However, when I remove the programming cable from the computer and plug it back in, I have to go in and change permissions again. Is there way to keep me from constantly having to change the permissions? Running Mint 13
3/11/2013 11:59:59 PM EDT
[#1]
Look at writing udev rules. Should be what you are after.
3/13/2013 6:10:27 PM EDT
[#2]
I have had a hard time getting udev rules to work under Mint 13.

A fix could be something like (udev would be better though)


#!/bin/bash

#set permisions
sudo chmod 777 /dev/ttyUSBx

#create link
ln -s /dev/ttyUSBx ~/.wine/dosdevices/com1

#start the program via wine
wine "link to .exe"


make the above executable and move the script to /usr/bin




3/16/2013 2:38:48 PM EDT
[#3]
udev is the answer.  What distribution are you using?
3/16/2013 8:31:27 PM EDT
[#4]
Quoted:
udev is the answer.  What distribution are you using?


Mint 13 (should be identical to Ubuntu 12.04 when it comes to the file systems).