INTERACT FORUM

Please login or register.

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

Author Topic: Setup JRiver Media Center 20 In Ubuntu/Linux Mint  (Read 124717 times)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Setup JRiver Media Center 20 In Ubuntu/Linux Mint
« on: January 27, 2014, 01:26:58 pm »

This tutorial aims to aid users into setting up JRiver Media Center 20 onto computers running the following Linux operating systems;

Ubuntu 15.04 Vivid Vervet
Ubuntu 14.04.2 LTS Trusty Tahr
Linux Mint 17.2 Rafaela
Linux Mint Debian Edition 2 Betsy

NOTE: This tutorial does borrow ideas and parts done by InflatableMouse and his excellent Debian Wheezy tutorial found here, so please thank him.

Before we continue, please note the following;

- Media Center 20 for Linux is developed on Debian Wheezy 32-bit and Debian Jessie 64-bit - support for distros other than Wheezy 32-bit and Jessie 64-bit, like Ubuntu and Mint is considered experimental and not officially supported!
- This tutorial will focus on the operating systems above, any others you're on your own with.
- This *should* also apply to Ubuntu/Mint derivatives like Xubuntu, Kubuntu, Lubuntu, Ubuntu GNOME, Linux Mint (MATE), Linux Mint (Xfce), etc. However, extra steps may be required!
- Before installing, please read the outstanding issues topic! Many of the issues noted for Debian also apply to Ubuntu/Mint!


Step 1 - Add the JRiver APT Repository:

The APT repository is required to install Media Center 20 and keep Media Center 20 updated with every new release.

First, open a Terminal (by either pressing CTRL+ALT+T or by searching for the terminal in your desktop environment) and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
Next, with the Terminal still open, we need to download and add the correct mediacenter.list file to /etc/apt/sources.list.d/ depending if you're using 32-bit or 64-bit so either type one the following commands or copy and paste the command in and press Enter;

If you're using 64-bit Ubuntu/Linux Mint:
Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20jessie.list -O /etc/apt/sources.list.d/mediacenter20.list
Or...

If you're using 32-bit Ubuntu/Linux Mint:
Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
Finally, we need to reload the packages list, so with the Terminal still open either type the following command or copy and paste the command in and press Enter;

Code: [Select]
sudo apt-get update
That's it! Proceed to step 2!


Step 2 - Installing Media Center 20:

It's finally time to install Media Center 20! First, open a Terminal (by either pressing CTRL+ALT+T or by searching for the Terminal in your desktop environment) or re-use the Terminal from the previous step. Next either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);

Code: [Select]
sudo apt-get install mediacenter20
During this process it should say something along the following;

Code: [Select]
The following extra packages will be installed:
  lame libao-common libao4 libcue1 libreplaygain1 musepack-tools vorbis-tools
  xfonts-100dpi xfonts-75dpi xfonts-unifont
Suggested packages:
  libesd0 libesd-alsa0 ttf-unifont
The following NEW packages will be installed:
  lame libao-common libao4 libcue1 libreplaygain1 mediacenter20 musepack-tools
  vorbis-tools xfonts-100dpi xfonts-75dpi xfonts-unifont
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.9 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n]

However, if you receive an error like;

Code: [Select]
dependency problems prevent configuration of mediacenter20:
 mediacenter20 depends on ....

This means all dependencies have not been met. Don't fret, this can usually be taken care of by using the following command in the Terminal by either typing the following command or copying and pasting the command in and press Enter;

Code: [Select]
sudo apt-get install -f
It'll show you the missing dependencies, after looking them over just press enter to install them.

Now, if you're using a GNOME-based desktop environment (GNOME, Cinnamon, MATE, Unity, etc.) you should either type the following command or copy and paste the command in into the Terminal and press Enter to install these additional dependencies, otherwise skip this step if it's already installed!

Code: [Select]
sudo apt-get install libp11-kit-gnome-keyring p11-kit-modules
Now assuming all dependencies are met, you've been successful at installing Media Center 20 in Ubuntu/Mint! However, I recommend rebooting since this will allow MC to load up fonts correctly - otherwise if you run MC without rebooting first, fonts may look pretty horrendous!

Now, after rebooting you can start Media Center either go into the Unity dash, Mint menu, etc. and search for Media Center 20 or you can run it from the Terminal by either typing the following command or copying and pasting the command in and press Enter;

Code: [Select]
mediacenter20
Now, we're going to cover installing the license for those who have purchased in step 3!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu/Linux Mint
« Reply #1 on: January 27, 2014, 01:27:15 pm »

Step 3 - Installing A Media Center 20 Linux License Or Master License:

This portion of the tutorial will explain how to manually install your purchased license (either Linux licence or Master licence) in Media Center 20. Thanks for purchasing a license and supporting the development!

First, make sure MC20 is closed and either download the .mjr by either restoring the license here or if you just purchased a Media Center 20 Linux or Master license, then use the .mjr file downloaded with your purchase. After downloading your license file, open a Terminal and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);

If you're using a Linux license:

Code: [Select]
mediacenter20 /RestoreFromFile "Media Center20 Linux-YYYYYY.mjr"
NOTE: Replace the X's and Y's with the correct numbers from your specific .mjr file AND adjust the path to your file.

If you're using a Master license:

Code: [Select]
mediacenter20 /RestoreFromFile "Media Center20 Master-YYYYYY.mjr"
NOTE: Replace the X's and Y's with the correct numbers from your specific .mjr file AND adjust the path to your file.

