This is a simple script to install the Obsidian application on a FreeBSD workstation.
This project borrows heavily from the linux-browser-install repository and works in conjunction with the browsers installed by it.
# ./ob-installer install
/usr/local/bin/linux-obsidian
# ./ob-installer deinstall
# ./ob-installer chroot delete
If you remove the chroot, you'll have to go through the entire install sequence again if you want to reinstall.
If you recieve an error similiar to the following
An error occurred while loading Obsidian. Error: EBADF: bad file descriptor, watch `/directory/obsidianvault`
Likely you don't have the linux_libbsd kernel module running.
# kldstat -n linux_libbsd
kldstat: can't find file linux_libbsd: No such file or directory
If linux_libbsd is missing, load it and set your system to load it at boot with sysrc.
# kldload linux_libbsd
# sysrc kld_load+=linux_libbsd
If you encounter any problems with this installer script please let me know by creating Issues or Pull Requests on this github repository.
Obsidian utilizes Linux's inotify file event notification system in its core functionality. Since FreeBSD's Linuxulator doesn't emulate inotify, Obsidian will not run on Linuxulator out of the box.
To emulate inotify with FreeBSD, a number of steps are required:
The ob-installer script does each of these steps for you.
Using ob-installer to install Obsidian makes the following changes to your system (it's very simililar to the Chrome installation)
Obsidian seems to work best with an Ubuntu chroot image that as far as I'm aware is unsupported within ports. I made an effort to get Obsidian working with the CentOS 7 chroot environment already in ports to no avail.
I have only used POSIX filesystem compatible syncing software with Obsidian on FreeBSD, specifically syncthing. I do not know if the Obsidian Sync service works or not. Please let me know the status if you get a chance to test it.