How to run Roon on Wine Stable with any supported version of Ubuntu (and derivatives)

Installing Wine Stable On Ubuntu

CODENAME=`lsb_release --codename | cut -f2`
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$CODENAME/winehq-$CODENAME.sources"
sudo apt update
sudo apt install --install-recommends wine-stable --yes
sudo apt install wine32:i386 --yes

Installing Roon on Wine

sudo apt install winetricks wget --yes
cd ~/Downloads
wget https://github.com/RoPieee/roon-on-wine/archive/refs/heads/master.zip
unzip master.zip
cd ./roon-on-wine-master/

Display settings

If you have a 1080p or smaller display resolution, you may skip this section.

For UHD screens, you’ll need to amend the installation script and change the scale factor.

# This parameter influences the scale at which
# the Roon UI is rendered.
#
# 1.0 is default, but on an UHD screen this should be 1.5 or 2.0

SCALEFACTOR=1.0

To accomplish this, simply enter the following.

# Add 1.5 or 2.0 on the following line
SCALEFACTOR=1.5
sed -i -r "s/^(SCALEFACTOR=).*/\1${SCALEFACTOR}/" ./install.sh

Finish up and run Roon

./install.sh
./start_my_roon_instance.sh

Optional post installation steps

  1. If the desktop icons do not work, add a new menu shortcut.
  2. Configure Wine to open Roon links with the default browser (set in Ubuntu → Settings.)

Version history

  • Works with all versions of Ubuntu and derivatives, e.g., Linux Mint, Zorin OS etc.
  • Simplifies steps to change display scaling.
  • Links to optional items added.
3 Likes
  • Add the icon

  • cp ~/Downloads/roon-on-wine-master/icons/256x256/roon-on-wine.png ~/.local/share/icons
    nano ~/.local/share/applications/roon-on-wine.desktop
    
    [Desktop Entry]
    Name=Roon
    # Substitute <username> with your Ubuntu user ID, i.e. echo $USER
    Exec=/home/<username>/start_my_roon_instance.sh
    Terminal=false
    Type=Application
    StartupNotify=true
    Icon=roon-on-wine.png
    StartupWMClass=roon.exe
    Categories=Music
    Keywords=roon;music;player
    
  • Icon better suited to GNOME.

roon-on-wine

1 Like

On 24.04.2 LTS, I am getting this error with ./install.sh:
wine: WINEARCH set to win64 but ‘/home/duke/my_roon_instance’ is a 32-bit installation.
cp: cannot create regular file ‘/home/duke/.local/share/icons/hicolor/32x32/apps/0369_Roon.0.png’: No such file or directory
cp: cannot create regular file ‘/home/duke/.local/share/icons/hicolor/48x48/apps/0369_Roon.0.png’: No such file or directory
cp: cannot create regular file ‘/home/duke/.local/share/icons/hicolor/256x256/apps/0369_Roon.0.png’: No such file or directory

DONE!

Then when I try to execute the ./start_my_roon_instance.sh I get this error:

004c:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
004c:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
004c:err:ole:apartment_get_local_server_stream Failed: 0x80004002
004c:err:ole:start_rpcss Failed to open RpcSs service
0054:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0054:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0054:err:ole:apartment_get_local_server_stream Failed: 0x80004002
wine: configuration in L"/home/perky/my_roon_instance" has been updated.
wine: failed to open “/Roon/Application/Roon.exe”: c0000135

Edit: fixed this by upgrading to 24.10. Thanks.

sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/oracular/winehq-oracular.sources

If you followed my instructions for Ubuntu 24.10 on 24.04 (Noble Numbat), you would need to edit the Ubuntu codename above from oracular to noble.

2 Likes

I’m adding another step, so Roon links open in your default browser.

wine regedit

Open HKEY_CURRENT_USER, and create the following key under Software → Wine.

# Type: String
xdg-open,mozilla

Next, open HKEY_CLASSES_ROOT, and browse to http → shell → open → command, and append "%1" to the string.

# Type: String
C:\windows\system32\winebrowser.exe -nohome "%1"

Finally, repeat the last step for https → shell → open → command.

I’ve added an optional step to change the scale factor before installing Roon on Wine. The steps should work with Linux Mint and Zorin OS, too.