Today, 18:58 -0000, john_ke5c wrote:

>    Let me add that you need to define any com port you intend to use 
>    under wine in the ~/.wine/dosdevices directory.  If you have physical 
>    com ports on your computer, you will find existing entries in this 
>    directory for those.  To complete Pierre's example, you also need to 
>    create an entry for com4 in the ~/.wine/dosdevices directory:
>    
>    ln -s /dev/ttyS4 com4
>    
>    This tells wine where to look for com4, /dev/ttyS4 in this case which 
>    Pierre redefined to be the first USB port, /dev/ttyUSB0.

Actually you dont need both things. Either one of the following will do 
the same thing, i.e. let the USB0 be known to wine applications as "COM5".

   ln -s /dev/ttyUSB0 /dev/ttyS4
   ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com5

(Provided that the wine directory is in it's default location.)

Doing the first will make this device to be known as /dev/ttyS4 aka COM5 
to all users on the system and to all applications, while the latter will 
make it only for the owner of the .wine directory and only for wine 
applications. There is an advantage to the latter: it will be persistent, 
i.e. it will survive a reboot.

(Remember that ttyS's are numbered starting at 0 while COM's are numbered 
from 1. /dev/ttyS0 is mapped to COM1 and so on.)

'73 - Pierre
__

Pierre Thibaudeau
VA2RKA/VA2RKB/VE2RIO/VE2RVR/VE2RQF/VE2RTO/VE2LKL/VE2TXD sysadmin

Reply via email to