   Linux simple fax printer server mini-HOWTO (faxsrv-
  mini-HOWTO)
  Erez Strauss <erez@newplaces.com> <mailto:Erez Strauss
  <erez@newplaces.com>>
  v1.0, 8  1997

  [1m . [22m   .  A o  
          
       (fax server)     Linux
   .  T         host
       .
  ______________________________________________________________________

  Table of Contents


  1. 

  2.  & 

     2.1     / ;
     2.2     ;
        2.2.1    
        2.2.2     printcap.
        2.2.3    (fax)
        2.2.4   /usr/bin/fax.
        2.2.5   /var/spool/fax.
        2.2.6    (lock file).
        2.2.7    /dev/modem.
        2.2.8  
     2.3   ,   server;
     2.4         ?
     2.5      Unixes   ?
     2.6 Caldera,    LPRng

  3.  ,    .



  ______________________________________________________________________

  [1m1.  [0m

         /,   Linux,
      fax modem    .

           
  .           
            .  
       Ed Casas <edc@cce.com>.

        Q&A


  [1m2.   & [0m

  [1m2.1.      / ;[0m

    /    
   :  ,    ,
            
             
  .



  [1m2.2.      ;[0m

         /
        , 
          -HOWTO.   
      <erez@newplaces.com>.   , 
         :


  [1m2.2.1.     [0m

            .

      RPM    'rpm -qv efax'.

            tar.gz
  format   sunsite:
  ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz 
   rpm    :
  ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm

  [1m2.2.2.      printcap.[0m

          :    
    printcap.

  :      /etc/printcap :



       fax:\
               :lp=/dev/null:\
               :sd=/var/spool/fax:\
               :if=/usr/bin/faxlpr:





  [1m2.2.3.     (fax)[0m

   hard link     (soft link) 
   .

    :


       ln /usr/bin/fax /usr/bin/faxlpr





  [1m2.2.4.    /usr/bin/fax.[0m

     /usr/bin/fax  :

     Fax Class   :


       CLASS=2.0




    FROM="your international phone number" 
       NAME="Your Name"




           
        :


       TELCVT='sed -e s/+972/0/ -e s/+/00/'  # Israel




         586,   cfile=...
      :



       cfile=`/usr/bin/tail -1 lock`
       cfile=`cat $cfile`




    586,587      '-' , 
  :



       0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;;
       *) echo "$l" | mail -s "fax to $num failed   " $user@$host ;;





  [1m2.2.5.    /var/spool/fax.[0m

     /var/spool/fax


       mkdir /var/spool/fax
       chmod 777 /var/spool/fax





  [1m2.2.6.     (lock file).[0m

     (/var/spool/fax/lock)   
   ,       
   :



       touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock








  [1m2.2.7.     /dev/modem.[0m

          (real
  device file)  /dev/modem       
  link,          
  (major)   (minor) ,   /dev/cua? 
     .       mode  rw-rw-
  rw-           .



       ls -lL /dev/modem
       rm /dev/modem
       mknod /dev/modem c Mj Mi
       chmod 666 /dev/modem




   Mj  5,   Mi  64   cua0, 65   cua1 ...
    (  cua1):



       mknod /dev/modem c 5 65





  [1m2.2.8.    /var/lock .[0m

    mode   /var/lock



       chmod 1777 /var/lock






  [1m2.3.    ,   server;[0m

       /  
   -P    -J     .

        lpr:



        lpr -Pfax -J <Fax-Number> [file-names]
        any command | lpr -Pfax -J <Fax-Number>





  [1m2.4.          ?[0m

      -J.




  [1m2.5.       Unixes   ?[0m

         /etc/printcap  
  client Linux ,    spool directory, 
    ...



       fax:\
               :sd=/var/spool/fax:\
               :mx#0:\
               :sh:\
               :rm=host.domain:\
               :rp=fax:




      client hosts   /etc/hosts.lpd   
      .


     .


  :

            
               .
  (  ).

  [1m2.6.  Caldera,    LPRng[0m

      LPRng   
         .

    Luca Montecchiani <m.luca@usa.net>,    
      .       
  /usr/bin/fax.          
   [1mcfile=...[22m>,   586,587



       # Modified to work also with the LPRng package
       # Luca Montecchiani (08/11/97 m.luca@usa.net)
       if [ !-z "$CONTROL_FILE" ]
           then
               cfile=`cat tail -1 lock`
               cfile=`cat $cfile`
           else
               cfile=$CONTROL_FILE
       fi






  [1m3.   ,    .[0m


   , , ,    
     HOWTO,  email    :
  voulariba@hellug.gr     : evris@hellug.gr 
   : ep@rocketmail.com

           World Wide Web
   URLs



       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml
       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html
       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt
       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info





      


       Erez Strauss
       erez@newplaces.com
       http://www.newplaces.com/linux/
       http://www.newplaces.com/
       : +972 52 739737
       :  +972 9 954 3034











































