Installing DR Pro on Linux - DarkRiftNetworking/DarkRift GitHub Wiki

A quick (and very rough) guide to installing a .NET Core DR Pro console server bare-metal on Linux:

Install the correct verison of .NET and unzip

snap install dotnet-sdk --channel 2.1/stable --classic
apt-get install unzip

Get DarkRift

wget https://darkriftnetworking.com/DarkRift2/Releases/<DR version>/Pro/Core/?invoice=<invoice-number> -O dr.zip
unzip dr.zip

Run!

dotnet Lib/DarkRift.Server.Console.dll

Note: use for testing only, the server will exit when you close the terminal, run as a service in production

Creating a service

Add the following to a file called etc/systemd/system/dr.service

[Unit]
Description=DR Service
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=<your user>
ExecStart=/snap/bin/dotnet <DR installation path>/Lib/DarkRift.Server.Console.dll <DR installation path>/Server.config

[Install]
WantedBy=multi-user.target

Note: if someone with more systemctl service is reading this you can probably substantially improve that file, please do!

Run

systemctl start dr.service

Check logs using

journalctl -u dr.service
⚠️ **GitHub.com Fallback** ⚠️