Before you can establish a PPP connection with a server, you need to obtain the following information (from the sysadmin/user support people of the PPP server):-
Carefully note down this information - you are going to use it!
You should make sure that your modem is correctly set up and that you know which serial port it is connected to.
Remember:-
Using you terminal communications package (such as minicom), dial into the PPP server you want to connect to with a PPP session.
(Note: at this stage we are NOT trying to make a PPP connection - just establishing that we have the right phone number and also to find out exactly what the server sends to us in order to get logged in and start PPP).
During this process, either capture (log to a file) the entire login process or carefully (very carefully) write down exactly what prompts the remote server gives to let you know it is time to enter your user name and password (and any other commands needed to establish the PPP connection).
It is worth dialing in at least twice - some servers change their prompts (e.g. with the time!) every time you log in. The two critical prompts your Linux box needs to be able to identify every time you dial in are:-
If you have to issue a command to start PPP on the server, you will also need to find out the prompt the server gives you once you are logged in.
If your server automatically starts PPP, once you have logged in, you will start to see garbage on your screen - this is the PPP server sending your machine information to start up and configure the PPP connection.
This should look something like this :-
~y}#.!}!}!} }8}!}$}%U}"}&} } } } }%}& ...}'}"}(}"} .~~y}
(and it just keeps on coming!)
At this point, you can hang up your modem (usually, type +++ quickly and then issue the ATHO command once your modem responds with OK).
On some systems PPP must be explicitly started on the server. This is usually because the server has been set up to allow PPP logins and shell logins using the same username/password pair. If this is the case, issue this command once you have logged in. Again, you will see the garbage as the server end of the PPP connection starts up - so you can now hang up.
If you do NOT see the garbage on your screen when the server starts up PPP, it is quite likely (though not certain) that you have done something wrong.
Notwithstanding this, some PPP servers are set up to be passive - they send nothing until the client (your computer) starts the PPP process from your end.
However, the majority of servers are active and you should see the garbage.
If you can't get your modem to work, read your modem manual, the man pages for your communications software and the Serial HOWTO! Once you have this sorted out, carry on as above.