wine and detaching a remote X application

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Zulan
Newbie
Newbie
Posts: 2
Joined: Tue Apr 22, 2008 12:03 pm

wine and detaching a remote X application

Post by Zulan »

Hi,

I would like to run a windows application (civilization 4 beyond the sword pitboss server) on a remote linux machine. After the start I want to use the GUI and then detach it.

It works fine when $DISPLAY is a:
ssh-X forwarding: But then the application does when I the ssh connection is closed.
Xvfb: But this wont let me use the GUI.

Until now I have tried:

1) Running the application through a xmove DISPLAY to start it on the ssh-X-forwarded screen and then move it onto a Xvfb. Unfortunately xmove seems unable to support GLX, and wine/pitboss seems to require GLX (it crashes in this case with an OpenGL error message).

2) Running an Xvnc (xf4vnc, which is supposed to support GLX). In that case ghe application crashes and Xvnc segaults. I can prevent the latter with -noreset. The error message I get is:
err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems.
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger..
My versions are:
- Gentoo 2.6.17-gentoo-r4
- wine-0.9.59
- X Window System Version 1.3.0
- xf4vnc 4.3.0.104
- xmove.2.0beta2

It seems that both xmove and xf4vnc are not under current development, but I havent found a modern replacement of them.

I am aware this is not only a wine question but might also belong to different projects, any helpful response is highly appreciated!
I will gladly add more information and traces if that helps you to help me.

Best Regards
Zulan
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: wine and detaching a remote X application

Post by vitamin »

If all you want is to start an application on the remote PC that connects to your X server then all you need to do:
On the X server (your local machine):

Code: Select all

xhost +
On the remove machine:

Code: Select all

export DISPLAY=<ip_address>:0.0
nohup wine program.exe&
exit
Where ip_address is the address of your local machine.

BTW none of this has anything to do with Wine. It's a standard *NIX stuff.
Marcel W. Wysocki

wine and detaching a remote X application

Post by Marcel W. Wysocki »

On Tue, 22 Apr 2008 12:17:26 -0500
"Zulan" <[email protected]> wrote:
Hi,

I would like to run a windows application (civilization 4 beyond the sword pitboss server) on a remote linux machine. After the start I want to use the GUI and then detach it.

It works fine when $DISPLAY is a:
ssh-X forwarding: But then the application does when I the ssh connection is closed.
Xvfb: But this wont let me use the GUI.

Until now I have tried:

1) Running the application through a xmove DISPLAY to start it on the ssh-X-forwarded screen and then move it onto a Xvfb. Unfortunately xmove seems unable to support GLX, and wine/pitboss seems to require GLX (it crashes in this case with an OpenGL error message).

2) Running an Xvnc (xf4vnc, which is supposed to support GLX). In that case ghe application crashes and Xvnc segaults. I can prevent the latter with -noreset. The error message I get is:

err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems.
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger..
My versions are:
- Gentoo 2.6.17-gentoo-r4
- wine-0.9.59
- X Window System Version 1.3.0
- xf4vnc 4.3.0.104
- xmove.2.0beta2

It seems that both xmove and xf4vnc are not under current development, but I havent found a modern replacement of them.

I am aware this is not only a wine question but might also belong to different projects, any helpful response is highly appreciated!
I will gladly add more information and traces if that helps you to help me.

Best Regards
Zulan

you can use xvfb and x11vnc to access the xvfb session


--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
David Gerard

wine and detaching a remote X application

Post by David Gerard »

to list as well (I hate gmail sometimes)

---------- Forwarded message ----------
From: David Gerard <[email protected]>
Date: 23 Apr 2008 11:06
Subject: Re: [Wine] wine and detaching a remote X application
To: "Marcel W. Wysocki" <[email protected]>


On 23/04/2008, Marcel W. Wysocki <[email protected]> wrote:
you can use xvfb and x11vnc to access the xvfb session
Seconded. x11vnc is fantastic stuff. I keep it running on my machines
just to give me ready access wherever I am in the house.


- d.
Zulan
Newbie
Newbie
Posts: 2
Joined: Tue Apr 22, 2008 12:03 pm

Re: wine and detaching a remote X application

Post by Zulan »

Marcel W. Wysocki wrote: you can use xvfb and x11vnc to access the xvfb session
Thanks, That did it!
vitamin wrote:If all you want is to start an application on the remote PC that connects to your X server then all you need to do:
On the X server (your local machine):

Code: Select all

xhost +
On the remove machine:

Code: Select all

export DISPLAY=<ip_address>:0.0
nohup wine program.exe&
exit
Where ip_address is the address of your local machine.

BTW none of this has anything to do with Wine. It's a standard *NIX stuff.
If I am not mistaken that doesn't work, as it would require a permanent network connection between the local and the remote machine, which does not exist.

I do think this relates to wine, as this problem arises from running a typical windows app (GUI) in a typical linux setting. There also is this null display driver which I didn't knew if it helped in my scenario. The advanced wine faq already mentions some X tricks, and I would like to include this one aswell. But anyway thanks for the standard *NIX solution :)

- Zulan
David Gerard

wine and detaching a remote X application

Post by David Gerard »

On 23/04/2008, Zulan <[email protected]> wrote:
If I am not mistaken that doesn't work, as it would require a permanent network connection between the local and the remote machine, which does not exist.
Yep. That's why x11vnc is so nice - it just makes the X server screen
available via VNC and you can connect and disconnect at will and the X
server neither knows nor cares.

(Note that VNC works by blasting bitmaps across the network, and I've
seen x11vnc produce noticeable CPU load on a 400MHz box running a
1024x768 screen. A newer machine will hardly notice the load.)


- d.
Locked