INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2   Go Down

Author Topic: installJRMC - MC installer for Linux  (Read 11950 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
installJRMC - MC installer for Linux
« on: May 16, 2023, 08:48:36 am »

installJRMC

This program will install JRiver Media Center and associated services on most major Linux distros.

You can always find the latest version of installJRMC, changelog, and documentation in my repository.

Instructions

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

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 (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. "31.0.11"
--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
--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.

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 shares your existing X display via VNC and can be combined with additional services to start Media Center or Media Server. Conversely, jriver-xvnc 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 31.0.11Build and install an MC 31.0.11 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!
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #1 on: May 16, 2023, 12:43:55 pm »

libxcb is newer in Bullseye (1.14) than Fedora Rawhide (1.13) so in the meantime I would suggest using --compat and --install local to workaround the RPM installation. I'm not sure why Fedora is using such an old version (other than being Wayland-focused).
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #2 on: May 16, 2023, 01:25:45 pm »

It's a bug in MC, Bob fixed it in 31.0.12... hopefully. :P
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #3 on: May 16, 2023, 02:05:07 pm »

Oh darn, yeah, you're right. Even 31.0.12 won't install because of libxcb in Fedora being slightly out of date. :|
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10923
Re: installJRMC - MC installer for Linux
« Reply #4 on: May 16, 2023, 03:37:28 pm »

We can probably remove the version on that package, or lower it, the actual interface of that library hasn't changed in ages.
Logged
~ nevcairiel
~ Author of LAV Filters

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: installJRMC - MC installer for Linux
« Reply #5 on: May 18, 2023, 03:04:52 pm »

We can probably remove the version on that package, or lower it, the actual interface of that library hasn't changed in ages.
I can drop the requirement level on the next build since Hendrik thinks the ABI hasn't changed.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #6 on: May 24, 2023, 07:30:11 am »

In the meantime I've added a workaround to remove the libxcb minimum version requirement for Fedora/CentOS to my dev branch. Beginning with 31.0.13 RPMs using the workaround are also available from my repo.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #7 on: June 12, 2023, 02:51:27 pm »

rc9 fixes a few service file issues on Fedora between reboots and temporarily switches to the stub for terminating the jriver-mediacenter service more gracefully via systemd to prevent data loss. To update service files just run installJRMC --service jriver-mediacenter.
Logged

AllanM

  • Junior Woodchuck
  • **
  • Posts: 80
Re: installJRMC - MC installer for Linux
« Reply #8 on: August 19, 2023, 10:46:17 am »

Hi. Sorry to bother, but I'm trying to install MC 30 on an Ubuntu box, Intel i7. Obviously I'm doing something wrong, but cannot figure out what. Please advise.


allan@linuxserver:~/Downloads$ sudo ./installJRMC --install repo --restorefile /home/allan/Documents/Media\ Center30\ Master-573853.mjr --mcversion 30.0.96 -d
Debug: Running: main --install repo --restorefile /home/allan/Documents/Media Center30 Master-573853.mjr --mcversion 30.0.96 -d
Debug: Running: init
Starting installJRMC
Debug: Detected host platform: ubuntu 20.04 amd64
Debug: Using host platform: ubuntu 20.04
Debug: Running: parseInput
Debug: Debugging on
Debug: installJRMC version: 1.0-rc11
Debug: Running: setMCVersion
Using MC version 30.0.96 determined by user input
Debug: MVERSION: 30, MC_VERSION: 30.0.96, MC_PKG: mediacenter30=30.0.96, MC_RPM: /home/allan/Downloads/output/RPMS/x86_64/mediacenter30-30.0.96.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://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://dist.jriver.com/latest/mediacenter bullseye InRelease [3,614 B]
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://repo.mysql.com/apt/ubuntu focal InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:8 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Ign:4 http://dist.jriver.com/latest/mediacenter bullseye InRelease
Hit:9 http://ppa.launchpad.net/team-xbmc/kodi-old/ubuntu focal InRelease
Hit:10 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/transmissionbt/ppa/ubuntu focal InRelease
Fetched 3,614 B in 1s (2,647 B/s)
Reading package lists... Done
W: GPG error: http://dist.jriver.com/latest/mediacenter bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C30B25C6077765D5
Debug: Running: installMesa
Debug: Running: installPackage --no-install-check --allow-downgrades --no-gpg-check mediacenter30=30.0.96
Debug: sudo apt-get -f install -y -q0 --allow-downgrades mediacenter30=30.0.96
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mediacenter30
Error: Failed to install mediacenter30=30.0.96. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed


Logged
--
Mostly a headphone guy. I use JRiver exclusively for music.

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #9 on: August 19, 2023, 11:33:53 am »

Generally speaking, Ubuntu 20.04 might be too old to run MC30 (or MC31) and I wouldn't personally recommend doing so. Ubuntu 22.04 would be my personal recommendation as the bare minimum. That said, you can try using the --install local option with the --compat flag to install MC30. Something like this...

Code: [Select]
sudo ./installJRMC --install local --compat --restorefile /home/allan/Documents/Media\ Center30\ Master-573853.mjr --mcversion 30.0.96
The public key issue is odd and could be an indication that Ubuntu 20.04 is too old when trying to use/install from the MC bullseye repo. Using the --install local option *should* workaround this and download/build the package locally, and using the --compat flag ensures it uses the bare minimum needed for dependencies (and is helpful with some distros and older distros). If it still fails to install using the --install local option with --compat flag that's likely confirmation Ubuntu 20.04 is too old.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

AllanM

  • Junior Woodchuck
  • **
  • Posts: 80
Re: installJRMC - MC installer for Linux
« Reply #10 on: August 19, 2023, 12:27:28 pm »

Thanks.  20.04 is still supported as it’s an LTS version, so many will be using it for a few more years yet. I installed MC30 from the deb download and it’s working fine.
Logged
--
Mostly a headphone guy. I use JRiver exclusively for music.

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #11 on: August 19, 2023, 02:25:37 pm »

Thanks.  20.04 is still supported as it’s an LTS version, so many will be using it for a few more years yet.

Worth pointing out that JRiver only officially supports and builds Media Center on Debian, and not Ubuntu. When they rebase and change the Debian version they're developing and building MC on, like an older stable Debian version (e.g. Jessie) to a newer one (e.g. Buster), the dependencies change and the version numbers of those dependencies change/increase. Older Ubuntu LTS versions typically don't update the versions of dependencies used so once MC changes to a newer Debian like Bullseye, old LTSes like Ubuntu 20.04 won't be able to run newer Media Center versions as-is any longer. Same will apply to other distros along with old Debian versions, it's something to keep in mind if running newer Media Center versions.

For best results with Media Center on Ubuntu, I recommend using either the latest version available (Ubuntu 23.04 currently) or the latest LTS version (22.04 LTS). Anything older than that, even an older LTS that Canonical still supports, your results will vary.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #12 on: August 19, 2023, 06:07:05 pm »

Don't run the script as root with sudo, installJRMC will prompt you for root permissions as necessary. I'm not sure if that is the issue here, but I'll add a warning regardless.
Logged

AllanM

  • Junior Woodchuck
  • **
  • Posts: 80
Re: installJRMC - MC installer for Linux
« Reply #13 on: August 22, 2023, 10:07:19 am »

Worth pointing out that JRiver only officially supports and builds Media Center on Debian, and not Ubuntu. When they rebase and change the Debian version they're developing and building MC on, like an older stable Debian version (e.g. Jessie) to a newer one (e.g. Buster), the dependencies change and the version numbers of those dependencies change/increase. Older Ubuntu LTS versions typically don't update the versions of dependencies used so once MC changes to a newer Debian like Bullseye, old LTSes like Ubuntu 20.04 won't be able to run newer Media Center versions as-is any longer. Same will apply to other distros along with old Debian versions, it's something to keep in mind if running newer Media Center versions.

For best results with Media Center on Ubuntu, I recommend using either the latest version available (Ubuntu 23.04 currently) or the latest LTS version (22.04 LTS). Anything older than that, even an older LTS that Canonical still supports, your results will vary.

Thanks. It my understanding that Buster came out in 2019, and MC30 was released for Buster. Ubuntu 20.04LTS came out in 2020, so should be much closer in versions for underlying software to buster than the current version of Ubuntu.

Actually, I just read that 20.04 is based on bullseye, so it might be too new for mc30 ;-)
Logged
--
Mostly a headphone guy. I use JRiver exclusively for music.

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: installJRMC - MC installer for Linux
« Reply #14 on: August 22, 2023, 03:45:12 pm »

Thanks. It my understanding that Buster came out in 2019, and MC30 was released for Buster. Ubuntu 20.04LTS came out in 2020, so should be much closer in versions for underlying software to buster than the current version of Ubuntu.

Actually, I just read that 20.04 is based on bullseye, so it might be too new for mc30 ;-)
You shouldn't have any issues running old versions of MC on ubuntu 20.04. I'm pretty sure even MC20 runs on current Debian Bookworm. Linux is very good in general for backwards compatibility.

