

The second is by downloading the file, editing it in Notepad (etc.), and re-uploading it. The first is through a terminal based text-editor like nano. It is located in our servers /garrysmod/cfg directory. The file that we need to edit is called server.cfg. This will quit the server script and bring us back to the ~/gmodds directory.īefore I install more game content on my server, I want to cover how to configure some general settings. I connected fine.ĭisconnect and go back to your PuTTY session and enter quit. I connected through the console using connect server_ip_address.Įverything seems to be working well. Go ahead and connect to the server in-game. If you close your PuTTY session, it will end, so keep that in mind. Upon running that command, you will see this: srcds_run -console -game garrysmod +maxplayers 16 +map gm_construct Be a rebel.):Ĭreate a new user using adduser.

Once you are logged in and you see this prompt, you are ready to make the user account to run the server (You can use root, but it's frowned upon. Since my host provided me with the Root account information, I will login with that. When it connects it will open a new session and you should see a prompt like this: This just verifies that you trust the server you are connecting to. You may get a Security Alert that says, "The server's host key is not cached in the registry." If you do, choose Yes. You will need to do the same unless you have direct access to the machine the server will run on.Įnter the IP address of your sever in the highlighted area, make sure SSH is selected, and click open. I am using PuTTY as my SSH client to connect to my server using the login information provided by my host. Whether you are hosting locally or remotely, you will need to have console access to your server.

If something goes wrong, is the fix that you found even going to help or is it outdated too? There are so many conflicting and outdated tutorials out there that it is difficult to figure out what exactly you need to do. Setting up a dedicated server on linux is a bit of a hassle if it is your first time attempting it. I originally wrote this as a guide on Steam, the formatting there looks a little cleaner. The formatting may be a bit off, for that I apologize.
