1. Install Wine2. Prepare Wine environment for IL-2 server3. Folder structure and startup scripts4. Make another server from existing one5. Final words1. Install Wine
Add PPA repository for wine and install it.
sudo apt-add-repository ppa:ubuntu-wine2. Prepare Wine environment for IL-2 server
sudo apt-get update && sudo apt-get install wine
mkdir il2serversMake IL-2 server CRT-2 compatible.
env WINEPREFIX=/home/ante/il2servers/server1 winecfg
Set application il2server.exe to use native windows 2003 msvcrt.dllDownload msvcrt.dll
Copy msvcrt.dll to /home/ante/il2servers/server1/drive_c/windows/system32 Add new drive D: to Wine
Add drive_d in drives section, we will later put there IL-2 server, HyperLobby and FBDj.
Wine maps drive letters to folders, examine /home/ante/il2servers/server1 and you will see
drive_c - this is C: drive, windows system drive and we will leave it as it is
drive_d - this is D: drive, we will use this folder for our stuff 3. Folder structure and startup scripts
Here is example of mine wine environment folder structure. As you can see I put all my stuff in drive_d (hyperlobby, dummy server for hl, fbdj, server).
I made startup scripts which I use for starting those programs. Most important file there is "vars" file that points wine to correct environment folder.
In our case vars contains
# points wine to correct wine environment location
# each server has it's own environment
All other scripts load "vars" file and than start their own programs like HL, il2server etc. Download startup scripts
All left now is to copy your programs to drive_d and to configure them. 4. Make another server from existing one
a) Copy complete folder /home/ante/il2servers/server1 to /home/ante/il2servers/server2
b) change vars file content to point to your new location
c) change parameters for HL, IL2 server like ports, username etc.
Now you have 2 independent installation of IL-2 servers.
1st located in /home/ante/il2servers/server1
2nd located in /home/ante/il2servers/server2
Startup scripts will help you to manage each server easily. 5. Final words
- Your wine environment is now located for server1 in /home/ante/il2servers/server1 and for server2 in /home/ante/il2servers/server2
- This environment is similar to windows installation on PC, look at Wine environment as it is virtual PC, it has drives C: and D:, it is independent of other wine environments on your Linux server