Author Topic: [GUIDE] How to use Musicbee on Linux (Archlinux/Debian based distro)  (Read 1105 times)

Mreve

  • Newbie
  • *
  • Posts: 7
Disclaimer : English is not my native language. Feel free to correct me if I'm not clear.


Hi,

I lost a LOT of time tinkering with native linux music managers, trying to make them suitable for me. I should have directly tried to use Musicbee through wine. Musicbee is clearly the best music manager out there ! 8)


I'm not the only one to try this out but some posts I read on the forum aren't really updated and they encourage people to install useless wine dependencies.  


I'm running Archlinux but I don't think it really matters. Here is what I've done :


1) Install wine-staging and winetricks. If you're on arch, I think you know how to do this...  ;)


Code
sudo pacman -Sy wine-staging winetricks

Note : wine-mono package is useless (it just downloads wine-mono.msi but doesn't install it for wine) and you don't need wine-mono for Musicbee anyway.

Archlinux is easy.  ;)

For Debian-based distro, it's a little bit more annoying : https://wiki.winehq.org/Ubuntu



2) MS .NET 4.8 doesn't work with a 64bits wineprefix yet so you'll need to create a new 32bits wineprefix for MusicBee ! It's better to use distinct wineprefix than just one wineprefix for all your windows softwares because if you mess up with wine components, you can simply delete the wineprefix and start again.

Code
WINEARCH=win32 WINEPREFIX=path/to/whereYouWantYourWineprefix/.WineBee winecfg

Note : If you have a 4K screen, I suggest you to change the screen resolution to 240ppp in the tab Display.

3) Install Musicbee dependencies

Code
WINEPREFIX=path/to/whereYouWantYourWineprefix/.WineBee winetricks -q dotnet48 xmllite gdiplus 

4) Download the lastest Musicbee version (take the full download) : https://getmusicbee.com/forum/index.php?board=6.0

5) Unzip and install Musicbee

Code
WINEPREFIX=path/to/whereYouWantYourWineprefix/.WineBee wine MusicBeeSetup_3_3.exe


Et voilĂ  ! :)


You can then create an alias to easily launch Musicbee. Here the command line to do this :

Code
echo "alias Musicbee='WINEPREFIX=path/to/whereYouWantYourWineprefix/.WineBee wine path/to/whereYouWantYourWineprefix/.WineBee/drive_c/Program\ Files/MusicBee/MusicBee.exe'" >> ~/.bashrc

Close your terminal and open a new one to use the new alias. Don't be afraid of all the errors in the terminal. It's normal when using Wine. The main thing is that Musicbee is perfectly running !




Current issues (WINE staging 4.20 - Musicbee 3.3) :


1) Error when dragging playlists into a folder from the left panel
WORKAROUND : Arrange the playlists from the file manager (in the Musicbee library folder)

2) Crash when trying to change settings in File converters section
WORKAROUND : None but It is still possible to use the format conversion feature (Menu-->Tools-->Convert Format)

3) You say to me
Last Edit: February 20, 2020, 01:30:21 AM by Mreve

StfN

  • Newbie
  • *
  • Posts: 2
Hello!

First off, I have to say, very good guide. I was coming here to post my own after finally figuring out a way to get MusicBee up and running, but found yours to be more complete.

Maybe you, or someone else who is more experienced with wine or linux, can help me with one little problem though, that I had when I installed MusicBee with my method, as well as with your guide:
So, I'm using Linux Mint 19.3, and Wine 5.0. I had to install .NET Framework 4.6.1 with winetricks, because the highest available version is 4.6.2 (which is broken), 4.6.1 works, and is also what MusicBee uses.
Anyways, everything seems to work well except that during music playback I get audio skips every one to two minutes. Usually just a very small skip, maybe a tenth of a second, sometimes a longer one. I have already searched the internet for audio playback skips in wine, but found nothing that worked for me. I have tried using pulse audio as well as alsa, have tried every possible output in MusicBee preferences, 32 bit output on/off, increased buffer, but none of it makes any difference.
Does anyone have any ideas?

Iaith

  • Newbie
  • *
  • Posts: 1
I followed the steps and everything works so far (except the mentioned bugs). I am running Manjaro 19.0.2. I have the problem that MB doesn't recognize my with cable connected device, while manjaro does.  MB-remote also doesn't seem to find a connection, not sure if they are related - something about them not beeing able to look outside the box? Anyone had a similar problem, if - how did you manage to solve it?

PS:Audio blips i also sometimes encounter, though much more rarely.

jeroni

  • Newbie
  • *
  • Posts: 1
It works pretty well on Arch. But it takes about a 20% of CPU (with an i7-8700K). Is it normal or am I doing something wrong?

Durhammer

  • Newbie
  • *
  • Posts: 5
Hello!

First off, I have to say, very good guide. I was coming here to post my own after finally figuring out a way to get MusicBee up and running, but found yours to be more complete.

