INTERACT FORUM

Linux => JRiver Media Center 32 for Linux => Topic started by: BryanC on January 19, 2024, 02:06:17 pm

Title: installJRMC - MC installer for Linux
Post by: BryanC on January 19, 2024, 02:06:17 pm
installJRMC

This program will install JRiver Media Center (https://www.jriver.com/) and associated services on most major Linux distros.

You can always find the latest version of installJRMC, changelog, and documentation in my repository (https://git.bryanroessler.com/bryan/installJRMC).

tl;dr One-line MC install
Code: [Select]
curl https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC|bash
Instructions

Download and unzip installJRMC from the attachment below or grab the latest stable version directly:
Code: [Select]
curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&
chmod +x ./installJRMC &&
./installJRMC [--option [ARGUMENT]]

Running `installJRMC` without any options will install the latest version of JRiver Media Center from the official JRiver repository (Ubuntu/Debian) or my unofficial repository (https://repos.bryanroessler.com/jriver/) (Fedora/CentOS) using the system package manager (i.e. --install repo). If any other option is passed, then the install method (--install repo or --install local) must be specified, to make it possible to install services and containers independent of MC.

Options

Code: [Select]
$ installJRMC --help
--install, -i repo|local
    repo: Install MC from repository, future updates will be handled by the system package manager
    local: Build and install MC package from official source package
--build[=suse|fedora|centos]
    Build RPM from source DEB but do not install
    Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
--compat
    Build/install MC without minimum dependency version requirements
--mcversion VERSION
    Build or install a specific MC version, ex. "32.0.6"
--arch ARCH
    Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture)
--mcrepo REPO
    Specify the MC repository, ex. "bullseye", "bookworm", "noble", etc (default: latest official)
--outputdir PATH
    Generate rpmbuild output in this PATH (default: ./output)
--restorefile RESTOREFILE
    Restore file location for automatic license registration
--betapass PASSWORD
    Enter beta team password for access to beta builds
--service, -s SERVICE
    See SERVICES section below for the list of services to deploy
  --service-type user|system
      Starts services at boot (system) or user login (user) (default: per-service, see SERVICES)
--container, -c CONTAINER (TODO: Under construction)
    See CONTAINERS section below for a list of containers to deploy
--createrepo[=suse|fedora|centos]
    Build rpm, copy to webroot, and run createrepo.
    Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
  --createrepo-webroot PATH
      The webroot directory to install the repo (default: /var/www/jriver/)
  --createrepo-user USER
      The web server user if different from the current user
--yes, -y, --auto
    Always assumes yes for questions
--version, -v
    Print this script version and exit
--debug, -d
    Print debug output
--help, -h
    Print help dialog and exit
--uninstall, -u
    Uninstall JRiver MC, service files, and firewall rules (does not remove library or media files)

Services

Code: [Select]
jriver-mediaserver (user)
    Enable and start a mediaserver systemd service (requires an existing X server)
jriver-mediacenter (user)
    Enable and start a mediacenter systemd service (requires an existing X server)
jriver-x11vnc (user)
    Enable and start x11vnc for the local desktop (requires an existing X server, does NOT support Wayland)
  --vncpass and --display are also valid options (see below)
jriver-xvnc (system)
    Enable and start a new Xvnc session running JRiver Media Center
  --vncpass PASSWORD
    Set vnc password for x11vnc/Xvnc access. If no password is set, the script will either use existing password stored in ~/.vnc/jrmc_passwd or use no password
  --display DISPLAY
    Manually specify display to use for x11vnc/Xvnc (ex. ':1')
jriver-createrepo (system)
    Install hourly service to build latest MC RPM and run createrepo
    By default installs as root service to handle www permissions more gracefully

By default, MC services use a sane `--service-type` listed next to the service name in the Services description. User services can be manipulated as an unprivileged user, for example: systemctl --user stop jriver-mediacenter and begin at user login. System services are manipulable as root, for example: sudo systemctl stop jriver-servicename@username.service and begin at system boot. Note that it is possible to run all services of a particular user at boot using sudo loginctl enable-linger username (https://www.freedesktop.org/software/systemd/man/loginctl.html).

Multiple services (but not --service-types) can be installed at one time using multiple --service blocks:
Code: [Select]
installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter
jriver-x11vnc versus jriver-xvnc

jriver-x11vnc (http://www.karlrunge.com/x11vnc/) shares your existing X display via VNC and can be combined with additional services to start Media Center or Media Server. Conversely, jriver-xvnc (https://tigervnc.org/doc/Xvnc.html) creates a new Xvnc display and starts a JRiver Media Center service in the foreground of the new VNC display.

Containers

Coming soon!

Firewall

`installJRMC` automatically creates port forwarding firewall rules for remote access to Media Network (52100-52200/tcp, 1900/udp DLNA) and Xvnc/x11vnc (if selected), using `firewall-cmd` or `ufw`.
Note: `ufw` is not installed by default on Debian but will be installed by `installJRMC`. To prevent SSH lock-out, Debian users that have not already enabled `ufw` will need to `sudo ufw enable` after running `installJRMC` and inspecting their configuration.

Examples

Code: [Select]
installJRMCInstall the latest version of MC from the best available repository.
Code: [Select]
installJRMC --install local --compatInstall a more widely-compatible version of the latest MC version.
Code: [Select]
installJRMC --install repo --service jriver-mediacenter --service-type userInstall MC from the repository and start/enable jriver-mediacenter.service as a user service.
Code: [Select]
installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 32.0.6Build and install an MC 32.0.6 comptability RPM locally and activate it using the /path/to/license.mjr
Code: [Select]
installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-userBuild an RPM locally for the current distro, move it to the webroot, and run createrepo as www-user.
Code: [Select]
installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-userInstall the jriver-createrepo timer and service to build the RPM, move it to the webroot, and run createrepo as www-user hourly.
Code: [Select]
installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter --vncpass "letmein"Install services to share the existing local desktop via VNC and automatically run MC on startup.
Code: [Select]
installJRMC --install repo --service jriver-xvnc --display ":2"Install an Xvnc server on display ':2' that starts MC.
Code: [Select]
installJRMC --uninstallUninstall MC, services, and firewall rules. This will not remove your media, media library/database, or library backup folder.

Additional Info

Did you find installJRMC useful? Buy me a coffee! (https://paypal.me/bryanroessler?locale.x=en_US)
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 19, 2024, 02:08:14 pm
installJRMC will still migrate older libraries by default and did not seem to conflict with the new feature (at least on Fedora), once I have tested the built-in mechanism further I will remove it.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 23, 2024, 10:15:11 am
For the fun of it, I tried installJRMC in OpenSUSE Tumbleweed... and it mostly works. The big issue is it can't resolve and install a couple dependencies which prevents installation (even when using --compat), which for whatever reason aren't present in Tumbleweed but do appear to be in Leap. Those dependencies being freetype, freetype-devel and freetype-tools.

It can be a bit of a pain hunting them down and manually installing them to workaround the issue, but once you do the MC install should be pretty smooth and it runs rather well.

Great work, as always! :)
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 26, 2024, 02:13:05 pm
For the fun of it, I tried installJRMC in OpenSUSE Tumbleweed... and it mostly works. The big issue is it can't resolve and install a couple dependencies which prevents installation (even when using --compat), which for whatever reason aren't present in Tumbleweed but do appear to be in Leap. Those dependencies being freetype, freetype-devel and freetype-tools.

It can be a bit of a pain hunting them down and manually installing them to workaround the issue, but once you do the MC install should be pretty smooth and it runs rather well.

Great work, as always! :)
I wonder why it would need a -devel package (freetype-devel)?
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 26, 2024, 03:18:52 pm
Dependencies of freetype, had to install the two to get freetype to install. At least that seems to be how it is in OpenSUSE, I'm just a little bit baffled why freetype is missing and not installable from the repos in OpenSUSE Tumbleweed but is available and installable in OpenSUSE Leap. Oh well, I'll re-test that again at some point when I do another clean install. :)
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 26, 2024, 05:24:08 pm
Dependencies of freetype, had to install the two to get freetype to install. At least that seems to be how it is in OpenSUSE, I'm just a little bit baffled why freetype is missing and not installable from the repos in OpenSUSE Tumbleweed but is available and installable in OpenSUSE Leap. Oh well, I'll re-test that again at some point when I do another clean install. :)

If you can post some links to them I will add a manual workaround.
Title: Re: installJRMC - MC installer for Linux
Post by: shortie on January 30, 2024, 04:34:17 pm
How should I upgrade from MC 31 to MC 32? Should I use the -u option first or ...  ? In the past I've just done the install and manually edited the services definitions to start the new version as opposed to the old one but I have a feeling that's not really the right way to go about it.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 30, 2024, 04:46:50 pm
How should I upgrade from MC 31 to MC 32? Should I use the -u option first or ...  ? In the past I've just done the install and manually edited the services definitions to start the new version as opposed to the old one but I have a feeling that's not really the right way to go about it.

`./installJRMC --install repo --service jriver-mediacenter` (for example) will install the latest version of MC32 (mediacenter32 package), migrate the library, and replace the existing service file with one pointing at mediacenter32. After you've confirmed everything is good to go, uninstall mediacenter31 using your package manager and optionally delete "~/.jriver/Media Center 31".

Title: Re: installJRMC - MC installer for Linux
Post by: shortie on January 30, 2024, 06:09:34 pm
`./installJRMC --install repo --service jriver-mediacenter` (for example) will install the latest version of MC32 (mediacenter32 package), migrate the library, and replace the existing service file with one pointing at mediacenter32. After you've confirmed everything is good to go, uninstall mediacenter31 using your package manager and optionally delete "~/.jriver/Media Center 31".
Maybe it's the way I did things but I had to go in and edit /lib/systemd/system/jriver-mediacenter@.service to change it from mediacenter31 to mediacenter32. I just ran a vanila ./intallJRMC to install/upgrade. I'm on Ubuntu 22.04.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 30, 2024, 06:30:42 pm
Maybe it's the way I did things but I had to go in and edit /lib/systemd/system/jriver-mediacenter@.service to change it from mediacenter31 to mediacenter32. I just ran a vanila ./intallJRMC to install/upgrade. I'm on Ubuntu 22.04.

You'll need to specify the `--service jriver-*` option or else the service files will not be (over)written. You can trigger it manually without reinstalling MC by omitting the --install option, for example: `./installJRMC --service jriver-mediacenter`
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 31, 2024, 08:42:55 am
If you can post some links to them I will add a manual workaround.

I just did a clean OpenSUSE Tumbleweed install and ran the script and as expected encountered the issue while trying to install the built .rpm file...

Code: [Select]
Problem: nothing provides 'freetype' needed by the to be installed mediacenter32-32.0.9-1.x86_64
 Solution 1: do not install mediacenter32-32.0.9-1.x86_64
 Solution 2: break mediacenter32-32.0.9-1.x86_64 by ignoring some of its dependencies

However, after the script automatically cancels and quits you can force install the .rpm manually ignoring the freetype dependency and MC32 appears to run just fine, but that has me thinking... maybe this dependency can be removed or changed? Because freetype2-devel, libfreetype6 and libXft2 are installed with the clean OpenSUSE Tumbleweed install. Maybe one of these would suffice (my guess would be libfreetype6 since it provides freetype2)?

Alternatively, yes, you can manually install freetype, freetype-devel and freetype-tools from the OpenSUSE Leap repos. This can be a bit of a pain though, so maybe just changing/removing the dependency is the better option?

EDIT: I installed rpmrebuild and modified the .rpm built by the script. I changed the freetype dependency to libfreetype6 (as it provides freetype2), but I also had to change the libwebkit2gtk-4.0-37 dependency to libwebkit2gtk-4_0-37 otherwise it would give an error about it being missing too. After that the .rpm installs fine, so two dependencies need to be changed for the .rpm build for OpenSUSE Tumbleweed.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 31, 2024, 12:51:27 pm
I didn't test but did look up package names in the SUSE package search, could you try with dev installJRMC to see if it's working now? I'm still a little confused re: leap/tumbleweed differences, don't want to fix one just to break the other.

https://git.bryanroessler.com/bryan/installJRMC/raw/dev/installJRMC
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 31, 2024, 03:32:15 pm
Yep, it works great now.

Looking at the repos for Leap and Tumbleweed, it appears both uses libfreetype6 and libwebkit2gtk-4_0-37. The only weird thing is both Leap repos have freetype still, must be a legacy thing.

You can search in the repos for all three here and compare:

Tumbleweed:
https://download.opensuse.org/tumbleweed/repo/oss/x86_64/

Leap 15.4:
https://download.opensuse.org/distribution/leap/15.4/repo/oss/x86_64/

Leap 15.5:
https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/
Title: Re: installJRMC - MC installer for Linux
Post by: shortie on January 31, 2024, 06:10:56 pm
You'll need to specify the `--service jriver-*` option or else the service files will not be (over)written. You can trigger it manually without reinstalling MC by omitting the --install option, for example: `./installJRMC --service jriver-mediacenter`
Maybe it's just me but could you add this to your instructions? It wasn't, and still isn't, the obvious way to make this all happen.
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 09:40:13 am
Hi! I'm sorry but I need some help: I have Linux Mint 21.3 and MC 31 already installed.

I tried downloading directly InstallJRMC (version 1.0 and 1.01) but all I can get is:

Package update failed!
Error: JRiver Media Center installation from remote repository failed

and the same result if I do 'copy and past' of the "curl..." command in a terminal.
It's the first time in all these years. Please.... some suggestion?

Thanks

Sergioz
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on February 04, 2024, 09:48:38 am
Try running it with the --debug flag and see what it says and post it here.
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 09:58:52 am
Thank'You, here the result with curl ecc:

'curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC && chmod +x ./installJRMC && ./installJRMC --debug
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 60659    0 60659    0     0  61543      0 --:--:-- --:--:-- --:--:-- 61520
Debug: Running: main --debug
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: linuxmint 21.3 amd64
Debug: Using host platform: ubuntu 21.3
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Determining latest MC version
Debug: Running: installPackage --silent buildah
Debug: buildah already installed, skipping installation
Debug: buildah rm debian-working-container
9c2790cb4b71c0628fbc32f1fbb9180115ac70873b2298396b70a93bc6ade27b
Using MC version 32.0.12 determined by containerized package manager
To override, use --mcversion
Debug: MVERSION: 32, MC_VERSION: 32.0.12, MC_PKG: mediacenter32, MC_RPM: /home/john/output/RPMS/x86_64/mediacenter32-32.0.12.x86_64.rpm
Adding universe repository
Debug: sudo add-apt-repository -y universe
[sudo] password di john:         
Installing JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: sudo rm -rf /etc/apt/sources.list.d/mediacenter*.list
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: sudo apt-get update -y -q0
Ignorato:1 http://packages.linuxmint.com virginia InRelease                   
Trovato:2 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu jammy InRelease
Trovato:3 https://dl.google.com/linux/chrome/deb stable InRelease             
Trovato:4 http://archive.ubuntu.com/ubuntu jammy InRelease                     
Trovato:5 http://ppa.launchpad.net/flacon/ppa/ubuntu jammy InRelease           
Trovato:6 http://packages.linuxmint.com virginia Release                       
Trovato:7 http://security.ubuntu.com/ubuntu jammy-security InRelease           
Trovato:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease             
Trovato:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease           
Scaricamento di:11 https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy InRelease [18,1 kB]
Trovato:12 http://dist.jriver.com/latest/mediacenter bullseye InRelease
Errore:11 https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy InRelease
  Le seguenti firme non sono state verificate perché la chiave pubblica non è disponibile: NO_PUBKEY 374C7797FB006459
Lettura elenco dei pacchetti... Fatto
W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/jammy/InRelease: La chiave è archiviata nel portachiavi legacy trusted.gpg (/etc/apt/trusted.gpg), vedere la sezione DEPRECATION in apt-key(8) per i dettagli.
W: http://ppa.launchpad.net/flacon/ppa/ubuntu/dists/jammy/InRelease: La chiave è archiviata nel portachiavi legacy trusted.gpg (/etc/apt/trusted.gpg), vedere la sezione DEPRECATION in apt-key(8) per i dettagli.
W: Errore GPG: https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy InRelease: Le seguenti firme non sono state verificate perché la chiave pubblica non è disponibile: NO_PUBKEY 374C7797FB006459
E: Il repository "https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy InRelease" non è firmato.
N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita.
N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.
Error: Package update failed!
Error: JRiver Media Center installation from remote repository failed'
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 10:01:12 am
package not signed
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on February 04, 2024, 10:12:33 am
Hmmm, I wonder why it's trying to use a .rpm file on Linux Mint, which uses .deb files. Will have to load up my Mint VM and see what it says.
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 10:18:42 am
Ok thank You
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on February 04, 2024, 10:21:22 am
Oh, I see why now and it isn't an issue with the script itself. It's because your Chromium PPA https://ppa.launchpadcontent.net/savoury1/chromium/ubuntu has no public key, which is causing APT to fail. You'll have to fix your PPAs/repositories before APT will continue as your system is in a broken state because of it (and you'll have to fix it regardless, as currently you won't be able to perform any system updates until it's fixed).

Personally, I'd delete the Chromium repository from your list of PPAs/repositories then run sudo apt-get update to check for anymore errors, then run the script if there isn't any. You'll probably have to manually add the PPA back using the instructions here: https://launchpad.net/~savoury1/+archive/ubuntu/chromium
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 10:32:51 am
Thank for all your job!! :D
Title: Re: installJRMC - MC installer for Linux
Post by: sergioz on February 04, 2024, 11:36:27 am
all done and solved!!  :D
Title: Re: installJRMC - MC installer for Linux
Post by: drmimosa on February 10, 2024, 02:43:33 pm
Bryan, I was updating a machine and your repository hung -- a quick google search shows your whole website is down. Hope everything is ok.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on February 10, 2024, 08:50:56 pm
Bryan, I was updating a machine and your repository hung -- a quick google search shows your whole website is down. Hope everything is ok.

Seems to be working for me, hopefully it was just a temporary hosting issue. I'm going to move to something faster soon.
Title: Re: installJRMC - MC installer for Linux
Post by: drmimosa on February 14, 2024, 01:24:45 pm
Seems to be working for me, hopefully it was just a temporary hosting issue. I'm going to move to something faster soon.

Hello. I found the problem - it was on my end. I am using this DNS server, set at the router:

 https://www.opendns.com/setupguide/#familyshield

Seems that for whatever reason when this is active, I can't reach your repository or website.

Code: [Select]
nslookup git.bryanroessler.com
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; no servers could be reached

When I changed the DNS server to 8.8.8.8 on the local machine, no problem.

Code: [Select]
nslookup git.bryanroessler.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
git.bryanroessler.com canonical name = 1fu4.f.time4vps.cloud.
Name: 1fu4.f.time4vps.cloud
Address: 176.223.132.72
Title: Re: installJRMC - MC installer for Linux
Post by: bob on February 27, 2024, 04:15:17 pm
It looks like we should be using /usr/share/metainfo now instead of /usr/share/appdata since that's deprecated. Just a heads-up I'll probably change that soon. I assume it will have to be dealt with for non-debian installs.
Title: Re: installJRMC - MC installer for Linux
Post by: erviv on March 02, 2024, 04:40:32 pm
The installer didn't work for me.  I just installed a fresh copy of Bookworm on my rpi. MC appears to load correctly although I get a warning
arning: Install firewall-cmd or ufw to open firewall ports
Debug: Running: disableCoW

I also get an unreadable info message which pop up on my screen when I try to start JRiver..

Any suggestions.

I did use jrmc Install MC successfully on my other rpi running bullseye.

I see that the river.list file refers to ….bullseye main. I thought I read that this worked on Bookworm, was I mistaken?
Title: Re: installJRMC - MC installer for Linux
Post by: erviv on March 02, 2024, 07:03:14 pm
The installer didn't work for me.  I just installed a fresh copy of Bookworm on my rpi. MC appears to load correctly although I get a warning
arning: Install firewall-cmd or ufw to open firewall ports
Debug: Running: disableCoW

I also get an unreadable info message which pop up on my screen when I try to start JRiver..

Any suggestions.

I did use jrmc Install MC successfully on my other rpi running bullseye.

I see that the jriver.list file refers to ….bullseye main. I thought I read that this worked on Bookworm, was I mistaken? I changed bullseye to bookworm in jriver.list but that didn’t work either.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on March 03, 2024, 11:22:17 am


There is no bookworm version of MC but my guess is that the bullseye version should work on bookworm. If you add the --debug option I can see where it is failing, the other warnings shouldn't prevent it from installing.
Title: Re: installJRMC - MC installer for Linux
Post by: erviv on March 03, 2024, 12:50:58 pm
Thanks BryanC.
I returned the jriver.list file back to bullseye, and run the install.  Results below.

pi-2@raspberrypi:~ $ ./installJRMC --debug
Debug: Running: main --debug
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: debian 12 arm64
Debug: Using host platform: debian 12
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Determining latest MC version
Debug: Running: installPackage --silent buildah
Debug: buildah already installed, skipping installation
Debug: buildah rm debian-working-container
b25a5d27c815be8db74417e397b681614de0e9f830f31695f58458155a4cb433
Using MC version 32.0.20-arm64 determined by containerized package manager
To override, use --mcversion
Debug: MVERSION: 32, MC_VERSION: 32.0.20-arm64, MC_PKG: mediacenter32, MC_RPM: /home/pi-2/output/RPMS/x86_64/mediacenter32-32.0.20-arm64.x86_64.rpm
Installing JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: sudo rm -rf /etc/apt/sources.list.d/mediacenter*.list
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: sudo apt-get update -y -q0
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://dist.jriver.com/latest/mediacenter bullseye InRelease [3,614 B]
Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease                 
Get:6 http://dist.jriver.com/latest/mediacenter bullseye/main amd64 Packages [853 B]
Get:7 http://dist.jriver.com/latest/mediacenter bullseye/main armhf Packages [860 B]
Get:8 http://dist.jriver.com/latest/mediacenter bullseye/main arm64 Packages [831 B]
Get:9 http://dist.jriver.com/latest/mediacenter bullseye/main i386 Packages [871 B]
Fetched 110 kB in 3s (38.2 kB/s)
Reading package lists... Done
Debug: Running: installMesa
Debug: Running: installPackage --no-install-check --allow-downgrades --no-gpg-check mediacenter32
Debug: sudo apt-get -f install -y -q0 --allow-downgrades mediacenter32
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mediacenter32 is already the newest version (32.0.20-arm64).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
JRiver Media Center installed successfully from remote repository
Debug: Running: symlinkCerts
Debug: Running: migrateLibrary
Debug: Running: restoreLicense
Debug: Running: openFirewall jriver-mediacenter 52100-52200/tcp 1900/udp
Warning: Install firewall-cmd or ufw to open firewall ports
Debug: Running: disableCoW
pi-2@raspberrypi:~ $

MC32 appears as before in the drop down menu under Sounds  & Video, but does not open.

If you don't see the error, I could try Bobs post from Jan 19, 2024 Adding the MediaCentre repo manually. In his post for adding the repo file list he does create for bookworm a jriver.list file ending with "bookworm main"
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on March 03, 2024, 05:34:55 pm
MC32 is successfully installing, so the issue isn't with the script itself. Open a terminal, type in mediacenter32 and post what it says here. I'm going to guess segmentation fault or something.
Title: Re: installJRMC - MC installer for Linux
Post by: erviv on March 03, 2024, 07:46:45 pm
Hello Awesome Donkey.
I did as you suggested.  There are pages of error messages.

I have copied the last page of so below.  Let me know if you need mo
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/rating-3.png': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/rating-4.png': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/rating-5.png': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/rating.png': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_biography.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_comments.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_ltw1.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_lyrics_1v.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_lyrics_3h.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_mtw1.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_notes.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/MC Ultra III/ult3_tai.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/background.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/bgbar.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/corner.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/index.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/main.css': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire/minmax.js': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/background.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/bgbar.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/corner.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/index.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/Lyrics.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/main.css': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/minmax.js': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Noire Viz/notes.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Ocean/background.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Ocean/index.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Ocean/main.css': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Ocean/minmax.js': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/background.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/bgbar.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/corner.gif': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/index.html': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/main.css': No such file or directory
cp: cannot create regular file '/home/pi-2/.jriver/Media Center 32/Visualizations/Track Info/Simple/minmax.js': No such file or directory
pi-2@raspberrypi:~ $
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on March 04, 2024, 06:34:04 am
Looks like you don't have write permissions on the ~/.jriver directory. I'd enable hidden files in the file manager you're using, go into your home directory and either move the .jriver folder to another temporarily or straight up delete it and see if you can run MC32 then.
Title: Re: installJRMC - MC installer for Linux
Post by: erviv on March 04, 2024, 08:53:46 am
Yes,I checked permissions in the file properties and in .jriver while anyone can view or access content only the owner can change content. Owner and group are shown as  root. I tried changing permissions from the file manager but that didn’t work.
So I deleted the file from the terminal. MC now starts. The .jriver dir now has my user (pi-2) as the owner and group.

Thank you.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on March 04, 2024, 09:00:47 am
Yep, that'll do it. This kind of thing can happen if running MC as sudo, for example. Glad to hear it's sorted now. :)
Title: Best options for Renderer?
Post by: AllanM on April 10, 2024, 04:14:49 pm
Hi. I have JRiver MC install on my Linux server (Ubuntu) and I want to use a Pi connected to a stereo in another room with JRiver. I figure I would just install JRiver on the Pi and use it as a renderer using the iPad app to control it. If I understand how this works, I just need to install JRiver MC on the Pi and I can play to it from my iPad (JRemote). I've done this and it works well.

