Page 2 of 3

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 4:47 pm
by PeterC
Found all the Libs except for the PostgreSQL development packages unless you mean the cross-distribution packages. If you want to see what I mean go to postgresql.org/download/linux/ubuntu/. The only other thing I found is the Ubuntu PPA (what ever that means) on the same page.

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 5:53 pm
by Lyrositor
Everything can be done through apt-get. If you read that page well, they give you the required packages: "libpq-dev"

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 7:03 pm
by PeterC
OK, installed all the items on that page. tried downloading and installing LibReadLine, ZLib, and OpenSLL, but apt-get can't find them.

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 7:48 pm
by Lyrositor
OpenSSL should be libssl-dev IIRC.
libreadline should be libreadline-dev
zlib is probably zlib1g-dev

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 8:34 pm
by PeterC
Currently stuck after getting so far tonight. Got up to

DIRTSAND is configured from a dirtsand.ini file placed in the execution directory for DIRTSAND. It needs to be adjusted to connect to your database, to have all the appropriate RC4 keys, which DIRTSAND can automatically generate for you:

bin/dirtsand
ds-902> keygen new
ds-902> quit

And since it said DIRTSAND can automatically generate this, I proceeded with:

sudo cp dirtsand.sample.ini /opt/dirtsand/dirtsand.ini
sudo chown dirtsand /opt/dirtsand/dirtsand.ini
su - dirtsand

first 2 statements worked, but the "su" command says:

su: Authentication failure

Tried my password 4 times, checked the password used in:

template1=# CREATE USER dirtsand WITH PASSWORD '<password>';

Caps Lock is off. No idea.

Re: Error Trying to Build DIRTSAND Server

PostPosted: Fri Aug 31, 2012 11:04 pm
by Luna
You're confused about two different types of users. The computer has users and the database has users. The "Create user" command you mention, happened in the psql prompt and thus on the database not on the computer.

I'm looking at the github readme ( not sure which one you are using) but the password you want is the one you entered when you did
1) Create a user and path for the DIRTSAND server to run from
(OPTIONAL, but recommended).

$ sudo useradd dirtsand -d /opt/dirtsand -m -p <password> -s /bin/bash

If you did that

What I usually do, is run the dirtsand "keygen new" file as described, and copy them over to the "dirtsand.ini" file with a text editor.Also I enter the password for the database in the file.

Re: Error Trying to Build DIRTSAND Server

PostPosted: Sat Sep 01, 2012 10:14 am
by PeterC
I have been using http://www.guildofwriters.org/wiki/DIRT ... ng_Started from the GoW Wiki. Are you referring to the command:

sudo useradd dirtsand -d /opt/dirtsand -m -p <password> -s /bin/bash

If so, I used that same password when prompted on the command:

su - dirtsand


Edit: Better yet, forget it. Too much work to starting thinking about the impending aggravation of actually decyphering the python code, making changes and trying to build something new.

Re: Error Trying to Build DIRTSAND Server

PostPosted: Sun Sep 02, 2012 1:01 pm
by PeterC
After much thought and considering how close I am to finishing the server install, I decided to try again. I decided to wipe the hard drive to get a clean install. when I use the command:

bin/dirtsand

I get 2 errors:

[Game] Error reading age descriptors: no such file or directory

Error connecting to postgres: fe_sendauth: no password supplied

Any ideas?

Re: Error Trying to Build DIRTSAND Server

PostPosted: Sun Sep 02, 2012 7:15 pm
by Lyrositor
You need to provide the configuration file when you type bin/dirtsand (like bin/dirtsand dirtsand.ini).

Re: Error Trying to Build DIRTSAND Server

PostPosted: Mon Sep 03, 2012 10:30 am
by PeterC
OK, how do I use a file the instructions haven't created yet. The command:

bin/dirtsand

comes before the creation command:

sudo cp dirtsand.sample.ini /opt/dirtsand/dirtsand.ini