arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing a Garry's Mod Server on CentOS 7.x
#1
Some history of Garry's Mod:
Garry's Mod (commonly abbreviated as GMod), is a sandbox physics game created by Garry Newman and later by his company, Facepunch Studios for Microsoft Windows and OS X. Garry's Mod was originally a mod for Valve's Half-Life 2, but was later made into a standalone release in 2006.
Okay...now lets get to work...
STEPS:
1. We will first be updating the packages present. Type:
yum update

2. Now we will installing a few packages. Type:
yum install nano git screen unzip libstdc++ glibc[/font][/size][/color]

In case your OS is 64-bit, you need to type:
yum install nano git screen unzip glibc.i686 libstdc++.i686

3. We will be creating a new user for Garry's Mod.
Type
adduser -m gmod

Then type:
passwd gmod

4. Now we will be switching to the user that we have just created. 
Type:
su - gmod

5. Now we will be creating a folder for steamcmd. 
Type:
mkdir steamcmd

And also create a folder for GMod as well:
Type:

mkdir gmod

6. We will now be switiching to the SteamCMD folder 
Type: 
cd steamcmd

7. Now we will be downloading the SteamCMD package. 
Type:
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

8. We will now be unzipping the file that we downloaded just now.
Type:
unzip steamcmd_linux.tar.gz

[font='Exo 2', sans-serif]9. We will now be running SteamCMD:[/font]
[font='Exo 2', sans-serif]Type:[/font]
./steamcmd.sh

[font='Exo 2', sans-serif]10. Now we will be logging in as anonymous user.[/font]
[font='Exo 2', sans-serif]Type:[/font]
login anonymous


[font='Exo 2', sans-serif]11. Now we will be setting the force_install_dir.[/font]
[font='Exo 2', sans-serif]Type:[/font]
force_install_dir ./home/gmod/gmod

[font='Exo 2', sans-serif]12. Now we will be downloading the Server files.[/font]
[font='Exo 2', sans-serif]Type:[/font]
app_update 4020 validate

[font='Exo 2', sans-serif][font='Exo 2', sans-serif]NOTE: THE validate attribute IS OPTIONAL. You can also write
[/font]
[/font]

Code:

app_update 4020

[font='Exo 2', sans-serif][font='Exo 2', sans-serif]BUT USING validate is RECOMMENDED.[/font][/font]
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]13. Now type:[/font][/font]
exit

[font='Exo 2', sans-serif][font='Exo 2', sans-serif]Type:[/font][/font]
cd ~

[font='Exo 2', sans-serif][font='Exo 2', sans-serif]14. We will now navigate to the gmod server directory.[/font][/font]
Type:
cd gmod
15. We will now be opening a new screen session.
Type:
screen -s gmodserver
16. There, type 
./srcds_run -game garrysmod +gamemode sandbox +ip 1.2.3.4 +map gm_construct +maxplayers 80 -strictportbind 27015
[font='Exo 2', sans-serif]DON'T FORGET TO CHANGE the ip field.[/font]
17. Type Ctrl+A D to detach from screen session.
18. Again type
screen -R gmodserver
to reattach to screen session
[font='Exo 2', sans-serif]P.S.: i)THIS GUIDE DOESN'T FOCUS ON CUSTOMISING THE SERVER.[/font]
[font='Exo 2', sans-serif]HOPE YOU LIKED THIS...PLEASE COMMENT BELOW OR REP+ ME IF THIS HELPS YOU....[/font]
#2
Why not making the thread title more suitable?

"Installing Garry Mod server on CentOS 7.x".

I thought this tutorial is "Scripting a Garry Mod server"

And nice tutorial +1 for you Smile
#3
Nice tidbit of history there, I didn't know that it was a mod before.
Great tutorial, but if you're lazy you don't have to create the new user (it's much more insecure, but for a private GMod server it's usually fine).
#4
(01-24-2016, 04:44 PM)azureweb Wrote: Why not making the thread title more suitable?

"Installing Garry Mod server on CentOS 7.x".

I thought this tutorial is "Scripting a Garry Mod server"

And nice tutorial +1 for you Smile

Thanks for the suggestion...



person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting