# Running RoonCore on Linux desktop

**URL:** <https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127>\
**Category:** Linux\
**Created:** [April 17, 2022, 7:38pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127 "2022-04-17T19:38:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerome\_Shearer](https://community.roonlabs.com/letter_avatar/jerome_shearer/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jerome\_Shearer](https://community.roonlabs.com/u/Jerome_Shearer)\
**Post date:** [April 17, 2022, 7:38pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/1 "2022-04-17T19:38:37Z")

</div>

Heya folks,

I do not have a home server at the moment, and along with the rest of the functionality, all music files are on my desktop.  
I want to run roon core from here. Other than use the windows version and run with wine, how do I do this? Only asking since the windows version solution is laggy/glitchy/borched for me.  
Thanks!

---

<div class="post-metadata">

**Author:** ![mjw](https://community.roonlabs.com/user_avatar/community.roonlabs.com/mjw/32/382057_2.png) [@mjw](https://community.roonlabs.com/u/mjw)\
**Post date:** [April 17, 2022, 7:47pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/2 "2022-04-17T19:47:05Z")

</div>

Install [Roon Server for Linux](https://help.roonlabs.com/portal/en/kb/articles/linux-install) on the desktop (this will also serve as Roon Bridge on that machine too, so you can listen direct.) You can control Roon from a mobile phone or tablet, or install [Roon on Wine](https://github.com/RoPieee/roon-on-wine).

---

<div class="post-metadata">

**Author:** ![Jerome\_Shearer](https://community.roonlabs.com/letter_avatar/jerome_shearer/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jerome\_Shearer](https://community.roonlabs.com/u/Jerome_Shearer)\
**Post date:** [April 18, 2022, 3:27pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/3 "2022-04-18T15:27:23Z")

</div>

Okay, as I thought. Thank you 🙂  
Though, what do you mean that I can listen direct?  
Unfortunately the app for android at least has some issues for me. I don’t suppose we have a way of using their web UI that they use for their ROCK?

---

<div class="post-metadata">

**Author:** ![mjw](https://community.roonlabs.com/user_avatar/community.roonlabs.com/mjw/32/382057_2.png) [@mjw](https://community.roonlabs.com/u/mjw)\
**Post date:** [April 18, 2022, 4:08pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/4 "2022-04-18T16:08:47Z")

</div>

My Core is on a NUC running ROCK. On my Linux desktop, I use Roon on Wine for Control, but this doesn’t see devices attached to the laptop. Therefore, I install Roon Bridge for Linux to have direct access to audio devices and my DAC.

The Web interface with ROCK can’t be used for controlling Roon, i.e., play actions, library management etc., and is integral to the ROCK OS.

Installing Roon Server is straightforward. Something similar to:

```auto
sudo apt install ffmpeg cifs-utils -y
curl -O https://download.roonlabs.net/builds/roonserver-installer-linuxx64.sh
chmod +x roonserver-installer-linuxx64.sh
sudo ./roonserver-installer-linuxx64.sh

```

The Roon on Wine script is easy to use, too.

```auto
sudo apt install wine winetricks wget -y
curl -L -o roon-on-wine-master.zip https://github.com/RoPieee/roon-on-wine/archive/refs/heads/master.zip
unzip roon-on-wine-master.zip
cd roon-on-wine-master/
./install.sh

```

When the installer has finished, uncheck run Roon, and exit. If your monitor has no scaling, edit `~/start_my_roon_instance.sh` and replace the `-scalefactor=2` with `-scalefactor=1`

 ![Screenshot from 2022-04-18 17-17-09](https://roon-community-uploads.s3.amazonaws.com/original/3X/5/1/51a0acaeab1de174c5b34c080ec8d69b7bdf95e0.jpeg)

---

<div class="post-metadata">

**Author:** ![Jerome\_Shearer](https://community.roonlabs.com/letter_avatar/jerome_shearer/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jerome\_Shearer](https://community.roonlabs.com/u/Jerome_Shearer)\
**Post date:** [April 18, 2022, 4:45pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/5 "2022-04-18T16:45:24Z")

</div>

Thanks a bunch for your help. I’ll look into using wine again soon, but for now the server on my desktop is working alright to feel how roon goes (trial). I’m building a respectable server for personal use in a month or so, so will see again then if I go down that path with roon 🙂

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 23, 2022, 10:29pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/6 "2022-12-23T22:29:13Z")

</div>

I’ve been trying to run Roon on Wine for days (weeks) as people keep saying it’s possible. However, I always run into the same  
 ![image](https://roon-community-uploads.s3.amazonaws.com/original/3X/3/d/3d08e7ad6efa3145318eef78fcddc99bf4d147cc.png)

---

<div class="post-metadata">

**Author:** ![mjw](https://community.roonlabs.com/user_avatar/community.roonlabs.com/mjw/32/382057_2.png) [@mjw](https://community.roonlabs.com/u/mjw)\
**Post date:** [December 23, 2022, 10:31pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/7 "2022-12-23T22:31:50Z")

</div>

@S_Heeren, welcome to the Roon community.

It would be really helpful if you could describe your Linux system, and the steps you’ve tried.

Whilst I’ve not seen that message, I’d hazard a guess that you aren’t using a 64 bit Wine prefix.

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 23, 2022, 10:36pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/8 "2022-12-23T22:36:30Z")

</div>

Hold on, the rubber duck effect is kicking in. I used WINEPREFIX=~/my\_roon\_instance/ winecfg to set the compatibility mode to Windows 10, and now the installer doesn’t reject it immediately.

However, I cannot run the resulting installation:

```auto
env WINEPREFIX=/home/sehe/my_roon_instance wine '/home/sehe/my_roon_instance/drive_c/users/sehe/Local Settings/Application Data/Roon/Application/Roon.exe' -scalefactor=2
029c:err:ole:CoGetContextToken apartment not initialised
025c:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
04d8:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
04d8:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
02f4:err:winediag:wined3d_dll_init Using the OpenGL renderer.
DirectManipulation CoCreateInstance hr: 0
DirectManipulation GetUpdateManager hr: 0
DirectManipulation CreateViewport hr: 0
DirectManipulation ActivateConfiguration hr: 0
DirectManipulation SetViewportOptions hr: 0
DirectManipulation AddEventHandler hr: -2147467263
025c:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
025c:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
034c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
034c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
034c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
034c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733

```

And that exits the process in 2 to 5 seconds

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 4:19am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/9 "2022-12-25T04:19:12Z")

</div>

I’m on Ubuntu 22.04.1 LTS (jammy), up to date. I wager to guess that wine is 64 bits by default 🙂

My alternatives select wine-stable:

```auto
update-alternatives --list wine
/usr/bin/wine-stable

```

Here’s the output of `bash -x ./install.sh` in case you want to check (I did a `rm -rf ~/my_roon_instance/` first just in case): [Ubuntu Pastebin](https://paste.ubuntu.com/p/fvyDKKb7dG/)

That’s the run that results in the “This device is not compatible with Roon 2.0” installer screen.

Then, after

```auto
env WINEARCH=win64 WINEPREFIX=/home/sehe/my_roon_instance WINEDLLOVERRIDES=winemenubuilder.exe=d winecfg

```

to switch the Windows Version from the defaulted “Windows 7” to “Windows 10”, and relaunching the installer:

```auto
env WINEARCH=win64 WINEPREFIX=/home/sehe/my_roon_instance WINEDLLOVERRIDES=winemenubuilder.exe=d wine RoonInstaller64.exe

```

Shiny results! [https://imgur.com/a/lxULT7j](https://imgur.com/a/lxULT7j)

Then attempting to run with (the path in `start_my_roon_instance.sh` does not exactly match the installed location for me):

```auto
env WINEARCH=win64 WINEPREFIX=/home/sehe/my_roon_instance WINEDLLOVERRIDES=winemenubuilder.exe=d wine '/home/sehe/my_roon_instance/drive_c/users/sehe/Local Settings/Application Data/Roon/Application/Roon.exe'

```

Fails with the errors shown before:

```auto
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
00c8:err:ole:CoGetContextToken apartment not initialised
00b8:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
012c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
012c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
012c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
012c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
013c:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0154:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0154:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0118:err:winediag:wined3d_dll_init Using the OpenGL renderer.
DirectManipulation CoCreateInstance hr: 0
DirectManipulation GetUpdateManager hr: 0
DirectManipulation CreateViewport hr: 0
DirectManipulation ActivateConfiguration hr: 0
DirectManipulation SetViewportOptions hr: 0
DirectManipulation AddEventHandler hr: -2147467263
00b8:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
00b8:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
 sehe  ~  custom  roon-on-wine-master  5  0198:err:ntdll:RtlLeaveCriticalSection section 00000000000217C0 is not acquired

```

Thanks for any hints whatsoever!

---

<div class="post-metadata">

**Author:** ![BlackJack](https://community.roonlabs.com/user_avatar/community.roonlabs.com/blackjack/32/39743_2.png) [@BlackJack](https://community.roonlabs.com/u/BlackJack)\
**Post date:** [December 25, 2022, 4:56am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/10 "2022-12-25T04:56:26Z")

</div>

> [@S\_Heeren](#):
>
> `WINEDLLOVERRIDES=winemenubuilder.exe=d`

This was not part of older versions of the install script. As it seems to give an error for you, don’t use it.

> [@S\_Heeren](#):
>
> `c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r"`

All my older wine bottles (using wine stable under ubuntu) still run with current Roon.

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 5:06am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/11 "2022-12-25T05:06:56Z")

</div>

> [@BlackJack](#):
>
> This was not part of older versions of the install script. As it seems to give an error for you, don’t use it.

Tried without (editing install.sh and also the start commands manually), I don’t see a significant difference:

```auto
038c:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
055c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
055c:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0420:err:winediag:wined3d_dll_init Using the OpenGL renderer.
DirectManipulation CoCreateInstance hr: 0
DirectManipulation GetUpdateManager hr: 0
DirectManipulation CreateViewport hr: 0
DirectManipulation ActivateConfiguration hr: 0
DirectManipulation SetViewportOptions hr: 0
DirectManipulation AddEventHandler hr: -2147467263
038c:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
038c:err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"C:\\users\\sehe\\Local Settings\\Application Data\\Roon\\Application\\200001182\\roon_mediacontrols.dll") not found
0774:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0774:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0774:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733
0774:err:winsock:WSAIoctl -> ?('', 12, 18) request failed with status 0x2733

```

Thanks for thinking along. Hoping more sets of eyes see more

---

<div class="post-metadata">

**Author:** ![BlackJack](https://community.roonlabs.com/user_avatar/community.roonlabs.com/blackjack/32/39743_2.png) [@BlackJack](https://community.roonlabs.com/u/BlackJack)\
**Post date:** [December 25, 2022, 5:13am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/12 "2022-12-25T05:13:05Z")

</div>

I don’t know. The log snippet is full of, what seems unrelated to me, different errors. It’s unclear to me, and probably others too, which one of those actually breaks Roon for you (again: Roon runs on my system without issue – currently).

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 5:15am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/13 "2022-12-25T05:15:28Z")

</div>

Yeah. I’m not sure what those messages mean either. I’m kinda used to lost of stub errors in Wine, but it’s hard to pinpoint a cause here.

What does your system look like? Distro, versions? I might try my luck in other ways, and perhaps even spot the issue so we can help others

---

<div class="post-metadata">

**Author:** ![BlackJack](https://community.roonlabs.com/user_avatar/community.roonlabs.com/blackjack/32/39743_2.png) [@BlackJack](https://community.roonlabs.com/u/BlackJack)\
**Post date:** [December 25, 2022, 5:18am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/14 "2022-12-25T05:18:07Z")

</div>

Ubuntu 18.04 LTS (5.4.0-135-lowlatency) with Wine stable (7.0.1 from WineHQ) on i5-6400T (integrated GPU).

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 5:26am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/15 "2022-12-25T05:26:15Z")

</div>

So, that’d be wine 3.0-1ubuntu1

```auto
ii fonts-wine 3.0-1ubuntu1 all Windows API implementation - fonts
ii libwine:amd64 3.0-1ubuntu1 amd64 Windows API implementation - library
ii wine-stable 3.0-1ubuntu1 all Windows API implementation - standard suite
ii wine64 3.0-1ubuntu1 amd64 Windows API implementation - 64-bit binary loader

```

I’ll try that later. I still have my 18.04 partition bootable as well.

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 5:30am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/16 "2022-12-25T05:30:59Z")

</div>

Just noticed your edit (sneaky). I’m trying with winehq stable now

---

<div class="post-metadata">

**Author:** ![BlackJack](https://community.roonlabs.com/user_avatar/community.roonlabs.com/blackjack/32/39743_2.png) [@BlackJack](https://community.roonlabs.com/u/BlackJack)\
**Post date:** [December 25, 2022, 5:31am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/17 "2022-12-25T05:31:21Z")

</div>

Wine 3 really? Maybe that what’s in the Ubuntu repository – there are good reasons to not use outdated software from distribution repositories. From own experience I can tell you that ubuntu’s wine doesn’t work for 18.04 LTS – you have to remove it completely, including the outdated winetricks, and follow the instructions from WineHQ to install current versions of the two programs.

Also just noticed your edit, but leave this in because of the hint for the also outdated winetricks.

---

<div class="post-metadata">

**Author:** ![S\_Heeren](https://community.roonlabs.com/user_avatar/community.roonlabs.com/s_heeren/32/329074_2.png) [@S\_Heeren](https://community.roonlabs.com/u/S_Heeren)\
**Post date:** [December 25, 2022, 5:40am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/18 "2022-12-25T05:40:09Z")

</div>

> [@S\_Heeren](#):
>
> `env WINEARCH=win64 WINEPREFIX=/home/sehe/my_roon_instance WINEDLLOVERRIDES=winemenubuilder.exe=d wine '/home/sehe/my_roon_instance/drive_c/users/sehe/Local Settings/Application Data/Roon/Application/Roon.exe'`

Ha! I specifically avoided using the version from WineHQ as every article I saw referred to sticking with “stable”, which in my experience equates to the distro version!

Indeed, it looks a lot better now. It did crash at first, but now it is showing some signs of life!

 ![image](https://roon-community-uploads.s3.amazonaws.com/original/3X/d/4/d42e24a9374a1fe8faf5e99f941b029162f89183.jpeg)

Now I’m crossing my fingers that media keys (can be made to) work, and all my hesitation of using Roon is out the window. Way more success than I anticipated already.

Cheers for the help

---

<div class="post-metadata">

**Author:** ![Suedkiez](https://community.roonlabs.com/user_avatar/community.roonlabs.com/suedkiez/32/107321_2.png) [@Suedkiez](https://community.roonlabs.com/u/Suedkiez)\
**Post date:** [December 26, 2022, 9:27pm UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/19 "2022-12-26T21:27:32Z")

</div>

> [@BlackJack](#):
>
> Wine 3 really? Maybe that what’s in the Ubuntu repository

It’s not. 22.04.1 LTS (jammy) has wine 6.0.3  
[https://packages.ubuntu.com/search?keywords=wine&searchon=names&suite=jammy&section=all](https://packages.ubuntu.com/search?keywords=wine&searchon=names&suite=jammy&section=all)  
No idea why @S_Heeren’s terminal output showed wine 3

---

<div class="post-metadata">

**Author:** ![BlackJack](https://community.roonlabs.com/user_avatar/community.roonlabs.com/blackjack/32/39743_2.png) [@BlackJack](https://community.roonlabs.com/u/BlackJack)\
**Post date:** [December 27, 2022, 12:43am UTC](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127/20 "2022-12-27T00:43:21Z")

</div>

We were talking about Ubuntu 18.04 LTS tough:

> **[Ubuntu – Details of package wine-stable in bionic](https://packages.ubuntu.com/bionic/wine-stable)**
>
> Windows API implementation - standard suite

[Next page](https://community.roonlabs.com/t/running-rooncore-on-linux-desktop/199127.md?page=2)
