home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / doc / HOWTO / mini / ISP-Connectivity < prev    next >
Text File  |  1997-10-13  |  9KB  |  247 lines

  1.  
  2.                           THE ISP CONNECTIVITY HOWTO
  3.                                        
  4.    _Michael Strates, Michael_Strates@apana.org.au
  5.    v1.0, 30 August 1997
  6.    _
  7.    
  8.    This document describes how to integrate your Linux computer, and take
  9.    advantage of your temporary internet connection. If you follow this
  10.    document correctly, you will have Mail and News working well.
  11.    
  12.     1. Introduction
  13.     
  14.    
  15.    
  16.    The main goal of this document is to address some of the problems
  17.    people face when connecting their Linux box up to a temporary Internet
  18.    Connection. Hopefully with the advent of this document, it will
  19.    prevent people's postings about this subject.
  20.    
  21.    This document isn't meant to supersede any other HOWTO, it should be
  22.    used in conjunction with them.
  23.    
  24.     1.1. New versions of this document
  25.     
  26.    
  27.    
  28.    New versions of this document will be periodically posted to
  29.    comp.os.linux.announce, comp.answers, and news.answers. They will also
  30.    be added to various anonymous FTP sites who archive such information,
  31.    including SunSite (sunsite.unc.edu:/pub/Linux/docs/HOWTO).
  32.    
  33.    In addition to these sites, you'll also be able to find this HOWTO on
  34.    the Web at http://sunsite.unc.edu/mdw/linux.html.
  35.    
  36.     1.2. Feedback
  37.     
  38.    
  39.    
  40.    I welcome any feedback about this HOWTO, either positive or negative
  41.    via electronic mail. Naturally, I'd be happy to hear from you if you
  42.    have found any errors, or omissions.
  43.    
  44.    Flames will go quietly to /dev/null so don't even bother! :-)
  45.    
  46.     1.3. Copyright Information
  47.     
  48.    
  49.    
  50.    The ISP-Connectivity-HOWTO is copyrighted (c)1997 Michael Strates.
  51.    
  52.    A verbatim copy may be reproduced or distributed in any medium
  53.    physical or electronic without permission of the author. Translations
  54.    are similarly permitted without express permission if it includes a
  55.    notice on who translated it.
  56.    
  57.    Short quotes may be used without prior consent by the author.
  58.    Derivative work and partial distributions of the
  59.    ISP-Connectivity-HOWTO must be accompanied with either a verbatim copy
  60.    or a pointer to the verbatim copy.
  61.    
  62.    Commercial redistribution is allowed and encouraged; however, the
  63.    author would appreciate being notified of any such distributions (as a
  64.    courtesy).
  65.    
  66.    In short, we wish to promote dissemination of this information through
  67.    as many channels as possible. However, we do wish to retain copyright
  68.    on the HOWTO documents.
  69.    
  70.    We further want that ALL information provided in the HOWTOS is
  71.    desseminated. If you have any questions, please contact Greg Hankins,
  72.    the Linux HOWTO coordinator, at gregh@sunsite.unc.edu.
  73.    
  74.     1.4. Standard Disclaimer
  75.     
  76.    
  77.    
  78.    Naturally, I disavow any potentional liability resulting of the direct
  79.    or indirect use of any information contained in this document. Use it
  80.    at your own risk only. I present this in a hope to help people, but if
  81.    something seriously goes wrong, then I'm not to blame.
  82.    
  83.     1.5. Other Sources of Information
  84.     
  85.    
  86.    
  87.    * The other Linux HOWTO Documents and LDP Manuals
  88.    * UseNet Groups
  89.    * and some of the very informative O'Riley Books
  90.    
  91.     2. Connecting up to the ISP
  92.     
  93.    
  94.    
  95.    Connecting up hasn't got much to do with this HOWTO. There are a few
  96.    good HOWTOs out there to help you with this, mainly the PPP-HOWTO, and
  97.    the ISP-Hookup HOWTO. With this said, it is assumed you have a working
  98.    PPP or SLIP connection to the Internet.
  99.    
  100.     3. Fetching Your Mail
  101.     
  102.    
  103.    
  104.    One of the most important aspects of the Internet is e-mail. Instead
  105.    of telnetting to your ISP, you can download mail locally. There are a
  106.    number of methods that we'll address here.
  107.    
  108.     3.1 FTPing Your Mail
  109.     
  110.    
  111.    
  112.    If your ISP runs a form of UNIX, you can simply FTP onto the server
  113.    using your login and password, change directory over to
  114.    /var/spool/mail, get your mail, and replace the
  115.    /var/spool/mail/username with a template empty one. Usually you'll
  116.    type:
  117.    
  118.    ftp sitename
  119.    Sitename FTP Server (wakkko-serv wver 1.0)
  120.    username: john
  121.    password: pass
  122.    ftp> cd /var/spool/mail
  123.    ftp> get john
  124.    ftp> cp ~/empty-mail-template john
  125.    ftp> exit
  126.    $ cat john >>/var/spool/mail/john
  127.    $ rm john
  128.    
  129.    and he'll be laughing, but sometimes this inconvenient. Hence the
  130.    Fetchmail method comes into action and is way more reliable.
  131.    
  132.     3.2 Enter Fetchmail
  133.     
  134.    
  135.    
  136.    Fetchmail is a program that fetches your e-mail using POP, deletes
  137.    your mail from the server, and places the new mail into your local
  138.    mail spool. It's quite easy to use, and is the perferred option for
  139.    most people. To automate Fetchmail, you use an rc file in your home
  140.    directory, ` .fetchmailrc '.
  141.    
  142.    The basic format of the .fetchmailrc file is outlined below...
  143.    
  144.    ### basic .fetchmailrc
  145.    poll mail.yourisp.com proto pop3 user login_name password your_passwd
  146.    user login_name with pass your_passwd is your_local_login here
  147.    ### end
  148.    
  149.    Replace the tokens with real information, and place the file in your
  150.    home directory. You should now be able to start fetchmail.
  151.    
  152.    There are two main ways to start fetchmail, one is in its normal form,
  153.    and the second is daemon. Daemon works in the background as a job and
  154.    polls for mail at your user defined interval. The other option is if
  155.    you wish to fetch only unread messages, or the whole lot of them.
  156.    We'll explain how to implement these options below...
  157.    
  158.    fetchmail -a -d
  159.    
  160.    -a is the fetch all mail option, default is off
  161.    -d is the daemon option, after the -d is the seconds between polls
  162.    
  163.    for example, I might want to setup Fetchmail in daemon mode, to poll
  164.    for mail every minute, and fetch all mail.
  165.    
  166.    fetchmail -a -d60
  167.    
  168.    For more information on Fetchmail, read it's manual page.
  169.    
  170.     4.0 Pine
  171.     
  172.    
  173.    
  174.    The rest of the file will be dedicated to Pine, an interactive mail
  175.    and newsreader for UNIX. For more information, and to download Pine,
  176.    go to http://cac.washington.edu/pine.
  177.    
  178.    
  179.    
  180.     4.1 Sending Mail
  181.     
  182.    
  183.    
  184.    Open up Pine, and choose Setup - Configuration. Setup your userdomain
  185.    as the domain in your e-mail address. For example, a fictional e-mail
  186.    address would be `johnston@slownnet.com'. So, I setup the User Domain
  187.    as slownet.com. Then we move down to smtp-server. This is the server
  188.    which you use when sending mail outwards. Fetchmail will handle all
  189.    inbound mail, but today we'll use Pine to handle outbound stuffs. So,
  190.    I enter my POP server's name into that box, which in my case would be
  191.    mail.slownet.com.
  192.    
  193.    You should now have working mail and news on your system. The only
  194.    catch here is that your local login name must corospond to the name
  195.    you use on your e-mail address. So, johnston's login will have to be
  196.    johnston on his local machine as well. To many, this shouldn't pose
  197.    much of a problem.
  198.    
  199.     4.2 Posting/Reading News
  200.     
  201.    
  202.    
  203.    Usually, while you're online you'll want to browse and post news. If
  204.    you wish to download news for later browsing, you might be better off
  205.    going to read the Tiny-News mini-howto. It describes howto setup a
  206.    small news spool containing only the newsgroups you need.
  207.    
  208.    Remember, if you follow these instructions you'll only be able to
  209.    browse news whilst online.
  210.    
  211.    Open up Setup, Configuration in Pine. Move down to nntp-server. Change
  212.    the default setting over to the name of your ISP's news server. In my
  213.    case, it was news.slownet.com.
  214.    
  215.    News should now be working.
  216.    
  217.     5. Customizing Things
  218.     
  219.    
  220.    
  221.    Now that we have everything working, it's time to customize your
  222.    newsgroup layout and the likes. So, let's begin by taking up your
  223.    Internet connection by whatever means you use, and ping your ISP and
  224.    ensure that it's working. Now, open up Pine. Go to Folder List (L),
  225.    then down to News Collection. Press enter to see the expanded list,
  226.    and type A to subscribe. Control-T to see all groups, and after a few
  227.    minutes (took me 5 minutes), you'll have a listing of all the
  228.    newsgroups you can subscribe to. Subscribe to the ones that you need,
  229.    and exit out of Pine.
  230.    
  231.     6. Everything Should be Working
  232.     
  233.    
  234.    
  235.    Now, whenever you login and you're on the 'net, type in:
  236.    
  237.    $ fetchmail -a -d60
  238.    $
  239.    
  240.    and you'll soon start receiving mail. And when your finished on the
  241.    'net, just before you bring your connection down, type in:
  242.    
  243.    $ fetchmail -q
  244.    
  245.    So there you have it folks, a perfectly working Internet Mail/News for
  246.    the temporary people.
  247.