Native Linux server (with management scripts)

Like the "Search Thread" button above? :p


Sure, just copy the save game contents from your computer to the instance folder. Structure is the same, just look at how your local folders are compared to the instance folders and you should get it. Just note that you obviously also have to match the instance config to the settings the game had before.

No password set, as it's marked as a system account.

Copy it back over to where the files were (instances). It's just files and folders from instances, nothing more.

As long as you don't change the game name (in that case you'd have to also rename the save folder) or the world (obviously ... switching world means different saves).

Has been changed in A10 I think. Anyway, no players -> no time advancing atm.

Thanks for you quick reply!

I still can't find the "Search Thread" button, seriously been looking for 10 minutes at this page.

7DTD thread search missing.jpg

Aside this blindness issue, I was struggling to understand the permissions for the webserver map.

It figured out how to modify the webserver permissions, but the discription on your wiki isn't clear to me. Probably more my fault that yours. I've put my permission list below.

Correct me if I'm wrong: level 2000 is public (no-steam login), level 1000 only steam loging, level 0 nobody? level 1 admin? what's between 1000 and 1? Is this link to the admin permision in admin.xml of the instance?

Defined web function permissions:Level: Web function

2000: web.map

0: webapi.getanimalslocation

0: webapi.gethostilelocation

0: webapi.null

1000: webapi.getplayersonline

2000: webapi.getplayerslocation

0: webapi.getplayerinventory

0: webapi.getlandclaims

1: webapi.getstats

0: webapi.executeconsolecommand

0: webapi.getlog

2000: webapi.getwebuiupdates

0: webapi.getserverinfo

2000: webapi.getplayerlist

2000: webapi.getallowedcommands

0: webapi.viewallclaims

1000: webapi.viewallplayers
 
I still can't find the "Search Thread" button, seriously been looking for 10 minutes at this page.
Weird... supposed to be next to "Thread tools" and "Display".

Correct me if I'm wrong: level 2000 is public (no-steam login), level 1000 only steam loging
Exactly, that's the defaults.

level 0 nobody? level 1 admin? what's between 1000 and 1?
Anything sub 1000 is non-default and has to be set by yourself. It's whatever level you assign to a user, with no predefined meaning. Though 0 is typically used for the owner / super-admin as by default all commands (and web features) can be accessed with that level. You could still define permissions with negative value though so even a level 0 user wouldn't be able to access them. Then again you could assign a negative level to a user too ...