I would also like for MC to start automatically on reboots.

My question is what's the best option to choose when installing MC for this purpose. I'm installing on a stock Pi OS (64 bit). I just installed with the default options, but is there a leaner or better install for my purposes?

Thanks.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on April 10, 2024, 05:44:24 pm
The installJRMC script should work fine that way on a Raspberry Pi. Just set Media Center to start with the OS by going into MC's Options > Startup and make sure the run on startup option is set to Media Center.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on April 25, 2024, 12:09:33 pm
Heads up, if anyone is updating to or using the newest Ubuntu 24.04 LTS that was just released, do know that MC32 is not currently installable due to the libwebkit2gtk-4.0-37 dependency not being able to be met. It doesn't work with the script with the --compat switch either, probably gotta wait for a MC32 update to workaround it.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 21, 2024, 08:02:44 pm
I added noble support in installJRMC v1.0.2 for *buntu >= 24.04 as well as a new "--mcrepo" option to select your preferred MC repo manually for fun or troubleshooting.

I tried running the noble MC version on Fedora 40 and it worked fine:

Code: [Select]
installJRMC --install local --mcrepo noble
I'm not sure how many people are using my Fedora/CentOS repo, but I'm curious if anyone would be for/against switching the fedora rpms in my repo to the noble repo. I'm tempted since it seems to work OK on Fedora 40 and would be the latest and greatest, but I have not tested on F39 or lower or any of the CentOS derivatives.