If your code is located in the default downloads directory, the following command should work (remember to replace the X's and Y's with the correct numbers and change Linux to Master if you're using a Master license!);

Code: [Select]
mediacenter20 /RestoreFromFile ~/Downloads/"Media Center20 Linux-YYYYYY.mjr"
If you do not encounter an error while restoring your license from the file, open Media Center 20 up then go to the Help menu > Registration Info... - if it's registered, congratulations, your MC20 for Linux is now registered!

Additional information and discussion regarding licenses can be found in this topic.

Once you're done, you should be ready to go! Congratulations, you've successfully installed Media Center 20 on your Ubuntu/Linux Mint machine!  The next step will aid you in keeping Media Center 21 up-to-date.


Step 4 - Updating Media Center 20:

Okay, so you've got Media Center 20 installed and you might be wondering "how do I keep MC 20 up-to-date?". Well, there's several different ways available to accomplish this.

The easiest method to check for updates and update Media Center 20 if an update is available? Simple! Just open a Terminal and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);

Code: [Select]
sudo apt-get update && sudo apt-get dist-upgrade
Let the command run and it should prompt you with a list of updates for your Linux distribution of choice. Just type Y (or yes) and the system should be updated. It's HIGHLY recommended to run this command once a week - not just for MC 20 updates but for keeping up with the latest patches for vulnerabilities and various other potential security concerns.

The other ways to update Media Center 20? Well, if you Have Synaptic Package Manager installed you can update your system from there as well. Or you can just use the built-in update manager, if one is available for your Linux distro of choice! :)

Okay, what's next? The next post contains various information and tips you may find handy. Enjoy!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu/Linux Mint
« Reply #2 on: January 27, 2014, 01:27:32 pm »

Get Pulseaudio Output Working:

If desired, you can also output using Pulseaudio - keep in mind though that ALSA is bit-perfect. I'd highly recommend sticking with ALSA instead of Pulseaudio since Pulseaudio requires resampling to one sample rate, but if you wish to use Pulseaudio for whatever reason you'll need to set it up...

Pulseaudio *should* work out-of-the-box on Ubuntu 14.04+/Linux Mint 17+ 64-bit however if you want to cover all your bases on getting Pulseaudio working try the following commands in a Terminal by either typing the following command or copying and pasting the command in and press Enter (you *may* be prompted for your password);

Code: [Select]
sudo apt-get install libasound2-plugins
NOTE: You don't need to use this command in Ubuntu 15.04 Vivid Vervet 64-bit.

Just open Media Center up, go to Tools > Options > Audio > click the Device settings... button and select pulse as the output device but keep in mind you may need to specify the default output device Pulseaudio uses via the pavucontrol utility.


Setting Default Pulseaudio Device Via PulseAudio Volume Control (pavucontrol):

When trying to use the Pulseaudio output in Media Center, you might find yourself with this type of error when trying to play music...



This means the correct output device for Pulseaudio isn't being used, thus why this error is encountered. Fortunately, there's a way to fix this. Open up a Terminal window and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);

Code: [Select]
sudo apt-get install pavucontrol
After installing, either start PulseAudio Volume Control by typing pavucontrol into the Terminal or by typing in Pulseaudio into the Unity dash until you see PulseAudio Volume Control. Once open, you'll want to go to the Configuration tab like seen here;



Notice how there's multiple output devices listed here? I used my old AMD machine just for this example and left onboard audio enabled for this example. As seen above, what I want to use as the default is my old Xonar STX card aka Virtuoso 100. In this example, to set this card up I setup the Configuration tab to the following...



And take a look at the Output Devices tab now. See how it's using the Virtuoso 100 as the default device?



Remember, this is an example with my old Xonar STX sound card. Please setup your device(s) accordingly for your own needs! And if desired setup your input devices via the Input Devices tab! If everything looks good, try playing music through pulse again in Media Center. If sound works, congrats, you have working sound via pulse!


How To Remove Media Center 19 and Media Center 20

If you've updated from Media Center 19 to Media Center 20, you might find yourself with two versions of Media Center installed. Since Media Center 20 is a free upgrade from Media Center 19, it's recommended you backup your settings in Media Center 19 (to somewhere you can find it, e.g. Desktop) and remove Media Center 19.

Step 1: Backup your library and settings. Read the wiki article on how to backup your library and settings.

Step 2: Open a Terminal and input the following (you *may* be prompted for your password - answer yes when it prompts!);

Code: [Select]
sudo apt-get remove mediacenter19
Now, if you want to remove Media Center 20, just repeat step 1 and use this command instead;

Code: [Select]
sudo apt-get remove mediacenter20
If all goes well, your Media Center 19/20 installation(s) should be removed.


Enabling Copy And Paste Buffers

Currently Media Center 20 for Linux supports one copy and paste buffer system (cut buffers) and it can be challenging to use. For further information please read Bob's topic about this here (I HIGHLY suggest you do!). The current downside is I've not found a working way to add these copy and paste commands to the X startup scripts for Ubuntu/Mint. I'll continue looking into this but for those who want copy and paste working only while Media Center 20 is open, this is the best way to do it.

Step 1: Close MC20 if its open and open a Terminal window and input the following (you *may* be prompted for your password);

Code: [Select]
sudo apt-get install autocutsel
Step 2: Once this is installed, leave the Terminal open and input the following;

