stay online

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

stay online

Post by tj »

i tried starting a program via wine using command in my debian server but no matter what i can't make my program run.
so i just remotely desktop access the program and associate the .exe to wine and that able to start it.
but the problem as soon as i close my desktop remote session the said program stops.
is there a way to keep my wine initiated program keep running and stay online?
hellork
Level 3
Level 3
Posts: 82
Joined: Thu Mar 27, 2008 7:13 pm

Re: stay online

Post by hellork »

tj wrote:i tried starting a program via wine using command in my debian server but no matter what i can't make my program run.
so i just remotely desktop access the program and associate the .exe to wine and that able to start it.
but the problem as soon as i close my desktop remote session the said program stops.
is there a way to keep my wine initiated program keep running and stay online?
Sure, just keep your desktop session open :)
What you might want is to configure the remote desktop to stay open on the other end. Or run it from a terminal like ssh -X and then have something like screen installed which allows you to disconnect and re-connect to the same terminal or support multiple logins to the same terminal. None of that has anything to do with wine though.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: stay online

Post by vitamin »

tj wrote:but the problem as soon as i close my desktop remote session the said program stops. is there a way to keep my wine initiated program keep running and stay online?
Either don't close your connection or use virtual X on your server.
Silverstar
Newbie
Newbie
Posts: 3
Joined: Wed Apr 07, 2010 1:04 am

Post by Silverstar »

Or maybe :arrow: x11vnc.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Silverstar wrote:Or maybe :arrow: x11vnc.
He'll still need a virtual X running on his server before connecting to it via vnc.
tj
Newbie
Newbie
Posts: 2
Joined: Tue Apr 20, 2010 9:03 pm

Post by tj »

to keep x running then i have to leave the vnc server running just the same. or can i keep x running alone?
right now as soon as i terminate the vnc server WINE stops running the program.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

tj wrote:to keep x running then i have to leave the vnc server running just the same. or can i keep x running alone?
right now as soon as i terminate the vnc server WINE stops running the program.
You need a constantly running virtual X server on your server. Then you can use either VNC or ssh connection to start programs in that X server.

In case you completely lost - X server is the part that displays things. The X client is the part that runs programs. If you just 'ssh -X' to your server and start program on it, your desktop is the X server and your server is X client. Obviously when you disconnect X client looses connection to X server and kills all programs.

VNC just let you see the real X server or creates temporary X server for the vnc session (depends what you connecting to). In latter case that server terminates as soon as you disconnect.
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Also, I think that you can use nohup to leave the app running in the background. Of course, this means that you should run your xserver using nohup too.

Hope I helped,

Jorl17
James McKenzie

stay online

Post by James McKenzie »

jorl17 wrote:
Also, I think that you can use nohup to leave the app running in the background. Of course, this means that you should run your xserver using nohup too.
Run VNC and the virtual X server as nobody for security reasons as well.

James McKenzie
Locked