Since there's now a fairly wide compatibility gap, I'm also thinking of a way to automatically select the appropriate MC base version for older distros and/or legacy MC releases and providing warnings/workarounds if there are issues.

Is there a list of which MC versions correspond to each Debian base version? IIRC sometimes it has switched mid-version so a tree of the repo would help!
Title: Re: installJRMC - MC installer for Linux
Post by: bob on May 28, 2024, 09:45:08 am
I added noble support in installJRMC v1.0.2 for *buntu >= 24.04 as well as a new "--base" option to select your preferred debian base manually for fun or troubleshooting.

I tried running the noble MC build on Fedora 40 and it worked fine:

Code: [Select]
installJRMC --install local --base noble
I'm not sure how many people are using my Fedora/CentOS repo, but I'm curious if anyone would be for/against switching the fedora rpms in my repo to a noble MC base. I'm tempted since it seems to work OK on Fedora 40 and would be the latest and greatest, but I have not tested on F39 or lower or any of the CentOS derivatives.

Since there's now a fairly wide compatibility gap, I'm also thinking of a way to automatically select the appropriate MC base version for older distros and/or legacy MC releases and providing warnings/workarounds if there are issues.

Is there a list of which MC versions correspond to each Debian base version? IIRC sometimes it has switched mid-version so a tree of the repo would help!
MC31 was the first with Bullseye as the base requirement. That's the current required base.
MC27 through MC30 have Buster as the base requirement
MC20 through MC26 have Jessie as the base requirement

