Console Cast for Linux (portable)
=================================

This folder holds the same files as the Console Cast .deb and .rpm, for Linux
systems those packages do not cover. On Ubuntu, Debian, Linux Mint, Pop!_OS,
Fedora, RHEL-family and openSUSE, use the package instead: it is updated by
your package manager's tools and declares what it needs.

Install
-------
    ./install.sh

It first checks that this system has what Console Cast needs, then says what it
will change and asks before changing anything. Only the copying and the port 53
permission need administrator rights (it uses sudo once). It installs into the
same places as the packages:

    /usr/bin/console-cast                  the app
    /usr/bin/consolecast                   the consolecast command (CLI)
    /usr/lib/console-cast/                 the engine (consolecast), FFmpeg, MediaMTX,
                                           the helper for Settings' firewall step,
                                           licences, uninstall.sh
    /usr/share/applications, icons/hicolor, polkit-1/actions, metainfo

and gives the engine one capability, cap_net_bind_service, so it can answer the
console's DNS on port 53 without running as root.

    ./install.sh --dry-run     explain and change nothing
    ./install.sh --yes         no question

Remove
------
    sudo /usr/lib/console-cast/uninstall.sh      (or: consolecast uninstall)

It stops Console Cast, removes the firewall rules and the systemd-resolved change
Console Cast made at your request (if any), and removes exactly the files
install.sh added. Your settings in ~/.config/consolecast are kept.

What it needs
-------------
A 64-bit x86 or ARM computer with glibc 2.35 or newer, and these libraries
(package names differ by distribution):

    WebKitGTK 4.1    webkit2gtk-4.1 (Arch), libwebkit2gtk-4.1-0, webkit2gtk4.1
    GTK 3            gtk3, libgtk-3-0
    AppIndicator     libayatana-appindicator (Arch), libayatana-appindicator3-1
    GnuTLS           gnutls, libgnutls30
    setcap           libcap, libcap2-bin, libcap-progs
    polkit (pkexec)  so Settings can change the firewall for you
    GStreamer        gst-plugins-good and an H.264 decoder (gst-libav), for the Viewer

Alpine and other musl systems are not supported.

Run it without installing
-------------------------
On systems where /usr is read-only (Fedora Silverblue, SteamOS, NixOS) or to try
it first, run ./root/usr/bin/console-cast from this folder. The engine then needs
another way to use port 53, for example (until the next restart):

    sudo sysctl net.ipv4.ip_unprivileged_port_start=53

or, if this folder's file system keeps file capabilities:

    sudo setcap cap_net_bind_service=+ep root/usr/lib/console-cast/consolecast

Settings cannot change the firewall for you in this mode; it shows the commands
to run instead.

Console Cast is made by Belweave. https://consolecast.app  info@belweave.com
