Ixtabay

Citizen
Debian has been my goto for many years, but today I decided to give Amazon Linux 2 AMI a try. I was a CentOS bigot years ago, but since Debian 5/6 have never looked back, until now that is. Not only does ServUO run very well, but the server CPU and Memory usage seems to be less under the same load. This is great news for free tier users, as they can have a pretty decent server courtesy of Amazon AWS. This time, I've created a Power Point presentation and saved it as a PDF. For your convenience, I've also pasted the commands from the presentation below as it may be easier to copy/paste from here than from the document. I'm also hoping to make a few videos aimed at helping newcomers to get started.

For Amazon Linux, the default user name is "uc2-user" (as opposed to "admin" for other distros)

First login, do an update / upgrade
Code:
sudo yum update
Code:
sudo yum upgrade

Setup Swap
Code:
sudo dd if=/dev/zero of=/swapfile bs=128M count=32
Code:
sudo chmod 600 /swapfile
Code:
sudo mkswap /swapfile
Code:
sudo swapon /swapfile
Code:
sudo swapon -s

Install Prerequisites and DotNet 5.0
Code:
sudo yum install gnupg ca-certificates ntp htop net-tools screen unzip mlocate
Code:
sudo yum groupinstall "Development Tools"
Code:
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
Code:
sudo yum install aspnetcore-runtime-5.0
Code:
sudo yum install dotnet-sdk-5.0
Code:
. /etc/profile.d/dotnet-cli-tools-bin-path.sh
Code:
sudo amazon-linux-extras install mono

Note: This is for new users, if you know how to use Git then do that instead
Code:
wget https://github.com/ServUO/ServUO/archive/refs/heads/master.zip
Code:
unzip master.zip
Code:
cd ServUO-master/
Code:
dotnet build

Now, connect with WinSCP and upload uo_files (or however you want to add the files) and edit DataPath.cfg and other files.

Enter a screen, one final check with chown, then launch server
Code:
screen
Code:
sudo chown -R ec2-user:ec2-user /home/ec2-user/ServUO-master
Code:
mono ServUO.exe

Create your admin account. To disconnect from screen press <crtl> + a d
...and to reconnect next time you login to the server: screen -r
Amazon Linux ServUO shard is available in test mode for anyone interested: 52.70.214.201 2593
 

Attachments

  • ServUO on AWS.pdf
    2.7 MB · Views: 13
Last edited: