Skip to content

Latest commit

 

History

History
171 lines (112 loc) · 4.19 KB

Installation.md

File metadata and controls

171 lines (112 loc) · 4.19 KB

Installation



  1. Read the notes in the  Makefile


  2. Edit the area marked  configurable stuff


  3. Adjust the marked area in  config.h


  4. Also take a look at  pathnames.h


  5. Ensure you have a  /var  directory or
    a  /usr/var  folder that is linked to it.

    # Creates the /var directory
    mkdir /var
    # Creates the /usr/var folder & links it
    mkdir /usr/var
    ln -s /usr/var /var

  6. Unless you adjust your  Makefile,  you will also need:

    -   /usr/local/etc
    -   /usr/local/bin

    These will have to be created by hand.


  7. I keep my Man Pages at  /usr/local/man , however since
    you probably won't have the source files, this might not apply.

    Therefore you may have to put the man pages into  /usr/man/manl ,
    which will be hard since this will cause name collisions to occur.

    Note that the man command was originally written by Bill Joy
    before he left Berkeley, and it contains no AT&T code, so it is in
    UUNET's archive of freely-distributable BSD code.

    Note
    /usr/include/paths.h  on some Linux systems
    shows  _PATH_SENDMAIL  to be  /usr/bin/sendmail
    even though  sendmail  is installed in  /usr/lib

    You should check this out.


  1. Built the binary with:

    make all

  2. Install the built program:

    su
    make install

    Note that if I can get you to 'su and say' something just
    by asking, you have a very serious security problem on
    your system and you should look into it.

    Edit your  /usr/lib/crontab  file into small pieces.
    » Check the conversion guide.


    Examples

    crontab -u uucp -r /usr/lib/uucp/crontab.src
    crontab -u news -r /usr/lib/news/crontab.src
    crontab -u root -r /usr/adm/crontab.src

    Notes

      While installing a config with  crontab -r  it's content is copied,
         this means that any changes to the file won't affect the installed
         CronTab until re-installing it.

      If no user is specified, the one executing the command will be used.

         The  -u  option requires root permissions, however on most
         BSD system being the super user will not automatically make
         CronTab think of you as root, so still specify the user.

      The  -r  is used to replace specified configurable.


  3. Kill your existing Cron daemon:

    ps aux  #  Look for /etc/cron

  4. Find and comment out any lines starting with
    /etc/cron  in  /etc/rc  /  /etc/rc.local

    Insert a new line starting your Cron daemon,
    usually  /usr/local/etc/cron ➔ Makefile


  5. The Cron daemon is started and automatically forked with:

    /usr/local/etc/cron  #  Adjust to the path your Cron's path 

    Note For those people unfortunate enough to be stuck on a
    AT&T UNIX, you will need the public-domain libndir, found
    in the B News source and in any comp.sources.unix archive.

    You will also need to hack the code some.