In the end the only *predefined things* are the default levels for users (1000 for logged in, no matter if in game or through the web panel), 2000 for non-logged in (web only of course) and the default levels for commands (all 0 by default but a few ones that aren't dangerous at all like the help command with 1000 by default).

Is this link to the admin permision in admin.xml of the instance?
Yes, that's where the user levels come from for both commands and the web panel.

 
Just moved from hosted server to Dedi server and installed ubuntu 16.04, placed your 7dtd setup file - server works fine - but people cant see it in servers list and when they trying to connect via ip it shows them that server isnt responding. Logs showing server is under 64bits...

After couple of times restarting game -people can join only by ip...but even then most of them need to try 5 - 20 times to get in.

Most players when they trying to join and get reject - they do not appear on logs at all. And after approx 8 hours server simply went down.

Any ideas?

 
Last edited by a moderator:
You have to open the ports in the firewall for people to connect, and for it to be seen. (I'm assuming that you set it to show up on the server list.)

)Command is "ufw allow port#". Then restart ufw afterwards.

As for the server shutting down after 8 hours, we'd need more information and a log.

 
You have to open the ports in the firewall for people to connect, and for it to be seen. (I'm assuming that you set it to show up on the server list.))Command is "ufw allow port#". Then restart ufw afterwards.

As for the server shutting down after 8 hours, we'd need more information and a log.

Thx buddy! WIll have look this evening how server will act - and then will text back :)

 
Is there any way to force a 2nd install of the entire game engine using this management script so I can run servers with unique mods? Can I somehow install a 2nd copy of the script with a new name and use it to install a 2nd copy? What would be the best way to go about this?

 
Is there any way to force a 2nd install of the entire game engine using this management script so I can run servers with unique mods? Can I somehow install a 2nd copy of the script with a new name and use it to install a 2nd copy? What would be the best way to go about this?
Not directly supported. You'd have to either create a second set of the scripts that point to a different script-config (as well as updating all the links between the individual script files) which would probably be the clean way; or just create a second engine folder and copy the start-script to have one start command for the original folder and one for the new folder. In that case you'd have to be careful with starting the different saves with the appropriate command though as otherwise it might break saves if they don't run with the same mods each time.

 
Not directly supported. You'd have to either create a second set of the scripts that point to a different script-config (as well as updating all the links between the individual script files) which would probably be the clean way; or just create a second engine folder and copy the start-script to have one start command for the original folder and one for the new folder. In that case you'd have to be careful with starting the different saves with the appropriate command though as otherwise it might break saves if they don't run with the same mods each time.
Thanks! I ended up going the route of changing all the scripts and pointing them to new paths for a completely separate installation. Wasn't too difficult, just gotta make sure you get all of them. I was thinking it would be cool to have a script to modify the script like this, but then I figured it would be easier to just build the functionality into the existing script to either create a new instance of an existing engine, or install a fresh engine. Just an idea. If I could do it I would, but I'm all new to this as of about 2 weeks ago. I will attempt to learn more, but if you or anyone else with more experience then me would add this that would be awesome. Thanks for the awesome scripts to begin with, they make linux servers so much less of a headache!

 
Problems trying to use automated scripts

I was trying to set up a dedicated server following your wiki, it shows to do

Code:
wget http://svn.illy.bz/7dtd/bootstrapper/bootstrap.sh
but when i do, i get an error message 401 Authorization Required, am I doing something wrong?

I then tried to do the manual way with

Code:
wget http://illy.bz/fi/7dtd/management_scripts.tar.gz
but that returns 404 not found....

What am i doing wrong?

 
Good question ... just tried and both download just fine ;) Some proxy in between that might block that stuff?
No proxy, i have tried from 2 different locations (home and work) on 2 different machines and get the same messages

 
No proxy, i have tried from 2 different locations (home and work) on 2 different machines and get the same messages
FWIW I just tried this and was able to pull the file down without any trouble. Does svn.illy.bz resolve to 178.63.97.203 for you? I'd also try pulling it up on a browser to see what response you get.

Code:
user@saffron:/tmp$ wget http://svn.illy.bz/7dtd/bootstrapper/bootstrap.sh
--2017-02-17 09:31:40--  http://svn.illy.bz/7dtd/bootstrapper/bootstrap.sh
Resolving svn.illy.bz (svn.illy.bz)... 178.63.97.203
Connecting to svn.illy.bz (svn.illy.bz)|178.63.97.203|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7366 (7.2K) [text/plain]
Saving to: ‘bootstrap.sh’

bootstrap.sh                      100%[=============================================================>]   7.19K  --.-KB/s    in 0.1s

2017-02-17 09:31:42 (55.6 KB/s) - ‘bootstrap.sh’ saved [7366/7366]
 
