Using LinuxGSM on NFO Unmanaged Server

This is used for general discussion that is not necessarily server-related.
Post Reply
User avatar
WorthlessJ
A semi-regular
A semi-regular
Posts: 23
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Aug 12, 2016 2:19 am

Using LinuxGSM on NFO Unmanaged Server

Post by WorthlessJ »

What is LinuxGSM?
Linux Game Server Manager is a script to manage your game servers.

I personally use LinuxGSM to manage 20 of my servers, and wanted to share a NFO-tailored guide.

Warning- Do not expect NFO Staff to provide support on this, please refer to the LinuxGSM discord for support.

Guide to running servers on NFO Unmanaged Linux VPS, using LinuxGSM.

To see if your game is supported by LinuxGSM, check here.

I recommend Ubuntu 18.04. If you wish to use another Linux distro, make sure it is supported by checking the corresponding game server page on the LinuxGSM website.

Terms:
Shell: The interface, or command line you type into to send linux commands.
SSH: Secure Shell, how you connect to the remote server from your home computer.
FTP: File Transfer Protocol, used to transfer files.
Root: Superuser that has access to everything on linux

Tools:

Putty: SSH program, used to send commands to the server.
https://www.chiark.greenend.org.uk/~sgt ... atest.html

Filezilla: FTP program, view and transfer files to the server.
https://filezilla-project.org/download.php?type=client

Notepad++: Text editor, has many useful features.
https://notepad-plus-plus.org/downloads/

Connecting to NFO Server with Putty and Filezilla:
Log in to your NFO account. Select your package in the control panel, then select Server Control and find the following information: IP address, username and password.

In Putty, type in your IP address, port is 22, make sure SSH is toggled, and type a name into Saved Sessions box, and press save. This will save your server information. Press open to open up the command console, then type in the username and password. Text can be copied by highlighting, and can be pasted by moving your insert bar and right clicking the console.

Filezilla uses the same information to login as putty, logins can be saved by going to FIle->Site Manager in the filezilla program.

Installing LinuxGSM:
Find your specific server in this list- LinuxGSM Supported Game List, and follow the install directions on it’s page. After this the server should be installed and ready to go.

Change start parameters in /home/user/lgsm/config-lgsm/servername/servername.cfg settings can be copied and edited from default.cfg

Server files are under /home/user/serverfiles/

List of server commands

Creating Cron Jobs- automated tasks like restarting and updating:
LinuxGSM Guide to cronjobs

File Permissions
If you add new files as root they will be owned by root and LinuxGSM will detect this and will tell your which files are not owned by the gameserver user. This command will recursively set file permissions on every file in a directory to a specific user.

Chown -R username:username /home/username

File ownership explained here:
LinuxGSM Guide to File Ownership and chown command

General advice:
NEVER share your root user login details with anyone! If you want other people managing gameservers, give them the gameserver user login details.

More Secure And Easier Login:
DigitalOcean Guide to SSH Keys
NFO Post about SSH Keys

Cheers.
Post Reply