Created
August 11, 2022 22:02
-
-
Save simons-public/69fd0552bf11bcc31dcf92bed17a08b1 to your computer and use it in GitHub Desktop.
FreeBSD 12.2-RELEASE Kavita Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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