데비안 7 x64에서 Call of Duty 4 서버 설정

개요

이 안내서는 화면을 사용한 Call of Duty 4 (COD4) 서버의 설치 ​​및 작동에 대해 설명합니다. 이 튜토리얼에서는 데비안 7에 COD4를 설치합니다.

요구 사항

  • Call of Duty 4 게임 클라이언트 설치 프로그램 CD 또는 이미지.
  • 안정적인 릴리스를 실행하는 데비안 서버 (Wheezy, Jessie)
  • Vultr VPS (1 CPU, 1GB 메모리, 20GB 스토리지) 이 구성은 대규모 서버에는 적합하지 않을 수 있습니다.

설치

이 설치에 사용할 서버에서 루트로 로그인하십시오.

아래 명령을 실행하여 리포지토리에서 서버의 사용 가능한 패키지 목록을 업데이트 한 다음 기존 패키지를 업그레이드하십시오.

apt-get update && apt-get upgrade

화면은 종종 기본적으로 OS 이미지에 포함되어 있지만 직접 설치해야 할 수도 있습니다.

apt-get install screen

Call of Duty 4 서버는 i386 시스템에서만 실행되므로 Debian에서 "multilib"기능을 활성화해야합니다.

dpkg --add-architecture i386
apt-get update

보안상의 이유로 루트 계정을 사용하여 서버를 실행하고 싶지 않습니다. 표준 사용자 계정을 사용해야합니다.

게임 서버의 디렉토리를 만듭니다.

cd ~
mkdir cod4

Call of Duty 4 전용 서버를 다운로드하십시오.

cd cod4
wget http://treefort.icculus.org/cod/cod4-linux-server-06282008.tar.bz2

다운로드 크기는 약 280MB입니다. 다운로드가 완료되면 패키지 포장을 풉니 다.

tar -xvjf cod4-linux-server-06282008.tar.bz2

COD4 게임 클라이언트를 컴퓨터에 설치하십시오. 즐겨 사용하는 SCP 클라이언트를 사용하여 게임 클라이언트 의 mainzone폴더를 서버의 COD4 디렉토리에 복사하십시오 .

업로드가 완료되면 실행 가능한 IceOps를 다운로드하십시오. 다양한 버그 수정 및 개선 사항이 포함되어 있습니다.

wget https://iceops.in/cod4x17a_dedrun

서버를 "실행 가능"하게하십시오.

chmod +x cod4x17a_dedrun

전용 서버에 대한 구성 파일을 작성하십시오.

nano general.cfg

간단한 "팀 데스 매치"또는 "검색 및 제거"서버를 실행하려면이 샘플 구성을 사용하십시오.

//************************************************** ****************************
// Call of Duty 4
//************************************************** ****************************
//************************************************** ****************************
// Public Information
//************************************************** ****************************
sets sv_hostname "CoD4 Server" // Change this field, what is the server name
sets _Admin "Admin" // Change this
sets _Email "admin@admin.com" // Change this
sets _Website "www.website.com" // Change this
sets _Location "Location" // Change this
sets _Irc ""
sets _Mod ""
sets _ModVer ""
sets _ModUpdate ""
sets _Maps "COD4 Stock"
set scr_motd "Message of the Day when the gamer joined the server" // Change it

//************************************************** ****************************
// Common Server Settings
//************************************************** ****************************
// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
set net_ip "192.168.1.1" // Set your servers IP address
set net_port "28960" // Set your port number
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

// Password Settings
set rcon_password "yourpass" // RCON must be set.
set sv_privatePassword "" // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect. Good for
// matches, practices, etc.
set g_password ""

// Player slots setup
set sv_maxclients "32" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "250" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// You have to got a working httpd server if fast downloading enabled.
set sv_allowdownload "0"
seta sv_wwwDownload "0"
seta sv_wwwBaseURL ""
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "25000"


// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
// In IceOps Dedicated server have their own cheat protection, so Punkbuster not needed
set sv_punkbuster "0"
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
set sv_voice "0"
set sv_voiceQuality "4"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"

