You are Unregistered, please register to gain Full access.    
MyNGE
Go Back   myNGE - New Generation Entertainment > Games[Forum] > PC > Technical
Notices

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2008, 12:48 AM   #1 (permalink)
Super Moderator
Points: 177,303, Level: 43
Points: 177,303, Level: 43 Points: 177,303, Level: 43 Points: 177,303, Level: 43
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
flipstyle's Avatar
 
100m Running Champion! 12 Many Champion! 30k Starfighter Champion! 3D Tunnel Champion! 5 Reel Slots Champion! 7up Pinball Champion! ABC Crazy Champion! Action Fish Champion! Agent Footy 1: Chasing Change Champion! Air Shooter Champion! Air Wolf Champion! Avatar Bending Battle Champion! Balloony Champion! Ballthrow Champion! BALLZ! Champion! Banker Brokers Champion! Base Defender Champion! Bat & Mouse 2 Champion! Bat & Mouse 2 Champion! Beach Treat Champion! Birds Of A Feather Slots Champion! BlackJack Champion! BlackJack 2 Champion! Blazing Squad Champion! Bloody Seal Bounce Champion! Body Check Champion! Bomb Bandits Champion! Booze Hound Champion! Bow Hunter Champion! Breakit 2 Champion! Bubble Bobble Champion! Camera Killer 2 Champion! Caray Snake Champion! Carrot Crunch Champion! Chica Chase Champion! Concentration Champion! Cutie Quake Champion! Cyber Slots Champion! Dance Mat Champion! Desert Battle Champion! Dibblez Party Champion! Doom Champion! Driller Champion! Flower Throw Champion! Monkey Cliff Diving Champion! Pirate Booty Champion! Raiden X Champion! Sheep Pool Champion! Spaceman Bob`s Great Escape Champion! Stack The Cats Champion! Torino 2006 Curling Champion! Virtual Driveby 2 Champion! Walking Bots Champion! Weetabix Games:Running Champion! Wierd Bicycle Ride Champion! Gandys Quest Champion! Roving Reporter Champion! Uber Battle Champion! Ultimate Ping Champion! Ultimate Blast Billiards Champion! Ultimate Snake Champion! Round Champion! NFS 1/4 Mile Chase Champion! Notepad Invaders Champion! Golf Ace Champion! Bookworm Champion! The cave of death Champion!
Join Date: Oct 2007
Location: New Jersey
Posts: 629
My Mood:
Thanks: 7
Thanked 4 Times in 3 Posts
flipstyle is on a distinguished road
Send a message via ICQ to flipstyle Send a message via AIM to flipstyle Send a message via MSN to flipstyle Send a message via Yahoo to flipstyle Send a message via Skype™ to flipstyle
Post Howto: Setup a COD4 Linux Server

COD4: Linux Installation tutorial:

Required Items:
Shell ( you can use putty or any shell you like)
WinSCP (Free SFTP, FTP and SCP client for Windows) has a gui.
Cod4 Game files
Cod4 Patch
Ftp (optional)
Important SSH Commands:

Top = Processes
Top -c
Shift M - Organized by Memory
Shift P - Organized by Processor Usage

Ctrl + A then Ctrl + D - detach from application
Ctrl + C - to go back
Q - to go back / quit

Kill - Terminate a system process

df - shows mounted dists
du <directory> will list the directory
du -h and -s for other info.

ls - list file in directory
ls -al for all into

screen -r - goes back into the app

stat <file>

I wrote them as basic as I can.


1. You need to either download or copy all the original game content.
Tip: You can either wget the files or you can use ftp to upload everything. I would recommend using wget which is a lot faster since it is server to server transferring.

2. You will need to run all the commands in order.
Tip: Take your time and make sure you type everything how it is. You can even copy and paste the commands. Make sure your in the correct directory at all times.

3. The last step is to download and install the patch then run the server.
Tip: Before launching your server make sure you update it to the latest patch.

Part 1: (Downloading or Uploading the files)
New URL (Use This)
wget http://www.living-legends.org/plugin...p13_fileid=140
File Name: cod4_v1.7_full_linux.tgz File Size: 6.4 GB

If wget isnt what you want to do, upload all your files through ftp.

Part 2: (Extracting and Installing)
1. Type cd /yourdirectorypath (where you have the split files.
If you uploaded by ftp you can skip the extracting part.
You can skip This Part Unless You Have Split Files
2. Type cat cat cod4_linux_install_split.* > cod4_linux_install.tgz
3. tar zxvf cod4_v1.7_full_linux.tgz
Punk Buster Setup (Optional)
1. ./pbsetup.run -e
2. ./pbsetup.run --add-game=cod4 --add-game-path=/home/user/cod4/
3. ./pbsetup.run -u
Create a server.cfg and configure it the way you want it.
You can find a the server.cfg example here

Part 3: (Game updating and launching)
1. Download the latest Linux Server Patch here
2. Upload the patch and extract the files using shell or upload it through ftp.
Starting up the server
1. Type
screen ./cod4_lnxded +set punkbuster 1 +set sv_pure 1 +exec server.cfg +set +map_rotate +set ui_maxclients "42" +set net_ip "75.126.213.21"
2. When everything is running correctly you must detach the application and put it in the Background so it will stay open when you close your ssh.
Press
Ctrl + A then Ctrl + D

Replace the details with yours.
If you are wondering why I have 42 as the maxclients, you are able to choose any number 1 - 50. If you want more or less players make sure to edit the line ui_maxclients "#here" inside your server.cfg or it will not work.

More Information
Rcon Program: (used to manage your cod4 game)
ModernRcon v0.6
http://planetcallofduty.gamespy.com/...s.Detail&id=28
Server Monitoring Tool: (used for all games but you can use it for monitoring and to get more information about your server.)
HLSW
http://www.hlsw.org/
__________________
Erwin Sean Caravana
CEO/Founder
Flipstyle LLC, myNGE, and BattleLive
http://flipstylepro.com
http://mynge.com
http://battlelive.com


Last edited by flipstyle; 09-04-2008 at 03:54 AM.
flipstyle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-01-2008, 01:53 AM   #2 (permalink)
Super Moderator
Points: 177,303, Level: 43
Points: 177,303, Level: 43 Points: 177,303, Level: 43 Points: 177,303, Level: 43
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
flipstyle's Avatar
 
100m Running Champion! 12 Many Champion! 30k Starfighter Champion! 3D Tunnel Champion! 5 Reel Slots Champion! 7up Pinball Champion! ABC Crazy Champion! Action Fish Champion! Agent Footy 1: Chasing Change Champion! Air Shooter Champion! Air Wolf Champion! Avatar Bending Battle Champion! Balloony Champion! Ballthrow Champion! BALLZ! Champion! Banker Brokers Champion! Base Defender Champion! Bat & Mouse 2 Champion! Bat & Mouse 2 Champion! Beach Treat Champion! Birds Of A Feather Slots Champion! BlackJack Champion! BlackJack 2 Champion! Blazing Squad Champion! Bloody Seal Bounce Champion! Body Check Champion! Bomb Bandits Champion! Booze Hound Champion! Bow Hunter Champion! Breakit 2 Champion! Bubble Bobble Champion! Camera Killer 2 Champion! Caray Snake Champion! Carrot Crunch Champion! Chica Chase Champion! Concentration Champion! Cutie Quake Champion! Cyber Slots Champion! Dance Mat Champion! Desert Battle Champion! Dibblez Party Champion! Doom Champion! Driller Champion! Flower Throw Champion! Monkey Cliff Diving Champion! Pirate Booty Champion! Raiden X Champion! Sheep Pool Champion! Spaceman Bob`s Great Escape Champion! Stack The Cats Champion! Torino 2006 Curling Champion! Virtual Driveby 2 Champion! Walking Bots Champion! Weetabix Games:Running Champion! Wierd Bicycle Ride Champion! Gandys Quest Champion! Roving Reporter Champion! Uber Battle Champion! Ultimate Ping Champion! Ultimate Blast Billiards Champion! Ultimate Snake Champion! Round Champion! NFS 1/4 Mile Chase Champion! Notepad Invaders Champion! Golf Ace Champion! Bookworm Champion! The cave of death Champion!
Join Date: Oct 2007
Location: New Jersey
Posts: 629
My Mood:
Thanks: 7
Thanked 4 Times in 3 Posts
flipstyle is on a distinguished road
Send a message via ICQ to flipstyle Send a message via AIM to flipstyle Send a message via MSN to flipstyle Send a message via Yahoo to flipstyle Send a message via Skype™ to flipstyle
Post