There have been changes to packages required in between major versions but not to the base requirements.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 29, 2024, 01:17:59 pm
Great, 1.1.0 uses the right repos for older versions and a new alpine-based container for checking the latest MC version. This will save about 80MB of disk space and bandwidth on first install.
Title: Re: installJRMC - MC installer for Linux
Post by: fegelmej on June 25, 2024, 08:19:04 pm
This is a fantastic thread for those who know what you all are talking about.  For us tinkerers it is a challenge. 

I've been running MC 26 on a Raspberry PI 3b fairly stable for years.  Things started getting wonky lately with glitches and 2 second pauses.  Worked through a lot of suggestions from this forum, but didn't improve the situation.  Thought an upgrade to a Pi 5 would settle these issues with its improved processing and RAM. Tried the easy route of slipping the SD card from the 3B to the 5, but no joy.  Won't even boot.  Seems like that should work, but maybe I'm missing something.  Is there a more straightforward approach than all that line code (forgive me) referenced above to move to a new machine?
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on June 25, 2024, 08:32:30 pm
This is a fantastic thread for those who know what you all are talking about.  For us tinkerers it is a challenge. 

I've been running MC 26 on a Raspberry PI 3b fairly stable for years.  Things started getting wonky lately with glitches and 2 second pauses.  Worked through a lot of suggestions from this forum, but didn't improve the situation.  Thought an upgrade to a Pi 5 would settle these issues with its improved processing and RAM. Tried the easy route of slipping the SD card from the 3B to the 5, but no joy.  Won't even boot.  Seems like that should work, but maybe I'm missing something.  Is there a more straightforward approach than all that line code (forgive me) referenced above to move to a new machine?

