You are here

Blogs

Ivan Radovanovic's picture

Unbound without DNSSEC on FreeBSD 10

After initial installation according to instructions in handbook, you have to edit /var/unbound/unbound.conf and to add module-config: "iterator" to server section there, so it looks similar to

server:
username: unbound
directory: /var/unbound
chroot: /var/unbound
pidfile: /var/run/local_unbound.pid
auto-trust-anchor-file: /var/unbound/root.key

Ivan Radovanovic's picture

Useful one-liner for building template git comment

Goes like this:
git status | grep modified: | awk 'BEGIN {FS="[ \t]+modified:[ \t]+";print "Change summary\n";} {print "* " $2 "\t\n";}'

Sample output:

Change summary

* include/Application.hpp

* include/fengine.hpp

* nginx.sh

* samples/if.ftx

* src/fEngine/compiling/Compiler.cpp

* src/fEngine/compiling/Compiling.cpp

* src/fEngine/f/Alt.cpp

* src/fEngine/f/BuiltInTag.cpp

* src/fEngine/f/Case.cpp

* src/fEngine/f/CodeGenerator.cpp

Ivan Radovanovic's picture

Unzip multivolume zip file on FreeBSD

It can be done with port installed, but first multivolume zip has to be converted to single volume zip file.

First run
zip -FF path-to-multivolume-zip --out path-to-singlezip
to convert to single volume, then you can unzip that one as usual.

Ivan Radovanovic's picture

How to find out which preprocessor symbols are defined for C/C++ compiler

Run compiler with arguments -dM -E -xc++ /dev/null. (-x specifies language, so if you want to see predefined symbols for C, you should use -xc instead of -xc++).

For example:
clang -dM -E -xc++ /dev/null

or
gcc -dM -E -xc++ /dev/null

Ivan Radovanovic's picture

Configuring web server with intermediate SSL certificates

If you received intermediate certificates and you need to install them you should simply concatenate them in one file in reversed trust delegating order. So if trust is delegated like this:

root -> intermediate1 -> intermediate2 -> your-site

in pem file certificates should be in this order:

Ivan Radovanovic's picture

Site with nice pictures

Barenova - nice pictures.

Ivan Radovanovic's picture

When USB devices don't run properly in VirtualBox guest

Since FreeBSD is not officially supported by Oracle, they don't make extension pack for it. For this reason all USB 2 and later devices will most likely fail in guest operating systems with weird errors (devices are recognized but they do not work later). Workaround for this is to force device to 1.1 within host operating system and only then to use them in guest OS. To accomplish this:
- disconnect device
- execute sysctl hw.usb.ehci.no_hs=1 as root
- connect device
- map it inside VirtualBox for guest OS to see

Ivan Radovanovic's picture

Making GNOME 3 usable under FreeBSD

As usable as it could be after their developers got infected by that brain parasite (it is funny how functionality-wise pretty much everything is done in wrong way).

Plugins needed/enabled:

Ivan Radovanovic's picture

Script to clean ports

Since make clean seems not to work properly anymore

#!/bin/sh

cd /usr/ports

for port in `find . -name work -type d | sed -E -e 's/\/work.*$//'`
do
cd /usr/ports/$port
make clean
done

Ivan Radovanovic's picture

Running Cinnamon on FreeBSD 10

If it fails to start complaining that it can't find any theme install x11-wm/metacity

Pages

Subscribe to RSS - blogs