Configuring Vtrin Server on Linux

The Vtrin-NetServer can be configured by using the /usr/share/cpmplus/mono/Vtrin-NetServer.exe.config file. Instructions on configuring it can be found in Vtrin Server Configuration. You can start configuring by taking a copy of the /usr/share/cpmplus/mono/Vtrin-NetServer.exe.config.example.

Example configuration

This is an example of Vtrin-NetServer configuration. This assumes that the database is in /var/lib/rtdbdata, the admin user is root and that the port to listen to is 443 (the protocol is wss). Below is the bash command to set up Vtrin-NetServer with the previously mentioned configuration.

sed '/<system.runtime.remoting>/,/<\/system.runtime.remoting>/d' /usr/share/cpmplus/mono/Vtrin-NetServer.exe.config.example \
| sed 's/MyVtrinDbDSN/\/var\/lib\/rtdbdata/g' \
| sed 's/BUILTIN\\Administrators/root/g'  \
| sed 's/UserName" value="guest"/UserName" value=""/g' \
| sed 's/<\/appSettings>/<add key="WebSocketServerSecurePort" value="443"\/><\/appSettings>/g'  > /usr/lib/vtrin/Vtrin-NetServer.exe.config