This chapter will cover using serial ports with applications and get modem access. For setting up Winsock TCP/IP connections, please refer to the chapter Chapter 6.
To access a serial port with Wine applications, the serial port must be set up in win.ini and Wine configuration file properly as described above in Chapter 5. In addition, you need access to the serial port. Normally the serial ports belong to the group "dialout".
ls -al /dev/ttyS* crw-rw---- 1 root dialout 4, 64 Feb 13 14:32 /dev/ttyS0 crw-rw---- 1 root dialout 4, 65 Aug 1 1997 /dev/ttyS1 crw-rw---- 1 root dialout 4, 66 Aug 1 1997 /dev/ttyS2 crw-rw---- 1 root dialout 4, 67 Aug 1 1997 /dev/ttyS3
To add a user to the group dialout, you could do that using gpasswd. You will have to be root to do so. Syntax: gpasswd -a user group.
$ sudo gpasswd -a luser dialout Password: Adding user luser to group dialout