Linux Running windows.exe

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
Hello,

I'm trying to run my windows exe on my VPS. I followed this guide: How to run TFS OTServ compiled for Windows · DevelopersPL/otshosting-provisioning Wiki · GitHub

However, when using "wineconsole theforgottenserver.exe" I get these errors:
Code:
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x101e368, overlapped 0x101e380): stub
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x10be8a0, overlapped 0x10be8ac): stub
wine: configuration in '/home/otsmanager/.wine' has been updated.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Also, with start tfs
Code:
Failed to start tfs.service: Unit tfs.service is not loaded properly: Invalid argument.
See user logs and 'systemctl --user status tfs.service' for details.
[email protected]:~/forgottenserver$ start tfs
Failed to start tfs.service: Unit tfs.service is not loaded properly: Invalid argument.
 

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
However, when using "wineconsole theforgottenserver.exe" I get these errors:
does your vps has nouveau drivers installed? the specs of machine, cpu has any integrated graphics on it? all these errors are related to you trying to run a graphical application without graphical drivers installed
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
does your vps has nouveau drivers installed? the specs of machine, cpu has any integrated graphics on it? all these errors are related to you trying to run a graphical application without graphical drivers installed
I'm not sure. I'm just using the default server given to me when I got this service.

Never used Linux before, so I don't know how to check.
 

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
Never used Linux before, so I don't know how to check.
are you trying to do that through root user? if you are, you shouldn't, second you can try changing your default X run level to 3, hopefully wine will understand that there is no window to be created, but idk, i'm not wine expert, i've just used it sometimes and worked great, may i ask why you are trying to run tfs under wine? tfs has better support to linux than windows itself.
 
Last edited:

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,506
Best answers
15
Reaction score
895
Location
Proland
You can't run version of TFS or other engines that actually have GUI window, it won't work in wine. You need a console version.
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
You can't run version of TFS or other engines that actually have GUI window, it won't work in wine. You need a console version.
Ok, if that's the case - can you help me compile my custom sources?

I can't download the ".git" as in the tutorial, because it isn't for my sources. I have the sources pasted in /forgottenserver, build directory made but using "cmake" doesn't work.
 

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,506
Best answers
15
Reaction score
895
Location
Proland
Ok, if that's the case - can you help me compile my custom sources?

I can't download the ".git" as in the tutorial, because it isn't for my sources. I have the sources pasted in /forgottenserver, build directory made but using "cmake" doesn't work.
Something is wrong with your source or it's not fully uploaded. It can't be compiled.
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
Something is wrong with your source or it's not fully uploaded. It can't be compiled.
I'm re-uploading right now. Pretty sure they are all there, though. Compiles fine on windows.

What are the errors after cmake in console? (If it decides to give you any).
I got cmake to work;
Code:
[email protected]:~/forgottenserver$ cmake /home/otsmanager/forgottenserver/src
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver
Not sure where to go from here though. Saying "make" doesn't do anything.
 

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
Not sure where to go from here though. Saying "make" doesn't do anything.
you did a mess in your src folder with cmake things, what you should had done was (and your cmake is not working tho, with this makefile you will got linking erros because cmake didin't saw depedencies.)
cd ~/forgottenserver && mkdir build && cd build && cmake .. && make && mv tfs .. && cd ..
 

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,506
Best answers
15
Reaction score
895
Location
Proland
I'm re-uploading right now. Pretty sure they are all there, though. Compiles fine on windows.


I got cmake to work;
Code:
[email protected]:~/forgottenserver$ cmake /home/otsmanager/forgottenserver/src
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver
Not sure where to go from here though. Saying "make" doesn't do anything.
This shouldn't have work, the parameter to cmake should be parent directory of "src". You must have tampered with cmake settings.
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
If compiling isn't going to work, is there a way to change my .exe to a console so I can use that?
if you use the command i just sent it's going to work.
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
What should I put after "mv tfs ..."?
you can copy & paste this whole line, if everything is ok with your source code and dependencies it should compile and you can start tfs
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
you can copy & paste this whole line, if everything is ok with your source code and dependencies it should compile and you can start tfs
This is the error I get:
Code:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver
make: *** No targets specified and no makefile found.  Stop.
 

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
This is the error I get:
You really should spend some time searching on yt or google "introduction to bash iterative mode"
try:
make /home/otsmanager/forgottenserver
 
OP
SamX

SamX

VoltageOT Developer
Premium User
Joined
Aug 27, 2010
Messages
557
Best answers
0
Reaction score
148
Location
Canada
You really should spend some time searching on yt or google "introduction to bash iterative mode"
try:
make /home/otsmanager/forgottenserver
Code:
-- Build files have been written to: /home/otsmanager/forgottenserver
make: Nothing to be done for '/home/otsmanager/forgottenserver'.
mv: cannot stat 'tfs': No such file or directory
Sorry, new to linux.
 

Shyzoul

Excellent OT User
Joined
Apr 13, 2009
Messages
389
Best answers
8
Reaction score
185
Sorry, new to linux.
that's why i recommended you to learn the basics, it will be a pain in ass to host a server under a system that you cannot even navigate in subsystem paths
please what is output for
ls /home/otsmanager/forgottenserver
 
Top