KavitaReader: Difference between revisions

From FlowerHouseWiki
(Created page with "{{ContainerInfo |image = Jellyfin.png |Domain = [https://reader.flowerhouse.at reader.flowerhouse.at] |IP = 192.168.88.17 |MAC = F2:1A:93:6C:B2:83 |Privileged = Yes |OS = Debi...")
 
 
(7 intermediate revisions by the same user not shown)
Line 13: Line 13:
<p>The subdomain is [https://reader.flowerhouse.at reader.flowerhouse.at] which is handled by the [[ReverseProxy]].</p>
<p>The subdomain is [https://reader.flowerhouse.at reader.flowerhouse.at] which is handled by the [[ReverseProxy]].</p>
__TOC__
__TOC__
== Basic Setup ==
== Basic Setup/Update ==
<p>Update installation</p>
<p>Download latest version</p>
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
apt update && apt upgrade
wget https://github.com/Kareadita/Kavita/releases/download/v0.?.?/kavita-linux-x64.tar.gz
</syntaxhighlight>
 
<p>Untar it</p>
<syntaxhighlight lang="console">
tar -xvf kavita-linux-x64.tar.gz
</syntaxhighlight>
 
<p>Copy/Replace to path</p>
<syntaxhighlight lang="console" line>
cp Kavita/* /opt/Kavita -R
rm -r Kavita
</syntaxhighlight>
 
<p>Set rights for files</p>
<syntaxhighlight lang="console">
chown -R kavita:kavita Kavita
chmod -R 775 Kavita
</syntaxhighlight>
 
== systemd service ==
<p>Create service file</p>
<syntaxhighlight lang="console">
nano /etc/systemd/system/kavita.service
</syntaxhighlight>
 
<p>Paste following content</p>
<syntaxhighlight lang="console line">
[Unit]
Description=Kavita Server
After=network.target
 
[Service]
User=kavita
Group=jellyfin
Type=simple
WorkingDirectory=/opt/Kavita
ExecStart=/opt/Kavita/Kavita
TimeoutStopSec=20
KillMode=process
Restart=on-failure
 
[Install]
WantedBy=multi-user.target
</syntaxhighlight>
 
<p>Reload systemd, enable at boot and start</p>
<syntaxhighlight lang="console" line>
systemctl reload
systemctl enable kavita
systemctl start kavita
</syntaxhighlight>
 
== Update Script ==
<p>Bash script to update kavita reader:</p>
<syntaxhighlight lang="bash" line>                                               
#!/bin/bash
 
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Which version do you want to update to?"
echo -e "-------------------------------------------------------------------------------------------"
 
read version
 
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update p4d to version ${version}?"
echo -e "-------------------------------------------------------------------------------------------"
 
echo -e -n "Continue? [y/N]"
echo ""
read -n 1 c
 
if [ "${c}" != "y" ]; then
    exit 0
fi
 
systemctl stop kavita || exit 1
wget https://github.com/Kareadita/Kavita/releases/download/v${version}/kavita-linux-x64.tar.gz || exit 1
tar -xvf kavita-linux-x64.tar.gz || exit 1
rm kavita-linux-x64.tar.gz || exit 1
cp Kavita/* /opt/Kavita -R || exit 1
rm -r Kavita || exit 1
chown -R kavita:kavita /opt/Kavita || exit 1
chmod -R 775 /opt/Kavita || exit 1
systemctl start kavita || exit 1
 
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update to version ${version} completed!"
echo -e "-------------------------------------------------------------------------------------------"
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 00:00, 22 February 2022

Jellyfin.png

Network


IP: 192.168.88.17
MAC: F2:1A:93:6C:B2:83
Domain: reader.flowerhouse.at

System


OS: Debian Bullseye
RAM: 1024MB
Cores: 4
Privileged: Yes

The KavitaReader-LXC is reachable under 192.168.88.17 which is located in the ServerVLAN.

The subdomain is reader.flowerhouse.at which is handled by the ReverseProxy.

Basic Setup/Update

Download latest version

wget https://github.com/Kareadita/Kavita/releases/download/v0.?.?/kavita-linux-x64.tar.gz

Untar it

tar -xvf kavita-linux-x64.tar.gz

Copy/Replace to path

cp Kavita/* /opt/Kavita -R
rm -r Kavita

Set rights for files

chown -R kavita:kavita Kavita
chmod -R 775 Kavita

systemd service

Create service file

nano /etc/systemd/system/kavita.service

Paste following content

[Unit]
Description=Kavita Server
After=network.target

[Service]
User=kavita
Group=jellyfin
Type=simple
WorkingDirectory=/opt/Kavita
ExecStart=/opt/Kavita/Kavita
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

Reload systemd, enable at boot and start

systemctl reload
systemctl enable kavita
systemctl start kavita

Update Script

Bash script to update kavita reader:

                                                
#!/bin/bash

echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Which version do you want to update to?"
echo -e "-------------------------------------------------------------------------------------------"

read version

echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update p4d to version ${version}?"
echo -e "-------------------------------------------------------------------------------------------"

echo -e -n "Continue? [y/N]"
echo ""
read -n 1 c

if [ "${c}" != "y" ]; then
    exit 0
fi

systemctl stop kavita || exit 1
wget https://github.com/Kareadita/Kavita/releases/download/v${version}/kavita-linux-x64.tar.gz || exit 1
tar -xvf kavita-linux-x64.tar.gz || exit 1
rm kavita-linux-x64.tar.gz || exit 1
cp Kavita/* /opt/Kavita -R || exit 1
rm -r Kavita || exit 1
chown -R kavita:kavita /opt/Kavita || exit 1
chmod -R 775 /opt/Kavita || exit 1
systemctl start kavita || exit 1

echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update to version ${version} completed!"
echo -e "-------------------------------------------------------------------------------------------"