12-29-2015, 04:53 PM
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:
2. Now we will installing a few packages. Type:
In case your OS is 64-bit, you need to type:
3. We will be creating a new user for Garry's Mod.
Type
Then type:
4. Now we will be switching to the user that we have just created.
Type:
5. Now we will be creating a folder for steamcmd.
Type:
And also create a folder for GMod as well:
Type:
6. We will now be switiching to the SteamCMD folder
Type:
7. Now we will be downloading the SteamCMD package.
Type:
8. We will now be unzipping the file that we downloaded just now.
Type:
[font='Exo 2', sans-serif]9. We will now be running SteamCMD:[/font]
[font='Exo 2', sans-serif]Type:[/font]
[font='Exo 2', sans-serif]10. Now we will be logging in as anonymous user.[/font]
[font='Exo 2', sans-serif]Type:[/font]
[font='Exo 2', sans-serif]11. Now we will be setting the force_install_dir.[/font]
[font='Exo 2', sans-serif]Type:[/font]
[font='Exo 2', sans-serif]12. Now we will be downloading the Server files.[/font]
[font='Exo 2', sans-serif]Type:[/font]
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]NOTE: THE validate attribute IS OPTIONAL. You can also write
[/font][/font]
Code:
[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]
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]Type:[/font][/font]
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]14. We will now navigate to the gmod server directory.[/font][/font]
Type:
15. We will now be opening a new screen session.
Type:
16. There, type
[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
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]
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:
Code: (Select All)
yum update
2. Now we will installing a few packages. Type:
Code: (Select All)
yum install nano git screen unzip libstdc++ glibc[/font][/size][/color]
In case your OS is 64-bit, you need to type:
Code: (Select All)
yum install nano git screen unzip glibc.i686 libstdc++.i686
3. We will be creating a new user for Garry's Mod.
Type
Code: (Select All)
adduser -m gmod
Then type:
Code: (Select All)
passwd gmod
4. Now we will be switching to the user that we have just created.
Type:
Code: (Select All)
su - gmod
5. Now we will be creating a folder for steamcmd.
Type:
Code: (Select All)
mkdir steamcmd
And also create a folder for GMod as well:
Type:
Code: (Select All)
mkdir gmod
6. We will now be switiching to the SteamCMD folder
Type:
Code: (Select All)
cd steamcmd
7. Now we will be downloading the SteamCMD package.
Type:
Code: (Select All)
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:
Code: (Select All)
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]
Code: (Select All)
./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]
Code: (Select All)
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]
Code: (Select All)
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]
Code: (Select All)
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:
Code: (Select All)
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]
Code: (Select All)
exit
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]Type:[/font][/font]
Code: (Select All)
cd ~
[font='Exo 2', sans-serif][font='Exo 2', sans-serif]14. We will now navigate to the gmod server directory.[/font][/font]
Type:
Code: (Select All)
cd gmod
Type:
Code: (Select All)
screen -s gmodserver
Code: (Select All)
./srcds_run -game garrysmod +gamemode sandbox +ip 1.2.3.4 +map gm_construct +maxplayers 80 -strictportbind 27015
17. Type Ctrl+A D to detach from screen session.
18. Again type
Code: (Select All)
screen -R gmodserver
[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]