This weekend I replaced Kubuntu 16.04 with FreeBSD 12 on an old HP laptop. I came across with lots of problems, but mainly because I wanted to have some experiences with UEFI and GPT.
Anyway, currently the laptop is running FreeBSD 12-current with i3 as the windows manager. After Firefox was installed, I ran it from the menu (rofi) and nothing appeared. So I ran it from a terminal instead. Here was the output:
% firefox
process 1108: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace
Redirecting call to abort() to mozalloc_abort
zsh: segmentation fault (core dumped) firefox
According to this blog post, a solution is to generate the machine-id file as the following:
# dbus-uuidgen > /var/lib/dbus/machine-id
Once it’s done Firefox should be launched fine. This works, though I’m not sure if there’s any difference between putting machine-id in /etc/ or /var/lib/dbus/machine-id.