OpenBSD

From Review or Discard at Will
Revision as of 06:56, 5 March 2019 by Jeffa (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

configuration notes

from my install experience

smtpd.conf

dovecot configuration

In addition to these articles

add this to /etc/dovecot/conf.d/10-auth.conf NOT in dovecot.conf

passdb {
    args = scheme=blf-crypt /etc/mail/passwd
    driver = passwd-file
}

userdb {
    args = uid=virtmail gid=virtmail home=/var/vmail/%d/%n
    driver = static
}

gd

For gd to work you need to have installed the X sets during install. I hadn't installed them 'cause who needs X in a vm? Apparently gd does. An irc #openbsd user helped me install the sets from tar without resorting to the installation again.

# actually I used lynx not wget... but you get the idea
pkg_add wget
wget https://mirror.esc7.net/pub/OpenBSD/6.2/amd64/x*.tgz
cd ~/sets
tar -C / -xzphf x*.tgz

MediaWiki

SyntaxHighlighting

Needs gd or ImageMagick - see above. I got syntaxhighlight mostly working but am still having trouble with color and line numbers.

This extension won't work in the openbsd httpd environment as it is chroot for the php-fpm.sock as it trys to call out to python from the php...

PHP message: PHP Notice:  Failed to invoke Pygments:  [Called from SyntaxHighlight_GeSHi::highlight in /htdocs ....

Extension:Highlightjs Integration

This just works. Period. There are probably others. It does it with browser javascript. Frankly I don't understand at all why the above extension is a default included with the MediaWiki distribution. All that server side stuff? Calling Python from php? Bleuch!

https://www.mediawiki.org/wiki/Extension:Highlightjs_Integration