PDA

View Full Version : Hosting Cod4 server on linux


slash_beu
12-22-2007, 04:46 PM
Thnx for any help!

maimedwabbit
12-22-2007, 06:52 PM
try adding to your command line "+exec whatever.cfg" and be sure the config is in your "main" folder not root directory but the folder actually called "main".

slash_beu
12-23-2007, 10:35 AM
Nothing :( . I can seen when its exec that file, then i write map_restart, but still no respons from the server :confused:
when i done everything, this is my last message:

maimedwabbit
12-23-2007, 05:20 PM
If your not adding it in your command line you need to type "map_rotate". In the command line it would be "+map_rotate". Server doesnt officially allow players to join unless map rotation has started. By entering map_restart your telling it to restart a map that hasnt been loaded yet.

slash_beu
12-24-2007, 03:53 AM
I start server like this:

csutton
12-24-2007, 05:04 AM
I'm having the same issue. Im using cPGS (cpanel addon) to install the server.

server appears to start fine, but cant connect.

csutton
12-24-2007, 05:50 AM
tried starting it again from the above cmd via shell..

repeats the following

Error: Sys_SendPacket: No buffer space available
Error: Sys_SendPacket: No buffer space available
Error: Sys_SendPacket: No buffer space available
Error: Sys_SendPacket: No buffer space available
Sending heartbeat to cod4master.activision.com
Sending heartbeat to cod4master.activision.com
Sending heartbeat to cod4master.activision.com

any ideas

maimedwabbit
12-25-2007, 04:02 AM
Maybe you need to put the "space &" at the end of your command line. To run the server in the background. If i launch the command through webmin it wont start the server. You need to do it via SSH and use the space & at the end so when you logout it doesnt stop the server.

yourcommandline &

slash_beu
12-25-2007, 06:02 PM
If it is open, i can't join eather. I think that is not the problem for "commandline &". I can see On the all seeing eye that TAB PL is on about ~90% . I think that connection is, but it's not configed well. Any ideas?

MajorWoody
12-26-2007, 10:19 PM
A few people checking in on this thread, so here's a checklist to get started:

1. Check your iptables firewall rules. You can temporarily disable iptables to see if that's the issue pretty easily. This command should do that: $ /etc/init.d/iptables stop

MAKE SURE YOU TURN IT BACK ON WHEN YOU'RE DONE :)
$ /etc/init.d/iptables start

2. Make sure selinux is off.
$ cat /etc/selinux/config

If you see anything other than "SELINUX=disabled" listed, SELinux might be interfering.

3. If you run your server via putty, then close your putty connection to join your game, your server went away when you closed Putty. You have two choices to fix this (i'm sure there more, but here's the two main choices):

I. Run the server in the background
II. Use "screen" to run the server in a virtual terminal, which will stay resident when you disconnect.

To run in the background, issue a command like this:
$ ./cod4_lnxded +set net_ip xx.xx.xx.xx +set net_port 1024 +set sv_punkbuster 1 +map_rotate +exec server.cfg &

The "&" dumps the process to the background so you can quit your SSH (Putty) session.

To run your server via screen do this:
$ screen
** If that command errors out, you need to install screen. There's many way to do this, depending on the distro you use. "yum install screen" will work for Fedora/RedHat/CentOS systems.

Once screen is running, run your command like normal (no & needed). Next, to "detach" from the active screen, type CTRL+A then D (for "detach"). Now you can close putty and your server will stay running. You can also re-attach to the screen to view the console. Use "screen -ls" to list the screen sessions and "screen -r ####" to attach to the detached screen.

slash_beu
12-29-2007, 05:40 AM
I foun the problem. thnx to all

avizeke
01-12-2008, 12:58 AM
hi all,

i have never plaid or installed cod at all ever,

i run a server provider, not had time to even address this matter due to how many HL2 based servers were wackin out.

anyway, need help on cod4 linux setup. straight forward.

is it as plain as using the windows based 6.3 gig files and transfering them across and using a command line with a screen or are teh files have to be converted to a TAR or TGZ file in order for teh files to be understood with linux.

that is one, as we have many rackage based systems, am i able to do wget on the whole thing if so what is teh command to get them all at once, all i kno wis wget gets only specific files, and i dont mean as a iso, because then you would have to unpack on wine, which i cant be assed with that.

3rdly are you able to use teh same files for more than one server, say 3,

IF ANYONE IS ABLE TO HELP ON THIS, PLEASE PLEASE HELP, FOR YOUR TIME A FORM OF COMPENSATION MAYBE, A SERVER FOR A MONTH MAYBE. I JUST NEED SOME QUICK AND FAST HELP WITH THIS, A CHAT ON TS OR ON MSN WILL CLEAR MANY OF TEH QUESTIONS I HAVE.

MSN: AJSMN_2@HOTMAIL.COM

STEAM: AVIZEKE

CANTACT ME THERE, GREATLY APPRECIATED