One-line install:
Code: [Select]
curl https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC|bash
Edit: Added to OP
Title: Re: installJRMC - MC installer for Linux
Post by: fegelmej on June 26, 2024, 06:47:24 am
That sounds easy!  Thanks.  The 'curl" term is new to me.  Can you define that?
Title: Re: installJRMC - MC installer for Linux
Post by: JimH on June 26, 2024, 06:48:59 am
Google it.  It's part of the OS.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on June 26, 2024, 07:09:05 am
A sudo apt install curl should install it if it's not already present on the system.
Title: Re: installJRMC - MC installer for Linux
Post by: fegelmej on June 26, 2024, 08:32:05 pm
A sudo apt install curl should install it if it's not already present on the system.

This was the key to getting it installed.  Thanks to you and Bryan.
Title: Re: installJRMC - MC installer for Linux
Post by: Mastiff on July 25, 2024, 12:13:44 pm
I installed 31 on the Pi 4 with updated Bookworm in my boat with the script, but I'm unable to uninstall it to upgrade to version 32. This is the command I used:

Code: [Select]
./installJRMC --uninstall --mcversion 31.0.87 --arch arm64
But I get an error message:

Code: [Select]
Error: JRiver Media Center package 'mediacenter31=31.0.87' is not present and was not uninstalled
I have double and triple checked that it's the version I have installed. I first tried without --arch arm64, but that didn't work. Then I tried with it. And it's still not working. Any ideas would be very welcome.  ;D
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on July 25, 2024, 03:09:42 pm
I'd do it manually from the terminal, sudo apt remove mediacenter31.
Title: Re: installJRMC - MC installer for Linux
Post by: Mastiff on July 26, 2024, 03:57:41 am
Thanks! That didn't occur to me, I thought it had to be removed in the same way that it was installed. But it worked, of course.  ;D

