To ensure that system messages go into a file where they can be seen
from anywhere, you'll need to configure syslogd
. Find
the following block in /etc/syslog.conf
# uncomment this to log all writes to /dev/console to /var/log/console.log
On default install, the 2nd line is commented out -- remove the "#".
console.info /var/log/console.log
Now, here's the part that's easy to miss -- by
default, syslogd
will not create a new file -- you must
either:
syslogd
the -C
command line
switch which will override this behaviour and force it to create any
necessary files.
cd /var/log
touch console.log
ls -l
Check for permissions the same as other .log files, on mine it's 644/root/wheel.
syslogd
to re-read config file:
ps ax | grep syslogd
kill -HUP {pid of syslogd}
If you do this from the console, and getsyslogd: /var/log/console.log: No such file or directory
maillog
, imapd.log
, others. If so,
you must recreate all of them using touch
as above.
[20200316]
I have a cron entry as root to open
the console.log
, maillog
,
and auth.log
files for group read so that I don't have
to log in as superuser to display them. I also have anightly
snapshot of the maillog, but I don't recall right now why.
pkg_add -r xorg
adduser
mikel
setenv DISPLAY localhost:10.0
xterm -bg black -fg white -name {whatever}&
/etc/group
, add ,mikel
to first line wheel
.
pkg_add -r emacs-nox11
rehash
pkg_add -r apache+mod_ssl
/etc/rc.conf
: apache_enable="YES"
/usr/local/etc/rc.d/apache start
/boot/loader.rc
chmod 644
first.)accf_http_load="YES"
apachectl stop
apachectl start
perl -v
pkg_add -r php5
rehash
make config
make install
php -v
ps ax | grep sendmail
pkg_add -r p5-Mail-SpamAssassin
rehash
sa-update
spamassassin --lint
perl -MCPAN -e "install Google::Voice"
perl -MCPAN -e "install Device::ParallelPort"
/usr/local/etc/apache22/http.conf
DocumentRoot
and the following <Directory ...> with the matching dir path (is probably /usr/local/apache22/data
, change to /web
dir)Include extra/http-userdir.conf
public_html
dir to simply html
yet to go...
.m4 file for sendmail config
add milter rules to m4 file for rbl and spamassassin
bring across other mail files, e.g. virtusertable, virt-domains
bring across users (/etc/passwd)
add /home dirs/links
bring across groups (/etc/groups)
bring across /web dir
bring across apache virt config