Eloy wrote:
Now, I want to run this program natively under Linux - I mean, I don't want to run wcmd because that requires an X server.
I suggest just running your little Windows program under Wine. Don't use wcmd, you don't need it. For instance, in my ~/bin, I have a shell script winword which just contains wine -- "c:\Program Files\Microsoft Office\Office\winword.exe" "$@" That more or less lets me run microsoft word from the commandline.
You can configure wine to not require X. I've done it on some commandline Windows programs I wanted to use in shell scripts on Linux. It was and is a pain, I believe, because so few of the Wine developers use commandline Windows programs without X, but it is doable. (And maybe it's easier than it used to be; I don't know.) - Dan
Le dim 13/04/2003 à 20:41, Dan Kegel a écrit :
Eloy wrote:
Now, I want to run this program natively under Linux - I mean, I don't want to run wcmd because that requires an X server.
I suggest just running your little Windows program under Wine. Don't use wcmd, you don't need it. For instance, in my ~/bin, I have a shell script winword which just contains wine -- "c:\Program Files\Microsoft Office\Office\winword.exe" "$@" That more or less lets me run microsoft word from the commandline.
You can configure wine to not require X. I've done it on some commandline Windows programs I wanted to use in shell scripts on Linux. It was and is a pain, I believe, because so few of the Wine developers use commandline Windows programs without X, but it is doable. (And maybe it's easier than it used to be; I don't know.)
I know for sure that even without X loaded (telinit 3 or ssh w/o X), it's possible to use commandline Windows programs, with either x11drv or ttydrv specified in the config.
Eg, "wine -- p3_corr.exe p3_1.ent p3_1.sor" works fine through ssh.
Vincent
"Vincent" == Vincent Béron vberon@mecano.gme.usherb.ca writes:
Vincent> I know for sure that even without X loaded (telinit 3 or ssh Vincent> w/o X), it's possible to use commandline Windows programs, with Vincent> either x11drv or ttydrv specified in the config.
Vincent> Eg, "wine -- p3_corr.exe p3_1.ent p3_1.sor" works fine through Vincent> ssh.
Vincent,
I am quite sure that x11drv and an unset DISPLAY variable don't work. I submitted a patch to fall back to ttydrv yesterday.
Bye
Le lun 14/04/2003 à 07:35, Uwe Bonnes a écrit :
"Vincent" == Vincent Béron vberon@mecano.gme.usherb.ca writes:
Vincent> I know for sure that even without X loaded (telinit 3 or ssh Vincent> w/o X), it's possible to use commandline Windows programs, with Vincent> either x11drv or ttydrv specified in the config. Vincent> Eg, "wine -- p3_corr.exe p3_1.ent p3_1.sor" works fine through Vincent> ssh.
Vincent,
I am quite sure that x11drv and an unset DISPLAY variable don't work. I submitted a patch to fall back to ttydrv yesterday.
Hmmm... This here seems to say the opposite (or if there's something obvious I missed, please point it to me):
[vincent@papineau3 correcteur]$ set [..] BASH_VERSION='2.05b.0(1)-release' COLORS=/etc/DIR_COLORS COLUMNS=80 DIRSTACK=() EUID=500 GROUPS=() G_BROKEN_FILENAMES=1 [..] [vincent@papineau3 correcteur]$ grep -C 2 ttydrv ~/.wine/config [vincent@papineau3 correcteur]$ grep -C 2 x11drv ~/.wine/config "Path" = "c:\windows;c:\windows\system;e:\;e:\test;f:\" "Profile" = "c:\windows\Profiles\Administrator" "GraphicsDriver" = "x11drv" ;"ShowDirSymlinks" = "1" ;"ShowDotFiles" = "1" [..] [vincent@papineau3 correcteur]$ wine -- p3_corr.exe p3_1.ent p3_1.sor 2 [vincent@papineau3 correcteur]$
Vincent
"Vincent" == Vincent B,Airon vberon@mecano.gme.usherb.ca writes:
Vincent> Le lun 14/04/2003 ,b`(B 07:35, Uwe Bonnes a ,bi(Bcrit : >> >>>>> "Vincent" == Vincent B,bi(Bron vberon@mecano.gme.usherb.ca >> writes: >> Vincent> I know for sure that even without X loaded (telinit 3 or ssh Vincent> w/o X), it's possible to use commandline Windows programs, with Vincent> either x11drv or ttydrv specified in the config. >> Vincent> Eg, "wine -- p3_corr.exe p3_1.ent p3_1.sor" works fine through Vincent> ssh. >> Vincent, >> >> I am quite sure that x11drv and an unset DISPLAY variable don't >> work. I submitted a patch to fall back to ttydrv yesterday.
Vincent> Hmmm... This here seems to say the opposite (or if there's Vincent> something obvious I missed, please point it to me):
Vincent> [vincent@papineau3 correcteur]$ set [..] Vincent> BASH_VERSION='2.05b.0(1)-release' COLORS=/etc/DIR_COLORS Vincent> COLUMNS=80 DIRSTACK=() EUID=500 GROUPS=() G_BROKEN_FILENAMES=1 Vincent> [..] [vincent@papineau3 correcteur]$ grep -C 2 ttydrv Vincent> ~/.wine/config [vincent@papineau3 correcteur]$ grep -C 2 x11drv Vincent> ~/.wine/config "Path" = Vincent> "c:\windows;c:\windows\system;e:\;e:\test;f:\" "Profile" Vincent> = "c:\windows\Profiles\Administrator" "GraphicsDriver" = Vincent> "x11drv" ;"ShowDirSymlinks" = "1" ;"ShowDotFiles" = "1" [..] Vincent> [vincent@papineau3 correcteur]$ wine -- p3_corr.exe p3_1.ent Vincent> p3_1.sor 2 [vincent@papineau3 correcteur]$
Are you sure that you don't have a Wine-server running in the background, perhaps because you started the wineserver explicit in the background or because there is another wine process running or there is a crashed wine process stuck?
But for me with even another wine-process in the background and with xst expilicit a CUI application:
setenv XILINX l:\webpack-5.2
hertz:~/work/projekte/alice/pasa-astf/fpga/pasamain> unsetenv DISPLAY hertz:~/work/projekte/alice/pasa-astf/fpga/pasamain> /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/xst -quiet -ifn __projnav/pasamain.xst -ofn pasamain.syr x11drv: Can't open display:
Bye
Le lun 14/04/2003 à 09:00, Uwe Bonnes a écrit :
Are you sure that you don't have a Wine-server running in the background, perhaps because you started the wineserver explicit in the background or because there is another wine process running or there is a crashed wine process stuck?
I'm sure I don't have any wine or wineserver process hanging, it was the first time since last boot (this morning) I launched Wine. A quick ps showed the same thing also.
But for me with even another wine-process in the background and with xst expilicit a CUI application:
setenv XILINX l:\webpack-5.2
hertz:~/work/projekte/alice/pasa-astf/fpga/pasamain> unsetenv DISPLAY hertz:~/work/projekte/alice/pasa-astf/fpga/pasamain> /spare/bon/wine/wine -- /spare/bon/webpack-5.2/bin/nt/xst -quiet -ifn __projnav/pasamain.xst -ofn pasamain.syr x11drv: Can't open display:
Do xst try to open windows (or MessageBox, etc.), hence needing a graphics driver? Have you tried with a "Hello world" type program?
Vincent
"Vincent" == Vincent Béron vberon@mecano.gme.usherb.ca writes:
Vincent> Do xst try to open windows (or MessageBox, etc.), hence needing Vincent> a graphics driver? Have you tried with a "Hello world" type Vincent> program?
A "hallo.exe" linked only to MSVCRT works in this situation. xst.exe as an example however is dependant on a zillion of other dlls, where some need gdi. And gdi initialisation in turn loads a display driver, and with DISPLAY not set this will fails for x11drv...
I will mail another proposal for a fallback to ttydrv to wine-patches.
Bye