Official FreeBSD support?

Use case or problem

I use FreeBSD as my main OS, so not having an easy way to install Obsidian on FreeBSD is a deal breaker for me.

Proposed solution

Compile Obsidian for FreeBSD and create a .pkg package.

The FreeBSD porter’s handbook, esp. chapter 3, provides documentation for creating FreeBSD packages.

Current workaround

I have seen threads where people propose using the Linux compatibility layer. However, that is not something I want to rely on with my notes.

3 Likes

Can’t you use an AppImage? There is one for Obsidian.

This is unlikely to happen but some user can attempt to build a third-party package like the Arch or Flatpack ones.

I use FreeBSD too, it would be great to have obsidian available throught binary packages.

FreeBSD is my daily driver as well. I am currently watching an internal presentation on Obsidian and would love to use it natively.

I have created a port for Obsidian: freebsd-ports/Makefile at main · freebsd/freebsd-ports · GitHub

It will not be available for installing via pkg install, though, because its license doesn’t allow redistribution. Leave a +1 in this thread: Consider allowing redistribution in the EULA

Since you’ll have to install it from Ports, see the comment at the top of Makefile for instructions on how to avoid compiling most of the dependencies by hand.

4 Likes

Great work !!!
It works on GhostBsd too
Thank’s

The FreeBSD ports works great, thanks @arrowd!
Still it would be really cool to be able to install a bit more easily, would be nice if the Obsidian team could consider the request relating to allowing the redistribution in the EULA.

I’m not having any luck with this. I’m very new to FreeBSD, so I’m sure I’m doing something wrong. I was getting an error: pkg: No packages available to install matching 'electron' have been found in the repositories. I installed electron30 and still got the error. So I skipped the first step listed in the Makefile and just ran make USE_PACKAGE_DEPENDS_ONLY=yes install clean. The make process started and died with:

pkg-static: Unable to access file /usr/ports/textproc/obsidian/work/stage/usr/local/share/obsidian/chromedriver:No such file or directory
pkg-static: Unable to access file /usr/ports/textproc/obsidian/work/stage/usr/local/share/obsidian/libvulkan.so:No such file or directory
*** Error code 1

There is no “chromedriver” in the directory, but there is “libvulkan.so.1”. @gwarf, I see that you used this just a few months ago. How did you do it?

I’ve used Linux for many years, so I’m not a total stranger to *nix. As I said, FreeBSD is quite new to me, but I’m learning. Any help is appreciated. Thanks in advance.

Try updating your ports. Electron version is now 30. Previously was 25.

# git -C /usr/ports pull

Try this,

#pkg install electron30
#cd <PORTSDIR>/textproc/obsidian
#make USE_PACKAGE_DEPENDS_ONLY=yes install clean

Just tried the above in FreeBSD 14.1