INTERACT FORUM
More => Old Versions => JRiver Media Center 22 for Linux => Topic started by: BryanC on July 17, 2016, 12:43:09 am
-
How to install:
1. Download and extract install_MC_fedora.zip:
unzip install_MC_fedora.zip
2. To install or upgrade MC, run:
./install_MC_fedora.sh 22.0.108
(where 22.0.108 is the current debian AMD64 version)
The script will ask for your sudo password to install or update packages.
Notes:
1. To install your .mjr license:
mediacenter22 /RestoreFromFile YOURMEDIACENTER22MJRFILE.mjr
2. This script will not overwrite old major MC versions (i.e. when upgrading from v21 to v22) or point new installations at the old library. It is recommended to first perform a library backup, remove the old MC major version package, install the new major version, and restore the library backup.
Changelog:
1. Added test for rpm-build package (and add if necessary) (20-FEB-2017)
2. Added test for rpmfusion repos (and add if necessary) (20-FEB-2017)
3. Script is now MC version agnostic and self-contained (20-FEB-2017)
4. Changed versioning system used in rpmbuild. MC point versions are now stored as the variation number. DNF may erroneously report a downgrade the first time the new package number is installed. (20-FEB-2017)
5. BETA: Explicitly add files in /usr/share to rpm build to prevent dnf from thinking we are taking ownership of the directories. (13-APR-2017) Only a problem when attempting to run script from filesystems that do not support linux permissions.
6. Check for RPMFusion repos before installing dpkg and rpm-build (27-APR-2017)
7. Fix dpkg check (31-MAY-2017)
-
I'm having a little trouble getting this to work. At first the rpmbuild binary was not found. So I installed an RPM of rpm-build and resolved that. Next it complained that no package provides LAME. I guess I need to go figure that out. It seems to require multiple steps though, as the standard Fedora repositories don't contain packages with LAME? So you have to use RPMFusion or something similar?
This is new to me, so I'm not sure. Are there other hurdles I can expect? Perhaps I should try this on Debian instead. Though I've got Fedora working fairly well so far and don't want to abandon it if I don't have to.
Any advice is appreciated.
Thanks,
Brian.
-
Add the RPM Fusion free and non-free repositories and you should be good to go!
su -c 'dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
You'll also need to apply this fix before licensing MC on Fedora: http://yabb.jriver.com/interact/index.php/topic,108054.0.html
Then it's off to the races. Hopefully. :)
P.S. rpm-build should be available in the main Fedora repo - sudo dnf install rpm-build should of installed it. I recently did a clean Fedora 25 install in a VM and got it working greater after adding RPM Fusion and installing rpm-build using dnf. :)
-
You're correct that rpm-build is available from the main Fedora repositories. It just wasn't installed by default and I had to install it. No big deal. But I was expecting this installation script to resolve all dependencies, including rpm-build. Again, no biggie; I figured it out. It's just not fully automated.
I'll follow your instructions for RPMFusion and hopefully that will do it. Are you saying that once I have the repositories added that the build script will actually find and download the correct packages for me, so I don't have to figure out which package includes the LAME libraries and/or binaries? That would be awesome.
I won't get to this until tomorrow, but I'll report my results.
Thank you for the help. :)
Brian.
-
Are you saying that once I have the repositories added that the build script will actually find and download the correct packages for me, so I don't have to figure out which package includes the LAME libraries and/or binaries? That would be awesome.
Yup, it'll resolve the dependencies and install them after it builds an RPM and proceeds to install it. I have an RPM of build 22.0.36 (the newest build on the latest repo) for Fedora 25 x64 built. Maybe I should just start posting them? Hmmm.
For the beta builds with Theater View the build file will probably have to be edited to point to the correct test URL (I'll try to mess with this in the morning and see if I can get it going). Otherwise it'll resolve the latest build on the latest repository just fine. :)
EDIT: Okay, made the necessary changes to the install script to download and build RPMs of the latest Media Center 22 64-bit beta builds with Theater View. I did have to chmod 755 the SPECS directory and the two files inside and I also chmod +x the rpmbuild file so it'd run correctly as an executable. You might have to do the same before it works (otherwise you might get a permission denied error!).
cd into the SPECS directory, then run this in the Terminal;
./rpmbuild 22.0.44
And it'll download and build the RPM of the latest 64-bit beta build, and install it (along with any unmet dependencies as long as RPM Fusion is used as well). Easy peasy!
-
I've said it before and I'll say it again: The Donkey *is* Awesome!! :) :)
The new script, coupled with the RPM Fusion repository made this whole thing rather easy. I did have to chmod 755 the rpmbuild script, but that's no big deal. You might consider packaging it as executable so that doesn't need to be done by the end user.
Theater View works on this very modest Dell desktop I've installed this on. A bit slow but...
I don't know why I'm surprised, but MC looks almost exactly the same as on my Mac! This is awesome. :)
Thanks again Mr. AwesomeDonkey.
Brian.
-
I did a fairly major overhaul on the script today (see OP), let me know if anyone has any problems.
-
Hi Bryan,
Thanks a lot for the script. It works perfectly once both rpm-build and dpkg are installed (sudo dnf install rpm-build dpkg).
Avinash
-
I got a handful of conflicts trying to install the RPM using the script. I'm a windows-convert, fairly new to Linux. I'm running korora 25 (Fedora 25 plus rpm fusion, a few extra packages, plugins, and setup tweaks).
I already use licensed JRiver on the windows box, I'm just trying it out on Linux.
Any help is appreciated.
-Cyril
$ ./install_MC_fedora.sh 22.0.93
Checking for rpm-build package
Attempting to add RPMFusion repositories if necessary...
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Attempting to install RPM...
[sudo] password for cyril:
Last metadata expiration check: 1:39:09 ago on Tue Apr 11 19:08:58 2017.
Dependencies resolved.
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
MediaCenter x86_64 22-93.fc25 @commandline 43 M
gtk2-engines x86_64 2.20.2-11.fc24 fedora 311 k
Transaction Summary
========================================================================================================================
Install 2 Packages
Total size: 43 M
Installed size: 135 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] gtk2-engines-2.20.2-11.fc24.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
file /usr/share/appdata from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
file /usr/share/applications from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
file /usr/share/mime-info from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
file /usr/share/mime from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package shared-mime-info-1:1.7-1.fc25.x86_64
file /usr/share/mime/packages from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package shared-mime-info-1:1.7-1.fc25.x86_64
file /usr/share/appdata from install of MediaCenter-22-93.fc25.x86_64 conflicts with file from package lpf-0.2-3.f1f5dd9.fc24.noarch
Error Summary
-------------
$
-
Any help is appreciated.
Can you try out this version of the script (attached)? I don't know why but it looks like dnf thinks that we're trying to take ownership of those directories and not just the files. I modified the rpm build script to call the files explicitly.
Edit: removed beta install script attachment
-
Can you try out this version of the script (attached)?
This time without the original errors, but the MC package didn't actually install??
I appreciate your attention to the matter.
-Cyril
[...]
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : gtk2-engines-2.20.2-11.fc24.x86_64 1/2
Installing : MediaCenter-22-93.fc25.x86_64 2/2
Error unpacking rpm package MediaCenter-22-93.fc25.x86_64
Error unpacking rpm package MediaCenter-22-93.fc25.x86_64
error: unpacking of archive failed: cpio: read
MediaCenter-22-93.fc25.x86_64 was supposed to be installed but is not!
Verifying : MediaCenter-22-93.fc25.x86_64 1/2
Verifying : gtk2-engines-2.20.2-11.fc24.x86_64 2/2
Installed:
gtk2-engines.x86_64 2.20.2-11.fc24
Failed:
MediaCenter.x86_64 22-93.fc25
Complete!
JRiver Media Center 22.0.93 installed successfully!
-
I can't seem to reproduce the error on two of my machines. Is it possible that you've accidentally altered the permissions on your filesystem? Have you tried to manually install any of the MC program files or symlinked them (i.e. in your application menu)?
Considering that the initial error was a conflict with the filesystem package and now you've got this error I think there is some problem with your configuration or it could very well be a bug in Korora.
Another possibility is that your initial download of the deb package was corrupted. Make sure to delete the source .deb file in the SOURCES directory so that the script redownloads the deb file.
Lastly, try running a sudo dnf update --refresh and restarting to make sure that Korora is up-to-date on any bug fixes.
-
I can't seem to reproduce the error on two of my machines. Is it possible that you've accidentally altered the permissions on your filesystem? Have you tried to manually install any of the MC program files or symlinked them (i.e. in your application menu)?
Considering that the initial error was a conflict with the filesystem package and now you've got this error I think there is some problem with your configuration or it could very well be a bug in Korora.
Filesystem.
Executing the script from an NTFS partition seemed to be the issue (not surprisingly).
Once I moved the script to a sub of the home folder, it installed as expected.
Thanks again for your time.
-Cyril
-
Filesystem.
Executing the script from an NTFS partition seemed to be the issue (not surprisingly).
Once I moved the script to a sub of the home folder, it installed as expected.
Thanks again for your time.
-Cyril
That makes sense. The files need to have the proper permissions after they are extracted from the .deb and since NTFS doesn't support linux file permissions then they are given whatever the default mount settings are in fstab or udev (likely they don't have executable permissions). I'm going to remove the beta install file since if I don't explicitly add the files and instead call the directories then it won't matter if JRiver adds additional files to the installation in the future.
-
Hi
Please help me.
I'm running Fedora 25-64bit (4.10.12-200.fc25.x86_64)
The 'install_MC_fedora.zip' shows as an empty/zero-size file when I download it, and the 'mediacenter-22-beta.zip' errors with 'MediaCenter-22.0.93-amd64.deb' is not a debian format archive
./rpmbuild 22.0.93
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vesyCl
+ umask 022
+ cd /home/rolin/Downloads/mediacenter-22-beta/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.O4Zl0E
+ umask 022
+ cd /home/rolin/Downloads/mediacenter-22-beta/BUILD
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vkBtoY
+ umask 022
+ cd /home/rolin/Downloads/mediacenter-22-beta/BUILD
+ '[' /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT/MediaCenter-22.0.93-25.fc25.x86_64 '!=' / ']'
+ rm -rf /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT/MediaCenter-22.0.93-25.fc25.x86_64
++ dirname /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT/MediaCenter-22.0.93-25.fc25.x86_64
+ mkdir -p /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT
+ mkdir /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT/MediaCenter-22.0.93-25.fc25.x86_64
+ dpkg -x /home/rolin/Downloads/mediacenter-22-beta/SOURCES/MediaCenter-22.0.93-amd64.deb /home/rolin/Downloads/mediacenter-22-beta/BUILDROOT/MediaCenter-22.0.93-25.fc25.x86_64
dpkg-deb: error: `/home/rolin/Downloads/mediacenter-22-beta/SOURCES/MediaCenter-22.0.93-amd64.deb' is not a debian format archive
error: Bad exit status from /var/tmp/rpm-tmp.vkBtoY (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.vkBtoY (%install)
-
The 'install_MC_fedora.zip' shows as an empty/zero-size file when I download it, and the 'mediacenter-22-beta.zip' errors with 'MediaCenter-22.0.93-amd64.deb' is not a debian format archive
I reuploaded the script. It looks like the forum database borked the file or something.
FYI, you aren't running the script using those commands, you are running rpmbuild.
Try redownloading the script and following the instructions in the OP.
-
I reuploaded the script. It looks like the forum database borked the file or something.
FYI, you aren't running the script using those commands, you are running rpmbuild.
Try redownloading the script and following the instructions in the OP.
Awesomeness!!! Thanks bud, I'm sorted now! :)
Now to adjust size and fonts for 3200x1900 on my XPS 13, and wait for my portable storage to arrive!
-
Thank you for the script!
P.S. Make sure you are logged into the forum to be able to download the zipped attachment from the OP! :-[
Best,
Bob
-
Trying to install on Fedora 25.
[rovo@freedom Downloads]$ ./install_MC_fedora.sh 22.0.108
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
Any thoughts?
-
Never mind; got it to work.
* Downloaded the mediacenter-22-beta.zip file, with the rpmbuild script.
Running it resulted in a failure
./rpmbuild 22.0.108
--2017-05-28 13:01:37-- http://files.jriver.com/mediacenter/test/MediaCenter-22.0.108-amd64.deb
Resolving files.jriver.com (files.jriver.com)... 52.216.16.56
Connecting to files.jriver.com (files.jriver.com)|52.216.16.56|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-05-28 13:01:38 ERROR 403: Forbidden.
error: Failed build dependencies:
dpkg is needed by MediaCenter-22.0.108-25.fc25.x86_64
* I installed dpkg, copied the link for the MacOS download and changed the end of it and downloaded the .deb file manually to ../mediacenter-22-beta/Sources
(url used: http://files.jriver.com/mediacenter/channels/v22/latest/MediaCenter-22.0.108-amd64.deb)
* I then proceeded with ./rpmbuild 22.0.108
...and everything installed just fine.
Installed:
MediaCenter.x86_64 22.0.108-25.fc25 gtk2-engines.x86_64 2.20.2-11.fc24
lame.x86_64 3.99.5-8.fc25 librtmp.x86_64 2.4-7.20160224.gitfa8646d.fc25
vorbis-tools.x86_64 1:1.4.0-23.fc24
Complete!
Trying to install on Fedora 25.
[rovo@freedom Downloads]$ ./install_MC_fedora.sh 22.0.108
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
Any thoughts?
-
http://files.jriver.com/mediacenter/test/MediaCenter-22.0.108-amd64.deb
...isn't a valid link. Most of the url is hardcoded in the script, therefore I don't know how this was parsed:
http://files.jriver.com/mediacenter/channels/v${mversion}/latest/MediaCenter-${version}-amd64.deb
The script you were using had to have been erroneously modified. I would suggest that you redownload the script and start fresh.
dpkg is needed by MediaCenter-22.0.108-25.fc25.x86_64
After several reports of this, I fixed this bug (check OP). Thanks!
-
Awesome. Just letting you know this worked on Fedora 26.
$ sudo yum install dkpg rpm-build
$ ./install_MC_fedora.sh 22.0.108
-
I have it installed on Fedora 25 just fine but am at a loss as to adding my license. In what folder should i put the file and in whar folder should i be in to run the script from. I have the Master license for MC22.
-
I have it installed on Fedora 25 just fine but am at a loss as to adding my license. In what folder should i put the file and in whar folder should i be in to run the script from. I have the Master license for MC22.
See: http://yabb.jriver.com/interact/index.php/topic,108054.0.html
-
I have it installed on Fedora 25 just fine but am at a loss as to adding my license. In what folder should i put the file and in whar folder should i be in to run the script from. I have the Master license for MC22.
See the OP. mediacenter22 will be in your path. It doesn't matter where your license file is, just call it with its path and filename.
See: http://yabb.jriver.com/interact/index.php/topic,108054.0.html
He was referring to the license, not the certs.
-
Thanks BryanC I got it registered now. The thing I was doing wrong was not putting the 'quotes around the separated words'. 'Media Center22 Master-XXXXXX.mjr'.
So this -> @localhost Media Center 22]$ mediacenter22 /RestoreFromFile 'Media Center22 Master-XXXXXX.mjr'
did the trick for me. (I put XXXXXX here to hide my real number obviously).
Thanks again.
-
A little off-topic but isn't the numbers the same for all master licenses?
Glad you got it figured out! :)
-
I have no idea about the numbers being the same or not. I only know it says if you share it online you get it revoked. :o
-
The registration code is not in the title of the .mjr file.
-
When using BrianMC script I had to install the rpm-build package before having a successful installation on Fedora 25
sudo dnf install rpm-build
-
Hi! I have installed in my Fedora 25 x86-64 dpkg and rpm-build but still can't install the MC.
What have I to check? ?
Here is my terminal output:
$ sudo ./install_MC_fedora.sh MediaCenter-22.0.48.deb
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
[merl@merl JRiver]$
-
Hi! I have installed in my Fedora 25 x86-64 dpkg and rpm-build but still can't install the MC.
What have I to check? ?
Here is my terminal output:
$ sudo ./install_MC_fedora.sh MediaCenter-22.0.48.deb
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
[merl@merl JRiver]$
I don't know much about this but are you sure you want to be using version 22.0.48? The instructions say 22.0.108...
-
Hi! I have installed in my Fedora 25 x86-64 dpkg and rpm-build but still can't install the MC.
What have I to check? ?
Here is my terminal output:
$ sudo ./install_MC_fedora.sh MediaCenter-22.0.48.deb
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
[merl@merl JRiver]$
Reread the OP and just use the version number as the script argument.
22.0.108, not MediaCenter-22.0.48.deb.
-
I've tried 22.0.108
$ sudo ./install_MC_fedora.sh MediaCenter-22.0.108-amd64.deb
Checking for RPMFusion repos
Checking for rpm-build
Checking for dpkg
Making build directories
Creating input files
Checking for source DEB...
Downloading source DEB...
--2017-06-24 11:31:53-- http://files.jriver.com/mediacenter/channels/vMediaCenter-22/latest/MediaCenter-MediaCenter-22.0.108-amd64.deb-amd64.deb
Resolving files.jriver.com (files.jriver.com)... 54.231.72.115
Connecting to files.jriver.com (files.jriver.com)|54.231.72.115|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-06-24 11:31:53 ERROR 403: Forbidden.
Found source DEB!
Converting DEB to RPM...
Conversion Failed!
What do you think?
-
Use;
sudo ./install_MC_fedora.sh 22.0.108
You don't need the rest.
-
Many thanks! I tried to start the script with wrong parameter))
But I have now another question: does the MC works with OSS? I was unable to find appropriate option. There was only two options: ALSA and Pulse audio.
Are there some addition for MC or something like that?
-
Only ALSA (and Pulse, which IMO shouldn't be used unless you need to) are supported.
-
Thaks to all for your replies!)) Good luck! :)