So a little research.
The main issue is that ubuntu 20.04 hasn't been updating some of the packages in MC's dependency list so the versions there are "too old".
The good news is that it appears the requirements can be relaxed enough to accommodate ubuntu.
The next build will install without issue.

I have installed ubuntu 20.04 on a 2011 MacBook Air and it works great with the latest MC. Even 1920x1080 video.
Logged

666JTK666

  • Junior Woodchuck
  • **
  • Posts: 75
Re: installJRMC - MC installer for Linux
« Reply #15 on: September 18, 2023, 06:47:10 pm »

howdy new linux user here  :)
I am running the latest version of pop os witch i believe is a ubuntu variant.
i have some questions..
does it matter where i unzip this and run it ?
where does mc get installed ? should i make some directory's for it ?
ty
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #16 on: September 19, 2023, 06:29:27 am »

howdy new linux user here  :)
I am running the latest version of pop os witch i believe is a ubuntu variant.
i have some questions..
does it matter where i unzip this and run it ?
where does mc get installed ? should i make some directory's for it ?
ty

installJRMC may create some staging directories and temporary files depending on what options you use, so running it from its own directory is the most tidy solution. With the default settings it will use your OS package manager (apt) to install MC. I have not tested on PopOS, if you run into issues enable debugging (--debug) and post the output here so I can add any necessary workarounds.
Logged

dctom

  • Recent member
  • *
  • Posts: 33
Re: installJRMC - MC installer for Linux
« Reply #17 on: September 19, 2023, 11:02:54 am »

 I got this response when running the install script on my ubuntu (installed today) machine

Ubuntu 22.04.3 LTS

this is what I get when running install script....

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 60503    0 60503    0     0   146k      0 --:--:-- --:--:-- --:--:--  146k
Starting installJRMC
To enable debugging output, use --debug or -d
Determining latest MC version
WARN[0000] error reading allowed ID mappings: error reading subuid mappings for user "ubuntu" and subgid mappings for group "ubuntu": No subuid ranges found for user "ubuntu" in /etc/subuid
WARN[0000] Found no UID ranges set aside for user "ubuntu" in /etc/subuid.
WARN[0000] Found no GID ranges set aside for user "ubuntu" in /etc/subgid.
writing blob: adding layer with blob "sha256:7d97e254a0461b0a30b3f443f1daa0d620a3cc6ff4e2714cc1cfd96ace5b7a7e": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument
ERRO[0005] exit status 125                             
Using MC version 31.0.54 determined by webscrape
To override, use --mcversion
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #18 on: September 19, 2023, 02:56:02 pm »

I got this response when running the install script on my ubuntu (installed today) machine

Ubuntu 22.04.3 LTS

this is what I get when running install script....

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 60503    0 60503    0     0   146k      0 --:--:-- --:--:-- --:--:--  146k
Starting installJRMC
To enable debugging output, use --debug or -d
Determining latest MC version
WARN[0000] error reading allowed ID mappings: error reading subuid mappings for user "ubuntu" and subgid mappings for group "ubuntu": No subuid ranges found for user "ubuntu" in /etc/subuid
WARN[0000] Found no UID ranges set aside for user "ubuntu" in /etc/subuid.
WARN[0000] Found no GID ranges set aside for user "ubuntu" in /etc/subgid.
writing blob: adding layer with blob "sha256:7d97e254a0461b0a30b3f443f1daa0d620a3cc6ff4e2714cc1cfd96ace5b7a7e": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument
ERRO[0005] exit status 125                             
Using MC version 31.0.54 determined by webscrape
To override, use --mcversion

Did it continue to run fine after that point? You don't have subuid or subgid namespaces defined in /etc/subuid and /etc/subgid for the ubuntu user in order to launch the containerized package manager. Typically those entries are added during user creation in most modern distros, so perhaps this machine has been updated from an older ubuntu version that did not support namespaces? Regardless, it's just a method for determining the latest MC version, it looks like the script proceeded correctly and fell back to the webscrape method so everything should have been fine after that.
Logged

dctom

  • Recent member
  • *
  • Posts: 33
Re: installJRMC - MC installer for Linux
« Reply #19 on: September 19, 2023, 04:13:06 pm »

no it just stopped. It is a completely new download of Desktop 22.04 LTS not an updated OS  disk
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #20 on: September 20, 2023, 03:10:56 am »

I can't reproduce this. There's nothing to indicate it's failing (and the next stage will take some time to complete).

Is this a live install? It's likely that you are running out of space in memory to store MC and its dependencies.
Logged

dctom

  • Recent member
  • *
  • Posts: 33
Re: installJRMC - MC installer for Linux
« Reply #21 on: September 20, 2023, 01:40:45 pm »


Have got MC31 up and running now ;)
Logged

666JTK666

  • Junior Woodchuck
  • **
  • Posts: 75
Re: installJRMC - MC installer for Linux
« Reply #22 on: October 02, 2023, 10:43:16 am »

fresh install of deb -12

The script seems to not do sudo right. it seems to want my user password and not my root's password.
I have a screen shot, the "sorry,try again" was me typeing in my root password. Then I used my user password

Outside of the script I can su to root ok.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: installJRMC - MC installer for Linux
« Reply #23 on: October 02, 2023, 10:49:16 am »

fresh install of deb -12

The script seems to not do sudo right. it seems to want my user password and not my root's password.
I have a screen shot, the "sorry,try again" was me typeing in my root password. Then I used my user password

Outside of the script I can su to root ok.
sudo always uses the user password as opposed to su which requires the root password.
Logged

vitaly-zdanevich

  • Recent member
  • *
  • Posts: 14
Re: installJRMC - MC installer for Linux
« Reply #24 on: October 17, 2023, 09:57:37 am »

Hello, I wrote an ebuild for Gentoo, feel free to maintain https://github.com/gentoo/guru/tree/master/media-sound/jriver
Logged

vitaly-zdanevich

  • Recent member
  • *
  • Posts: 14
Re: installJRMC - MC installer for Linux
« Reply #25 on: October 17, 2023, 10:04:22 am »

Is this script useful for Gentoo somehow?
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #26 on: October 17, 2023, 12:57:31 pm »

Is this script useful for Gentoo somehow?

It should work for gentoo (untested), but won't use emerge, it simply extracts the deb files to the proper locations. It does keep track of the extracted files for --uninstall.
Logged

Facel

  • World Citizen
  • ***
  • Posts: 201
Re: installJRMC - MC installer for Linux
« Reply #27 on: October 18, 2023, 09:38:35 am »

