Go Premium for a chance to win a PS4. Enter to Win


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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.


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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

963 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