Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-08-2002, 08:02 PM   #1
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
couple questions on getting modem ready to use

In windows i can make it by holding alt and pressing 1-2-4, I just installed mandrake 8.2 yesterday and this is the first time i have ever seen linux. I am trying to get my modem configured first, i have a USR 5610A, i found this article, now from all the info that I came up with so far i do this (please remember that I may have no clue what I am talking about). First run this command su- to allow me as root??? Then open a text editor and type in that script, now, do i type word for word and it will come up with what IRQ, COM Port, etc. Or do I enter those somewhere in the script?? And to type the script i have to learn to enter this | character, then save the file (a certain place should i save to?? have no clue how that part works either. Then open the run prompt and enter chmod 755 <whati called the file>, I know that this cant be that hard, just seems super confusing, just want to get online so I dont have to keep switching back and forth between OS's -thanks for any help

EDIT: lol, figured out the |||||| key, didn't realize becuase of the space inbetween...sorry

Last edited by wr3ck3d; 12-08-2002 at 08:29 PM.
Old 12-09-2002, 01:06 AM   #2
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
First run this command su- to allow me as root???
One of the first things you probably did in installing your distro was to create a system administrator or root account. The root account is an extremely powerful tool with complete freedom and the ability to do good or bad things. Therefore, be careful to only use root when you need to and use your regular account for your every-day tasks.

Signing in as SU (Super-User or Root) allows you to open a "virtual terminal" (compare it to your Windows, Start, Program, Accessories, MS-Dos PromptThen when you are done, you can close the terminal and resume your regular account identity. ). It's a "virtual" terminal because linux can be run from a terminal without any graphic interface.

open a text editor
Linux has lots of text editors (compare to your Windows, Start, Programs, Accessories, Notepad)

Here is a partial list from
Available from your linux X-windows session (compare to your Windows "Desktop"

gedit (click on Gnome-footprint > programs > applications > gedit)
gless (click on Gnome-footprint > programs > utilities > Text File Viewer)
kedit (click on Gnome-footprint > KDE menus > applications > Text Editor)
kwrite (click on Gnome-footprint > KDE menus > applications > Advanced Editor)

from your terminal or non graphical prompt (compare to MS-Dos) or from a virtual terminal in your X Session

emacs - screen based (but not X-windows) editor

pico - screen based (but not X-windows) editor

joe - the Joe's Own Editor.

vi - visual editor (screen based but not X-windows) editor

type in that script

for a brief explanation of shell scripts, see

save the file to a certain place
should i save to??
copy the script from your editor and paste it here so someone can help you with that
open the prompt and enter chmod 755
the prompt refers to your virtual terminal. for an explanation of the chmod command, see

Last edited by rioguia; 12-09-2002 at 01:07 AM.
Old 12-09-2002, 01:28 AM   #3
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Ok, since that post i have read many articles across the net saying to do this

setserial /dev/ttyS* port 0xd800 irq 5 autoconfig

Ok, my modem is irq 5, I/O Range d800, and COM 3

When i try and do that command trying to use ttyS2 or 3, it says not file etc, so i suppose that they are listed as files so looked in that folder, only ttyS0 and 1, even when i try and use those it says something like port in use, I think i read that COM3 in Linux would be ttyS2 , but my question is why is there no file listed for ttyS2?? Im soooo confused, still learned alot today but no modem , thanks rioguia for all that info, thanks for any other help in advance.
Old 12-09-2002, 03:56 PM   #4
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
A shell script is a simple way to give linux some commands in a specific order. You could just type the commands, read the output, and then type the next command using the output from the command you just entered.
for example, this script queries your computer for the PCI information it has on your modem (lspci), finds out what the IRQ and I/O (port) values are, and then feeds them to setserial. If you want to experiment with this, sign on to you linux box as root. instead of using the script you could execute the commands lines by
1. opening a virtual terminal and type
tail -f /var/log/mesages > /dev/console &

2. open a second virtual terminal and type:
lspci -v [Return] (you should see something about your modem and its IRQ and Port (I/O) settings)

2. then type
setserial /dev/ttyS2 port 0x$PORTS irq $IRQ autoconfig (substituting the values you got from tail and LSPCI for PORTS or I/O and IRQ's)

IF that works for you then you can do the script,

1. just cut and paste the text of the shell script from your article (see below) into a file in your text editor
2. Save the file into your root directory with the name
3. cd /root [return]
4. chmod 0777 [return] (this makes the file executable)
5. ./ [return] (you're done)

DEVICE=$(lspci | grep "US Robotics" | awk '{print $1}')
IRQ=$(lspci -v -s $DEVICE | head -n 3 | tail -n 1 | cut -d ' ' -f 5)
PORTS=$(lspci -v -s $DEVICE | head -n 4 | tail -n 1 | cut -d ' ' -f 4)

echo US Robotics modem is at IRQ $IRQ
echo ...and the base of the I/O port range is $PORTS

setserial /dev/ttyS2 port 0x$PORTS irq $IRQ autoconfig

Last edited by rioguia; 12-09-2002 at 04:08 PM.
Old 12-09-2002, 05:14 PM   #5
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Ok, well i finally got it, I just used setserial and assigned to ttyS4 then linked that to /dev/modem, and it worked.......My only question is why wasnt ttys2 or ttyS3 installed??? So i guess im good to go, just need to get the sound going now, lol....then get my chat programs installed (not even sure if they make a yahoo or aim), if so, then i wont be using windows to much, only to play game once in a while....feels good to finally have gotten it working -thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing character set in linux box haora Linux - Newbie 1 06-20-2005 10:37 AM
write control character q on linux 7.2 suchi_s Linux - Software 1 03-21-2005 03:03 AM
Copy from windows to linux character problem kaboom Linux - General 6 03-10-2005 04:44 AM
character sets in Linux, MySql, PHP, Apache prague_expat Linux - General 1 09-21-2003 05:33 PM
Make mouse work in character apps? MikHud Linux - General 0 03-09-2002 05:23 AM

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration