View Full Version : Modem and Dial Up


Moaz
Dear friends ,

I have a little problem with my modem . I serached for the proper driver and downloaded it as rpm file. Then I wrote
rpm -i hsflinmodem-5.03.27lnxtbeta03042700k2.4.20_8-1rh.i686.rpm
in the terminal , then it told me that I can access the modem as /dev/modem or /dev/ttySHSF0 .
Now I don't know how to use the modem to connect to the Internet ? what is the equivalent program to the DialUp programs in windows ?

I am using RedHat 9 , with GNOME desktop.

safrout
use wvdial or ppp

maslan
or kppp
;)

safrout
he is using gnome

habdin
Salamo 3alaikom,

I am going to mention here what I used to do with dialup on RH 8 and 9 since Gnome 2.x has emerged.

1- Run System Tools / Internet configuration wizard, Follow the wizard to the end choosing the appropriate type of connection you have.

2- On Gnome panel, You can right-click and choose Add to panel/Internet/Modem lights. A small applet will appear on the panel. Right-click it and choose Preferences. You can pinpoint a Connection command which states /sbin/ifup ppp0 and a Disconnect command stating /sbin/ifdown ppp0. Leave them unchanged.

NB if you create another connection with the wizard, the resulting link connection with be called ppp1 (if you are confused by this note just skip it, It is very advanced for you)

3- Try to click on the button with the hole on that applet you have created with Gnome. One cilck you are connected, when you want to disconnect click the button again and you are out.

So simply, it is one click --> in and one click --> out.

Salam.

zxeem
safrout says he uses gnome ... i don't know what is in gnome ... kppp works well with gnome and kde...

he can launch it from...

internet -- more internet applications---kppp

note ;;; i am using RH 9

OK ?

Moaz
About the Modem Lights : I made the steps , and the Modem Lights asked me : Do you want to connect ?

I clicked on Yes , but nothing happened ! no connection , no sound from the modem , nothing with the telephone line.


and I also tried the wvdial , here is what happened :


[root@localhost desktop]# wvdial

--> WvDial: Internet dialer version 1.53

--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.

--> Initializing modem.

--> Sending: ATZ
ATZOK

--> Modem initialized.

--> Configuration does not specify a valid phone number.

--> Configuration does not specify a valid login name.

--> Configuration does not specify a valid password.



here is a copy of the default config file , I don't know what is wrong with the phone number , I tried a number that doesn't start with zero but nothing happedned also.


[root@localhost desktop]# cat /etc/wvdial.conf

[Modem0]

Modem = /dev/ttyS0

Baud = 57600

SetVolume = 1

Dial Command = ATDT

Init1 = ATZ

FlowControl = Hardware (CRTSCTS)

[Dialer Res]
Username = 11

Password = 1
Phone = 07770100

Stupid Mode = 1

Inherits = Modem0



Hope anyone can help me.

and what is the Stupid mode ? does that mean that the Linux insults me ? :)

habdin
Salamo 3alaikom,

Did you run Internet configuration druid first?

Salam.

Moaz
yes I made the internet config wizard from system tools .

habdin
Salamo 3alaikom,

Moaz, Your wvdial.conf is the reason of that error. Your modem points to /dev/ttyS0. It should point to the actual dev entry in /dev directory. It should point to /dev/ttySHSF0. Correct it and tell us what will happen.

Salam.

Moaz
I changed the device to /dev/modem but it doesn't work . I tried to change this line
[Dialer Res]
===> CHANGED INTO :
[Dialer Defaults]
so the file now is :

[Modem0]
Modem = /dev/modem
Baud = 57600
SetVolume = 1
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
[Dialer Defaults]:confused:
Username = 11
Password = 1
Phone = 07770100
Stupid Mode = 1
Inherits = Modem0

EOF .

The I try wvdial , and it worked ! the modem's speaker is making some lovely sound and the modem lights has turned to

yellow then to green and its timer is counting the time.
But I can't open any site using the Mozilla , it says (can't find ... ) and after seconds the mouse stops its movement !
if you have a quick solution , tell me.
and thank you all for this great help. it is a nice step to get the linux dial a number !

habdin
Salamo 3alaikom,

Since you have made a successful connection, then the problem is your DNS system. I mean that there are no Domain Name system servers defined for your system. That way Mozilla won't find anything typed as names like www.yahoo.com. If you type http://216.109.118.64/ in the address bar you will go to yahoo.com. Note that the Title of the Page (on the Window title bar) will show Yahoo! but your address bar will show the address as the actual IP Yahoo uses. To correct that problem you should type in the actual DNS server the system should use for finding the IP translation of the Name you write in the address bar.

If This is too much complicated, Bel baladi enta mehtag motarguem le mozilla 3ashan ye3raf en www.yahoo.com = the actual IP it should go for and connect to. Elmotarguem daho esmo el DNS. You should put your DNS in /etc/resolv.conf as root

nameserver dns#1 (to be replaced by the first domain name server)
nameserver dns#2 (to be replaced by the second domain name server)

To be a root user (administrator user) in Linux open a terminal (a window that shows a command line prompt like DOS window in Windows). At the prompt type: su and type in the root password then you will become the root user. You can use any console editor or any GUI editor you like to edit /etc/resolv.conf

Note: The terminal in Gnome environment is called "Gnome terminal" and is found either on the Panel or in the Menu/System Tools/Terminal. The terminal in KDE is called Konsole and is more likely to be present on the Panel by default.

There is an alternative GUI tool to do such networking tasks in Redhat which is called "redhat-config-network". Go the Tab called "DNS" add the entries of the first DNS there. and save your work. Now the DNS will be working. After all that work, run the following as root:

/sbin/service network restart (from the console).

Do that and enjoy.

Salam.

Moaz
I tried to enter the IP of yahoo that you sent in the address bar . but it doesn't work.

I think this means that the problem is not in the DNS.

habdin
Salamo 3alaikom,

I am simply out of solutions. Probably we can meet on irc.freenode.net #linux-egypt (even from mIRC on Windows) and help you there to solve your problem.

Till then Salam.

mborn
Assalam Alikum,
hay Moaz? could you solve your problem?
and How?

Max

Moaz
I used kppp and it works well.

mborn
I have tried so, but to no avail.
I have tried the new SM656 motorola PCI modem's kernel posted here by unixman and I could not make it work yet.
I have tried all ttySx and I have tried Kppp and wvdial.
finally I did this:
la -al /dev/modem
and I had sm56 as a result.
but sm56 deos not appear as an option in the kppp list?
so, what should I do now?
Yes, I need help here, and I want someone to guide me (spoon feed me, if it is fine)

I want to leave Windows guys, not an excuse I know, but I really want to leave it.

Max

alaa
get an external serial modem and you'll be kissing windows goodbye.

cheers,
Alaa

mborn
But, there is a driver now for RH 9.0 and some could do it.
I think I will try to make it work for some extra few days.

Thanks for help.

Max

alaa
well exactly the driver is for redhat 9 only which not only is an old version of a non supported distro.

the same thing happened with the original drivers they only worked with a very specific version of the kernel, motorolla users missed out on all kernel updates since then.

this is bound to keep happening with propietary dirvers.

cheers,
Alaa

mborn
no hope then!
OK!

Max

Roberto Ramsis
hello every1
i am having a similar problem
i have mdk9.2,using an external 33.6serial modem on ttyS1
i use kppp.every thing works fine and it connects but i can reach nothing not even irc works ?
i used the same modem on 9.1 and it worked fine,i didnt do the DNS thing?
i tried wvdial but it gives me " Device or resource busy?"
so can any1 help ?
thanks in advance :)

Roberto Ramsis
Hello every1
i just reinstalled my mandy and everything works fine now
and thereś no problems concerning DNS or ports :)
i posting this from linux now
THANKS every1
Byes