Wine + Ubuntu Server

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Wine + Ubuntu Server

Post by dbecker »

Quick Q:

will Wine install/run in Ubuntu 10.04 Server (Lucid Lynx)?

have a win32.exe that I like to run in linux; the .exe runs exclusively in the terminal window, no gui.

thanks!
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Yes

Post by SpawnHappyJake »

Yes
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Beware that most win32 console apps (and, henceforth, Wine itself) require a GUI environment even if they only run in "the console". You willl probably need an X server. Search this forum for those kinds of questions, as they've been answered many many many times.

Cheers,

Jorl17
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Post by dbecker »

I guess xvfb is the answer...

Xvfb :1 &
DISPLAY=:1 wine myprogram.exe


thanks for the info guys, will let ya know how it goes.
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Post by dbecker »

turns out my .exe will run without a virtual X server!

Just one Q...

how to I run multiple instances of myprogram.exe on ubuntu server? I launch: wine myprogram.exe, then I can't do any other work; the program starts.

I tried 'wine myprogram.exe&' but it doesn't run in background...

thanks.
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Post by dbecker »

should have mentioned; myprogram.exe communicates via rs232 serial port so as soon as it's launched, communication starts to scroll on the console.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

dbecker wrote:should have mentioned; myprogram.exe communicates via rs232 serial port so as soon as it's launched, communication starts to scroll on the console.
So how do you expect multiple copies of this program to work? Or you have multiple serial ports?
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Post by dbecker »

vitamin wrote:
dbecker wrote:should have mentioned; myprogram.exe communicates via rs232 serial port so as soon as it's launched, communication starts to scroll on the console.
So how do you expect multiple copies of this program to work? Or you have multiple serial ports?
multiple folders; each with a copy of the .exe and .ini file
multiple serial ports

In ubuntu desktop, I'd just start 4 dif. terminals; worked great. Obiv. can't start this many terms. in ubuntu server.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

dbecker wrote:Obiv. can't start this many terms. in ubuntu server.
Of course you can.
dbecker
Level 1
Level 1
Posts: 6
Joined: Mon Jun 27, 2011 10:29 am

Post by dbecker »

got 3 instances working with: screen wine myprogram.exe

thanks,
Locked