Skip to content

Instantly share code, notes, and snippets.

@simons-public
Created August 11, 2022 22:02
Show Gist options
  • Save simons-public/69fd0552bf11bcc31dcf92bed17a08b1 to your computer and use it in GitHub Desktop.
Save simons-public/69fd0552bf11bcc31dcf92bed17a08b1 to your computer and use it in GitHub Desktop.
FreeBSD 12.2-RELEASE Kavita Installation
# https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md#running-on-freebsd
# https://github.com/Thefrank/dotnet-freebsd-native-binaries/releases
# Create Jail (With allow_mlock=1 for dotnet)
iocage create -n Kavita -r 12.2-RELEASE ip4_addr="vnet0|10.1.0.44/8" defaultrouter=10.0.0.1 vnet=on allow_raw_sockets=1 boot=on allow_mlock=1
# Install required packages (lttng-ust is in release_2 for fbsd 12)
pkg install --yes libunwind icu libinotify lttng-ust krb5 openssl ncurses bash git npm-node14 node14
# note: had to build node14 from ports on release_2
# Install dotnet 6
# dotnet-v6.0.100-rtm.21527.11
tar xf dotnet-sdk-6.0.100-freebsd-x64.tar.gz -C /usr/share/dotnet
mkdir /var/cache/nuget
cp *.nupkg /var/cache/nuget/
# add /usr/share/dotnet and ~/.dotnet/tools to $PATH
# test dotnet
dotnet --info
# edit nuget config
dotnet nuget list source
vi .nuget/NuGet/NuGet.Config
# add: <add key="local" value="/var/cache/nuget" />
dotnet nuget list source
# install dotnet-ef ?maybe?
dotnet install tool --global dotnet-ef
# fix libe_sqlite3 missing errors
ln -s /usr/local/lib/libsqlite3.so /lib/libe_sqlite3
# build Kavita
git clone https://github.com/Kareadita/Kavita
cd Kavita
# run build
bash build.sh freebsd.12-x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment