rcs
is no longer installed by default - you'll
need to do:pkg install rcs
, then rehash
blacklistd
to
fix this. See Adding firewall on how to fix this.
Sorry, no time to do this right -- just throwing in some gross notes to help jog my memory if I find myself stuck here again...
Dell R710 server, PERC 6, two RAID 5 groups configured for BIOS.
Downloaded 11.1-release ISO, burned CD. (See release 10 howto for CD
burn directions.)
Booted server to CD. During install got some error messages about
unrecoverable media error, sounded like CD was bad. If I wasn't
watching, I might not have seen them, they eventually scrolled off
top. Regardless, install seemed to work just fine.
Got worried about the error messages, burned a new CD from same iso
file, reinstalled, same error messages. Googled, did not find
anything related. Again, install seemed fine, so just went with
it.
See 10.0 install for personal customizations. (Ignore stuff about 'bsdinstall'.) Install 'emacs24'. Skip 'bind99' install (see below).
Note: 'putty' with SSH->X11, select "Enable X11 forwarding" and put ":0.0" in the location box. Don't forget to 'setenv $DISPLAY=localhost:10.0' on the server. I used to use an older ssh client where this would work with localhost set to the client IP addr - this does not work with putty. Oh, btw I had to change to putty as my old client is now rejected by server with errors about old protocols no longer accepted.
'named' is now 'bind' and is no longer installed by default.
Installed that ('pkg install'), started getting bitch messages about
that being too old, please update to BIND911. So moral of this part
of story is to start with BIND911. [20200319 Now BIND914 - no more
TCP_FASTOPEN tweak]
BIND911 now requires some dang kernel tweak or you'll get logspam
something about "TCP_FASTOPEN". Gosub build custom kernel.
[20200319 Note that the service command is still 'named', not 'bind'
as you might expect.]
Summary:
First time only:
pkg install subversion
rehash
svn checkout http://svn.freebsd.org/base/releng/11.1/usr/src
mkdir /root/kernels
cd /usr/src/sys/i386/conf
(Note: YOURSYSTEMNAME is traditionally done in all uppercase. I use
the same name as the DNS name for the box)
cp GENERIC /root/kernels/YOURSYSNAME.i386
ln -s /root/kernels/YOURSYSNAME.i386 YOURSYSNAME
Always:
Edit your file /root/kernels/YOURSYSNAME.i386
Add:
options TCP_RFC7413
Change:
ident GENERIC
to ident YOURSYSTEMNAME
(Note filename will have dot-architecture - ident does not.)
cd /usr/src
(Note: takes a few mins)
make clean
(Note: takes an hour or so)
(Note: change number to YYYYMMDDxx, year, month, day, attempt that day.)
make buildkernel KERNCONF=YOURSYSTEMNAME TARGET=i386 |& tee /root/kernels/20172600buildkernel.log
(Note: takes a few mins)
(Note: kernconf is kernel ident, not filename - no dot architecture)
(Note: output filename changes to "install" - was "build" in previous - as well as date and sequence)
Once you get a successful complete build:
make installkernel KERNCONF=YOURSYSTEMNAME TARGET=i386 |& tee /root/kernels/20172600installkernel.log
All should be ready, you can check that the install happened by
checking the dates on the files in /boot/kernel
and make
sure it's now.
shutdown -r now
If you get an unbootable kernel, at the loader prompt you should be
able to proceed by entering boot kernel.old
.
Once running, check which kernel you actually are running
with uname -v
Edit /var/log/dmesg.today
. Ignore the 6th line where it
gives a path to a GENERIC file - this seems to be the build that the
original files were based upon, as opposed to the actual build time
and date. Search for error
, warning
and not
. Problems still? Google is your friend.
Now do same steps with /var/log/messages
.
Now same steps with /var/log/console
- if this file is
not there, go back to this section in my release 10 install
directions.
I'm getting the same old dang boot error about more swap than
recommended, change maxswzone
that I was getting in
release 10. Tried same stuff as last time, still haven't gotten this
to go away yet, but it doesn't seem to have caused any problems so
will continue to ignore for now. Have spent unbelievable number of
hours googling, rebooting, trying stuff but never got this one
fixed.
And you know what? After all this fucking shit, it still hasn't fixed
the fucking TCP_FASTOPEN error in the fucking console log from the
fucking 'bind' server. Fuck. Fuck. Fuck. Fucking DAYS in the
fucking toilet -- days.
Am also seeing and have not figured out:
module_register_init: MOD_LOAD (vesa, 0xc10123d0, 0) error 19
pcib0: _OSC returned error 0x10
<?
must be changed to
<?php
throughout the script.mysql_connect()
must have a
preceding @
added to supress the "deprecated"
message. Obviously you'll want to change to the new mechanism
when possible, but to immediately and temporarily get the old
script working in the new environment, you can get away with
this.split()
has been deprecated and must be replaced
by "explode()
".php -i
, by the way (appears to) give
you the same info as a script that just says phpinfo();
.
Web searches claimed that it does not show session info - from my
experience, this is false - on my system when the session was broken,
you could do php -i | grep -i session
and get nothing.
Now that the system is working, this will yield a list of some 20-30
values./usr/local/etc/php.ini
file:session.save_path "/tmp/php_sess"
(uncomment out)session.auto_start = 1
(change from 0 to 1)session.save_path
directory.mkdir /tmp/php_sess
chmod 700 /tmp/php_sess
chown www /tmp/php_sess
chgrp wheel /tmp/php_sess
At system boot, I am seeing the following log message:
Starting powerd.
powerd: no cpufreq(4) support -- aborting: No such file or directory
/etc/rc: WARNING: failed to start powerd
My system is a Dell R710. I found the fix
at: (link).
In a nutshell, edit your /boot/device.hints
file. The last two lines in my file were: hint.acpi_throttle.0.disabled="0"
hint.p4tcc.0.disabled="0"