Learning Debian GNU/LinuxBy Bill McCarty
1st Edition September 1999
1-56592-705-2, Order Number: 7052
360 pages, $34.95 , Includes CD-ROM
Your modem is a peripheral device to Linux, like a CD-ROM drive, hard drive, or a mouse. Your modem will be connected to a serial port, which means that one of the serial devices in the /dev directory actually points to your modem. You may notice that there's also a file, /dev/modem, which serves as a placeholder for your modem. Initially this file doesn't point to anything. To simplify your operations, so that applications like minicomand seyon need only refer to /dev/modem, you can create a symbolic link from the serial device connected to your modem to /dev/modem.
To do so, login as
rootand issue the command:ln -sf /dev/ttyS X /dev/modem
Xis replaced by the number corresponding to the serial device that points to your modem. Table 11.1 shows how the proper command corresponds to the device by which your modem is known user DOS and Linux.
Table 11.1: Command to Create /dev/modem
DOS Modem Device
Linux Modem Device
ln -sf /dev/ttyS0 /dev/modem
ln -sf /dev/ttyS1 /dev/modem
ln -sf /dev/ttyS2 /dev/modem
ln -sf /dev/ttyS3 /dev/modem
Back to: Learning Debian GNU/Linux
© 2001, O'Reilly & Associates, Inc.