Hello, I wrote an ebuild for Gentoo, feel free to maintain https://github.com/gentoo/guru/tree/master/media-sound/jriver

Do you mean that you can run JRiver on Gentooplayer ?
Logged

vitaly-zdanevich

  • Recent member
  • *
  • Posts: 14
Re: installJRMC - MC installer for Linux
« Reply #28 on: October 19, 2023, 09:13:00 am »

I mean Gentoo Linux.
Logged

buste986

  • Member
  • *
  • Posts: 4
Re: installJRMC - MC installer for Linux
« Reply #29 on: October 24, 2023, 04:40:22 pm »

For Noobs and Linux hacks like me :-\, this installer doesn't work out of the box with a fresh install of Debian 12 Bullseye.

The curl command does not come installed on Debian; you will have to install it.

Also, you will have to work around root/sudo issues as the root login is not allowed by default, and the user(s) created on a fresh install is not a member of the sudoers group.

Nothing earth shattering, but you will have to work a bit to get her running.  Plan accordingly (not after Sunday night football...).

Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #30 on: October 24, 2023, 05:39:12 pm »

That's the main reason why I don't recommend Debian to those who have never used Linux before, whereas those sort of issues don't exist with Ubuntu. Yes, Ubuntu isn't officially supported by JRiver but it's pretty close to Debian so issues specifically with it are pretty rare.

Thankfully adding your user to the sudo group is very easy to fix on Debian, but for totally new Linux users it could be a deer in the headlights experience finding the solution.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #31 on: October 25, 2023, 08:52:55 am »

For Noobs and Linux hacks like me :-\, this installer doesn't work out of the box with a fresh install of Debian 12 Bullseye.

The curl command does not come installed on Debian; you will have to install it.

Also, you will have to work around root/sudo issues as the root login is not allowed by default, and the user(s) created on a fresh install is not a member of the sudoers group.

Nothing earth shattering, but you will have to work a bit to get her running.  Plan accordingly (not after Sunday night football...).

Neither wget or curl are installed, so there's really no alternative one-liner instructions that would work other than downloading the archive from the attachment and using unzip (installed by default). FWIW installJRMC uses wget internally and will install it automatically as needed. The live install user belongs to the sudo group by default, and unfortunately that is all I have time to test on.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: installJRMC - MC installer for Linux
« Reply #32 on: October 26, 2023, 12:41:34 pm »

That's the main reason why I don't recommend Debian to those who have never used Linux before, whereas those sort of issues don't exist with Ubuntu. Yes, Ubuntu isn't officially supported by JRiver but it's pretty close to Debian so issues specifically with it are pretty rare.

Thankfully adding your user to the sudo group is very easy to fix on Debian, but for totally new Linux users it could be a deer in the headlights experience finding the solution.
I posted a sticky for this at the top of the forum.

With regards to Debian vs Ubuntu, there are no special requirements for installing on Ubuntu vs Debian.
There would be no difference between a MC build made on a Ubuntu machine (which would be Focal for backwards compatibility reasons) vs our current build environment of Debian 11.
Logged

bassmann

  • Recent member
  • *
  • Posts: 44
Re: installJRMC - MC installer for Linux
« Reply #33 on: November 03, 2023, 10:53:10 pm »

Hi there,

I've run installJRMC but the result isn't quite what i was hoping for. Any tips on what i should look at appreciated.

Goal | What I want to do is install MC so the mediaserver service starts on boot.

What's happening now.
After boot or even after login I cannot access mediaserver from  Gizmo on another device. If i run MC on the
host machine then Gizmo connects to the mediaserver. With mediacenter closed a JR information prompt pops up says Ok (but nothing else) every 10seconds or so.

What I've done:
- Fresh install of Debian 11.8 with MC 31.0.80.
- apt-get install ufw
- sudo ufw enable
- Run installJRMC as follows which completed successfully

curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&
chmod +x ./installJRMC &&
./installJRMC --install repo --service jriver-mediaserver --service-type system --yes
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #34 on: November 04, 2023, 09:21:44 am »

You might first try running `mediacenter30` without the /MediaServer switch in order to make sure it's registered and functioning properly. You'll probably need to disable the service first to make sure there are no conflicts. Make sure you have LAN connectivity via Gizmo and then restart it via the service unit.

Code: [Select]
sudo systemctl stop jriver-mediaserver;
mediacenter30; # Make sure everything is registered and working
sudo systemctl start jriver-mediaserver;
Logged

bahamot

  • Recent member
  • *
  • Posts: 23
Re: installJRMC - MC installer for Linux
« Reply #35 on: December 25, 2023, 07:03:16 am »

weird ... was getting errors but suddenly all errors went away. thanks for the script.
Logged

syndromeofadown

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 811
Re: installJRMC - MC installer for Linux
« Reply #36 on: January 21, 2024, 11:44:53 pm »

Can someone please confirm this install method still works with MC31. I can install 32 but not 31. I have no success with --mcversion 31.0.83.

Thanks.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #37 on: January 22, 2024, 09:37:52 am »

Can someone please confirm this install method still works with MC31. I can install 32 but not 31. I have no success with --mcversion 31.0.83.

Thanks.

What platform are you on? You'll need to use the version of installJRMC provided in the OP for Fedora. The latest version in the main branch will only work with MC32 due to some changes in the MC deb package. If that doesn't clear it up, provide some output with --debug and I will add a workaround.
Logged

syndromeofadown

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 811
Re: installJRMC - MC installer for Linux
« Reply #38 on: January 22, 2024, 07:45:47 pm »

Hi BryanC

I am trying to install on Pi5 with raspberry pi os 64.

the warning i get when trying to install 31 is as follows

Using MC version 31.0.83 determined by user input
Installing JRiver Media Center from remote repository
Error: Failed to install mediacenter31=31.0.83. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed

i think i am ok with using version 32, so please do not worry too much about this.

I will however be installing 31 on my wife's laptop with Fedora soon. I can update if i have issues with that one too.

Thanks
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2643
Re: installJRMC - MC installer for Linux
« Reply #39 on: January 22, 2024, 08:52:31 pm »

Hi BryanC

I am trying to install on Pi5 with raspberry pi os 64.

the warning i get when trying to install 31 is as follows

Using MC version 31.0.83 determined by user input
Installing JRiver Media Center from remote repository
Error: Failed to install mediacenter31=31.0.83. Attempting to continue
Error: Package install failed!
Error: JRiver Media Center installation from remote repository failed

i think i am ok with using version 32, so please do not worry too much about this.

I will however be installing 31 on my wife's laptop with Fedora soon. I can update if i have issues with that one too.

Thanks

There's a parsing error here it seems: mediacenter31=31.0.83

I just tested in a Fedora 39 VM and everything went OK:

Code: [Select]
./installJRMC --install remote --mcversion 31.0.83
Starting installJRMC
To enable debugging output, use --debug or -d
Using MC version 31.0.83 determined by user input
Installing JRiver Media Center from remote repository
JRiver Media Center installed successfully from remote repository
Logged

syndromeofadown

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 811
Re: installJRMC - MC installer for Linux
« Reply #40 on: January 22, 2024, 11:51:42 pm »

I got it figured BryanC

Quote
curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&
chmod +x ./installJRMC &&
./installJRMC --install remote --mcversion 31.0.83-arm64

i was using 'install repo' previously, not 'install remote'.

I think the thing that did it was 'mcversion 31.0.83-arm64' instead of 'mcversion 31.0.83'. One of the messages in terminal referenced mcversion 31.0.83-arm64 so I gave it a go.

I use Linux, but this does not mean I know how to use it. I guess I just have to get used to the new way of installing. I think installation was pretty consistent for versions 21 through 30, but this way is new to me.

Thanks for the help.
Logged

RussellS

  • Galactic Citizen
  • ****
  • Posts: 259