Code: [Select]
autocutsel -fork &
Again, make sure to leave the Terminal open and input the following;

Code: [Select]
autocutsel -selection PRIMARY -fork &
Remember to leave the Terminal with the commands running open for as long as you need copy and paste functionality. If you close the Terminal you'll lose the ability to copy and paste!

Step 3: Open MC20 and you should be able to successfully copy and paste.

Once you're done with copy and paste, close the Terminal window. To re-enable copy and paste, just follow step 2 again.


Tutorial changelog:

3.2 (06-01-2015): Updated for the new build method MC uses - install process is now simplified!
3.1 (05-18-2015): Changed the wording and updated the tutorial.
3.0 (05-14-2015): Heavily updated all the tutorials - I also removed all the dependencies as they'll be installed alongside mediacenter20. 32-bit may be supported, but needs testing!
2.2 (04-23-2015): Dropped Ubuntu 14.10 in favor of Ubuntu 15.04.
2.1 (04-16-2015): Added Ubuntu 15.04 support with a workaround to install the required libgcrypt11.
2.0 (03-15-2015): Tutorial has been rewritten and simplified. Lots of various changes!
1.8 (03-03-2015): Updated the tutorial specifying libgl1-mesa-glx:i386 and libgl1-mesa-glx as dependencies for Ubuntu 14.10 64-bit/32-bit. Also specified libgl1-mesa-glx-lts-utopic:i386 and libgl1-mesa-glx-lts-utopic as dependencies for Ubuntu 14.04.2 LTS 64-bit/32-bit (as they're apparently needed to avoid broken packages in Ubuntu 14.04.2).
1.7 (02-24-2015): Added APT repository tutorial and updated Media Center 20 links to the latest.
1.6 (02-24-2015): Added tutorial for removing Media Center 19 and Media Center 20.
1.5 (02-01-2015): Added tutorial for restoring a license, using copy and paste and updated the links
1.4 (11-10-2014): Added Linux Mint, updated links to the latest MC20 build and added a quick tutorial on updating Media Center 20 builds via the terminal
1.3 (10-23-2014): Updated for Ubuntu 14.10 and updated links
1.2 (08-12-2014): Updated for Media Center 20 + new requirements
1.1 (04-22-2014): Pulseaudio + pavucontrol information and screenshots added
1.0 (04-22-2014): Updated to reflect and require Ubuntu 14.04 LTS, updated dependencies and various fixes/changes
0.7 (03-15-2014): Updated stuff!
0.6 (02-04-2014): Updated Ubuntu 32-bit tutorial
0.5 (01-29-2014): Updated the kernel links to 3.13.1
0.4 (01-28-2014): Modified and cleaned up the formatting
0.3 (01-28-2014): Added AMD HDMI audio tutorial
0.2 (01-28-2014): Added Ubuntu 32-bit tutorial (still experimental, will need to check a couple more times)
0.1 (01-27-2014): Initial tutorial for Ubuntu 64-bit
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71316
  • Where did I put my teeth?
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #3 on: January 27, 2014, 01:33:07 pm »

Thank you!
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #4 on: January 27, 2014, 01:35:19 pm »

No problem. I'll be editing it more as the day passes. Hopefully I can get the Pulseaudio tutorial up by the end of today or tomorrow as I'll need to do some testing there (e.g seeing if .asoundrc is required or not for Pulse output, if adding yourself to the audio group is required and seeing if adding pulseaudio --start to startup is required). If I can't get it done by today instead I'll work on the tutorial of updating the kernel to get AMD HDMI audio working.

I also want to cover the ALSA device settings in MC and alsacap usage. :)

EDIT: Got side tracked by something, will resume testing and work on the tutorial tomorrow!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1601
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #5 on: January 28, 2014, 12:28:38 am »

- Media Center 19 on Linux is a 32-bit binary, but seeing how Ubuntu 13.04+ supports multiarch this isn't and shouldn't be an issue!

See, here I am trying to install it on Ubuntu 12.10LTS and wondering why it's spitting errors at me, and you've just answered it.

Thanks! Will wait until 14.04 to update the server and install this to serve music.

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #6 on: January 28, 2014, 10:13:02 am »

Here's an article about MultiArch in Ubuntu - it *might* help you.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #7 on: January 28, 2014, 06:59:14 pm »

Okay, got some stuff added like 32-bit Ubuntu (experimental, will need to double verify in another virtual machine install, time permitting), AMD HDMI Audio and modified the wording. Still working on a few other things, hopefully I get enough time to finish it and get it posted.

Feedback welcome! :)
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #8 on: January 29, 2014, 12:18:19 am »

I can't verify it but it looks good  8).

Thanks for the effort!
Logged

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #9 on: February 04, 2014, 10:08:42 am »

For ubuntu 32 bit 13.10 fresh install, the following worked for me:
sudo apt-get install libssh2-1 <- missing dependency identified with first install attempt
sudo dpkg --install ~/Downloads/MediaCenter-19.0.108.deb <- already downloaded from this website
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #10 on: February 12, 2014, 03:56:04 pm »

I fixed the tutorial above to reflect that dependency - my apologies for the late reply. I've been absolutely swamped as of late and sadly I just haven't had the time to focus more on the advanced parts of this tutorial but *hopefully* soon within the next few weeks my workload will significantly decrease and I'll have more time dedicated to updating and improving this tutorial!

