Wine 8, Ubuntu | X Server not running

Questions about Wine on Linux
Locked
alex32
Newbie
Newbie
Posts: 3
Joined: Sun Jan 29, 2023 3:48 pm

Wine 8, Ubuntu | X Server not running

Post by alex32 »

Hi, I've just installed Wine on Ubuntu 20.04 - with GUI Gnome
I use mRemoteNG as Remote Desktop to access my VPS.


I've seen the post below, and I followed the standard procedure to install Wine on Ubuntu:

> sudo dpkg --add-architecture i386 // to enable x32
> sudo mkdir -pm755 /etc/apt/keyrings
> sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
> sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubunt ... al.sources

> sudo apt update
> sudo apt install --install-recommends winehq-stable


> wine --version // return wine-8.0
> winecfg // return err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."

> echo DISPLAY // return :0

If I run the code below:

Code: Select all

    if ! timeout 1s  xset q &>/dev/null; then
        echo "No X server at \$DISPLAY [$DISPLAY]" >&2
        exit 1
    fi
I get: No X server at $DISPLAY []

How do I install X server, or fix this issue anyway?

viewtopic.php?p=136467

Many thanks
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine 8, Ubuntu | X Server not running

Post by jkfloris »

> echo DISPLAY // return :0
I assume you mean $DISPLAY

What happens if you manually specify the DISPLAY variable?

Code: Select all

DISPLAY=:0 wine winecfg
What is the output of

Code: Select all

who -H
# and
w
# Yes, that is a single "w" from the procps package
alex32
Newbie
Newbie
Posts: 3
Joined: Sun Jan 29, 2023 3:48 pm

Re: Wine 8, Ubuntu | X Server not running

Post by alex32 »

Thanks for your help, yes it's $DISPLAY

> DISPLAY=:0 wine winecfg
....
0148:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0148:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."

> who -H
NAME LINE TIME COMMENT
root ttyS0 2023-01-31 10:50
root pts/0 2023-01-31 12:04 (109.151.62.83)

> w
17:07:13 up 6:17, 2 users, load average: 0.12, 0.19, 0.12
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root ttyS0 - 10:50 6:16m 0.09s 0.02s -bash
root pts/0 109.151.62.83 12:04 0.00s 0.04s 0.00s w

Bottom Line
I think there is a bug in Ubuntu 20.04, how do I know?
I've installed Ubuntu 22.04 in VBox , and Wine works just fine (same procedure)

Thanks
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine 8, Ubuntu | X Server not running

Post by jkfloris »

Just to clarify, I assume you have the following situation, correct me if I'm wrong:

Code: Select all

        some Windows computer
        |                   |
   mRemoteNG            VirtualBox 
        |                   |
     network             Ubuntu 22.04
        |
   Ubuntu 20.04
Where on 22.04 Wine works and on 20.04 it does not.
alex32
Newbie
Newbie
Posts: 3
Joined: Sun Jan 29, 2023 3:48 pm

Re: Wine 8, Ubuntu | X Server not running

Post by alex32 »

Yes, that's correct

The "X Server not available " and "$Display error" message shows up with Ubuntu 20.04
Whereas installing Wine on Ubuntu 22.04 works fine.

Both instances of Ubuntu have only the OS installed - and both runs on a VM
Ubuntu 20.04 runs on a VPS whereas 22.04 runs on VBox.

Thanks
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine 8, Ubuntu | X Server not running

Post by jkfloris »

Reading mRemoteNG's documentation, this program does not have standard X11 forwarding support. I don't know how you have to configure mRemoteNG to enable X11 forwarding, but I expect you can find it on the internet.
Locked