INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Linux => Topic started by: BryanC on October 10, 2022, 03:24:46 pm

Title: installJRMC - MC installer for Linux
Post by: BryanC on October 10, 2022, 03:24:46 pm
installJRMC

This self-contained 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).

Major changes for MC30
Instructions

Download and unzip installJRMC from the attachment below or grab the latest stable version directly from my repo and execute it:

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. This makes 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. "30.0.72"
--arch ARCH
    Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture)
--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
--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 30.0.72Build and install an MC 30.0.72 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)

Did you find a bug? Let me know on Interact! (https://yabb.jriver.com/interact/index.php/topic,134152.0.html)
Title: Re: installJRMC - MC installer for Linux
Post by: eve on October 10, 2022, 03:36:27 pm
Thanks for this!
Title: Re: installJRMC - MC installer for Linux
Post by: JimH on October 10, 2022, 03:59:53 pm
Thanks, Bryan!
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on October 11, 2022, 02:09:28 pm
I would also like to add my appreciation, Bryan. Thank you very much indeed. I love it when it just works 'cause I am no good at all with this.
Title: Re: installJRMC - MC installer for Linux
Post by: kona68 on November 10, 2022, 02:45:43 am
Thanks for the work Bryan. mediacenter30 (installed with installJRMC master) works for me on fedora 36, gnome 42 wayland, but I have a problem. It is very slow at startup (first a black screen before a correct display): about one minute to be operational. And very unresponsive: several seconds for each click.
Compared to the mac version (I have mediacenter26), it's night and day.
Any ideas?
Thanks
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on November 12, 2022, 08:29:06 am
Thanks for the work Bryan. mediacenter30 (installed with installJRMC master) works for me on fedora 36, gnome 42 wayland, but I have a problem. It is very slow at startup (first a black screen before a correct display): about one minute to be operational. And very unresponsive: several seconds for each click.
Compared to the mac version (I have mediacenter26), it's night and day.
Any ideas?
Thanks

MC for Linux is a little slower for me than on other platforms, but it shouldn't be taking a minute to launch. Try launching mediacenter30 from the command line to see if there are any errors or missing libraries. Also check your system logs (journalctl) and run a JRMark benchmark to see if there are any performance bottlenecks. You can also try clearing the library or temporarily moving "~/.jriver/Media Center 30" to make sure that there isn't an issue with your library. You'll also want to make sure that the nocow (C) attribute is set for that directory too (installJRMC should do this automatically if it detects a btrfs partition) as this can impact database performance.

Last thing I can think of is to make sure you've restored your license manually (mediacenter30 /RestoreFromFile ./MediaCenterLicense.mjr) as perhaps there is an issue with SSL certs or general connectivity during license check on startup?
Title: Re: installJRMC - MC installer for Linux
Post by: kona68 on November 12, 2022, 02:19:42 pm
Thanks for the answer.
I finally reinstall mediacenter30 with this command line:
installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 30.0.17

everything is ok: speed, no latency after a click ! Nice
 :D :D
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on December 21, 2022, 10:12:40 am
I just released rc2 with a few notable changes/fixes. Starting X11 services in Fedora and Ubuntu has diverged so I've added a workaround for both platforms. mesa-va-drivers-freeworld is now a soft dependency in the Fedora/CentOS RPM, and installJRMC will automatically install it on those platforms using dnf swap from RPMFusion. SSL cert symlinks should be fixed as well.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on December 21, 2022, 01:02:48 pm
Thank you Bryan!
Title: Re: installJRMC - MC installer for Linux
Post by: cello on January 02, 2023, 04:10:21 pm
Hello,
the rc2 version doesn't seem to work for me (OS: Buster).
 
./installJRMC: row 1636: exec: sudo add-apt-repository -y universe: Not found

Downloaded rc1 - run it - worked again
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 03, 2023, 08:08:06 am
Hello,
the rc2 version doesn't seem to work for me (OS: Buster).
 
./installJRMC: row 1636: exec: sudo add-apt-repository -y universe: Not found

Downloaded rc1 - run it - worked again

Hmm, I cannot replicate and it shouldn't install the universe repository on Debian, only Ubuntu. Could you try running with "--debug" and posting the output?
Title: Re: installJRMC - MC installer for Linux
Post by: GaryB on January 03, 2023, 10:03:02 am
Hmm, I cannot replicate and it shouldn't install the universe repository on Debian, only Ubuntu. Could you try running with "--debug" and posting the output?

I've just got the same thing Bryan
Title: Re: installJRMC - MC installer for Linux
Post by: GaryB on January 03, 2023, 10:05:04 am
I've just got the same thing Bryan

First Debugging on!
Debug: Running: init
Starting installJRMC
To enable debugging output, use --debug or -d
Debug: Detected host platform: raspbian 11
Autodetecting distro, this may be unreliable and --compat may also be required
Debug: Using host platform: ubuntu 11
Debug: Running: parseInput
Debugging on
installJRMC version: 1.0-rc2
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: buildah already installed, skipping installation
Using MC version 30.0.45-armhf determined by containerized package manager.
To override, use --mcversion.
Debug: MVERSION: 30, MCVERSION: 30.0.45-armhf, MCPKG: mediacenter30, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter30-30.0.45-armhf.x86_64.rpm
Adding universe repository
Debug: sudo add-apt-repository -y universe
//home/pi/installJRMC: line 1636: exec: sudo add-apt-repository -y universe: not found
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 03, 2023, 10:07:47 am
First Debugging on!
Debug: Running: init
Starting installJRMC
To enable debugging output, use --debug or -d
Debug: Detected host platform: raspbian 11
Autodetecting distro, this may be unreliable and --compat may also be required
Debug: Using host platform: ubuntu 11
Debug: Running: parseInput
Debugging on
installJRMC version: 1.0-rc2
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: buildah already installed, skipping installation
Using MC version 30.0.45-armhf determined by containerized package manager.
To override, use --mcversion.
Debug: MVERSION: 30, MCVERSION: 30.0.45-armhf, MCPKG: mediacenter30, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter30-30.0.45-armhf.x86_64.rpm
Adding universe repository
Debug: sudo add-apt-repository -y universe
//home/pi/installJRMC: line 1636: exec: sudo add-apt-repository -y universe: not found
armhf and amd64??
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 03, 2023, 11:04:11 am
In rc3 I've added Raspbian detection to treat it like Debian and not Ubuntu, this should fix it for you. I've never officially tested on ARM but I've been informed it works fine.
Title: Re: installJRMC - MC installer for Linux
Post by: GaryB on January 03, 2023, 12:22:00 pm
In rc3 I've added Raspbian detection to treat it like Debian and not Ubuntu, this should fix it for you. I've never officially tested on ARM but I've been informed it works fine.

That's now working thanks Bryan
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 06, 2023, 05:31:08 pm
I've added rudimentary and untested Arch Linux install support in v1.0-rc4 using the --install local method. Arch is kind of a pain to setup for reproducible testing in a VM so no guarantees, good luck!

Code: [Select]
./installJRMC --install local --debug
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 06, 2023, 06:16:07 pm
You could use EndeavourOS or Manjaro as a test platform, as both use the AUR that Arch uses for apps like MC. If it works in either one, it *should* also work in Arch.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 07, 2023, 10:47:27 am
You could use EndeavourOS or Manjaro as a test platform, as both use the AUR that Arch uses for apps like MC. If it works in either one, it *should* also work in Arch.

Thanks, Manjaro was much less of a headache, I made a few fixes and it builds and runs now in my master branch. I will try to polish it up later.

(https://repos.bryanroessler.com/files/mWdCuCpoy8kIjfhLXkhGKudYjhWGIRSbbbBqBldU1O4xBCKmyW9S9uMldyQGEVxv/Screenshot%20from%202023-01-07%2011-46-26.png)
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 24, 2023, 11:31:14 am
I just installed JRiver 30 on a nuc with debian 11, cf https://yabb.jriver.com/interact/index.php/topic,134152.0.html. no errors. Just want a trial version running. By starting JRiver I only get twice an empty window with ok. nothing else. Any suggestions?
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on January 24, 2023, 11:34:49 am
Do you have a monitor connected to the device running MC or are you running it headless? From past experience if you're seeing only a white window that typically means the OS isn't running at a high enough color depth MC needs. If running headless MC likely needs a dummy X server installed and running.
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 24, 2023, 11:45:44 am
Also of course don't run as root or sudo.
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 24, 2023, 12:24:35 pm
Do you have a monitor connected to the device running MC or are you running it headless? From past experience if you're seeing only a white window that typically means the OS isn't running at a high enough color depth MC needs. If running headless MC likely needs a dummy X server installed and running.
Yes a monitor, get only a small window called information, empty only the word ok
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 24, 2023, 01:19:15 pm
So what happens when you hit OK?
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 24, 2023, 01:29:21 pm
So what happens when you hit OK?
It disapears then get an other window, again ok, then It disapears and then nothing.....
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 24, 2023, 04:39:11 pm
It disapears then get an other window, again ok, then It disapears and then nothing.....
And when you restart it?
If you still get the issue maybe the skins were not copied completely on first start (that takes a bit).
try removing the
~.jriver/Media\ Center\ 30/Skins
directory and re-running MC.
Don't remove anything else.

Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 25, 2023, 01:19:18 am
jriver dir is empty
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 25, 2023, 10:00:00 am
jriver dir is empty
That's just a screenshot of your install.
Did you do
Code: [Select]
rm -rf ~/.jriver/Media\ Center\ 30/SkinsThen re-run
mediacenter30
?
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 25, 2023, 10:03:23 am
Also try launching MC directly from the terminal using "mediacenter30' and check output for anything interesting (missing libraries, permission errors).
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 25, 2023, 11:59:17 am
Yes I did, rm -rf ~/.jriver/Media\ Center\ 30/Skins, though no console message, rerun, the same no change, still 2 empty windows with ok.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 25, 2023, 01:38:03 pm
I just pushed a bunch of changes I've been working on to my master branch. There's nothing that should explicitly fix your issue, but might as well give the latest version a try to see if it helps.

I've cleaned up a lot of code in prep for the next release. Arch users should have firewall support now if they have firewalld (firewall-cmd) or ufw installed.
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 30, 2023, 04:54:00 am
Also try launching MC directly from the terminal using "mediacenter30' and check output for anything interesting (missing libraries, permission errors).
                                                       
nothing is installed in the default direcory, as I told you dir is empty. So starting from terminal just tells you that in Dutch
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Planetarium/Vertical Silliness.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Planetarium/Violent Galaxy.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Planetarium/Vortex World.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Planetarium/Wind & Light.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/America.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Black & White.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Classic.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Cover Art Spectrum.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Infinite Sandance.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Purple Dance.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Spectrum Analyzer/Stereo.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Tabby/Atomic peacock.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Tabby/Ballfly melts.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Tabby/Flowing radiants.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Tabby/Paper sparkles cvar.mjv' niet aanmaken: Bestand of map bestaat niet
cp: kan het normale bestand '/home/rob/.jriver/Media Center 30/Visualizations/Vis Studio/Tabby/Wire hybrid.mjv' niet aanmaken: Bestand of map bestaat niet -> cannot make, file or map soes not exists
                                                                                                       
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 30, 2023, 08:06:14 am
I would start fresh, run installJRMC --uninstall, remove your library files (rm -rf ~/.jriver) and then reinstall. You are missing directories and MC is either not creating them automatically or cannot create them. Could be a permissions issue or a corrupted installation.
Title: Re: installJRMC - MC installer for Linux
Post by: bob on January 30, 2023, 09:00:57 am
Assuming that the home directory has the correct ownership and permissions and that the .jriver directory does not (you perhaps ran MC under sudo??)
In a terminal under the user running MC you should be able to do:

Code: [Select]
sudo chown -R `id -u` ~/.jriverthen
Code: [Select]
sudo chmod -R 755 ~/.jriver
Title: Re: installJRMC - MC installer for Linux
Post by: tonbor on January 31, 2023, 02:43:05 pm
I would start fresh, run installJRMC --uninstall, remove your library files (rm -rf ~/.jriver) and then reinstall. You are missing directories and MC is either not creating them automatically or cannot create them. Could be a permissions issue or a corrupted installation.

I did, all fixed, thanks!!
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on March 26, 2023, 04:00:46 pm
Some changes in rc7 on the path to 1.0:
Title: Re: installJRMC - MC installer for Linux
Post by: ssit on May 01, 2023, 05:55:13 pm
Hi, I got the following error when trying to run the installer.  PLEASE HELP!

./installJRMC -d

....
 JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: sudo apt-get update -y -q0
Ign:1 http://httpredir.debian.org/debian stretch-backports InRelease
Err:2 http://httpredir.debian.org/debian stretch-backports Release             
  404  Not Found [IP: 2a04:4e42:87::644 80]
Hit:3 http://dist.jriver.com/latest/mediacenter buster InRelease               
Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease               
Hit:5 http://archive.raspberrypi.org/debian buster InRelease                   
Reading package lists... Done
E: The repository 'http://httpredir.debian.org/debian stretch-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error: Package update failed!
Error: JRiver Media Center installation from repo failed
Title: Re: installJRMC - MC installer for Linux
Post by: max096 on May 01, 2023, 07:13:47 pm
Hi, I got the following error when trying to run the installer.  PLEASE HELP!

./installJRMC -d

....
 JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: sudo apt-get update -y -q0
Ign:1 http://httpredir.debian.org/debian stretch-backports InRelease
Err:2 http://httpredir.debian.org/debian stretch-backports Release             
  404  Not Found [IP: 2a04:4e42:87::644 80]
Hit:3 http://dist.jriver.com/latest/mediacenter buster InRelease               
Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease               
Hit:5 http://archive.raspberrypi.org/debian buster InRelease                   
Reading package lists... Done
E: The repository 'http://httpredir.debian.org/debian stretch-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error: Package update failed!
Error: JRiver Media Center installation from repo failed

This has not much to do with the script but one of your repositories is gone.

https://stackoverflow.com/questions/76094428/debian-stretch-repositories-404-not-found

Seems as though debian have changed some things around with the stretch repositories. Try the following.

Code: [Select]
# Backup just in case
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

# Commands to replace stuff in sources.list
sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
sudo sed -i 's|security.debian.org|archive.debian.org/debian-security/|g' /etc/apt/sources.list
sudo sed -i '/stretch-updates/d' /etc/apt/sources.list

# Try if update works now
sudo apt update
# NOTE: Donīt do this if the command above already spits out errors better to restart with the original sources.list file and replace things by hand then
sudo apt upgrade -y

Btw, stretch EOL is 30 June 2022 iīd recommend you upgrade when you find the time. But this should fix your error right now. In place upgrades can be done, Iīd recommend you upgrade to debian 10 and not to 11 (never tried to jump 2 versions at once donīt know if that is supposed to work). You can upgrade to 11 afterwards. But otherwise this always worked out fine for me with occasional minor hickups.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 17, 2023, 12:38:56 pm
Tried to install MC31 on my rPi4 and got this:


 curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&  chmod +x ./installJRMC &&  ./installJRMC
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 59342    0 59342    0     0  62928      0 --:--:-- --:--:-- --:--:-- 62995
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Installing JRiver Media Center from remote repository
Error: Failed to install mediacenter31. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from repo failed

Does this mean MC31 is not availanble for Linux yet?
I did manage to install Max's docker version without any problems, thanks Max!!
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 18, 2023, 01:40:56 pm
Tried to install MC31 on my rPi4 and got this:


 curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&  chmod +x ./installJRMC &&  ./installJRMC
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 59342    0 59342    0     0  62928      0 --:--:-- --:--:-- --:--:-- 62995
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Installing JRiver Media Center from remote repository
Error: Failed to install mediacenter31. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from repo failed

Does this mean MC31 is not availanble for Linux yet?
I did manage to install Max's docker version without any problems, thanks Max!!

This is probably a dependency issue, you can enable debugging ./installJRMC --debug to confirm, if so you can check the MC31 thread (https://yabb.jriver.com/interact/index.php/topic,135999.0.html) for a workaround in the meantime:

Code: [Select]
./installJRMC --install local --compat
Title: Re: installJRMC - MC installer for Linux
Post by: bob on May 18, 2023, 03:01:14 pm
It is in the latest repo under bullseye.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 19, 2023, 09:26:53 am
It is in the latest repo under bullseye.
Thanks Bob, this is what I get now:

 ./installJRMC --install local --compat
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Checking latest repo for DEB package
Checking test repo for DEB package
Error: Cannot find DEB file

I'll enable debug to see if there is anything wrong on my end

EDIT: This with debug on:

 ./installJRMC --install local --compat -d
Debug: Running: main --install local --compat -d
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: debian 10 aarch64
Debug: Using host platform: debian 10
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: sudo apt-get -f install -y -q0 buildah
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package buildah
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Debug: MVERSION: 31, MCVERSION: 31.0.12, MCPKG: mediacenter31, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter31-31.0.12.x86_64.rpm
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: Running: acquireDeb
Debug: MCDEB=/home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Using existing DEB: /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Debug: Running: installMCDEB
Debug: ar x /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
ar: /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb: file format not recognized
Debug: tar xJf control.tar.xz
tar (child): control.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
sed: can't read control: No such file or directory
sed: can't read control: No such file or directory
Debug: tar -cJf control.tar.xz control postinst
tar: control: Cannot stat: No such file or directory
tar: postinst: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Debug: ar rcs /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb debian-binary control.tar.xz data.tar.xz
ar: debian-binary: No such file or directory
Debug: rm -rf /tmp/tmp.Suok908Xzq
Debug: Running: installPackage --no-install-check --no-gpg-check --allow-downgrades /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb
Debug: sudo apt-get -f install -y -q0 --allow-downgrades /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb
Reading package lists... Done
E: Unsupported file /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb given on commandline
Error: Failed to install /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb. Attempting to continue
Error: JRiver Media Center local package installation failed

I am afraid I do not know what to do with this. If there is anything I can do to fix this I woudl appreciate any pointers.
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on May 19, 2023, 10:20:29 am
Speaking of, I actually noticed another issue with the aarch64/arm64 build of MC31 when I was trying to build a package to install it in Orange Pi OS (based on aarch64/arm64 Arch Linux). It was giving me permission denied errors for the libhh_portable.so.dpkg.new file in the .deb package (located in the /usr/lib/jriver/Media Center 31/Plugins folder within the .deb package) when it extracted and tried to build a new installable package. Taking a quick look at it, it seems that file has no permissions on the file whatsoever, so it's tripping and erroring out the makepkg attempt.

Just thought it was worth mentioning, just in case anyone else experienced it.
Title: Re: installJRMC - MC installer for Linux
Post by: bob on May 19, 2023, 07:37:00 pm
Speaking of, I actually noticed another issue with the aarch64/arm64 build of MC31 when I was trying to build a package to install it in Orange Pi OS (based on aarch64/arm64 Arch Linux). It was giving me permission denied errors for the libhh_portable.so.dpkg.new file in the .deb package (located in the /usr/lib/jriver/Media Center 31/Plugins folder within the .deb package) when it extracted and tried to build a new installable package. Taking a quick look at it, it seems that file has no permissions on the file whatsoever, so it's tripping and erroring out the makepkg attempt.

Just thought it was worth mentioning, just in case anyone else experienced it.
Not sure how that got in there.
Cleaned it out and am making a new build now.
Unfortunately I can't update the version number today so you'll have to refresh the repo (do an apt-get update or equivalent)
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on May 20, 2023, 02:53:37 am
Groovy, let me know when it's up. :)

There's several other .so.dpkg-new files in that Plugins folder in the aarch64/arm64 build including libaften.so.0.0.8.dpkg-new, libdsp_Main.so.dpkg-new and libenc_Main.so.dpkg-new. I assume those aren't supposed to be there either?
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 20, 2023, 08:38:34 am
Thanks Bob, this is what I get now:

 ./installJRMC --install local --compat
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Checking latest repo for DEB package
Checking test repo for DEB package
Error: Cannot find DEB file

I'll enable debug to see if there is anything wrong on my end

EDIT: This with debug on:

 ./installJRMC --install local --compat -d
Debug: Running: main --install local --compat -d
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: debian 10 aarch64
Debug: Using host platform: debian 10
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: sudo apt-get -f install -y -q0 buildah
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package buildah
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Debug: MVERSION: 31, MCVERSION: 31.0.12, MCPKG: mediacenter31, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter31-31.0.12.x86_64.rpm
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: Running: acquireDeb
Debug: MCDEB=/home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Using existing DEB: /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Debug: Running: installMCDEB
Debug: ar x /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
ar: /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb: file format not recognized
Debug: tar xJf control.tar.xz
tar (child): control.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
sed: can't read control: No such file or directory
sed: can't read control: No such file or directory
Debug: tar -cJf control.tar.xz control postinst
tar: control: Cannot stat: No such file or directory
tar: postinst: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Debug: ar rcs /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb debian-binary control.tar.xz data.tar.xz
ar: debian-binary: No such file or directory
Debug: rm -rf /tmp/tmp.Suok908Xzq
Debug: Running: installPackage --no-install-check --no-gpg-check --allow-downgrades /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb
Debug: sudo apt-get -f install -y -q0 --allow-downgrades /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb
Reading package lists... Done
E: Unsupported file /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb given on commandline
Error: Failed to install /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.compat.deb. Attempting to continue
Error: JRiver Media Center local package installation failed

I am afraid I do not know what to do with this. If there is anything I can do to fix this I woudl appreciate any pointers.

Code: [Select]
ar: /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb: file format not recognized
It looks like the deb file may be corrupted, try removing it and rerunning.

If that doesn't work I will see if I can reproduce after the next build is released. I don't normally test on non-x86 arch so it could be related.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 20, 2023, 10:03:58 am
Thank you, Bryan

I removed the .deb file, which was 0 bytes and reran, to no avail. The new .deb file is still 0 bytes.
There also seems to be a problem installing the 'bildah' package
E: Unable to locate package buildah

./installJRMC --install local --compat -d
Debug: Running: main --install local --compat -d
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: debian 10 aarch64
Debug: Using host platform: debian 10
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: sudo apt-get -f install -y -q0 buildah
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package buildah
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Debug: MVERSION: 31, MCVERSION: 31.0.12, MCPKG: mediacenter31, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter31-31.0.12.x86_64.rpm
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: Running: acquireDeb
Debug: MCDEB=/home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Checking latest repo for DEB package
Debug: wget -q -O /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb https://files.jriver-cdn.com/mediacenter/channels/v31/latest/MediaCenter-31.0.12-aarch64.deb
Checking test repo for DEB package
Debug: wget -q -O /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb https://files.jriver-cdn.com/mediacenter/test/MediaCenter-31.0.12-aarch64.deb
Error: Cannot find DEB file
Title: Re: installJRMC - MC installer for Linux
Post by: Hendrik on May 20, 2023, 10:18:16 am
Our aarch64 file is called "arm64", so its looking for the wrong postfix. Might need an update to the script to accomodate for that?
You might be able to override it by specifying "--arch arm64"
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 20, 2023, 10:33:38 am
Thank you, Bryan

I removed the .deb file, which was 0 bytes and reran, to no avail. The new .deb file is still 0 bytes.
There also seems to be a problem installing the 'bildah' package
E: Unable to locate package buildah

./installJRMC --install local --compat -d
Debug: Running: main --install local --compat -d
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: debian 10 aarch64
Debug: Using host platform: debian 10
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-dev
Debug: Running: setMCVersion
Debug: Running: installPackage --silent buildah
Debug: sudo apt-get -f install -y -q0 buildah
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package buildah
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Using MC version 31.0.12 determined by webscrape
To override, use --mcversion
Debug: MVERSION: 31, MCVERSION: 31.0.12, MCPKG: mediacenter31, MCRPM: /home/pi/output/RPMS/x86_64/mediacenter31-31.0.12.x86_64.rpm
Debug: Running: installPackage wget
Debug: wget already installed, skipping installation
Debug: Running: acquireDeb
Debug: MCDEB=/home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb
Checking latest repo for DEB package
Debug: wget -q -O /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb https://files.jriver-cdn.com/mediacenter/channels/v31/latest/MediaCenter-31.0.12-aarch64.deb
Checking test repo for DEB package
Debug: wget -q -O /home/pi/output/SOURCES/MediaCenter-31.0.12-aarch64.deb https://files.jriver-cdn.com/mediacenter/test/MediaCenter-31.0.12-aarch64.deb
Error: Cannot find DEB file

buildah isn't required, it's just a reliable way to get the latest MC version.

I added an alias for aarch64 to arm64 in my dev branch. You can curl the script from here: https://git.bryanroessler.com/bryan/installJRMC/raw/dev/installJRMC
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 20, 2023, 11:07:35 am
Thank you Bryan, I appreciate your help
Title: Re: installJRMC - MC installer for Linux
Post by: bob on May 20, 2023, 11:31:13 am
Groovy, let me know when it's up. :)

There's several other .so.dpkg-new files in that Plugins folder in the aarch64/arm64 build including libaften.so.0.0.8.dpkg-new, libdsp_Main.so.dpkg-new and libenc_Main.so.dpkg-new. I assume those aren't supposed to be there either?
Put it up last night.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 20, 2023, 11:57:31 am
This time InstallJRMC worked and created Media Center 31 and Media Center 31 PackageInstaller in /usr/share/applications
However, running Media Center 31 doesn't do anything. I clearly don't understand how this should work but I had no problems with MC29 and MC30.
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on May 20, 2023, 12:20:51 pm
This time InstallJRMC worked and created Media Center 31 and Media Center 31 PackageInstaller in /usr/share/applications
However, running Media Center 31 doesn't do anything. I clearly don't understand how this should work but I had no problems with MC29 and MC30.

Could you launch it from the command line (`mediacenter31`) to see if there are any dependency issues?

It might be worth upgrading to the latest bullseye-based Raspberry Pi OS instead of using the legacy version. What OS are you using exactly (Raspbian/Raspberry Pi OS Legacy 10)? I can try to reproduce in a VM.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 21, 2023, 09:34:09 am
Thank you Bryan!

This is what I get:

mediacenter31
mediacenter31: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by mediacenter31)
mediacenter31: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/lib/jriver/Media Center 31/libcryptlib.so)

I believe I am running Debian 5.10.103-v8+
I'll have to research how to upgrade the System on the Pi
Title: Re: installJRMC - MC installer for Linux
Post by: Hendrik on May 21, 2023, 10:19:24 am
MediaCenter 31 requires at least Debian 11 ("bullseye"), so yes, you will need to upgrade your system.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 21, 2023, 03:18:24 pm
MediaCenter 31 requires at least Debian 11 ("bullseye"), so yes, you will need to upgrade your system.
Thanks Hendrik,

I'll have to figure out how to do that.
Title: Re: installJRMC - MC installer for Linux
Post by: HaWi on May 22, 2023, 04:33:48 pm
I managed to upgrade my rPi4 to Bullseye. Had some trouble with getting the screen resolution back to 2550x1440 for my iMac but all is well now. MC31.012 is running
Title: Re: installJRMC - MC installer for Linux
Post by: audiolover on November 30, 2023, 07:17:02 am
running the latest Debian. The installer,installJRMC-v1.0-rc7  seems to run but nothing is installed.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 60503    0 60503    0     0  60605      0 --:--:-- --:--:-- --:--:-- 60624
Starting installJRMC
To enable debugging output, use --debug or -d
Determining latest MC version
Using MC version 31.0.83 determined by webscrape
To override, use --mcversion

Am I doing something wrong?
Title: Re: installJRMC - MC installer for Linux
Post by: audiolover on November 30, 2023, 08:09:44 am
found the solution. run the installer using "./installJRMC". From the post about this script I understood I had to run the "curl"  script.
Title: Re: installJRMC - MC installer for Linux
Post by: audiolover on December 04, 2023, 03:46:14 am
I am trying to install JRiver using the latest version of Debian12. Downloaded "installJRMC" and in console I install and this is what I get:

kees@audiopc:~/Downloads$ sudo ./installJRMC --mcversion 28.0.106
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 28.0.106 determined by user input

Nothing happens, no installation? What am I doing wrong?
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on January 02, 2024, 12:23:03 pm
I am trying to install JRiver using the latest version of Debian12. Downloaded "installJRMC" and in console I install and this is what I get:

kees@audiopc:~/Downloads$ sudo ./installJRMC --mcversion 28.0.106
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 28.0.106 determined by user input

Nothing happens, no installation? What am I doing wrong?

I don't normally check the older Linux boards, but stumbled upon this. Do not run the script as root (do not use sudo).
Title: Re: installJRMC - MC installer for Linux
Post by: switch6343 on March 19, 2024, 12:59:34 pm
Hi Bryan;
Considering the fact that CentOS is the predecessor of AlmaLinux, I tried today to install JRiver Media Center for Linux 32 on AlmaLinux 9.3. I entered the following command in GNOME Terminal:

[user@hostname ~]$ curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC && chmod +x ./installJRMC && ./installJRMC -d --install repo

The installation failed, as you may conclude from the debugged print output. Some of the errors relate to:
Code: [Select]
[FAILED] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Error: Failed to install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm. Attempting to continue Installing JRiver Media Center from remote repository
No match for argument: [b]mesa-va-drivers-freeworld[/b]
No match for argument: [b]mesa-vdpau-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides webkit2gtk4.0 needed by mediacenter32-32.0.25-1.x86_64 from jriver
Error: Failed to install mediacenter32. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed

PLEASE FIND BELOW THE COMPLETE "PRINT" OUTPUT OF THE CURL COMMAND:

Debug: Running: main -d --install repo
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: almalinux 9.3 amd64
Error: Autodetecting distro, this is unreliable and --compat may be required
Debug: Using host platform: fedora 9.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
6c9608d4d481399f7d1fc2b26015444b64012539fbb34bf3870467b06a62972f
Using MC version 32.0.25 determined by containerized package manager
To override, use --mcversion
Debug: MVERSION: 32, MC_VERSION: 32.0.25, MC_PKG: mediacenter32, MC_RPM: /home/linus/output/RPMS/x86_64/mediacenter32-32.0.25.x86_64.rpm
Debug: Running: installPackage --no-install-check https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm
Debug: sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm
[sudo] password for [i]user[/i]:
Last metadata expiration check: 0:35:19 ago on Tue 19 Mar 2024 05:29:33 PM CET.
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[FAILED] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Error: Failed to install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm. Attempting to continue
Installing JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: sudo dnf makecache
AlmaLinux 9 - AppStream                         4.9 kB/s | 4.1 kB     00:00   
AlmaLinux 9 - BaseOS                            9.6 kB/s | 3.8 kB     00:00   
AlmaLinux 9 - Extras                            8.7 kB/s | 3.8 kB     00:00   
JRiver Media Center repo by BryanC              1.1 kB/s | 2.9 kB     00:02   
JRiver Media Center repo by BryanC              1.8 MB/s | 1.6 MB     00:00   
Metadata cache created.
Debug: Running: installMesa
Debug: sudo dnf install -y mesa-va-drivers-freeworld
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
No match for argument: [b]mesa-va-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld
Debug: sudo dnf install -y mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
No match for argument: [b][b]mesa-va-drivers-freeworld[/b][/b]
No match for argument: [b]mesa-vdpau-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Debug: Running: installPackage --no-install-check --allow-downgrades --no-gpg-check mediacenter32
Debug: sudo dnf install -y --allowerasing --nogpgcheck mediacenter32
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides webkit2gtk4.0 needed by mediacenter32-32.0.25-1.x86_64 from jriver
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: Failed to install mediacenter32. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed
[user@hostname ~]$
I am much aware that the install has NOT been done on a Fedora or CentOS box. However, you may want to consider to include AlmaLinux 9.3 as well, considering they are siblings? I decided for AlmaLinux because the cycle of AlmaLinux is 10 years (support will end in 2032!). I wanted to avoid any OS which has cycles of 6 months to 3 years.

I trust you understand. AlmaLinux really has been a very smooth installation, done in 2 days; the installation and configuration of my HP Printer in CUPS took 1/2 day.

I look much forward hearing from you.

Kind regards.

switch6343
Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 11, 2024, 03:56:53 am
So at the risk of being thought a complete idiot (something I already know) how do I install mc30...I have a master licence but normally using windows. No of the preceding make any sense to me. Any chance of getting the commands prompts in order please?
Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 11, 2024, 07:18:41 am
OK so I managed to install but its put on version 32 and my licence is 30......how do I install 30 please?
Title: Re: installJRMC - MC installer for Linux
Post by: bob on April 11, 2024, 10:22:43 am
OK so I managed to install but its put on version 32 and my licence is 30......how do I install 30 please?
What operating system are you using?
Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 11, 2024, 11:11:23 am
"Virginia"
Linux Mint 21.3
Thanks for your time
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on April 11, 2024, 11:32:40 am
He's what to try, just copy/paste each line in a Terminal and run each line before copy/pasting the next. I'm not sure if it actually works but I don't see why it shouldn't as the Jammy repo *should* work with Mint 21.3.

Code: [Select]
sudo apt update && sudo apt install -y wget apt-transport-https -y gpg -y

wget -O- http://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor | sudo  tee /usr/share/keyrings/jriver-com-archive-keyring.gpg >/dev/null 2>&1

echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main" | sudo tee /etc/apt/sources.list.d/jriver.list

sudo apt update

sudo apt install mediacenter30
Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 11, 2024, 02:40:48 pm
Well thanks for that but it did not work....see last line
paul@LianLiMint:~$ sudo  apt update
[sudo] password for paul:         
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Ign:3 http://packages.linuxmint.com virginia InRelease                         
Hit:4 https://repo.skype.com/deb stable InRelease                             
Hit:5 http://dist.jriver.com/latest/mediacenter jammy InRelease     
Hit:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease     
Hit:7 http://packages.linuxmint.com virginia Release
Hit:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
paul@LianLiMint:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libcue2 libreplaygain1 musepack-tools vorbis-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  libnss3
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 1,347 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu jammy-security/main amd64 libnss3 amd64 2:3.98-0ubuntu0.22.04.2 [1,347 kB]
Fetched 1,347 kB in 3s (514 kB/s) 
(Reading database ... 610565 files and directories currently installed.)
Preparing to unpack .../libnss3_2%3a3.98-0ubuntu0.22.04.2_amd64.deb ...
Unpacking libnss3:amd64 (2:3.98-0ubuntu0.22.04.2) over (2:3.98-0ubuntu0.22.04.1)
 ...
Setting up libnss3:amd64 (2:3.98-0ubuntu0.22.04.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
paul@LianLiMint:~$ sudo apt update && sudo apt install -y wget apt-transport-https -y gpg -y
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease                 
Ign:3 http://packages.linuxmint.com virginia InRelease                         
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease               
Hit:5 http://packages.linuxmint.com virginia Release                           
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Hit:7 http://dist.jriver.com/latest/mediacenter jammy InRelease               
Hit:8 https://repo.skype.com/deb stable InRelease                     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
gpg is already the newest version (2.2.27-3ubuntu2.1).
apt-transport-https is already the newest version (2.4.12).
The following packages were automatically installed and are no longer required:
  libcue2 libreplaygain1 musepack-tools vorbis-tools
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
paul@LianLiMint:~$ wget -O- http://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor | sudo  tee /usr/share/keyrings/jriver-com-archive-keyring.gpg >/dev/null 2>&1
--2024-04-11 20:34:28--  http://dist.jriver.com/mediacenter@jriver.com.gpg.key
Resolving dist.jriver.com (dist.jriver.com)... 71.24.233.122
Connecting to dist.jriver.com (dist.jriver.com)|71.24.233.122|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1712 (1.7K) [application/pgp-keys]
Saving to: ‘STDOUT’

-                   100%[===================>]   1.67K  --.-KB/s    in 0s     

2024-04-11 20:34:29 (4.51 MB/s) - written to stdout [1712/1712]

paul@LianLiMint:~$ echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main" | sudo tee /etc/apt/sources.list.d/jriver.list
deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main
paul@LianLiMint:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Ign:2 http://packages.linuxmint.com virginia InRelease                         
Hit:3 http://dist.jriver.com/latest/mediacenter jammy InRelease               
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease                 
Hit:5 http://packages.linuxmint.com virginia Release                           
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Hit:7 https://repo.skype.com/deb stable InRelease                             
Hit:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
paul@LianLiMint:~$ sudo apt install mediacenter30
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mediacenter30
paul@LianLiMint:~$ ^C
paul@LianLiMint:~$
Title: Re: installJRMC - MC installer for Linux
Post by: Awesome Donkey on April 11, 2024, 04:57:26 pm
The issue I see there is due to a Skype repo present with a depreciated key on your system that you'll have to fix or disable before proceeding. For apps like Skype I'd actually recommend installing flatpak (or snapd) and installing Skype from that instead of an APT repository in that case.

If all else fails you can try downloading the last MC30 build from the top of this forum section and manually installing it.

EDIT: Also double checked the available versions of MC on the repo in my Linux Mint VM and it appears to only currently have MC31 and MC32 and not MC30 or older. You'll likely have to manually install MC30 as mentioned above.
Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 12, 2024, 05:02:17 am
How do I install manually....I did down load but I cannot understand what to do next....sorry to be a pain
Title: Re: installJRMC - MC installer for Linux
Post by: bob on April 12, 2024, 11:31:25 am
How do I install manually....I did down load but I cannot understand what to do next....sorry to be a pain
Edit this file:
/etc/apt/sources.list.d/jriver.list
Change Jammy to buster

sudo apt update
sudo apt install mediacenter30

Title: Re: installJRMC - MC installer for Linux
Post by: oldwasp on April 12, 2024, 12:06:17 pm
Thank you
Title: Re: installJRMC - MC installer for Linux
Post by: BryanC on April 17, 2024, 06:44:05 pm
Hi Bryan;
Considering the fact that CentOS is the predecessor of AlmaLinux, I tried today to install JRiver Media Center for Linux 32 on AlmaLinux 9.3. I entered the following command in GNOME Terminal:

[user@hostname ~]$ curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC && chmod +x ./installJRMC && ./installJRMC -d --install repo

The installation failed, as you may conclude from the debugged print output. Some of the errors relate to:
Code: [Select]
[FAILED] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Error: Failed to install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm. Attempting to continue Installing JRiver Media Center from remote repository
No match for argument: [b]mesa-va-drivers-freeworld[/b]
No match for argument: [b]mesa-vdpau-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides webkit2gtk4.0 needed by mediacenter32-32.0.25-1.x86_64 from jriver
Error: Failed to install mediacenter32. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed

PLEASE FIND BELOW THE COMPLETE "PRINT" OUTPUT OF THE CURL COMMAND:

Debug: Running: main -d --install repo
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: almalinux 9.3 amd64
Error: Autodetecting distro, this is unreliable and --compat may be required
Debug: Using host platform: fedora 9.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
6c9608d4d481399f7d1fc2b26015444b64012539fbb34bf3870467b06a62972f
Using MC version 32.0.25 determined by containerized package manager
To override, use --mcversion
Debug: MVERSION: 32, MC_VERSION: 32.0.25, MC_PKG: mediacenter32, MC_RPM: /home/linus/output/RPMS/x86_64/mediacenter32-32.0.25.x86_64.rpm
Debug: Running: installPackage --no-install-check https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm
Debug: sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm
[sudo] password for [i]user[/i]:
Last metadata expiration check: 0:35:19 ago on Tue 19 Mar 2024 05:29:33 PM CET.
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[MIRROR] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
[FAILED] rpmfusion-free-release-9.3.noarch.rpm: Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Status code: 404 for https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm (IP: 2001:67c:1740:9022::144)
Error: Failed to install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-9.3.noarch.rpm. Attempting to continue
Installing JRiver Media Center from remote repository
Debug: Running: installMCFromRepo
Debug: sudo dnf makecache
AlmaLinux 9 - AppStream                         4.9 kB/s | 4.1 kB     00:00   
AlmaLinux 9 - BaseOS                            9.6 kB/s | 3.8 kB     00:00   
AlmaLinux 9 - Extras                            8.7 kB/s | 3.8 kB     00:00   
JRiver Media Center repo by BryanC              1.1 kB/s | 2.9 kB     00:02   
JRiver Media Center repo by BryanC              1.8 MB/s | 1.6 MB     00:00   
Metadata cache created.
Debug: Running: installMesa
Debug: sudo dnf install -y mesa-va-drivers-freeworld
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
No match for argument: [b]mesa-va-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld
Debug: sudo dnf install -y mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
No match for argument: [b][b]mesa-va-drivers-freeworld[/b][/b]
No match for argument: [b]mesa-vdpau-drivers-freeworld[/b]
Error: Unable to find a match: mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
Debug: Running: installPackage --no-install-check --allow-downgrades --no-gpg-check mediacenter32
Debug: sudo dnf install -y --allowerasing --nogpgcheck mediacenter32
Last metadata expiration check: 0:00:01 ago on Tue 19 Mar 2024 06:04:57 PM CET.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides webkit2gtk4.0 needed by mediacenter32-32.0.25-1.x86_64 from jriver
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: Failed to install mediacenter32. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed
[user@hostname ~]$
I am much aware that the install has NOT been done on a Fedora or CentOS box. However, you may want to consider to include AlmaLinux 9.3 as well, considering they are siblings? I decided for AlmaLinux because the cycle of AlmaLinux is 10 years (support will end in 2032!). I wanted to avoid any OS which has cycles of 6 months to 3 years.

I trust you understand. AlmaLinux really has been a very smooth installation, done in 2 days; the installation and configuration of my HP Printer in CUPS took 1/2 day.

I look much forward hearing from you.

Kind regards.

switch6343

Hello, I just added almalinux support to the dev branch.

I don't normally read these older forums so if anyone has issues please bring them to the latest thread where I will be more likely to see them.