Reserved for more information and faqs.

If anyone has any questions list them below.
If you also need some support screenshots let me know.

Faq

Q. Where can I get the game files?
A. You can get them from your main game directory where you installed it or if you have a steam version of cod 4 you can find it in your steam folder
(ex. c:\Steam\steamapps\common\call of duty 4)
The fastest way is to use the links I listed above.

Q. Why is my server lagging or slow when the cod 4 game server is running?
A. Cod 4 uses a lot of bandwidth and server resources. You must have enough ram, fast cpu, and a fast hard drive to host a high player server.
__________________
Erwin Sean Caravana
CEO/Founder
Flipstyle LLC, myNGE, and BattleLive
http://flipstylepro.com
http://mynge.com
http://battlelive.com


Last edited by flipstyle; 05-01-2008 at 02:03 AM.
flipstyle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2008, 09:03 PM   #3 (permalink)
Junior Member
Points: 456, Level: 3
Points: 456, Level: 3 Points: 456, Level: 3 Points: 456, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
dodnut's Avatar
 

Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dodnut is on a distinguished road
Default

might be a stupid question but here goes :
I'm setting up a cod4 linux server for the first time and i have all the startup details. if i start it and it works ok then how do i stop it to fine tune it and update it etc ?

I have putty so the simple command would be great and thanx in advance.
dodnut is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2008, 11:09 PM   #4 (permalink)
Super Moderator
Points: 177,303, Level: 43
Points: 177,303, Level: 43 Points: 177,303, Level: 43 Points: 177,303, Level: 43
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
flipstyle's Avatar
 