Yeah, and no blocks on my end (at least not on HTTP level, got a few chinese IPs/ranges blocked on the FW, but that wouldn't result in any HTTP error codes).

 
Still got the Problem :(

Hello Guys,

i followed the Tutorial on Page 46 for my Linux Server.

But i got still this Problem :

root@vps:~# 7dtd.sh start MyStarvationMod

/usr/local/lib/7dtd/common.sh: line 78: /usr/local/lib/7dtd/start-stop-daemon/start-stop-daemon: No such file or directory

/usr/local/lib/7dtd/common.sh: line 78: /usr/local/lib/7dtd/start-stop-daemon/start-stop-daemon: No such file or directory

Failed!

i installed already libc6-dev..

Can anyone help me pls?

Thank you!

 
But i got still this Problem :
root@vps:~# 7dtd.sh start MyStarvationMod

/usr/local/lib/7dtd/common.sh: line 78: /usr/local/lib/7dtd/start-stop-daemon/start-stop-daemon: No such file or directory

/usr/local/lib/7dtd/common.sh: line 78: /usr/local/lib/7dtd/start-stop-daemon/start-stop-daemon: No such file or directory

Failed!

i installed already libc6-dev..
Well, you failed to compile the daemon during installation of the scripts. Go to /usr/local/lib/7dtd/start-stop-daemon and run make. Either it succeeds in which case you're done or it fails and in that case you'll have to fix the reasons why it's failing (most likely missing dependencies for compilation).

 
7dtd.conf: line 1: syntax error near unexpected token `)'

Hello everybody.

I have a problem with the management scripts.

My environment:

V server: Ubuntu 16.04.2 LTS (GNU / Linux 4.4.0-042stab123.1 x86_64)

When I try to create an instance or try to edit an instance or do anything with the scripts, the following error appears (e.g print the config of instance "test"):

Code:
root@v-server:/usr/local/lib/7dtd# 7dtd.sh instances print_config test
/etc/7dtd.conf: line 1: syntax error near unexpected token `)'
/etc/7dtd.conf: line 1: `VimCrypt~01!)�#�'B	2��1)�Ġ��r���H�7�̙��9�Df��hj�[Ai���3f������F�1+Z2�xr7�Jf͸�_�:�,�������˧/#�k�c~Д/S�O�v���g��[��"" �?u�Z��S`�a�mO��i2����;���T6�6=.��Lݦ��G/(��Gդ-t^�k���ܚ����P]��.�l>��?��Ȑ�lo��Z��
ށ%�                                                                                           _�.����\��bC��r������
  m�:��F�C���g��b��c� 	��s�UP<�Y������o�TZ�շ����0�d��r�$��[��v�X����q��-����}4)��&���nm���=�،Q?9����2a��b8鶶���ř�F��}l�������>���C�A��������4=�]x#6����-L����,/0��=�]9�c�dm�@e��<�|���g��Q��0��������E��#�9��勼lc]�q�n��m$����׊�y��~��!�U|�t'
/etc/7dtd.conf: line 1: syntax error near unexpected token `)'
/etc/7dtd.conf: line 1: `VimCrypt~01!)�#�'B	2��1)�Ġ��r���H�7�̙��9�Df��hj�[Ai���3f������F�1+Z2�xr7�Jf͸�_�:�,�������˧/#�k�c~Д/S�O�v���g��[��"" �?u�Z��S`�a�mO��i2����;���T6�6=.��Lݦ��G/(��Gդ-t^�k���ܚ����P]��.�l>��?��Ȑ�lo��Z��
ށ%�                                                                                           _�.����\��bC��r������
  m�:��F�C���g��b��c� 	��s�UP<�Y������o�TZ�շ����0�d��r�$��[��v�X����q��-����}4)��&���nm���=�،Q?9����2a��b8鶶���ř�F��}l�������>���C�A��������4=�]x#6����-L����,/0��=�]9�c�dm�@e��<�|���g��Q��0��������E��#�9��勼lc]�q�n��m$����׊�y��~��!�U|�t'
/usr/local/lib/7dtd/serverconfig.sh: line 1013: sel: command not found
/usr/local/lib/7dtd/serverconfig.sh: line 1013: sel: command not found
/usr/local/lib/7dtd/serverconfig.sh: line 1013: sel: command not found
/usr/local/lib/7dtd/serverconfig.sh: line 1013: sel: command not found ...
If I do the setup anyway, the changes are not saved.

Anyone an idea?

THX

 
Allow normal user start instance?

Hello again, another question:

How can I allow my fellow players to start and stop the instance without giving them access to the entire server via root or sudo?

Is there a way to allow the user (or the group) "sdtd" only to start the start script so that the instance then runs?

Or is there another way to do so?

My environment:

V server: Ubuntu 16.04.2 LTS (GNU / Linux 4.4.0-042stab123.1 x86_64)

 
How can I allow my fellow players to start and stop the instance without giving them access to the entire server via root or sudo? Is there a way to allow the user (or the group) "sdtd" only to start the start script so that the instance then runs?
I would recommend looking at the EXAMPLES section of the sudoers man page. You're looking for something along the lines of...

username ALL=/usr/local/bin/7dtd.sh

Or if you want to be more granular...

username ALL=/usr/local/bin/7dtd.sh start,/usr/local/bin/7dtd.sh kill

 
Back
Top