jgrafton / freebsd-obsidian

Attempt at running Obsidian on FreeBSD
BSD 3-Clause "New" or "Revised" License
18 stars 1 forks source link

freebsd-obsidian

Obsidian on FreeBSD

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.

Requirements:

Quick Start

install

# ./ob-installer install

run

/usr/local/bin/linux-obsidian

deinstall

# ./ob-installer deinstall

remove Ubuntu chroot completely

# ./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.

Errors

If you recieve an error similiar to the following No linux_libbsd

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.

Notes

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.

System modifications

Using ob-installer to install Obsidian makes the following changes to your system (it's very simililar to the Chrome installation)

Why not a port?

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.

Syncing

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.