Libation/Source/LibationAvalonia
2022-07-25 19:48:01 -06:00
..
Assets Refactor 2022-07-23 20:54:02 -06:00
Controls Refactor 2022-07-23 20:54:02 -06:00
Dialogs Remove beta checkbox 2022-07-24 16:51:38 -06:00
Properties/PublishProfiles Linux pub 2022-07-25 14:45:39 -06:00
ViewModels Refactor 2022-07-23 20:54:02 -06:00
Views Linux compat 2022-07-24 14:46:27 -06:00
App.axaml Refactor 2022-07-23 20:54:02 -06:00
App.axaml.cs Linux instructions 2022-07-24 16:14:34 -06:00
AvaloniaUtils.cs Refactor 2022-07-23 20:54:02 -06:00
FormSaveExtension.cs Wrap save and restore in tyy/catch blocks 2022-07-25 08:19:46 -06:00
glass-with-glow_256.svg Linux pub 2022-07-25 14:45:39 -06:00
Libation.desktop Linux pub 2022-07-25 14:45:39 -06:00
libation.ico Libation Runs on Linux! 2022-07-23 18:07:04 -06:00
LibationAvalonia.csproj Update for Linux 2022-07-25 17:22:17 -06:00
LogMe.cs Refactor 2022-07-23 20:54:02 -06:00
MessageBox.cs Linux compatability 2022-07-24 14:18:26 -06:00
ObjectComparer[T].cs Libation Runs on Linux! 2022-07-23 18:07:04 -06:00
Program.cs Remove beta checkbox 2022-07-24 16:51:38 -06:00
README.md Update README.md 2022-07-25 19:48:01 -06:00
ViewLocator.cs Refactor 2022-07-23 20:54:02 -06:00

Run Libation on Ubuntu

This walkthrough should get you up and running with Libation on your Ubuntu machine.

Some limitations of the linux release are:

  • Cannot customize how illegial filename characters are replaced.
  • The Auto-update function is unavailable
  • The "Hangover" app for debugging is not yet available.

Dependencies

Dotnet Runtime

You must install the dotnet 6.0 runtime on your machine.

First, add the Microsoft package signing key to your list of trusted keys and add the package repository.

Ubuntu 22.04
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
Ubuntu 21.10
wget https://packages.microsoft.com/config/ubuntu/21.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
Ubuntu 20.04
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

For other distributions, see Microsoft's instructions for installing .NET on Linux.

Then install the dotnet 6.0 runtime

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-runtime-6.0

FFMpeg (Optional)

If you want to convert your audiobooks to mp3, install FFMpeg using the following command:

sudo apt-get install -y ffmpeg

Install Libation

Download the most recent linux-64 binaries zip file and save it as libation-linux-bin.zip. Save the 'install-libation.sh' bash script to a file. From the terminal make the script file executable:

install-libation.sh
 #!/bin/bash


FILE=$1

if [ -z "$FILE" ]
 then echo "This script must be called with a the Libation Linux bin zip file as an argument."
 exit
fi

if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

if [ ! -f "$FILE" ]
 then echo "The file \"$FILE\" does not exist."
 exit
fi

echo "Extracting $FILE"

FOLDER="$(dirname "$FILE")/libation_src"
echo "$FOLDER"

sudo -u $SUDO_USER unzip -q -o ${FILE} -d ${FOLDER}

if [ $? -ne 0 ]
 then echo "Error unzipping ${FILE}"
 exit
fi


sudo -u $SUDO_USER chmod +700 ${FOLDER}/Libation
sudo -u $SUDO_USER chmod +700 ${FOLDER}/LibationCli

#Remove previous installation program files and sym link
rm /usr/bin/Libation
rm /usr/bin/LibationCli
rm /usr/bin/libationcli
rm /usr/lib/libation -r

#Copy install files, icon and desktop file
cp ${FOLDER}/glass-with-glow_256.svg /usr/share/icons/hicolor/scalable/apps/libation.svg
cp ${FOLDER}/Libation.desktop /usr/share/applications/Libation.desktop
mv ${FOLDER}/ /usr/lib/libation

chmod +666 /usr/share/icons/hicolor/scalable/apps/libation.svg
gtk-update-icon-cache -f /usr/share/icons/hicolor/
ln -s /usr/lib/libation/Libation /usr/bin/Libation
ln -s /usr/lib/libation/LibationCli /usr/bin/LibationCli
ln -s /usr/lib/libation/LibationCli /usr/bin/libationcli

echo "Done!"

chmod +700 install-libation.sh

Then run the script with the libation binaries zipfile as an argument.

sudo ./install-libation.sh libation-linux-bin.zip

You should now see Libation among your applications.

Report bugs to https://github.com/rmcrackan/Libation/issues