Btw I had to modify my original message, it's of course updated Bookworm, not Bullseye. Brain fart... :-[
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on July 26, 2024, 10:06:50 am
I updated the uninstall code recently but haven't created a new release. I remember seeing a bug in there so it is probably fixed already, glad you got it sorted.
Title: Re: installJRMC - MC installer for Linux
Post by: astromo on July 28, 2024, 08:23:42 am
I added noble support in installJRMC v1.0.2 for *buntu >= 24.04 as well as a new "--mcrepo" option to select your preferred MC repo manually for fun or troubleshooting.

I tried running the noble MC version on Fedora 40 and it worked fine:

Code: [Select]
installJRMC --install local --mcrepo noble
I'm not sure how many people are using my Fedora/CentOS repo, but I'm curious if anyone would be for/against switching the fedora rpms in my repo to the noble repo. I'm tempted since it seems to work OK on Fedora 40 and would be the latest and greatest, but I have not tested on F39 or lower or any of the CentOS derivatives.

Since there's now a fairly wide compatibility gap, I'm also thinking of a way to automatically select the appropriate MC base version for older distros and/or legacy MC releases and providing warnings/workarounds if there are issues.

Is there a list of which MC versions correspond to each Debian base version? IIRC sometimes it has switched mid-version so a tree of the repo would help!