//************************************************** ****************************
// Misc
//************************************************** ****************************
set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
set scr_hardcore "1"
set g_allowvote "0"
set scr_allow_vote "0"
set scr_teambalance "1"
set ui_hud_hardcore "1"
set scr_game_allowkillcam "0"
set scr_game_onlyheadshots "0"
set scr_game_deathpointloss "0"
set scr_game_suicidepointloss "0"
set scr_team_teamkillpointloss "1"
set scr_game_spectatetype "1" // [0-2] 0=none, 1= team only, 2=spectate all
set scr_team_fftype "1" // 0=off 1=on 2=reflect damage 3=shared


//================================================== ===============================
// Gametype Settings
//================================================== ===============================

// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch

// Deathmatch
set scr_dm_scorelimit   150
set scr_dm_timelimit    10
set scr_dm_roundlimit   1
set scr_dm_numlives 0
set scr_dm_playerrespawndelay -1
set scr_dm_waverespawndelay 0


// Domination
set scr_dom_scorelimit  200
set scr_dom_timelimit   0
set scr_dom_roundlimit  1
set scr_dom_numlives 0
set scr_dom_playerrespawndelay -1
set scr_dom_waverespawndelay 0


// Teamdeath Match
set scr_war_scorelimit  750
set scr_war_timelimit   10
set scr_war_roundlimit  1
set scr_war_numlives 0
set scr_war_playerrespawndelay -1
set scr_war_waverespawndelay 0

// Sabotoge
set scr_sab_scorelimit  3
set scr_sab_timelimit   10
set scr_sab_roundlimit  3
set scr_sab_roundswitch 1
set scr_sab_numlives 0
set scr_sab_bombtimer   30
set scr_sab_planttime   3
set scr_sab_defusetime  3
set scr_sab_hotpotato   0
set scr_sab_playerrespawndelay -1
set scr_sab_waverespawndelay -1

// King of the Hill
set scr_koth_scorelimit 250
set scr_koth_timelimit  15
set scr_koth_roundlimit 1
set scr_koth_roundswitch    1
set scr_koth_numlives   0
set scr_koth_playerrespawndelay -1
set scr_koth_waverespawndelay 0
set koth_autodestroytime    60
set koth_spawntime  0
set koth_kothmode   0
set koth_capturetime    20
set koth_destroytime    10
set koth_delayPlayer    0
set koth_spawnDelay 60

// Search and Destroy
set scr_sd_scorelimit   6
set scr_sd_timelimit    3
set scr_sd_roundlimit   0
set scr_sd_roundswitch  3 // rounds between switching teams
set scr_sd_numlives 1 // elimination
set scr_sd_bombtimer    60
set scr_sd_planttime    7
set scr_sd_defusetime   7
set scr_sd_multibomb    0
set scr_sd_playerrespawndelay -1
set scr_sd_waverespawndelay 0

// Team-Balance and Voting
set scr_teambalance "1"
set g_allowvote "0"

set sv_mapRotation "gametype sd map mp_bloc gametype sd map mp_backlot gametype sd map mp_crash gametype sd map     mp_convoy gametype sd map mp_vacant gametype sd map mp_bog gametype sd map mp_pipeline gametype sd map mp_farm gametype sd map mp_crossfire gametype sd map mp_overgrown gametype sd map mp_citystreets gametype sd map mp_showdown gametype sd  map mp_strike gametype sd map mp_cargoship gametype sd map mp_countdown"

구성 파일에 변경 사항을 저장하십시오.

그런 다음 전용 서버 (화면 포함)를 시작하고 맵 회전을 활성화하는 시작 스크립트를 만듭니다.

nano cod4.sh

다음 내용을 스크립트 파일에 붙여 넣습니다.

#!/bin/bash
screen -dmS cod4 ./cod4x17a_dedrun +set sv_authorizemode "-1" +exex general.cfg +map_rotate

변경 사항을 스크립트 파일에 저장 한 다음 "실행 가능"하게하십시오.

chmod +x cod4.sh

iptables 방화벽을 사용중인 경우 다음 규칙을 추가하십시오. 서버 구성 파일에서 포트를 변경 한 경우 업데이트하십시오.

-A INPUT -p udp --dport 28960 -j ACCEPT
-A INPUT -p udp --sport 28960 -j ACCEPT
-A INPUT -p tcp --dport 28960 -j ACCEPT
-A INPUT -p tcp --sport 28960 -j ACCEPT
-A INPUT -p udp --dport 20800 -j ACCEPT
-A INPUT -p udp --sport 20800 -j ACCEPT
-A INPUT -p tcp --dport 20800 -j ACCEPT
-A INPUT -p tcp --sport 20800 -j ACCEPT
-A INPUT -p udp --dport 20810 -j ACCEPT
-A INPUT -p udp --sport 20810 -j ACCEPT
-A INPUT -p tcp --dport 20810 -j ACCEPT
-A INPUT -p tcp --sport 20810 -j ACCEPT

