Category Archives: FreeBSD

Anything related to FreeBSD

How to forcefully upgrade all your FreeBSD ports using portupgrade

When moving from one major FreeBSD branch to another, you are almost compelled to upgrade all of your installed FreeBSD ports. If you move from the RELENG_7 branch to RELENG_8, as an example, the old pty interface is deprecated, and ports such as screen (sysutils/screen) must be recompiled and reinstalled to take advantage of the new pts interface. Continue reading How to forcefully upgrade all your FreeBSD ports using portupgrade

Oppgraderingstabell for FreeBSD

Jeg tenkte at jeg skulle dele med dere et lite avkrysningsskjema som jeg lagde i formiddag. Det er en god del ting som skal gjøres for hver FreeBSD-maskin i forbindelse med oppgradering. I stedet for å fortsette å bruke Post-It-lapper, så brukte jeg pdfLaTeX og lagde koden for skjemaet som dere ser under. Dersom du vil se hva resultatet blir, så kan du ta en titt på denne PDF-fila. Bon appétit. Continue reading Oppgraderingstabell for FreeBSD

rkhunter complaining about /etc/passwd?

Tell rkhunter to ignore /etc/passwd by inserting EXISTWHITELIST="/etc/passwd" in your rkhunter configuration file. If you prefer not to make this change to your configuration file, make sure you run rkhunter --propupd with the same PATH as given in /etc/crontab. A command like

env -i PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin rkhunter --propupd

should suffice. Thanks to Mr. Torfinn Ingolfsen for his effort to track down this problem.

Minor difficulties with PHP 5.3.5, php-mysql 5.3.5, and MySQL 5.5.8 on FreeBSD 8, now solved

Something was wrong with the combination of PHP 5.3.5, php-mysql 5.3.5, and MySQL 5.5.8 on FreeBSD 8 earlier this month. Any attempt to run the command php -v resulted in PHP hanging after outputting the “Zend line”. Either kill(1) the process or type C-c to put it out of its misery, but neither action is any helpful. Continue reading Minor difficulties with PHP 5.3.5, php-mysql 5.3.5, and MySQL 5.5.8 on FreeBSD 8, now solved

rkhunter 1.3.8 and sockstat on FreeBSD 8.2-PRERELEASE

I upgraded one of my systems to FreeBSD 8.2-PRERELEASE the other day. Next, I upgraded rkhunter to 1.3.8 on the same system. The output of the sockstat command sometimes contains more information than rkhunter is prepared to handle, resulting in different outputs from netstat and sockstat. rkhunter treats this as an infection. Maybe it is. But I have my doubts. Continue reading rkhunter 1.3.8 and sockstat on FreeBSD 8.2-PRERELEASE