I'm on Noble Numbat and couldn't figure out why the script was dudding out on me after following the TL;DR instructions in the opening post .. until I read down the thread.

Worked great. Thanks.
Title: Re: installJRMC - MC installer for Linux
Post by: bob on August 30, 2024, 11:57:53 am
I added trixie (debian testing) to the repo for amd64. It has the libwebkit2 dependencies.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on August 31, 2024, 09:31:33 pm
I added trixie (debian testing) to the repo for amd64. It has the libwebkit2 dependencies.

Great, I added automatic repo detection for DEB distros to match the native codename (and fallback to the legacy repos for <= MC31).
Title: Re: installJRMC - MC installer for Linux
Post by: Library Eye on January 26, 2025, 02:50:10 am
No luck here installing, Fedora 41 KDE...

Ran installer from opening post—
tl;dr One-line MC install
curl https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC|bash
Realized it installed 33 despite being on this page; I have a 32 (master) license. Figured, okay, can run it for trial, test it out, before dealing with figuring out how to install 32 instead.

It launched, it ran once. But once I shut it down it never would start again.

So, I removed it.

Then I installed 32. Think I went with…

curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&
chmod +x ./installJRMC &&
./installJRMC --install repo --mcversion 32.0.6

Which could be very wrong. Got the opening screen first time I tried running it, and that's it. Never even launched, and won't even show opening screen again.

