Installation
February 4, 2023 · View on GitHub
-
Read the notes in the
Makefile
-
Edit the area marked
configurable stuff
-
Adjust the marked area in
config.h
-
Also take a look at
pathnames.h
-
Ensure you have a
/vardirectory or
a/usr/varfolder 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
-
Unless you adjust your
Makefile, you will also need:-
/usr/local/etc
-/usr/local/binThese will have to be created by hand.
-
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.hon some Linux systems
shows_PATH_SENDMAILto be/usr/bin/sendmail
even thoughsendmailis installed in/usr/libYou should check this out.
-
Built the binary with:
make all
-
Install the built program:
su make installNote 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/crontabfile into small pieces.
» Check the conversion guide.
Examples
crontab -u uucp -r /usr/lib/uucp/crontab.srccrontab -u news -r /usr/lib/news/crontab.srccrontab -u root -r /usr/adm/crontab.src
Notes
① While installing a config with
crontab -rit'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
-uoption 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
-ris used to replace specified configurable.
-
Kill your existing Cron daemon:
ps aux # Look for /etc/cron
-
Find and comment out any lines starting with
/etc/cronin/etc/rc//etc/rc.localInsert a new line starting your Cron daemon,
usually/usr/local/etc/cron➔Makefile
-
The Cron daemon is started and automatically forked with:
/usr/local/etc/cron # Adjust to the path your Cron's pathNote For those people unfortunate enough to be stuck on a
AT&T UNIX, you will need the public-domainlibndir, found
in the B News source and in anycomp.sources.unixarchive.You will also need to hack the code some.