Raspberry Pi 3

Halldir
Posts: 2
Joined: Mon Mar 23, 2015 9:12 pm

Raspberry Pi 3

Post by Halldir » Sun Aug 28, 2016 11:31 pm

Has anyone been able to get darkstar server running on rpi?

Any distro?


Thanks :)

User avatar
buddysievers
Posts: 97
Joined: Thu Dec 06, 2012 12:10 pm
Location: Germany

Re: Raspberry Pi 3

Post by buddysievers » Mon Aug 29, 2016 5:01 pm

I didnt tried myself but i guess it will work but dont except much performance.
But im interested too haha so anyone here owns a pi?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Raspberry Pi 3

Post by kjLotus » Mon Aug 29, 2016 8:06 pm

we have a bug report open right now about it - you can follow its updates here https://github.com/DarkstarProject/darkstar/issues/3338

Halldir
Posts: 2
Joined: Mon Mar 23, 2015 9:12 pm

Re: Raspberry Pi 3

Post by Halldir » Sat Sep 17, 2016 2:50 pm

kjLotus wrote:we have a bug report open right now about it - you can follow its updates here https://github.com/DarkstarProject/darkstar/issues/3338
I got it installed on rpi and i'm able to log in and use it :)

Just another question.

Autostart scripts and crash monitoring?

I've a tried a few and none seem to work well.

I'm thinking it might be that I tried on 16.04 MATE, I'm going to try on the server edition.

Any help would be appreciated.

Once i have it so i'm able to reproduce a easy install for Raspberry Pi.. I'l post my guide.

So far a lot of the contributions have been very helpful.

Cloudef
Posts: 9
Joined: Fri Aug 22, 2014 10:38 am

Re: Raspberry Pi 3

Post by Cloudef » Sun Sep 18, 2016 9:53 am

Halldir wrote: Just another question.

Autostart scripts and crash monitoring?

I've a tried a few and none seem to work well.
On Linux there is no really need to use the autostart scripts as you have service managers (e.g. systemd) that can handle services and restart them on failure.
If you have systemd you can just grab my .service files from here for example https://aur.archlinux.org/cgit/aur.git/ ... rkstar-git
If you have different init system / service manager, reading their documentation shows how to enable monitoring for program on them.

User avatar
Mizraim
Posts: 4
Joined: Sat Oct 28, 2017 9:17 am

Re: Raspberry Pi 3

Post by Mizraim » Sat Oct 28, 2017 9:20 am

I'm curious if there is a quick / easy guide to setting up on the Pi. I own an Odroid XU4, so I'd be interested in trying it out and posting results.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Raspberry Pi 3

Post by whasf » Sat Oct 28, 2017 1:35 pm

Mizraim wrote:I'm curious if there is a quick / easy guide to setting up on the Pi. I own an Odroid XU4, so I'd be interested in trying it out and posting results.
No there isn't. ARM hardware doesn't run x86 code all that well. No one's tried to get DSP working in a long time on rPi.
-- Whasf

User avatar
Mizraim
Posts: 4
Joined: Sat Oct 28, 2017 9:17 am

Re: Raspberry Pi 3

Post by Mizraim » Sat Oct 28, 2017 10:07 pm

Halldir wrote:I got it installed on rpi and i'm able to log in and use it

Just another question.

Autostart scripts and crash monitoring?

I've a tried a few and none seem to work well.

I'm thinking it might be that I tried on 16.04 MATE, I'm going to try on the server edition.

Any help would be appreciated.

Once i have it so i'm able to reproduce a easy install for Raspberry Pi.. I'l post my guide.

So far a lot of the contributions have been very helpful.
OK. I saw that Halldir had it working on their rpi, so I wondered if they had uploaded their guide they said they were going to publish. Thanks though. I wanted to know how the rpi handled it, and if the Odroid XU4 would run it better. :D

Limbomaniac
Posts: 6
Joined: Sat Nov 11, 2017 8:21 am

Re: Raspberry Pi 3

Post by Limbomaniac » Sun Nov 12, 2017 4:38 am

Hello.

I am new to this whole Server-Setup thing and I just wanted to ask, if there is a detailed guide to setting up a server on a Raspberry Pi 3?

I managed to get a Server (stable branch) up and running on my Win7 PC. Unfortunately I am not able to compile the sourcecode on my RPi3 either on Ubuntu Mate or the newest version of Raspbian.
It gives me random errors like not being able to find necessary files or files being in a subdirectory although subdir-options are deactivated. After some searching in your forums I saw, that somebody managed to at least get it compiled on a RPi.

Hence my question, if there is a guide that shows me a step-by-step execution of the needed things I will have to do to get it up and running.

Thank you for your great work and regards

Limbomaniac

Limbomaniac
Posts: 6
Joined: Sat Nov 11, 2017 8:21 am

Re: Raspberry Pi 3

Post by Limbomaniac » Tue Nov 28, 2017 4:35 am

Allright. I managed to look into it and did this step-by-step guide on how to build and run it on a Raspberry Pi 2/3.

If you follow this instructions, everything should be working flawless. Passwords and Usernames are to be changed. This guide simply uses the ones shown in the "Building the Server" wiki page.

Guide:

Install Raspbian via Noobs
Open a Terminal window and type in:

sudo su
apt-get install mysql-server
apt-get install autoconf
apt-get install libzmq3-dev
apt-get install screen
cd ..
cd ..
nano /etc/apt/sources.list // Change from stretch to testing
strg-o then strg-x
apt-get update
apt-get install build-essential
apt-get install libluajit-5.1-dev
apt-get install libmariadbclient-dev
git clone http://github.com/DarkstarProject/darkstar.git/
cd /darkstar/
git checkout stable
sh autogen.sh
./configure LIBS='-lm'
make distclean // I had to do this because the build failed when I tried to compile it directly.
./configure LIBS='-lm'
make -j2

Now this will take some time. About an hour on a RPi 2. A little less on a RPi3. Wait until its finished. Then go on and setup the Database by typing:

mysql
create database dspdb;
CREATE USER 'darkstar'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dspdb.* TO 'darkstar'@'localhost';
exit
cd sql
for f in *.sql
do
echo -n "Importing $f into the database..."
mysql dspdb -u darkstar -ppassword < $f && echo "Success"
done

It will now import all .sql files into the Database. This will take some moments. Afterwards go on by editing the Database and .conf files.

mysql -u darkstar -ppassword
USE dspdb;
UPDATE zone_settings SET zoneip = '127.0.0.1';
exit
cd ..
cd conf
nano login_darkstar.conf
mysql_login: darkstar
mysql_password: password
ctrl+o
ctrl+x
nano map_darkstar.conf
mysql_login: darkstar
mysql_password: password
ctrl+o
ctrl+x
nano search_server.conf
mysql_login: darkstar
mysql_password: password
ctrl+o
ctrl+x
cd ..

Open 3 Terminals and start the game server

3x sudo su
3x cd /darkstar/
./dsconnect in Terminal 1
./dsgame in Terminal 2
./dssearch in Terminal 3


If it says you have a different client version, then change it to this number. Did work for me.
nano version.info
client_ver: 30170307_0
ctrl+o
ctrl+x

I will later post a way to automatically start the servers, everytime the RPi boots up. Right now I did it via rc.local but I want to establish it via systemd.

Have fun! Hope I could be of any help to those, who wanted to give it a try on a RPi.

Post Reply