I realize what I entered for 32 install could be poorly formatted, but I would have though the initial 33 install would have worked more than one time.

So, needing to get 32 running. Any help'd be great, thanks
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 26, 2025, 05:57:09 am
32.0.6? The last build of MC32 was 32.0.58, try that instead. After install if it's failing to start again try starting mediacenter32 from a terminal and see what it says, if there's any errors like segmentation faults, etc. Might be a good idea to delete the hidden .jriver directory in your home directory before installing MC32 again to make sure it's a clean install.
Title: Re: installJRMC - MC installer for Linux
Post by: Library Eye on January 26, 2025, 09:46:08 pm
I was wondering about that: 32.0.58 was newest I could see mention of , but the exact example above in first post of this thread shows 32.0.6 so I figured that must exist.

installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 32.0.6

Anyhow, so yes deleted invisible folder. Installed 32.0.58. Told me trial was over, even though I never used it. So this led me down unrelated path, just wanting to copy license file I have on my Mac, of wasting a bunch of time realizing what a challenge it is getting samba to work from Fedora. Still not working, and followed all the steps. What a waste of time…

so back to JRiver, I enter my license, which opening menu accepts. But, app never runs beyond that.

Try to launch again, nothing happens.

typing in

mediacenter32

in terminal, I get a litany of errors.

Been a while since I used JRiver in Linux but I recall it being simple enough, add repo, install the program. Is it simpler to setup in a Debian or Ubuntu derivative?
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 27, 2025, 05:41:54 am
What errors do you get? Mind posting the output of running mediacenter32 in the terminal here?
Title: Re: installJRMC - MC installer for Linux
Post by: Library Eye on January 27, 2025, 10:56:46 am
Unfortunately I don't have the errors. Since I realized samba under Fedora was also being difficult, I thought I'd try a different (Ubuntu-based) distro. That wrecked the bootloader, and now I can't even get into Windows (which unfortunately I need for rare, occasional use due to certain hardware) without going into BIOS. And hardware support on the device overall seems worse under new distro in limited testing (Fedora was working great, except for issues I encountered with JRiver and smb this weekend). Never had this much trouble dual-booting as I am now. If / when I get machine back in working order, if I try JRiver again under Fedora I'll report back with errors or progress. Thanks.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 27, 2025, 02:53:16 pm
Would highly recommend having OSes installed on separate drives and to disconnect drives of OSes (Windows in this case) when installing another OS (Linux in this case) on a different drive to avoid bootloader shenanigans. Fixing broken bootloaders is NOT fun. When installing/reinstalling Windows I always disconnect the SSD my Ubuntu is installed on to avoid issues like this.

Also worth pointing out that JRiver only officially supports Debian (and kinda supports Ubuntu as it has repos available). Any other OS including Fedora would be considered unsupported.
Title: Re: installJRMC - MC installer for Linux
Post by: Library Eye on January 28, 2025, 02:32:35 am
I fixed the bootloader, switched linux distro to Kubuntu, installed JRiver 32.0.58 using Adding the MediaCenter repo manually. Only for Debian and Ubuntu https://yabb.jriver.com/interact/index.php/topic,137900.0.html (https://yabb.jriver.com/interact/index.php/topic,137900.0.html) with the Noble repo because I'm on Oracular Oriole. Worked. Yay!

Oddly JRiver under Fedora (for the whole one time it worked) knew right away which audio device to use (the one the OS was set to) whereas in Ubuntu it defaulted to some other device and shows me countless options with arcane names… finally found whichever = HDMI and which = internal speaker.

In past I have switched library from Mac to Linux and back again and even wrote kinda tutorial somewhere here on forum as to how I got it to work. Now though I just want to run my Mac library as media server remotely via Linux client. It is not though even syncing play counts. I have set it up to do so, including authentication with user name and password, but seems to only sometimes sync play counts and only when I tell client to do so manually. Like I played a song, and no matter what I do, it still shows as never played. This wrecks plan to use Media Networked Library and defeats purpose of having JRiver installed on the Linux machine, so hope I can somehow get that working right but don't see how. 
Title: Re: installJRMC - MC installer for Linux
Post by: Library Eye on February 01, 2025, 01:59:56 pm
re: "I have set it up to do so, including authentication with user name and password, but seems to only sometimes sync play counts and only when I tell client to do so manually. Like I played a song, and no matter what I do, it still shows as never played."

Just a followup that I got this working.

This should probably at this point go in different part of forum, but since I mentioned it here I'll note the resolution here—

Next day, same guest machine from same host server, the library would not even launch. I forget error; shoulda written down. Told me to check internet, for one. Internet was fine.

I tried turning off and on Authentication, as I had read on forum, to generate new password and get it working again. Still would not launch.

Then I tried
Advanced »  Reset sharing key (makes all shares invalid)
the suggestion of which I'd not come across in my search, and that did the trick. Library launches, and so far syncs.

I think maybe when first accessing the remote library if you don't right then tell it to remember password, you may have trouble. It never asked again, and just would not sync even when restarting etc. However I could not really test that out much, because next day I could not get library to even start, which was only resolved by the sharing key reset.