Autostart .exe programm's after reboot (without logging in)

Questions about Wine on Linux
Locked
sunshineh
Newbie
Newbie
Posts: 1
Joined: Thu Feb 13, 2014 3:20 pm

Autostart .exe programm's after reboot (without logging in)

Post by sunshineh »

Hi,

it’s the first time that I am using ubuntu server 12.04. Until now, I used only windows.

Under ubuntu I have an application (.exe) which is running under wine. Now it is very important for me, that this application starts after a server reset or update (provider) automatically. Not with autostart, because when i use autostart function, my .exe will start only after i login to the system.

But i need the start of my .exe under wine also when the provider restarts / updates the VPS Server. Then programm should run again automatically even without a root user has entered his login!

How can I do that? Has anydody a simple solution?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Autostart .exe programm's after reboot (without logging

Post by Bob Wya »

@sunshineh,

I would recommend reading section 7.9. (Can Wine run in character mode?) of the WineHQ FAQ. Well actually I would recommend reading the whole thing actually...

Simply start your console only Windows application as a service. It is relatively easy to run services as a limited user under systemd and in fact I do this on my OpenSUSE 13.1 NAS box. I am unfamiliar with how to do this on Ubuntu Server with Upstart... Please note it is not NOT recommended to run any Wine application as root - ever!!

Bob
Locked