SRCDS Steam group


Can't get screen to work [RESOLVED]
#1
Server OS: Specific version. ex: Ubuntu Server
Processor: Xeon x3220 (4 cores @ 2.4ghz)
Ram: 2GB
Game(s): CS:S
Start Up Command: (bare with me)

echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike -tickrate 101 +map de_dust2 +maxplayers 15 +ip 193.33.186.101 +port 27015 +fps_max 0 +exec server.cfg

That^ ?

Admin Mods: Not got that far :p


Right, this is my first proper time on linux, I'm using a VNC to conenct to my server, I have followed you're Linux installation tutorial to the best I can, I've run SRCDS's on windows many many times, but I'm wanting to move to linux for a few reasons...

My problem is that I cannot get screen to work, I have done the following:

Quote:We will make a script that will run the srcds in the background in a "screen"
you will need to have screen installed for this. make a file called server.sh and put this in:
Command(s):

#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 -autoupdate

Save the file, and chmod it to run
Command(s):
chmod +x server.sh

If you want to start your server, simply run server.sh . It will start your srcd server in the background, to open it type:
Command(s):
screen -x css-server

If you want to close it again press ctrl+a+d, and it will detach the screen and keep it running in the background.


I can make the server.sh fine, I can run that and my sever runs fine, I have just installed screen, and I can try in terminal "screen -x css-server" and it does not load the server, it does nothing, i get the following message: " There is no screen to be attached matching css-server."

I would really appreciate some help, thanks in advance,

Christy

EDIT: I am in the right directory, (the same as my srcds_run and server.sh, in terminal)

2nd Edit: Well after 3 Hours I fixed it Big Grin huzard-sleep.
Reply
#2
Christy,
PLEASE tell me how you did this!!! I'm frustrated as hell!!!! A few questions for you.

(1) Where did you find "screen"?

(2) After you downloaded screen, how did you install it?

(3) Where you able to run and access the server?

BloodAngel94 Wrote:Server OS: Specific version. ex: Ubuntu Server
Processor: Xeon x3220 (4 cores @ 2.4ghz)
Ram: 2GB
Game(s): CS:S
Start Up Command: (bare with me)

echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike -tickrate 101 +map de_dust2 +maxplayers 15 +ip 193.33.186.101 +port 27015 +fps_max 0 +exec server.cfg

That^ ?

Admin Mods: Not got that far :p


Right, this is my first proper time on linux, I'm using a VNC to conenct to my server, I have followed you're Linux installation tutorial to the best I can, I've run SRCDS's on windows many many times, but I'm wanting to move to linux for a few reasons...

My problem is that I cannot get screen to work, I have done the following:

Quote:We will make a script that will run the srcds in the background in a "screen"
you will need to have screen installed for this. make a file called server.sh and put this in:
Command(s):

#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game garrysmod +map de_dust +maxplayers 10 -autoupdate

Save the file, and chmod it to run
Command(s):
chmod +x server.sh

If you want to start your server, simply run server.sh . It will start your srcd server in the background, to open it type:
Command(s):
screen -x css-server

If you want to close it again press ctrl+a+d, and it will detach the screen and keep it running in the background.


I can make the server.sh fine, I can run that and my sever runs fine, I have just installed screen, and I can try in terminal "screen -x css-server" and it does not load the server, it does nothing, i get the following message: " There is no screen to be attached matching css-server."

I would really appreciate some help, thanks in advance,

Christy

EDIT: I am in the right directory, (the same as my srcds_run and server.sh, in terminal)

2nd Edit: Well after 3 Hours I fixed it Big Grin huzard-sleep.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)