Raspberry Pi 3 B+ Server Setup Guide
Posted: Thu Jan 24, 2019 9:00 pm
First of all I do not take any credit for writing this guide as this was one I had discovered from a reply to a forum post. ORIGINAL POSTER OF GUIDE DESERVES CREDIT SO PLEASE GIVE CREDIT WHERE CREDIT IS DUE!!! I only posted this in Server Guides section of forums to "preserve" it for others who would like to have a server working on their RPi. This server works but if you have issues with it, I will not be responding to any technical/software/coding issues in any posts and/or messages. I have used Linux sporadically since 2001 so I still consider my self a "noob" to Linux and have very,very little knowledge of it.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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:
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:
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.
Open 3 Terminals and start the game server
3x
3x
in Terminal 1
in Terminal 2
in Terminal 3
If it says you have a different client version, then change it to this number. Did work for me.
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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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:
Code: Select all
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
Code: Select all
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
Code: Select all
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 ..
3x
Code: Select all
sudo su
3x
Code: Select all
cd /darkstar/
Code: Select all
./dsconnect
Code: Select all
./dsgame
Code: Select all
./dssearch
If it says you have a different client version, then change it to this number. Did work for me.
Code: Select all
nano version.info
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.