Go Back   Steam Users' Forums > Dedicated Server Discussions > Half-Life DS (Linux)

Reply
 
Thread Tools Display Modes
Old 02-01-2012, 08:06 AM   #1
megakill3864
 
Join Date: Dec 2011
Reputation: 0
Posts: 8
TF2 VPS logout problem (PUTTY)

What i can do? i can't logout putty to leave server work 24/7
anyone know the problem?
http://img687.imageshack.us/img687/2557/puttyj.jpg
megakill3864 is offline  
Reply With Quote
Old 02-01-2012, 09:07 AM   #2
forrestparkay
 
 
 
Join Date: Feb 2010
Reputation: 359
Posts: 4,608
I can't view images at work, so I'm not sure what the problem is, but it sounds like you are not using screen to run your server. Try installing screen, opening up a new session, and running the server in that screen session.
forrestparkay is offline   Reply With Quote
Old 02-01-2012, 12:11 PM   #3
megakill3864
 
Join Date: Dec 2011
Reputation: 0
Posts: 8
Quote:
Originally Posted by forrestparkay View Post
I can't view images at work, so I'm not sure what the problem is, but it sounds like you are not using screen to run your server. Try installing screen, opening up a new session, and running the server in that screen session.
yes, i think that's problem with this. but i still dong get it how to do that screen :/

I tryed to write to putty: screen -A -m -d -L -S but it doesn't help
megakill3864 is offline   Reply With Quote
Old 02-06-2012, 09:59 AM   #4
heffebaycay
 
heffebaycay's Avatar
 
Volunteer Moderator
Join Date: Nov 2006
Reputation: 1875
Posts: 2,495
Quote:
Originally Posted by megakill3864 View Post
yes, i think that's problem with this. but i still dong get it how to do that screen :/

I tryed to write to putty: screen -A -m -d -L -S but it doesn't help
You might want to check that out: http://wiki.teamfortress.com/wiki/Li...ing_the_server

Also, feel free to read "screen" manpage.
heffebaycay is offline   Reply With Quote
Old 02-10-2012, 03:37 AM   #5
needaxeo
 
Join Date: Sep 2011
Reputation: 236
Posts: 962
Quote:
Originally Posted by megakill3864 View Post
yes, i think that's problem with this. but i still dong get it how to do that screen :/

I tryed to write to putty: screen -A -m -d -L -S but it doesn't help
I just use screen -U -R -d

the -R and -d work for when you reconnect, but it also works if there isn't an existing screen session.

the -U is so the utf-8 characters in tf2 usernames don't mess up your screen (set utf-8 in putty)

Once you've run the server you just close putty - the server carries on running in screen, you don't logout.

When you reconnect to your vps, you enter screen -U -R -d and it reconnects to the old screen session, with tf2 still running.

ctrl-a ctrl-c will create another terminal, so you can get another shell to enter commands

Use :-
ctrl-a 0
ctrl-a 1 these will switch between the terminals you create
ctrl-a 2

There are more ctrl-a commands, see the docs or do ctrl-a ?

Once you've run the server it's at a console prompt though, so anything you type is interpreted by TF2 not linux. e.g type a cvar and you can see or change it's value, type status and you'll see the players connected. type quit and the server will exit (and restart in 10 seconds unless you ctrl-c)

Last edited by needaxeo: 02-10-2012 at 03:43 AM.
needaxeo is offline   Reply With Quote
Old 03-09-2012, 10:50 AM   #6
Nolph
 
Join Date: Mar 2012
Reputation: 8
Posts: 13
Use
Quote:
nohup command-name &
This will palce the process in the background and you can exit ssh.

You dont need to use screen or anything liek that to run the server. I have a VPS and run like 2 or 3 servers off of it. The key is to just place the process in the background using nohup.
Nolph is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Dedicated Server Discussions > Half-Life DS (Linux)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.