Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Internet in Linux

Posted on 1998-03-10
Medium Priority
Last Modified: 2013-12-06
Im using RedHat 4.2 and want to know how to get on the internet in it. Im very new linux. Please do not send me any urls to FAQ's or anything. I have read them. They have not helped. I just want someone to walk me through how to do it. I have messed around with minicom a little, but i have no idea how to use it. thanks
Question by:Vickio

Expert Comment

ID: 1636686
First of all, make sure that PPP support is compiled in with your kernel.  Read the README in /usr/src/linux.  Skip past all of the stuff about installing you source, and go to the "make config" part.  If you are running X, I suggest "make xconfig", otherwise use make menuconfig.  Under the networking section, make sure that PPP support and all of the necessary other stuff will be compiled in, then recompile the kernel as it says in the rest of the README.  That will get you started.  Also, if you have a Plug and Play modem, you are most likely out of luck, as linux does not currently support Plug and Play modems.

Expert Comment

ID: 1636687
First step is to get RED HAT 5.0 linux go to www.linuxmall.com they will send you free cd-rom then boot from cd-rom and chose to upgrade then logon as root and start x-window (startx) there is network option that will let you add ppp just chose add ppp you will be asked for phone number and user id

Expert Comment

ID: 1636688
If you have pnp modem then in bios set os as non pnp and it will asign modem to com port
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Author Comment

ID: 1636689
i want to keep redhat 4.2
i think the problem is i just don't have any clue what im doing?
if someone could just explain how you normally connect to the internet. im used to windows 95..


Accepted Solution

frowijn earned 300 total points
ID: 1636690
Go to the /usr/doc/ppp-1??? (something like that)/scripts

copy the files to /etc/ppp wich exists already

go to the /etc/ppp
edit the file ppp-on
type before yout name a capital P like : Puser

adjust password and phonenumber and and save the file, check by the way on what port your modem stands, com1 = cua0, com2 = cua1 etc.

save settings and launch with


then type route del default
type route add default ppp0

type ifconfig (when you see a link called ppp0), you're connected, to quit connection just turn off your modem or type ./ppp-off

have fun !

Oscar Frowijn

Expert Comment

ID: 1636691
Listen, there are many ways to connect to your isp, usually i did the above, you can also use minicom (after setting it up), but minicom is just a teminal program, while with the ppp-script you can with a ppp-connection and set up your tcp route to the isp server !


Try using minicom -s (option) to adjust the settings of minicom itself, go to modem setup and change you /dev/modem into /dev/cua0 to cua4 (you have to figure that one out yourself) or if it's a external modem use ttyS0 to ttyS4, then save the file as dfl and exit minicom

start minicom anew and when you are prompted type ATDT (isp phonenumber) to connect !


Expert Comment

ID: 1636692
The following can be used to connect to ISP via Linux:

1. Make Sure that you have the two programs 'pppd' and 'chat' by doing a 'whereis <file name>' command on both of these.
2. Then run the program that is called 'netconfig'. This program will ask such questions such as hostname, ip address
(input for dynamic), your subnet mask, and the nameserver (only asks for one, but you can put in other ones later).

3. After you run netconfig you must create an options file and a connection script. Both of these files go in the /etc/ppp
directory. The first file is called options, here is an example:

#!/bin/sh /dev/cua1 (cua1 = COM2 in DOS, cua0 = COM1 in DOS and so on....)
38400 (put the speed here)
connect /etc/ppp/isp-connect (the name of the ISPs Linux connection script)
crtscts (hardware flow control)
defaultroute (routing option)
if you have a static ip address then put it here followed by a ':'

Save this file as options in the /etc/ppp/ directory. The next file is called 'isp-connect' and should be placed
within the /etc/ppp directory and saved as /etc/ppp/earthlink-connect. Here is an example:

/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' "" ATZ OK
ATDT<telephone number> CONNECT \r ogin: <username> ssword:

Save this file as /etc/ppp/connect-earthlink and set the file permission of this 'connect-isp' file to 755 'chmod

4. After the creation of these two file you might want to create a little program that will alert you when you are
connected and disconnected in X Windows. (This is optional). If you create two files ('ip-up' & 'ip-down') in /etc/ppp and
set the file permissions of those to 755, they will give you a little warning messages in X Windows.

xmessage -center "Connection Established."
xmessage -center "Connection down."

5. Alter the resolv.conf file in /etc to say:
domain isp.net    (isp should be the name of your ISP)

This will enhance your Linux viewing performance.

6. Finally, to connect to your ISP, you need to type 'pppd' and wait for it to dial and then periodically check the
'ifconfig' function to see if ppp0 shows up as a network protocol. Another way to see what happens is to type 'less
/var/adm/messages' and go to the end and see if it gives you the message of local IP and remote IP, this is when you're



Expert Comment

ID: 1636693
Make sure wherever it says "isp" or "earthlink" to put your ISPs name

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question