Newbie needs help setting up own Linux server for self

Requests for assistance and other HOWTOs.

Moderator: Board moderators

One Salient Oversight
Luser
Posts: 19
Joined: Wed Jan 05, 2005 2:44 am
Location: Newcastle, Australia

Newbie needs help setting up own Linux server for self

Post by One Salient Oversight »

Although I may one day decide to join the online gaming world, I would really like to experience it on my own computer without the time lag and politics associated with playing with/against real people!

I'm still trying to get my head around Linux installations - so much more difficult than windows but so much more secure!

I downloaded both the client and server via URPMI. But for some reason I can't seem to access the Crossfire server. I can access the client, and log on to a public server, but I don't want to do that without trying my own server first.

Freeciv has both server and client acessible.

When I shut down Linux, there seems to be some information to say that the Server was trying to start.

Anyway, can someone give me a list of what software (libs etc) my PC needs to run both server and client?

Alternatively, I have downloaded the server again as a Tar.Gz. Anyone want to tell me what to do with all the files once I have arked them?

P3-500, 384mb RAM, 40gb HDD, 32Mb Video Card, 17" monitor, Mandrake 10.1 ( Linux since April 2003).
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post by bort »

Code: Select all

 Gimli# tar -xzvf crossfire-server-*
Gimli# cd crossfire-se*
Gimli# ./configure ; make
Gimli# su
Password:        
Gimli# make install
How I start it.

Code: Select all

Gimli# crossfire &
Gimli# gcfclient -server localhost
Thats how I start up my server. If it says
"lib<something>" not found, please tell us what the lib<something> is.


BTW: Playing with the people on metalforge is fun. I prefer to play only on my server for map testing. Players on metalforge would gladly help a noob start out. I myself have donated plat, weapons, and armour to noobs. Good luck to you! :wink:
lordyoukai.DA
My wraith is cooler than your dragon.
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post by Salathar »

If you

Code: Select all

make install
as root as suggested above you will need to manually change some of the permissions to let your server save player related information. On my system the files that needed changing were:

Code: Select all

$ pwd
/usr/games/crossfire/var/crossfire
$ls
banish_file  clockdata       crossfiremail  highscore  players/   unique-items/
bookarch     crossfireboard  datafiles/     maps/      temp.maps
But I personally prefer to

Code: Select all

make; checkinstall
kinda like the idea of being able to control what is present on the system.
There a similar post on that: http://www.metalforge.net/cfmb/viewtopic.php?t=681

Alternatively if you already have the server installed and do not want to go though all the trouble of compiling it from source then:

Code: Select all

 locate crossfire|grep bin[] This will hopefully help you find the server binary already on the system. In my case it is in /usr/games/crossfire/bin/crossfire. Just run this file and see what happens, if if the last line it comes up with is "Waiting for connections..." then it's good to go

Good luck and hope to see you joining the online community one day :)
One Salient Oversight
Luser
Posts: 19
Joined: Wed Jan 05, 2005 2:44 am
Location: Newcastle, Australia

Post by One Salient Oversight »

Yep everything worked. Thanks Bort
One Salient Oversight
Luser
Posts: 19
Joined: Wed Jan 05, 2005 2:44 am
Location: Newcastle, Australia

Post by One Salient Oversight »

Well actually things are not 100% yet.

I am assuming that you can save characters and play them later. I save my character on the altar and then later I go into the inn and go to sleep - all after I have done me some killin'.

So I did all this and closed down the client. Then I closed down the server. Then I restarted the computer. Then I restarted the server. Then I restarted the client. Then I typed in the name of the character I saved. But I ended up with a brand new one.

Any ideas on what to do?
woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

Post by woo »

As Salathar said, the default installation doesn't give you permission to write to the files necessary to save a character - you need to chmod some of the dir's files - or else run the server as root.

You ought to play on metalforge though, as playing alone you won't have nearly as much fun ;-)
One Salient Oversight
Luser
Posts: 19
Joined: Wed Jan 05, 2005 2:44 am
Location: Newcastle, Australia

Post by One Salient Oversight »

What about running in SU? I'll try it...
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

One Salient Oversight wrote:What about running in SU? I'll try it...
do you really want the server running with root permissions? it might fix the problems - not sure - but if you just give it the rights to write in the directories Salathar mentioned, you're also done - and more secure
Bibendi ergo sum
or rather: sum ergo bibendi
woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

Post by woo »

chmod -R 777 /
will fix the problem too :-) (and make some others)

The correct method is to change the perms on the files as Salathar indicated, but for an internal lan server running as root shouldn't be a problem.. (YMMV)
Avion
Senior member
Posts: 301
Joined: Tue Jun 03, 2003 1:16 am
Location: Canada
Contact:

Post by Avion »

Make or designate a crossfire user account and then do the following:

make a directory and give this user permission to write to it, something like /usr/local/crossfire (or wherever you want to install it).

then as the crossfire user you can run

./configure --prefix=/usr/local/crossfire

this will set up CF to install in this directory instead of the default and you should have no problems with saving files or changing permissions and no worries about using root for running CF (which you shouldn't).
Post Reply