Working Winsows Game Server

Posted March 25, 2015 9k views
Linux Commands

Hi all, I have a server with ubuntu. Now trying to make a windows dedicated server on the host. I have transferred dedicated server files to “root” and get “wineconsole” on the doplet.. I put these commands and get an error..

wineconsole --backend=curses mb_warband_dedicated.exe -r Sample_Battle.txt


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. 
err:systray:initialize_systray Could not create tray window 
wineconsole: Starting program "mb_warband_dedicated.exe -r Sample_Battle.txt" failed. 
The command is invalid.

Is there anyone who knows how to make it work.. Thanks in advance…

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers

It’s trying to open what you’ve asked it to run in a window, which it cannot.

You probably have to install X on your server.

How can I run it then? And what is “X”

  • X is displays what you’ve opened on your server

  • X11 is a display server used by most Unix systems to display graphical content.

    If the program you are trying to run really doesn’t require a graphical window, you can probably get away with tricking it into using a “headless” display server with the xvfb-run command. It can be installed with:

    sudo apt-get install xvfb

    Then try prepending it to your command:

    xvfb-run wineconsole --backend=curses mb_warband_dedicated.exe -r Sample_Battle.txt
  • asb, I have tried and got this error:

    wineconsole: Starting program "mb_warband_dedicated.exe -r Sample_Battle.txt" failed.
    The command is invalid.
    root@ottoman:~# XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":99"
          after 138 requests (137 known processed) with 0 events remaining.

Ok.. How can I install X?

  • asb’s suggestion was a pretty good one, but if it doesn’t work, this is one way to install X:
    sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install screen unzip xfce4 xfce4-goodies gdm

    You’ll get an XFCE desktop environment that way, just like Windows.

    You can start X using the command: