Installing a Garry's Mod Server on CentOS 7.x - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials) +--- Thread: Installing a Garry's Mod Server on CentOS 7.x (/Thread-Installing-a-Garry-s-Mod-Server-on-CentOS-7-x) |
Installing a Garry's Mod Server on CentOS 7.x - Sagnik - 12-29-2015 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: Code: yum update 2. Now we will installing a few packages. Type: Code: yum install nano git screen unzip libstdc++ glibc[/font][/size][/color] In case your OS is 64-bit, you need to type: Code: yum install nano git screen unzip glibc.i686 libstdc++.i686 3. We will be creating a new user for Garry's Mod. Type Code: adduser -m gmod Then type: Code: passwd gmod 4. Now we will be switching to the user that we have just created. Type: Code: su - gmod 5. Now we will be creating a folder for steamcmd. Type: Code: mkdir steamcmd And also create a folder for GMod as well: Type: Code: mkdir gmod 6. We will now be switiching to the SteamCMD folder Type: Code: cd steamcmd 7. Now we will be downloading the SteamCMD package. Type: Code: 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: 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: ./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: 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: 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: 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: 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: exit [font='Exo 2', sans-serif][font='Exo 2', sans-serif]Type:[/font][/font] Code: 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: cd gmod Type: Code: screen -s gmodserver Code: ./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: 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] RE: Making a Garry's Mod Server [CentOS 7.x] - azureweb - 01-24-2016 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 RE: Making a Garry's Mod Server [CentOS 7.x] - Unixfy - 01-24-2016 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). RE: Making a Garry's Mod Server [CentOS 7.x] - Sagnik - 01-24-2016 (01-24-2016, 04:44 PM)azureweb Wrote: Why not making the thread title more suitable? Thanks for the suggestion... |