P.S. Can this topic be stick'd? Thanks! :)

EDIT 03/03/2014: Still experiencing issues with time, part of the reason having to do with this long horrible Winter, but hopefully my workload decreases soon as Spring comes!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #11 on: March 10, 2014, 11:52:32 pm »

I am attempting to set up Ubuntu 13.10 64 bit so I can install Mediacenter 19.  I copied the setup code and got the following response when I entered it.

mark@AsusZ87:~$ sudo apt-get install libcurl3:i386 libx11-6:i386 lib32stdc++6 libmpcdec6:i386 libc6:i386 libstdc++6:i386 libx11-6:i386 xfonts-75dpi xfonts-100dpi libcrypto++9:i386 libasound2:i386 libuuid1:i386 libboost-regex1.49.0:i386 libicu48:i386 lame musepack-tools vorbis-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 musepack-tools : Depends: libmpcdec6 (>= 1:0.1~r435) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am new to Linux and would appreciate any help.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #12 on: March 11, 2014, 10:50:04 am »

Have you tried running sudo apt-get install -f from the terminal? Or try sudo apt-get install libmpcdec6 and see what happens. If those fail you can try running sudo apt-get remove musepack-tools but keep in mind you'll lose Musepack support.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #13 on: March 11, 2014, 03:46:59 pm »

Thanks for your response.  Following are the results of the commands you suggested:

mark@AsusZ87:~$ sudo apt-get install -f
[sudo] password for mark:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mark@AsusZ87:~$ sudo apt-get install libmpcdec6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libmpcdec6 is already the newest version.
libmpcdec6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mark@AsusZ87:~$

Am I correct in concluding that libmpcdec6 is already installed?  If so, should that be deleted from the code you initially posted to prepare Ubuntu for installing Media Center 19?  I am new to Linux, so I do not fully understand the results of the commands I entered.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #14 on: March 11, 2014, 10:15:17 pm »

> Am I correct in concluding that libmpcdec6 is already installed?

Yep, looks like you've got it already and you should be good to go. Does MC start?

> If so, should that be deleted from the code you initially posted to prepare Ubuntu for installing Media Center 19?

Well, it should automatically satisfy all dependencies, unless those have changed in the last few builds. When I get a new Ubuntu install up and going, I'll be testing exactly this (I'm trying to wait until Ubuntu 14.04 LTS is released).

> I am new to Linux, so I do not fully understand the results of the commands I entered.

sudo

apt-get

Basically what you did was install the required packages (binaries) from the terminal so the software (MC) can function correctly. libmpcdec6 was the specific package which originally gave out a broken package error (due to it not being installed/requirement satisfied), but it seems to have resolved itself, assuming you can now run MC without issue.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #15 on: March 12, 2014, 12:22:53 am »

I did the install and got dependency problems.  I then ran the sudo apt-get install -f command and the system corrected dependencies and downloaded and installed archived information.  When I launch Media Center in terminal it runs with the following errors in the terminal window.

mark@AsusZ87:~$ mediacenter19
Ignoring Xlib error: error code 8 request code 42
Details: BadMatch (invalid parameter attributes)
Ignoring Xlib error: error code 8 request code 42
Details: BadMatch (invalid parameter attributes)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)


I can't find an icon in the Dashboard to launch from.  My files are stored on a NAS drive that I need to figure out how to mount so I can try to play some files.

Do the errors mean something is wrong with the install?  I installed the latest version (121) just released today.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #16 on: March 12, 2014, 01:34:04 pm »

I did the install and got dependency problems.  I then ran the sudo apt-get install -f command and the system corrected dependencies and downloaded and installed archived information.  When I launch Media Center in terminal it runs with the following errors in the terminal window.

mark@AsusZ87:~$ mediacenter19
Ignoring Xlib error: error code 8 request code 42
Details: BadMatch (invalid parameter attributes)
Ignoring Xlib error: error code 8 request code 42
Details: BadMatch (invalid parameter attributes)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 3
Details: BadWindow (invalid Window parameter)
Ignoring Xlib error: error code 3 request code 15
Details: BadWindow (invalid Window parameter)


I can't find an icon in the Dashboard to launch from.  My files are stored on a NAS drive that I need to figure out how to mount so I can try to play some files.

Do the errors mean something is wrong with the install?  I installed the latest version (121) just released today.
Those are non-fatal xlib errors which are normal (for now).
Look under applications and you'll find the MC icon then you can drag it to the dashboard IIRC.
Perhaps someone else has more info on the NAS, it seems mounting these is pretty distro/desktop dependent.
Logged

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #17 on: March 12, 2014, 02:00:56 pm »

Thank your for your response.

When I look at applications, I cannot find the icon for Media Center.  It does show up on my left icon bar when I launch the application from terminal.

My other problem is I can't find Media Center when I access my network with my Google Nexus 7.  It did pick it up when I tested the Windows version.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #18 on: March 12, 2014, 02:09:34 pm »

I just found the icon under an expanded menu and now have it on my main icon bar.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #19 on: March 12, 2014, 03:26:34 pm »

Thank your for your response.

When I look at applications, I cannot find the icon for Media Center.  It does show up on my left icon bar when I launch the application from terminal.

My other problem is I can't find Media Center when I access my network with my Google Nexus 7.  It did pick it up when I tested the Windows version.
Turn on media network under options.
Logged

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #20 on: March 13, 2014, 01:22:58 am »

Thank you.

I did figure out how to use the media network and it recognized my DAC.  I can find it and control it with the Nexus 7 tablet.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #21 on: March 16, 2014, 11:42:48 am »

I updated the tutorial some yesterday after doing a clean Ubuntu install.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #22 on: March 22, 2014, 11:14:07 am »

An update for this topic. I'm going to wait until Ubuntu 14.04 LTS' release before making major updates to this tutorial. Why? Because by default Ubuntu 14.04 will address certain issues users may have, especially getting HDMI audio working out of the box. That way I can have basically a clean state to restructure this tutorial and simplify it. My main goal once Ubuntu 14.04's released? Getting the Pulseaudio tutorial up since to me that's very important.

In the meantime, I've made small updates to the requirements and updated MC mentions to the latest build.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #23 on: March 22, 2014, 03:44:42 pm »

The updates you described in your March 16 posting worked great.  I did an install on my laptop and everything ran like clock work without any errors.

Thank you very much for your contribution.
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #24 on: March 29, 2014, 02:47:32 pm »

I think it's time for an update. I've done a clean install of the Ubuntu 14.04 LTS Final Beta and checked MC. Some requirements don't seem to be needed anymore (libboost-regex1.49.0:i386 and libicu48:i386) but there's one brand new requirement (libtasn1-3:i386). So, because of that the current list of dependencies to get MC running on x64 Ubuntu 14.04 is...

Code: [Select]
libtasn1-3:i386 libcurl3:i386 libx11-6:i386 libmpcdec6:i386 libc6:i386 libstdc++6:i386 libx11-6:i386 libcrypto++9:i386 libasound2:i386 libuuid1:i386 libssh2-1:i386 lib32stdc++6 xfonts-75dpi xfonts-100dpi lame
Also, Pulseaudio is easy as pie to get working! Only requires two steps (installing two dependencies; libasound2-plugins:i386 and installing pavucontrol to setup Pulseaudio) and using pavucontrol to setup your output correctly. :) Because of that, when 14.04 LTS final is released, it'll be the minimum version supported by this tutorial and I'll get to remove the HDMI stuff as it *should* include kernel 3.14. :)
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

brooksmosher

  • Member
  • *
  • Posts: 1
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #25 on: April 17, 2014, 02:56:14 pm »

Hi, I tried installing on Ubuntu 14.04 by downloading and installing via the terminal, got dependency errors, ran the sudo apt-get install -f command and installed whatever it prompted me to install and I'm still getting errors when trying to install both the latest version of MediaCenter 19 as well as the version 19.0.122 (which I tried after trying to install 19.0.128).  Here's the error message I'm getting:

2014-04-16 21:20:42 (1.61 MB/s) - ‘MediaCenter-19.0.122.deb’ saved [38883752/38883752]

electric@electric-System-Product-Name:~/Downloads$ sudo dpkg -i MediaCenter-19.0.122.deb
dpkg: warning: downgrading mediacenter19 from 19.0.128 to 19.0.122
(Reading database ... 176223 files and directories currently installed.)
Preparing to unpack MediaCenter-19.0.122.deb ...
Unpacking mediacenter19 (19.0.122) over (19.0.128) ...
dpkg: dependency problems prevent configuration of mediacenter19:
 mediacenter19 depends on libtasn1-3 (>= 2.13).

dpkg: error processing package mediacenter19 (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Errors were encountered while processing:
 mediacenter19

I also went to the following link and tried installing but I'm still getting the same error when installing MC: http://packages.ubuntu.com/trusty/amd64/libtasn1-6-dev/download

I'm new to Linux so I'm sure I'm doing something wrong.  If anyone has a chance to give me a hand I'd be very appreciative!
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #26 on: April 17, 2014, 05:26:44 pm »

Yes, I found that out myself. As of right now, MC can't officially be installed on Ubuntu 14.04 LTS due to Ubuntu depreciating libtasn1-3 in favor of libtasn1-6. Since Debian Wheezy, the main Linux distro MC is developed on, still supports and requires libtasn1-3 MC won't officially work. So, there's four choices here...

1) Move to Debian Wheezy or Jessie to officially install MC.
2) Wait and see if there's anything Bob can do. The worst case scenario here, besides non-support of Ubuntu, is the need of a secondary .deb file for Ubuntu/libtasn1-6.
3) Stay on an older build of Ubuntu (not really recommended).
4) Take matters into your own hands by unpacking the .deb file, editing the control file changing the libtasn1-3 dependency to libtasn1-6 then rebuilding it. This could potentially be frowned upon here so I won't discuss how to do this, unless administration tells me otherwise. Personally, I already worked around this issue and MC is working fine for me.

So as of right now, UBUNTU ISN'T SUPPORTED FOR MC... officially!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

JimCo06

  • Recent member
  • *
  • Posts: 37
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #27 on: April 19, 2014, 01:26:23 pm »

Just an FYI

I had MC 19.0.128 running on Ubuntu 13.10.  I upgraded to to Ubuntu 14.04 using the software updater and instructions on the Ubuntu website (not a clean install).  I did not reinstall MC and it is still working perfectly.  I am a Linux noob but based on what I have been reading here it appears that the upgrade did not remove the MC dependency files (libtasn1-3) that were already installed.

P.S. the upgrade went smoothly except for one issue.  I tried to get it to leave my Grub2 file alone but it ended up messing it up and I had to repair it before I could reboot.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #28 on: April 22, 2014, 02:28:41 pm »

