우선 PvPGN-1.8.5와 PvPGN 서포트 파일을 받아줍시다.


[root@localhost ~]# wget http://download.berlios.de/pvpgn/pvpgn-1.8.5.tar.gz

--2012-07-02 02:14:56--  http://download.berlios.de/pvpgn/pvpgn-1.8.5.tar.gz

Resolving download.berlios.de... 193.175.135.88

...

Saving to: `pvpgn-1.8.5.tar.gz'


100%[======================================>] 1,157,489   1.65M/s   in 0.7s


2012-07-02 02:15:00 (1.65 MB/s) - `pvpgn-1.8.5.tar.gz' saved [1157489/1157489]


[root@localhost ~]# wget http://download.berlios.de/pvpgn/pvpgn-support-1.2.tar.gz

--2012-07-02 02:16:19--  http://download.berlios.de/pvpgn/pvpgn-support-1.2.tar.gz

Resolving download.berlios.de... 193.175.135.88

...

Saving to: `pvpgn-support-1.2.tar.gz'


100%[======================================>] 125,345      262K/s   in 0.5s


2012-07-02 02:16:22 (262 KB/s) - `pvpgn-support-1.2.tar.gz' saved [125345/125345]


그리고 이제 압축을 해제합니다.


[root@localhost ~]# tar xvfz pvpgn-1.8.5.tar.gz

pvpgn-1.8.5/

pvpgn-1.8.5/src/bnetd/game.h

pvpgn-1.8.5/src/bnetd/watch.c

pvpgn-1.8.5/src/bnetd/tick.c

pvpgn-1.8.5/src/bnetd/ladder_calc.h

...

pvpgn-1.8.5/man/bnproxy.1

pvpgn-1.8.5/man/bnpass.1


[root@localhost ~]# tar xvfz pvpgn-support-1.2.tar.gz

pvpgn-support-1.2/

pvpgn-support-1.2/icons-WAR3.bni

pvpgn-support-1.2/bnserver-D2XP.ini

...

pvpgn-support-1.2/icons_STAR.bni


압축을 해제했으면 pvpgn-1.8.5/src로 이동합니다.

[root@localhost ~]# cd pvpgn-1.8.5/src

그리고 configure.

[root@localhost src]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
...
creating Makefile
creating config.h

그 후에 바로 make; make install

[root@localhost src]# make; make install
Compiling zlib/pvpgn_deflate.c
Compiling zlib/pvpgn_trees.c
Compiling zlib/pvpgn_zutil.c
Compiling win32/service.c
Linking ../sbin/bnetd
Compiling bntrackd/bntrackd.c
Linking ../sbin/bntrackd
...
Generating Term Of Service for language "POR"
Generating Term Of Service for language "FRA"
Generating Term Of Service for language "DEU"
Generating Term Of Service for language "ESP"
Generating Term Of Service for language "USA"
Generating Term Of Service for language "ENU"

이제 PvPGN가 설치된 경로를 찾아 PvPGN 서포트 파일을 넣어주어야 합니다.

[root@localhost src]# cd ../..
[root@localhost test]# cd pvpgn-support-1.2
[root@localhost pvpgn-support-1.2]# cp * /usr/local/var/files
`IX86ver1.mpq' -> `/usr/local/var/files/IX86ver1.mpq'
`PMACver1.mpq' -> `/usr/local/var/files/PMACver1.mpq'
`XMACver1.mpq' -> `/usr/local/var/files/XMACver1.mpq'
`bnserver-D2DV.ini' -> `/usr/local/var/files/bnserver-D2DV.ini'
`bnserver-D2XP.ini' -> `/usr/local/var/files/bnserver-D2XP.ini'
`bnserver-WAR3.ini' -> `/usr/local/var/files/bnserver-WAR3.ini'
`bnserver.ini' -> `/usr/local/var/files/bnserver.ini'
`icons-WAR3.bni' -> `/usr/local/var/files/icons-WAR3.bni'
`icons.bni' -> `/usr/local/var/files/icons.bni'
`icons_STAR.bni' -> `/usr/local/var/files/icons_STAR.bni'
`ver-ix86-1.mpq' -> `/usr/local/var/files/ver-ix86-1.mpq'

이제 사람들이 들어올수 있도록 하려면 방화벽을 해제해야겠죠?

[root@localhost pvpgn-support-1.2]# system-config-securitylevel


보안 수준을 비활성화로 두고 SELinux도 비활성화로 둡니다. 아니면 사용자 설정으로 들어가 그 외의 포트에 6112:tcp, 6112:udp를 적어주시면 됩니다.


이제 모든 준비는 끝났습니다. 설치된 경로로 들어가 sbin 폴더로 들어가신 뒤 bnetd을 실행시켜주시면 됩니다.


[root@localhost pvpgn-support-1.2]# /usr/local/sbin/bnetd


팁: 서버가 실행되었나 실행되지 않았나 확인하는 방법.


[root@localhost ~]# netstat -nlp | grep 6112

tcp        0      0 0.0.0.0:6112                0.0.0.0:*                   LISTEN      12706/bnetd

udp        0      0 0.0.0.0:6112                0.0.0.0:*                               12706/bnetd