Maybe you, or someone else who is more experienced with wine or linux, can help me with one little problem though, that I had when I installed MusicBee with my method, as well as with your guide:
So, I'm using Linux Mint 19.3, and Wine 5.0. I had to install .NET Framework 4.6.1 with winetricks, because the highest available version is 4.6.2 (which is broken), 4.6.1 works, and is also what MusicBee uses.
Anyways, everything seems to work well except that during music playback I get audio skips every one to two minutes. Usually just a very small skip, maybe a tenth of a second, sometimes a longer one. I have already searched the internet for audio playback skips in wine, but found nothing that worked for me. I have tried using pulse audio as well as alsa, have tried every possible output in MusicBee preferences, 32 bit output on/off, increased buffer, but none of it makes any difference.
Does anyone have any ideas?

Amen to that, regarding thanks to all that led the way on this! And thanks to the marvelous developers of Wine and Winetricks who make it possible!

I am running Linux Mint 19.3 with Cinnamon 4.4.8, Linux kernel 5.3.0-53-generic, Wine 4.0 and Winetricks 20180217. I'm sorry that Wine doesn't really support .NET and thus MusicBee in 64 bit mode, but so far it's working for me. Installed MB 3.3.7367 after installing .NET 4.6.1 (the most painful part of the whole setup) with WINEARCH=32 set.

I wasn't all THAT familiar with MusicBee except when I booted into my Windows 10 machine. I have been using Cantata 2.2.0 on Linux and at some point, found its port to Windows. It's great, but Mr. Drummond isn't developing it anymore, and there are newer things out there. Steven is still developing and maintaining MusicBee, so now I'm happy to be onboard with using it on Linux. I've got a lot to learn!

One thing I'd like to figure out is how to size the main window so I can move the player controls to the bottom. Right now, if I try that, I can't see it. Really can't see the bottom of the window, period! Might just be a Wine issue....

Anyway, thanks to all who have contributed to making this possible!

Durhammer

  • Newbie
  • *
  • Posts: 5
Okay, now there's an issue. I manually set up all the radio stations I have in both Cantata on Linux and in MusicBee 3.3.7367 on Windows 10. They all work well in both environments. However, I have ONE station that won't run in MB under Wine on Linux Mint. Wonderful station, "That Station" (thatstation.net), stream URL is

https://live.wostreaming.net/direct/capitolbroad-wclyamaac-ibc1

I keep getting the dreaded "Unable to open stream (ERROR=BASS_ERROR_UNKNOWN)." Not a bit of problem on Windows 10, not a bit of problem in Cantata on Linux (or Cantata in Windows, for that matter). Originally, MB marked it as having an unknown bit rate. I tried setting it to 128k, 192k, and finally after checking MB on Windows, which showed it as 64K, to that. Same result.

Any ideas? Thanks in advance!

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 30653
i expect its an AAC stream and you need bass_aac.dll for that (aac decoding is included in windows)

Durhammer

  • Newbie
  • *
  • Posts: 5
DUH! Oops, so sorry! I think I'd actually seen that elsewhere in the forums and stupidly thought it was something that was incorporated into the newer releases. I found the latest download link in the forums and put in in, and SHAZAM!

Thanks, Steven!

And thanks for the reminder that there's lots of solutions buried in the forums if you search 'em. I'm going to go back and review the newbie details about searching now.

Durhammer

  • Newbie
  • *
  • Posts: 5
Well, crud. I need to stay away from "Playing Now"! Probably too graphic intensive under Wine. Overheated my old Samsung RF711 laptop and Linux crashed. Started monitoring CPU usage with the "same" streams (not entirely the same at the same time, nature of the beast) running Cantata (MPD component mostly) and MusicBee. Linux "top" command shows MB and Wineserver still taking 24% and 11% even when paused, running Cantata (MPD logging ~3%). When MB runs, it's more like 43%. When I click the "Playing Now" tab, top shows MB using 98-103% CPU! Sheet!

My Psensor app shows the overall CPU usage (and temps) and when MB is running, the CPU% is ~13, and when Playing Now is active, it goes up to ~25%. Even when playing is paused, CPU% is around 20%. Take MB and Wine out of the picture, and Cantata+MPD running, it's stable at ~7%. Pause Cantata, it drops to 2-3%. Granted, Cantata doesn't have the same cool album art and visulalizer displays. It has an "I(nfo)" icon that shows Wikipedia (etc.) text about the track and lyrics, so just text. Might be a plugin for that, but I've never used it. Guess I can at least do without the album art -- off to find out how to turn that off...

Any other hints at how to minimize resources would be appreciated, folks!

Durhammer

  • Newbie
  • *
  • Posts: 5
Okay, things are MUCH better when disabling the (sigh, unfortunately, REALLY cool) Visualizer on the Now Playing tab. Temperature and CPU% much more stable and reasonable!

Guess I can live without that cool cuteness....