Re: installJRMC - MC installer for Linux
« Reply #41 on: February 24, 2024, 02:31:17 am »

I have just recently upgraded my Linux Mint system from version 20.3 to 21.3 not by upgrading but with a completely fresh install. Currently I am still running MC29 on my Windows server and I installed MC29 on the new Linux install but I installed directly using the 'MediaCenter-29.0.91-amd64.deb' file and everything appears to be working fine so far.

I do have master licenses for MC versions 31 & 32 but never got around to installing either (I mainly purchased them to support JRiver development) but my plan now is to upgrade everything to MC 32 but wanted to know the best way to go about it. Bearing in mind that installing directly from the .deb file appears to have worked fine for MC 29 would there be any benefit to using 'installJRMC' over using the .deb file.
Installing from the .deb file uses the 'GDebi Package Installer' which should sort out all the dependencies required so I'm just wondering what the installJRMC installer does above and beyond this  and which route would be the recommended one.

Thanks

Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #42 on: February 24, 2024, 06:43:08 am »

If you use installJRMC it'll add the repository which will allow MC32 to update when your system updates system packages, so you don't need to manually install .deb files.

You can also manually add the MC32 repo and do it that way too (use the Bullseye repo line): https://yabb.jriver.com/interact/index.php/topic,137900.0.html
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

RussellS

  • Galactic Citizen
  • ****
  • Posts: 259
Re: installJRMC - MC installer for Linux
« Reply #43 on: February 25, 2024, 05:48:07 am »

If you use installJRMC it'll add the repository which will allow MC32 to update when your system updates system packages, so you don't need to manually install .deb files.

Ah, yes, of course, I hadn't thought of that.

Thanks
Logged

bson

  • Member
  • *
  • Posts: 3
Re: installJRMC - MC installer for Linux
« Reply #44 on: September 15, 2024, 04:56:51 pm »

Thanks for creating this installer, it worked great for me with Fedora 40 and 31.0.83 once I figured out the right install options.
Logged

roald.andresen

  • Recent member
  • *
  • Posts: 16
Re: installJRMC - MC installer for Linux
« Reply #45 on: October 11, 2024, 02:54:33 pm »

Hi
Trying to install MediaCenter 31 on OpenSuse Thumbleweed

./installJRMC --install local --mcversion 31.0.83 --debug

results in

Processing files: mediacenter31-31.0.83-1.x86_64
error: File not found: /home/software/tools/output/BUILDROOT/mediacenter31-31.0.83-1.x86_64/usr/bin/mc31

RPM build errors:
    File not found: /home/software/tools/output/BUILDROOT/mediacenter31-31.0.83-1.x86_64/usr/bin/mc31

Am I trying to do something that is not possible, or is this a bug?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #46 on: October 11, 2024, 03:32:10 pm »

Try...

Code: [Select]
./installJRMC --debug --build=suse --install local --mcversion 31.0.83
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

roald.andresen

  • Recent member
  • *
  • Posts: 16
Re: installJRMC - MC installer for Linux
« Reply #47 on: October 11, 2024, 04:49:48 pm »

Thanks, but same result.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...
Re: installJRMC - MC installer for Linux
« Reply #48 on: October 11, 2024, 05:19:33 pm »

Maybe you should delete all the files in the tools directory and start over again.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

roald.andresen

  • Recent member
  • *
  • Posts: 16
Re: installJRMC - MC installer for Linux
« Reply #49 on: October 12, 2024, 01:54:52 am »

Of course I did that before I tried your suggestion. 
I am sure it wasn't your intention, but your reply seems a bit patronising.

It is also a risky suggestion.  An inexperienced person might end up deleting a lot of stuff they shouldn't delete by following your suggestion.  The only thing that it is relevant to delete is the "output" directory.

To verify that I also tested your latest suggestion, I tried the same thing from a new, different, empty directory:  Same result.
Logged
Pages: [1] 2   Go Up