Raspberry Pi 3
Raspberry Pi 3
Has anyone been able to get darkstar server running on rpi?
Any distro?
Thanks
Any distro?
Thanks
- buddysievers
- Posts: 97
- Joined: Thu Dec 06, 2012 12:10 pm
- Location: Germany
Re: Raspberry Pi 3
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?
But im interested too haha so anyone here owns a pi?
Re: Raspberry Pi 3
we have a bug report open right now about it - you can follow its updates here https://github.com/DarkstarProject/darkstar/issues/3338
Re: Raspberry Pi 3
I got it installed on rpi and i'm able to log in and use itkjLotus wrote:we have a bug report open right now about it - you can follow its updates here https://github.com/DarkstarProject/darkstar/issues/3338
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.
Re: Raspberry Pi 3
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.Halldir wrote: Just another question.
Autostart scripts and crash monitoring?
I've a tried a few and none seem to work well.
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.
Re: Raspberry Pi 3
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.
Re: Raspberry Pi 3
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.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.
-- Whasf
Re: Raspberry Pi 3
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.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.
-
- Posts: 6
- Joined: Sat Nov 11, 2017 8:21 am
Re: Raspberry Pi 3
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
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
-
- Posts: 6
- Joined: Sat Nov 11, 2017 8:21 am
Re: Raspberry Pi 3
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.
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.