Help setting up a server

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
the silver one
Posts: 2
Joined: 2014-07-11 08:28

Help setting up a server

Post by the silver one »

Hi

I run a VPS server for my business and I allow a clan [MOG] Mature Old Gamers (I am 54) to run a few games on it..well..6 actually, I do this absolutely free of charge, as, all I want to do is game without being hounded/hassled by kids..no probs..each to their own.

My problem is this..it says.....

IMPORTANT: You must have a BF2 dedicated server running on the IP/port in your application. If no server is detected, the application cannot be processed and will be deleted.


BUT HOW....you cannot install the server files without a license, yet you need a running server to get a license?????

Please tell me HOW?
Last edited by the silver one on 2014-07-11 08:47, edited 1 time in total.
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

Re: catch 22 ?

Post by AfterDune »

You need to have a BF2 server running, running vanilla BF2, not PR :) .
Image
the silver one
Posts: 2
Joined: 2014-07-11 08:28

Re: catch 22 ?

Post by the silver one »

When installing BF2 vanilla on my VPS..I can not get beyond this point..any help?

login as: xxxxxxx
[email protected]'s password:
chmod +x bf2-linuxded-1.5.3153.0-installer.sh
./bf2-linuxded-1.5.3153.0-installer.sh
Attempting to create directory /home/xxxxxx/perl5
xxxxxx@639560 [~]# chmod +x bf2-linuxded-1.5.3153.0-installer.sh
xxxxxx@639560 [~]# ./bf2-linuxded-1.5.3153.0-installer.sh
Verifying archive integrity... All good.
Uncompressing Battlefield 2 Dedicated Linux Server 1.5.3153.0...........................................................................................................................................................................................................................................................................................................................
./bf2-linuxded-1.5.3153.0-installer.sh: line 365: ./license.sh: Permission denied
xxxxxx@639560 [~]#
Last edited by the silver one on 2014-07-11 10:31, edited 5 times in total.
Skillz
Posts: 2
Joined: 2014-08-03 22:08

Re: Help setting up a server

Post by Skillz »

You need to use --target to the install line followed by a location owned by your user.

So if your user is bf2 and his home directory is /home/bf2 then you need to do this.

./bf2-linuxded-1.5.3153.0-installer.sh --target /home/bf2/tmp

This will extract the files to that tmp directory and install for you.
Last edited by Skillz on 2014-08-04 02:02, edited 1 time in total.
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: Help setting up a server

Post by MaSSive »

Start all over.

Code: Select all

$ sudo useradd bf2

Code: Select all

$ mkdir /home/bf2

Code: Select all

$ chown -R bf2 /home/bf2

Code: Select all

$ passwd bf2

Code: Select all

$ su bf2

Code: Select all

$ cd /home/bf2

Code: Select all

$ wget http://sitewhereyouget.it/bf2-linuxded-1.5.3153.0-installer.sh

Code: Select all

$ chmod u+x bf2-linuxded-1.5.3153.0-installer.sh

Code: Select all

$ ./bf2-linuxded-1.5.3153.0-installer.sh
Accept the EULA for server and punkbuster!

Code: Select all

nano -w mods/bf2/settings/serversettings.con
Serversettings.con part - the important bits...for now

Code: Select all

sv.serverName "Old Farts With Gunz"
sv.password ""
sv.internet 1 // dont forget to set that to 1
sv.serverIP "123.456.789.012"  // your server IP adress
sv.serverPort 16567
sv.welcomeMessage "Welcome| We drink beer'n fart a lot // | is used for a line break
sv.punkBuster 1 // but for private server Id use 0
sv.maxPlayers 32 // the maxplayer count
sv.numPlayersNeededToStart 1
Optionally edit maplist to suit your needs

Code: Select all

nano -w mods/bf2/settings/maplist.con
Fire it up!

Code: Select all

$ ./start.sh
It should show the server console window, now try to connect to it.

You can detach console by CTRL+A or CTRL+D and reconnect to it with screen -r

If you can connect to it and play congratulations you got it set. For the more in depth info see here.

Note that linked tutorial is for 1.41 version and some settings do not match. Leave it for later. You will be granted server admin section access where you can see complete guide to installing and configuring PR server including BF2 and whatnot.

Also you must add your server to gametracker for the application to pass.

Parts of this post contain material from BD linux server tutorial. I hope he wont be too mad :-P
Last edited by MaSSive on 2014-08-05 10:31, edited 4 times in total.
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Post Reply

Return to “PR:BF2 Support”