New gameserver VM setup

This document describes in rough detail the recommended checklist for setting up a new game server host VM in the standard configuration.

Details can also be found on this forum thread: http://www.alandfaraway.org/forums/viewtopic.php?f=95&t=47550

OS configuration:

- Install Windows Server
- Copy standard tools over
- Create SG "NWN2 Servers"
- Create SG "NWN2 Admins"
- Create user "NWN2Server"
○ Add to "NWN2 Servers" SG
- Create C:\NWN2, xcopy NWN2 install over
○ Grant "NWN2 Servers" create files, create folders to "This folder only"
○ Grant "NWn2 Admins" modify to folder, subfolders, and files
○ Import NWN2.reg
- Create C:\NWN2User
○ Grant full control to "NWN2 Servers"
○ Grant modify/execute/list/read/write to "NWN2 Admins"
- Runas /profile /user:NWN2Server cmd.exe
○ cd /d "%userprofile%\Documents"
○ mklink /j "Neverwinter Nights 2" C:\NWN2User
- Create C:\NWNX4, xcopy NWNX4 installation over
○ Grant modify/execute/list/read/write to "NWN2 Admins"
○ Grant modify/execute/list/read/write to "NWN2 Servers" for:
§ AuroraServerNWScript.log
§ AuroraServerVault.log
§ nwnx.txt
§ nwnx_controller.txt
§ xp_mysql.txt
§ xp_bugfix.txt
§ xp_objectattributes.txt
§ xp_srvadmin.txt
§ xp_system.txt
§ xp_time.txt
- Create C:\Users\Public\Desktop\Credentials.txt
- Copy standard links to C:\Users\Public\Desktop
- Copy standard links to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tools
- Copy standard scripts to C:\Scripts
- Copy standard NWN2 tools to C:\Tools
- Copy NWNServerConsole to C:\NWN2\Console
- Fix PowerShell signing
○ Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy Unrestricted -Force
- Install Git
- Install FileZilla
- Install Win8 Performance Toolkit http://msdn.microsoft.com/en-us/windows/apps/br229516
- Install 7-zip
- Install gvim
- Install WinDbg
- Set _NT_SYMBOL_PATH to SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols

Prerequisites installation:

• VC2010 SP1 CRT http://www.microsoft.com/download/en/de ... x?id=26999
• VC2005 SP1 CRT http://www.microsoft.com/download/en/de ... x?id=26347
• .NET Framework v4.0 http://www.microsoft.com/download/en/de ... x?id=17851
• DirectX 9.0c http://www.microsoft.com/download/en/details.aspx?id=35

NWNX4 installation:

• nwnx4_controller.exe -installservice
• Get SID for NWN2Server user with PowerShell:
○ ([wmi]"win32_Group.Domain='$env:ComputerName',Name='NWN2 Admins'").sid
• Set SD on nwnx4-1 service to allow NWN2 Admins to start/stop:
○ sc sdset nwnx4-1 D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RPWP;;;<>)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
• Set configuration in C:\NWNX4\nwnx.ini
• Set configuration in C:\NWNX4\AuroraServerNWScript.ini
• Set configuration in C:\NWNX4\xp_mysql.ini