Tutorial updates are inbound! :D

EDIT: Got Pulseaudio + pavucontrol stuff added.

EDIT 2: Hopefully the list of dependences is correct, didn't get to test this yet on a clean install - would be great if somebody could verify this on 64-bit and 32-bit Ubuntu 14.04!

EDIT 3: I'll hold off on adding alsacap stuff until if/when it may be added within MC.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #29 on: April 23, 2014, 02:52:33 am »

i have 13.10 upgraded tp 14.04 lts
v121 was already installed
upgrade to 129-3 worked perfectly.
Quote
robert@robert-nas:~$ cd ~/Downloads
robert@robert-nas:~/Downloads$ sudo dpkg -i MediaCenter-19.0.129-3.deb
[sudo] password for robert:
(Reading database ... 173787 files and directories currently installed.)
Preparing to unpack MediaCenter-19.0.129-3.deb ...
Unpacking mediacenter19 (19.0.129-3) over (19.0.121) ...
Setting up mediacenter19 (19.0.129-3) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for mime-support (3.54ubuntu1) ...
robert@robert-nas:~/Downloads$
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)

newbluesman

  • Recent member
  • *
  • Posts: 38
Must sample rate be specified in daemon.conf file?
« Reply #30 on: May 28, 2014, 11:33:57 am »

MC works well on my Ubuntu 14.04LTS box.  But in order to pass a 192k file to my DAC, I have to set the alternate sample rate parameter in pulse/daemon.conf to 192000. Then to play a 96k file, I have to go in and change the alt sample rate to 96000.  I'd like to use Pulse, but having to reset the rate album by album is a real pain.  Is there a way to set MC for Linux up to detect and configure file by file (or, better yet, to pass files in their native formats without resampling)?
Logged

rread

  • Member
  • *
  • Posts: 1
Re: How-to: Setup Media Center 19 In Ubuntu
« Reply #31 on: May 29, 2014, 01:35:24 am »


EDIT 2: Hopefully the list of dependences is correct, didn't get to test this yet on a clean install - would be great if somebody could verify this on 64-bit and 32-bit Ubuntu 14.04!


I just installed MC on a fresh install of 14.04, and I noticed there is a typo in the dependencies for 64-bit  Ubuntu:  libidn11:1386 should be libidn11:i386.   I also had to install libstdc++6:i386 and its dependencies as well. 
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #32 on: May 29, 2014, 09:53:22 am »

Corrected, thanks!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #33 on: August 12, 2014, 07:46:24 pm »

Updated for MC20 and its new requirements!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

JohnWalker

  • Recent member
  • *
  • Posts: 22
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #34 on: August 13, 2014, 04:52:42 am »

Successfully installed MediaCenter20.0.6 on Ubuntu 14.04 64-bit, and this has fixed the problem with sound card settings. Now listening to Brahms in glorious sound once again, without needing a complicated 2-PC Linux file-server/Win7 player setup on my desk.  Good work, fast solution to an annoying bug. I also recently bought a Flirc USB dongle - allows me to use an existing remote to control MediaCenter -is this of interest to the user community?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71316
  • Where did I put my teeth?
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #35 on: August 13, 2014, 06:09:20 am »

Successfully installed MediaCenter20.0.6 on Ubuntu 14.04 64-bit, and this has fixed the problem with sound card settings. Now listening to Brahms in glorious sound once again, without needing a complicated 2-PC Linux file-server/Win7 player setup on my desk.  Good work, fast solution to an annoying bug. I also recently bought a Flirc USB dongle - allows me to use an existing remote to control MediaCenter -is this of interest to the user community?
Yes.  Please start a thread with details.  Thank you.
Logged

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #36 on: August 13, 2014, 06:52:13 am »

ubuntu 14.04 lts 32 bit - installed fine but without lib32stdc++6. i ran the below command, then dropped lib32stdc++6, followed by sudo apt-get autoremove to tidy up. finally downloaded mc20 v6 and installed. no settings were retained from v19, it's currently rebuilding the library.
regards, Robert

Code: [Select]
robert@robert-nas:~$ sudo apt-get install libx11-6 libc6 libasound2 libuuid1 libssl1.0.0 libidn11 libstdc++6 libxcb1 libxau6 libxdmcp6 zlib1g libxext6 libgtk2.0-0 lib32stdc++6 xfonts-75dpi xfonts-100dpi lame
[sudo] password for robert:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package lib32stdc++6
E: Couldn't find any package by regex 'lib32stdc++6'
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #37 on: August 13, 2014, 07:01:56 am »

Interesting, I'll remove that from the 32-bit tutorial.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

astromo

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2239
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #38 on: September 01, 2014, 09:06:04 am »

Oh Donkey of awesomely awesome awesomeness, I've got an edit job for you

This tutorial aims to aid users into setting up JRiver Media Center 20 onto Ubuntu 14.04 LTS systems. This tutorial does borrow ideas and parts done by InflatableMouse and his excellent Debian tutorial, so please thank him.

...

Next we need to download and install the latest Media Center build via the terminal. Copy and paste each line into the terminal (pressing enter after each line so it downloads);

Code: [Select]
cd ~/Downloads

wget http://files.JRiver.com/mediacenter/channels/[b][color=red]v19[/color][/b]/latest/MediaCenter-20.0.6.deb

sudo dpkg -i MediaCenter-20.0.6.deb

...

In the code above, v19 should read v20.

While you're in the neighbourhood, you could change the detail to refer to build 7.

Cheers and thanks for the guide - worked a treat.

 ;)
Logged
MC31, Win10 x64, HD-Plex H5 Gen2 Case, HD-Plex 400W Hi-Fi DC-ATX / AC-DC PSU, Gigabyte Z370 ULTRA Gaming 2.0 MoBo, Intel Core i7 8700 CPU, 4x8GB GSkill DDR4 RAM, Schiit Modi Multibit DAC, Freya Pre, Nelson Pass Aleph J DIY Clone, Ascension Timberwolf 8893BSRTL Speakers, BJC 5T00UP cables, DVB-T Tuner HDHR5-4DT

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04 LTS
« Reply #39 on: September 01, 2014, 09:16:33 am »

Fixed! :)
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #40 on: November 10, 2014, 01:53:00 pm »

Updates inbound! Added Linux Mint 17 to the tutorial, updated the build links and added a tutorial on how to update Media Center 20 via the terminal.

Also Bob, looking at the dependencies, am I missing any from the list?
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #41 on: November 10, 2014, 03:38:54 pm »

Updates inbound! Added Linux Mint 17 to the tutorial, updated the build links and added a tutorial on how to update Media Center 20 via the terminal.

Also Bob, looking at the dependencies, am I missing any from the list?
libp11-kit0
which seems to want plugins on 64 bit ubuntu anyway
p11-kit-modules
and for gnome
libp11-kit-gnome-keyring

libgl1-mesa-glx | libgl1
optional vorbis-tools and musepack-tools (for encoding those formats). Lame is also optional for the same reason.
xdg-utils (for opening a browser, etc).

Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #42 on: November 10, 2014, 04:10:57 pm »

I'm assuming for libp11-kit0, p11-kit-modules, libp11-kit-gnome-keyring and libgl1-mesa-glx the i386 packages on 64-bit is required.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

aoqw76

  • Galactic Citizen
  • ****
  • Posts: 257
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #43 on: November 10, 2014, 06:01:40 pm »

This is my lazy auto upgrade - I have this set up as a cron job that runs every morning (UK time) at 3 am.

I have a file called "mc20v" that contains this:
Code: [Select]
v=31That file gets read in using "source" command, so the script has a starting point. It basically then loops through the next 10 versions (so 32,33,34,35,36 etc) using "wget" with --spider option to see if the file exists on the jriver server. If one is found, that number is written out to a temp file. When the loop has finished, then the temp file is checked against the number we started with. Then if a new version number has been found, that number is passed through to a 2nd script.
Code: [Select]
#!/bin/bash
me=`basename $0`
cd /home/robert/scripts
source mc20v
savedv=$v
echo "existing is v" $savedv
echo "v=$v" > mc20vtemp
for i in 1 2 3 4 5 6 7 8 9 10
do
d=`expr $v + $i`
fname="MediaCenter-20.0.$d.deb"
download="http://files.jriver.com/mediacenter/channels/v20/latest/$fname"
if [[ `wget --spider -U Mozilla/5.0 $download 2>&1 | grep '200 OK'` ]]
then
echo "$d exists"
echo "v=$d" > mc20vtemp
else
echo "$d not found"
fi
done
##read in from temp file to see if new version had been found
source mc20vtemp ## loads variable $savedv
if [ $v == $savedv ]
then
echo "stopping, no new version found"
echo "$(date) $me no new version keeping $savedv" >> mc20.log
else
echo "downloading newer version $v"
echo "$(date) $me upgrading mc20 to v$v" >> mc20.log
/bin/bash /home/robert/scripts/getmc20 "$v"
fi

"getmc20" is this: it does a recheck on the file as this was my original script for downloading a new version, after I checked the forum to see if a new version had been published. Just belt and braces in case I mistyped the number, as I would execute it by running "./getmc20 31" or whatever new version number was available.
Code: [Select]
#!/bin/bash
##init variables
me=`basename $0`
log="/home/robert/scripts/mc20.log"
mc20v="/home/robert/scripts/mc20v"
mc20email="/home/robert/scripts/mc20.email"
wgetlog="/home/robert/Downloads/wget.log"
fname="MediaCenter-20.0.$1.deb"
download="http://files.jriver.com/mediacenter/channels/v20/latest/$fname"
##
echo "getting $download"
##check if file is available remotely, if yes then proceed with download
if [[ `wget --spider -U Mozilla/5.0 $download 2>&1 | grep '200 OK'` ]]
then
  echo "$1 exists, proceed with download"
##check if file already exists locally, if so then delete
  if [ -f $fname ]
  then
    rm -rv $fname
  fi
##now download new version
  cd ~/Downloads
  wget -U Mozilla/5.0 $download 2>$wgetlog
##check if wget was successful
  if grep --quiet saved $wgetlog
  then
##kill running version, install new, restart application
    pkill mediacenter
##wait until it's dead before proceeding
    var=0
    checkmc=1
    while [ $checkmc -gt 0 ]
    do
      checkmc=`ps -aux | grep -v grep | grep mediacenter | wc -l`
      var=$((var+1))
      if [ $var -gt 30 ]
      then
        break
      fi
      sleep 1
    done
    checkmc=`ps -aux | grep -v grep | grep mediacenter | wc -l`
    if [ $checkmc -gt 0 ]
    then
      echo "To: xxxxxxxxxxxx@gmail.com" > $mc20email
      echo "From: xxxxxxxxxxx@gmail.com" >> $mc20email
      echo "Subject: mc20 upgrade to v$1 failed" >> $mc20email
      echo "" >> $mc20email
      echo "$(date) $me failed to pkill running mc20" >> $mc20email
      ps -aux | grep -v grep | grep mediacenter >> $mc20email
      ssmtp xxxxxxxxxxxx@gmail.com < $mc20email
      exit 0
    fi
##if we get to here then running mc20 has been killed
##install latest version
    sudo dpkg -i $fname
    echo "$(date) $me installed v$1" >> $log
    echo "v=$1" > $mc20v
##get version info from jriver yabb forum
    wget --quiet http://yabb.jriver.com/interact/index.php?board=35.0 -O yabb1.txt ## this is the main linux forum page
## drop references to other builds
    sed -i '/ARM/d' yabb1.txt
    sed -i '/AMD64/d' yabb1.txt
## explanation of the next line: $nextpage will be the url for the thread post. grep the title using version number (in $1) and then using " as delimiter for awk, take the 4th substring.
    nextpage=`grep "JRiver Media Center 20.0.$1 for Debian" yabb1.txt | head -1 | awk 'BEGIN { FS = "\"" } ; { print $4 }'`
    wget --quiet $nextpage -O yabb2.txt ## this is the post announcing a new version is available
## explanation of the next line: find the first line containing "div class = post", replace the new line / new line / 20 with |20 (20 = current version number). awk that with pipe delimiter.
## finally replace html codes for new line and ' and space and " with the real thing
    grep '<div class="post">' yabb2.txt | head -1 | sed 's_<br /><br />20_|20_g' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sed 's_<br />_\n_g' | sed "s_&#039;_'_g" | sed "s_&nbsp;_ _g" | sed 's_&quot;_"_g' > yabb3.txt
##now send via email
    echo "To: xxxxxxxxxxxx@gmail.com" > $mc20email
    echo "From: xxxxxxxxxxxxxxx@gmail.com" >> $mc20email
    echo "Subject: mc20 upgraded to v$1" >> $mc20email
    echo "" >> $mc20email
    echo "$(date) $me Successfully installed mc20 v$1" >> $mc20email
    cat yabb3.txt >> $mc20email
    ssmtp xxxxxxxxxxxxxxx@gmail.com < $mc20email
    rm yabb*.txt
##launching mc20 has to be the last action
    /usr/bin/mediacenter20
  else
##file not found locally, abort
    echo "download of" $fname "failed"
    echo "$(date) $me download of $fname failed" >> $log
    cat $wgetlog >> $log
  fi
else
##file not available remotely, abort
  echo "$1 not found remotely, aborting"
fi

The script also send me emails using ssmtp so I know if a new version has been installed overnight.
I hope someone benefits from this; I had some fun writing and improving it, and getting it to run automatically with cron, and the ssmtp was the last bit I cracked.
regards, Robert

[updated 25th Feb 2015]
script has been tweaked since the first publication here.
added the ssmtp email generation - real email addresses masked. http://www.howtogeek.com/51819/how-to-setup-email-alerts-on-linux-using-gmail/
added checking that the pkill has been successful before proceeding with the install.
added getting the version update history from the yabb forum to be included in the final email.
Logged
xubuntu lts 14.04 32 bit, running mc22.0.36 as anything later doesn't work properly over vnc. using linux mc22 as media server to windows mc22 last version / jremote on ipad.
I am the owner / sole admin for www.cyrusunofficial.co.uk ("fan" site for Cyrus Audio hifi)

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71316
  • Where did I put my teeth?
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #44 on: November 10, 2014, 06:07:37 pm »

Nice.  Thanks for sharing.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #45 on: November 10, 2014, 06:30:01 pm »

I'm assuming for libp11-kit0, p11-kit-modules, libp11-kit-gnome-keyring and libgl1-mesa-glx the i386 packages on 64-bit is required.
Yes. And it's libgl1 OR libgl1-mesa-glx
Also, I just added xdg-utils to the recommended (it allows the internet browser to be pulled up, it should be the native architecture I believe).
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #46 on: November 10, 2014, 06:53:49 pm »

Excellent, should be up-to-date now with the dependencies. :D
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7356
  • The color of Spring...
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #47 on: February 01, 2015, 02:33:11 pm »

Okay, I've updated the post with a couple things.

1) Updated the links to the current build.

2) Added a small tutorial on how to register MC20 from a license file.

3) Using copy and paste.

Enjoy!
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Mark_NL

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #48 on: February 08, 2015, 02:27:47 pm »

THANX!

Works great with the little bother Lubuntu.
Logged

85Duppie

  • Junior Woodchuck
  • **
  • Posts: 66
Re: Setup JRiver Media Center 20 In Ubuntu 14.04/14.10, Linux Mint 17
« Reply #49 on: February 22, 2015, 11:01:51 pm »

I have been running MC 19 in Ubuntu.  I followed the instructions in this post for MC 20.  It looks like it downloaded and installed, but I can still only launch MC 19 from that installation.  Where do I look to find MC 20 and get an icon for it on my launch bar?
Logged
JRiver Id w MC 20.0.118, Samsung Galaxy Android Tablet running Bubble UPnP, PS Audio DirectStream DAC w BridgeII
Pages: [1] 2 3 4   Go Up