Jeff
03-13-2007, 08:25 PM
Had a potential customer call earlier today, inquiring about our VDS services. Turns out he has a Win32 application that he'd like to run on the VDS. Can an .exe file be run under Linux? You bet! (http://www.winehq.com)
[root@host ~]# wget -O wine.tar.bz2 "http://downloads.sourceforge.net/wine/wine-0.9.32.tar.bz2?modtime=1172860146&big_mirror=1"
[root@host ~]# tar jxvf wine.tar.bz2
[root@host ~]# cd wine-0.9.32
[root@host ~/wine-0.9.32]# ./configure --without-x --without-opengl
[root@host ~/wine-0.9.32]# make depend
[root@host ~/wine-0.9.32]# make
[root@host ~/wine-0.9.32]# make install
HELLOW.COM - manually assembled via WinXP's debug.exe:
[root@host exes]# wine HELLOW.COM 2>/dev/null
Hello World!
cmd.exe, in bash
[root@host exes]# wine cmd.exe 2>/dev/null
Microsoft Windows XP [Version 5.0.2195]
(C) Copyright 1985-2001 Microsoft Corp.
Z:\root\exes>dir
Volume in drive Z has no label.
Volume Serial Number is 0000-0000
Directory of Z:\root\exes
03/13/2007 06:07 PM <DIR> .
03/13/2007 05:45 PM <DIR> ..
03/13/2007 05:03 PM 21 HELLOW.COM
md5sum.exe
[root@host exes]# wine md5sum.exe cmd.exe
eeb024f2c81f0d55936fb825d21a91d6 *cmd.exe
What about network functionality (netcat)?
WINDOW 1 -
[root@host exes]# wine nc.exe -l -p 7005
test
WINDOW 2 (remote host) -
# nc x.x.x.x 7005
test
WINE isn't perfect, but if you find yourself needing to run a Win32 executable under Linux, give it a shot and let us know how it works out.
[root@host ~]# wget -O wine.tar.bz2 "http://downloads.sourceforge.net/wine/wine-0.9.32.tar.bz2?modtime=1172860146&big_mirror=1"
[root@host ~]# tar jxvf wine.tar.bz2
[root@host ~]# cd wine-0.9.32
[root@host ~/wine-0.9.32]# ./configure --without-x --without-opengl
[root@host ~/wine-0.9.32]# make depend
[root@host ~/wine-0.9.32]# make
[root@host ~/wine-0.9.32]# make install
HELLOW.COM - manually assembled via WinXP's debug.exe:
[root@host exes]# wine HELLOW.COM 2>/dev/null
Hello World!
cmd.exe, in bash
[root@host exes]# wine cmd.exe 2>/dev/null
Microsoft Windows XP [Version 5.0.2195]
(C) Copyright 1985-2001 Microsoft Corp.
Z:\root\exes>dir
Volume in drive Z has no label.
Volume Serial Number is 0000-0000
Directory of Z:\root\exes
03/13/2007 06:07 PM <DIR> .
03/13/2007 05:45 PM <DIR> ..
03/13/2007 05:03 PM 21 HELLOW.COM
md5sum.exe
[root@host exes]# wine md5sum.exe cmd.exe
eeb024f2c81f0d55936fb825d21a91d6 *cmd.exe
What about network functionality (netcat)?
WINDOW 1 -
[root@host exes]# wine nc.exe -l -p 7005
test
WINDOW 2 (remote host) -
# nc x.x.x.x 7005
test
WINE isn't perfect, but if you find yourself needing to run a Win32 executable under Linux, give it a shot and let us know how it works out.