Basically there was a can not open dedicated.so error in my steam cmd, so i googled it and found a thread. they reccomened that i replace the ./srcds.linux file so i did but now its saying its not an executable :(
Please help me ;-;
[IMG]http://i.imgur.com/Y9Nq4Mf.png[/IMG]
You might need to set executable rights. Do:
[code]chmod -R 777 srcds_linux[/code]
[QUOTE=djjkxbox360;44607924]You might need to set executable rights. Do:
[code]chmod -R 777 srcds_linux[/code][/QUOTE]
Now it says cant open dedicated.srv.so
You might need to do chmod on that also, unless it's missing
[QUOTE=djjkxbox360;44607955]You might need to do chmod on that also, unless it's missing[/QUOTE]
It says no such file or directory :s
Sounds like the file is missing then, you will have to reinstall/repair srcds
[QUOTE=djjkxbox360;44608035]Sounds like the file is missing then, you will have to reinstall/repair srcds[/QUOTE]
How do i do that? i forgot :3
[editline]21st April 2014[/editline]
NOW when i reinstall srcds does this :s
[IMG]http://i.imgur.com/r4jJNQu.png[/IMG]
Ugh, you're running the server as root.
Remove everything that has to do with the SRCDS completely.
Eg:
[CODE]
rm -rf /path/to/server/dir
[/CODE]
Then follow this:
• First you want to setup a user without access to sudo, since the server does not require root access in any way. Then give it a safe and strong password.
[CODE]
useradd -m -s /bin/bash -d /home/servers servers
passwd servers
[/CODE]
• After that, if you're on [B]64-bit[/B] linux you want to install the [B]32-bit libraries[/B] for SteamCMD and SRCDS to function properly. [B]Skip this if you have 32-bit linux installed.[/B]
[CODE]
apt-get install lib32gcc1
[/CODE]
• Make sure you have the screen package installed:
[CODE]
apt-get install screen
[/CODE]
• Next up you want to log into that user ([I]servers[/I] is the username in case you didn't understand that). You can use the su commands to switch into it, but since screen have a problem reading swapped users dev files, you may just want to open a new terminal completely.
• When you're logged in with the servers user, we want to make a few directories. One for SteamCMD and one for the GMod server itself.
[CODE]
cd
mkdir steamcmd gmsrv1
[/CODE]
• Now we have one folder called [B]steamcmd[/B] which will contain the SteamCMD package, and one folder called [B]gmsrv1[/B] (short for [I]GMod Server 1[/I], in case you want multiple servers?) for the game server itself. Next up is getting SteamCMD.
[CODE]
cd ~/steamcmd
wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
[/CODE]
• Let's automate SteamCMD shall we?
[CODE]
nano ~/gmsrv1_update.sh
[/CODE]
and put this inside the file:
[CODE]
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir ./gmsrv1
app_update 4020 validate
quit
[/CODE]
Press [B]CTRL+X[/B] and then press [B]Y[/B] and then [B]Enter[/B].
• Run the update/installation script:
[CODE]
cd
./gmsrv1_update.sh
[/CODE]
Let it install.
• Now we're going to create the startup script.
[CODE]
cd
nano start_gmsrv1.sh
[/CODE]
and put this inside it. Customize it to your likings:
[CODE]
#!/bin/bash
echo "Starting up Garry's Mod server..."
screen -A -m -d -S gmsrv1 ./gmsrv1/srcds_run -console -game garrysmod +maxplayers 16 +map gm_construct
echo "Started. Type 'screen -r gmsrv1' to attach to the console screen"
[/CODE]
Once again, [B]CTRL+X[/B] then [B]Y[/B] then [B]Enter[/B] to save.
Now to start it up simply run [B]./start_gmsrv1.sh[/B].
Notes:
To attach to the screen, write [B]screen -r gmsrv1[/B]
To de-attach from the screen [U]without[/U] killing the server, press [B]CTRL+A+D[/B].
To kill the server & screen, press [B]CTRL+X[/B] when attached to it.
[editline]21st April 2014[/editline]
I see I missed a part here, replace the code inside [B]gmsrv1_update.sh[/B] with this:
[CODE]
#!/bin/bash
# A convenience function, to save us some work
update_server(){
#Read the app id and the directory into a variable
APP_ID=$1
DIR=$2
#Create the directory, if ( it doesn't exist
if ( [ ! -d "$DIR" ]; ) then
mkdir "$DIR"
fi
#Uh-oh, looks like we didn't create the directory. Stop
if ( [ ! -d "$DIR" ]; ) then
#Tell what went wrong
echo "ERROR! Cannot create $DIR!"
#Exit with status code 1 ( which indicates an error )
exit 1
fi
#Call SteamCMD with the app ID we provided and tell it to install
./steamcmd/steamcmd.sh +login anonymous +force_install_dir "$DIR" +app_update $APP_ID validate +quit
}
#Call update_server with the app id ( 4020 is Garry's Mod ) andthe folder we want the server in
update_server 4020 "~/gmsrv1"
#Add any additional servers here, repeat the line above, but change the directory.
#Exit with status code 0 ( which means ok )
exit 0
[/CODE]
Directly taken from the [URL="http://wiki.garrysmod.com/page/Linux_Dedicated_Server_Hosting"]wiki[/URL].
Sorry, you need to Log In to post a reply to this thread.