Sunday, November 22, 2009  
Google
Web pcquest.com

CIOL Network sites

Search by Issue | Sitemap | Advanced Search

• For most updated version of DQ TOP 20 issue, visit dqindia.com • Ad : Play and Plug ERP by IBM


 
    Enterprise Solutions
    Hands On
    ITstrategy

    Developer

    Tech Forum

    SMB Forum

    Trends

    Shootout

    Reviews
    Editorials
    Linux and Open Source
    Technology
    Extraedge

    IT Careers

    Vertical Focus

Subscribe to Print magazine.


now!


Newsletter

 

Home > Linux > Linux Hands On > Remote Logins


Remote Logins

Configure your Linux server for access through a modem

Vivek Kumar

Friday, September 07, 2001

You are on the move and need to access some files from your office computer. Wouldn’t it be nice to dial up your office server and download the files using FTP? You can do just that with a remote dial-in server running on your organization’s network. In this article, we’ll explain how to configure a remote dial-in server in Red Hat Linux using the PPP protocol.

The first step is to install the modem. Plug in the modem’s serial cable into a spare serial port on your computer. A phone-line should also be connected to your modem. Start Linux and log in as root. You should remain logged in as root throughout the setup process. You should also start the X Windowing system.

Fire up glint, the X interface to the Red Hat Package Manager, and check whether mgetty and PPP packages are installed. mgetty can be found in the Networking/Utilities folder and PPP in the Networking/Daemons folder.

If these packages aren’t installed on your system, mount the PC Quest CD in /mnt/cdrom. Once the CD is mounted, switch over to glint and click on the Available button. Glint should show you a list of available packages arranged in a series of folders. Double click on the Networking folder and then on the Daemons folder. Search for the PPP package, select it and click on the Install button. Glint should now install the PPP package.

Similarly, move to the Networking/Utilities folder, search for the mgetty package and install it.

Okay, now that both PPP and mgetty have been installed, the next step is to configure the two packages. Let’s start with mgetty first. Mgetty is a replacement for the standard Unix getty, capable of handling serial connections. The getty process is responsible for the login prompt and getting the login name from the user. Open up the /etc/inittab file in your favorite text editor and add

V1:2345:respawn:/sbin/mgetty -s 115200 ttyS0

at the end. When Linux starts, the init process goes through this file, looking for processes to execute. The option 2345 tells init to run the mgetty process in the multi-user run levels 2, 3, 4, and 5. The respawn option allows mgetty to restart every time it terminates.

Let’s examine the parameters given to mgetty itself. The parameter "-s 115200" directs mgetty to use the serial port at the highest possible speed, 11,5200 bps. Remember that this is the speed at which the computer communicates with the modem. The modem usually talks to other modems at a lower speed. The last parameter, ttyS0 should be used if your modem is connected to the serial port, COM1. If your modem is on COM2, type ttyS1 instead.

Remember that mgetty will lock the modem for its own use. If you wish to use the server for dialing out, you’ll have to terminate the mgetty process either manually or through some shell scripts.

Since we plan to use Windows Dialup Networking to connect, it makes sense to enable PAP authentication, that way users don’t have to mess with stuff like dial-in scripts.

Edit the file /etc/mgetty+sendfax/login.config, and make sure that the line with "/AutoPPP/" is uncommented, remove the # mark in front of it, and edit it so that it looks like this:

/AutoPPP/ - - /etc/ppp/ppplogin

Save the file.



Page(s)   1   2   3   

End of the article

PC Problems? Get a solution in 24 hours. Ask Tech Expert

Related CIOL links   External links  

--None--

 

none



Read Previous Linux Hands On...

   




Untitled Document



ZTE:Leading CDMA Technology


Extraordinary Networks:Freedom of Choice





Previous Stories

MagicPoint

File Associations in Linux

Linux File and Print Server

Message boards

Discuss this and many other IT topics at the
CIOL message board



   
 

 
 

Magazine Subscription | RQS | Contact Us | Team PCQuest | Advertising - Print | jobs@cybermedia