마지막으로 서버를 시작하십시오.

./cod4.sh

댓글 남기기

NTLite를 사용하여 업데이트로 Windows 사용자 지정 ISO를 만드는 방법

NTLite를 사용하여 업데이트로 Windows 사용자 지정 ISO를 만드는 방법

NTLite를 사용하여 Vultr 시스템과 호환되는 Windows 사용자 지정 ISO를 만드는 방법을 단계별로 설명합니다. 최신 드라이버와 업데이트 통합을 포함한 완벽 가이드.

Vultr에서 BGP 구성

Vultr에서 BGP 구성

Vultr BGP 설정을 위한 단계별 튜토리얼. ASN 할당부터 IP 라우팅 구성, BIRD 데몬 설정, FreeBSD 특이사항 및 실전 문제 해결 팁 7가지 포함한 최종 가이드

WsgiDAV를 사용하여 Debian 10에 WebDAV 배포

WsgiDAV를 사용하여 Debian 10에 WebDAV 배포

WebDAV (Web Distributed Authoring and Versioning)를 이용한 원격 파일 작성을 위한 프레임워크로, WsgiDAV 설치 및 구성 방법을 안내합니다.

데비안 7에 Mailcow 설치

데비안 7에 Mailcow 설치

Mailcow는 DoveCot, Postfix 및 기타 여러 오픈 소스 패키지를 기반으로 하는 경량 메일 서버입니다. 데비안에서 Mailcow 설치 방법을 안내합니다.

AI가 랜섬웨어 공격의 증가와 싸울 수 있습니까?

AI가 랜섬웨어 공격의 증가와 싸울 수 있습니까?

랜섬웨어 공격이 증가하고 있지만 AI가 최신 컴퓨터 바이러스를 처리하는 데 도움이 될 수 있습니까? AI가 답인가? AI boone 또는 bane인지 여기에서 읽으십시오.

ReactOS: 이것이 Windows의 미래입니까?

ReactOS: 이것이 Windows의 미래입니까?

오픈 소스이자 무료 운영 체제인 ReactOS가 최신 버전과 함께 제공됩니다. 현대 Windows 사용자의 요구 사항을 충족하고 Microsoft를 무너뜨릴 수 있습니까? 이 구식이지만 더 새로운 OS 환경에 대해 자세히 알아보겠습니다.

WhatsApp 데스크톱 앱 24*7을 통해 연결 유지

WhatsApp 데스크톱 앱 24*7을 통해 연결 유지

Whatsapp은 마침내 Mac 및 Windows 사용자용 데스크톱 앱을 출시했습니다. 이제 Windows 또는 Mac에서 Whatsapp에 쉽게 액세스할 수 있습니다. Windows 8 이상 및 Mac OS 10.9 이상에서 사용 가능

AI는 어떻게 프로세스 자동화를 다음 단계로 끌어올릴 수 있습니까?

AI는 어떻게 프로세스 자동화를 다음 단계로 끌어올릴 수 있습니까?

인공 지능이 소규모 회사에서 어떻게 인기를 얻고 있으며 어떻게 인공 지능이 성장할 가능성을 높이고 경쟁자가 우위를 점할 수 있는지 알아보려면 이 기사를 읽으십시오.

macOS Catalina 10.15.4 추가 업데이트로 인해 해결보다 더 많은 문제가 발생함

macOS Catalina 10.15.4 추가 업데이트로 인해 해결보다 더 많은 문제가 발생함

최근 Apple은 문제를 해결하기 위해 macOS Catalina 10.15.4 추가 업데이트를 출시했지만 이 업데이트로 인해 Mac 컴퓨터의 브릭킹으로 이어지는 더 많은 문제가 발생하는 것 같습니다. 자세히 알아보려면 이 기사를 읽어보세요.

빅데이터의 13가지 상용 데이터 추출 도구

빅데이터의 13가지 상용 데이터 추출 도구

빅데이터의 13가지 상용 데이터 추출 도구