100m Running Champion! 12 Many Champion! 30k Starfighter Champion! 3D Tunnel Champion! 5 Reel Slots Champion! 7up Pinball Champion! ABC Crazy Champion! Action Fish Champion! Agent Footy 1: Chasing Change Champion! Air Shooter Champion! Air Wolf Champion! Avatar Bending Battle Champion! Balloony Champion! Ballthrow Champion! BALLZ! Champion! Banker Brokers Champion! Base Defender Champion! Bat & Mouse 2 Champion! Bat & Mouse 2 Champion! Beach Treat Champion! Birds Of A Feather Slots Champion! BlackJack Champion! BlackJack 2 Champion! Blazing Squad Champion! Bloody Seal Bounce Champion! Body Check Champion! Bomb Bandits Champion! Booze Hound Champion! Bow Hunter Champion! Breakit 2 Champion! Bubble Bobble Champion! Camera Killer 2 Champion! Caray Snake Champion! Carrot Crunch Champion! Chica Chase Champion! Concentration Champion! Cutie Quake Champion! Cyber Slots Champion! Dance Mat Champion! Desert Battle Champion! Dibblez Party Champion! Doom Champion! Driller Champion! Flower Throw Champion! Monkey Cliff Diving Champion! Pirate Booty Champion! Raiden X Champion! Sheep Pool Champion! Spaceman Bob`s Great Escape Champion! Stack The Cats Champion! Torino 2006 Curling Champion! Virtual Driveby 2 Champion! Walking Bots Champion! Weetabix Games:Running Champion! Wierd Bicycle Ride Champion! Gandys Quest Champion! Roving Reporter Champion! Uber Battle Champion! Ultimate Ping Champion! Ultimate Blast Billiards Champion! Ultimate Snake Champion! Round Champion! NFS 1/4 Mile Chase Champion! Notepad Invaders Champion! Golf Ace Champion! Bookworm Champion! The cave of death Champion!
Join Date: Oct 2007
Location: New Jersey
Posts: 629
My Mood:
Thanks: 7
Thanked 4 Times in 3 Posts
flipstyle is on a distinguished road
Send a message via ICQ to flipstyle Send a message via AIM to flipstyle Send a message via MSN to flipstyle Send a message via Yahoo to flipstyle Send a message via Skype™ to flipstyle
Post

Quote:
Originally Posted by dodnut View Post
might be a stupid question but here goes :
I'm setting up a cod4 linux server for the first time and i have all the startup details. if i start it and it works ok then how do i stop it to fine tune it and update it etc ?

I have putty so the simple command would be great and thanx in advance.
Hello,
No need to worry. Its cool to ask anything ill try my best to answer them.

First you would have to find the applications ID number. So anywhere on the command line type top and then press shift M (which will put the applications with the most memory to the top of the list.) After that look for the name ./cod4_lnxded with the ID #. Then type Kill PID (example Kill 2034) Once the game server application is shut down you can update the server and relaunch it.
__________________
Erwin Sean Caravana
CEO/Founder
Flipstyle LLC, myNGE, and BattleLive
http://flipstylepro.com
http://mynge.com
http://battlelive.com

flipstyle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2008, 01:26 PM   #5 (permalink)
Junior Member
Points: 327, Level: 2
Points: 327, Level: 2 Points: 327, Level: 2 Points: 327, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
reysharks's Avatar
 

Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
reysharks is on a distinguished road
Default

Wich user do you suggest to make CoD4 server run?
run as root?
reysharks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote