Docker is another way to download dfremote, but unlike mifki reports on their site, Vultr (which I am using) does NOT include docker by default, so installing that was too much of a pain for me.
Really?
Okay, that's my bad, but let me elaborate on that, cause I'm sure I had a problem with the Docker distro and a reason to give up and switch to Ubuntu. Let's see...
Ok, so apparently, first of all I missed the "choose Docker" -part of your Vultr instructions and then got pissed when I thought you didn't mention it. In my excitement! Forgive me on that. Actually I created the Vultr VPN way before heading head first into this DFRemote stuff so I just forgot and assumed Vultr sets the server up on CentOS 7 x64 for default - of course that won't include "Docker by default", like I incorrectly mentioned.
However, Docker doesn't work like magic like it should in any case:
[root@vultr ~]# docker run -dtp 1235:1235/udp mifki/dfremote
Unable to find image 'mifki/dfremote:latest' locally
latest: Pulling from mifki/dfremote
8f229c550c2e: Pull complete
8e1fb71e8df6: Pull complete
f75a34586856: Pull complete
8744e322b832: Pull complete
d5165bfce78f: Pull complete
078f44746f68: Pull complete
aae0de372324: Pull complete
cdf184b20c57: Pull complete
d44c6bef0473: Pull complete
6c6121f006ca: Pull complete
3a5f2ac4c46d: Pull complete
8534972fad68: Pull complete
a13ae622044b: Pull complete
d9186770125a: Pull complete
Digest: sha256:6667591571b8b0da528f01f96d59157608219a8ab5c998cb729988041ff379e5
Status: Downloaded newer image for mifki/dfremote:latest
ce9661e158ac5a5a527b25d82fdb5057f0d8e58c0db02d2ddca0bfd4437f3e02
[root@vultr ~]# docker run -dtp 1235:1235/udp mifki/dfremote
346307e657a096330ded3a6f530ea5140d75f3b0c070a92005ebb53f8cb92160
docker: Error response from daemon: driver failed programming external connectivity on endpoint naughty_euclid (23eb2636575ed9f62b4ce9633b397e9baf1edcde98ad1a417b10025975a420ed): Bind for 0.0.0.0:1235 failed: port is already allocated.
So then I'm feeling like putting the startup script to use since both have the word allocate in them. That leads to no output on the terminal after reboot, and trying my luck in the iOs app, it fails to connect.
So the problem in Docker is I don't know if Remote is running, where is it located and how do I issue DFHack commands to the game now. I'll download atop to first of all see if it's running in the background, and that tells me:
[root@vultr ~]# atop
-bash: atop: command not found
[root@vultr ~]# sudo yum install atop
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
docker-ce-stable | 2.9 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/5): docker-ce-stable/x86_64/primary_db | 4.8 kB 00:00
(2/5): base/7/x86_64/group_gz | 155 kB 00:00
(3/5): extras/7/x86_64/primary_db | 151 kB 00:00
(4/5): base/7/x86_64/primary_db | 5.6 MB 00:01
(5/5): updates/7/x86_64/primary_db | 4.8 MB 00:00:11
Determining fastest mirrors
* base: ftp.osuosl.org
* extras: repos-va.psychz.net
* updates: mirrors.lga7.us.voxel.net
No package atop available.
Error: Nothing to do
Oh, there's no repo including it.
[root@vultr ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
--2017-04-23 07:14:21-- http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 209.132.181.25, 209.132.181.24, 209.132.181.23
Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14704 (14K) [application/x-rpm]
Saving to: ‘epel-release-7-9.noarch.rpm’
100%[===========================================================================>] 14,704 93.9KB/s in 0.2s
2017-04-23 07:14:22 (93.9 KB/s) - ‘epel-release-7-9.noarch.rpm’ saved [14704/14704]
[root@vultr ~]# rpm -ivh epel-release-7-9.noarch.rpm
warning: epel-release-7-9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-9 ################################# [100%]
After installing atop and running it I then find that the startup script isn't working as I expect it to because there is no Dwarf Fortress process listed - and I have no idea what that script supposed to, other than run the dwarf fortress game, so I try manually once more:
EDIT: It is unclear to me whether a startup script can be allocated for a server AFTER that server has been created. Vultr doesn't explain this very clearly; as far as I understand startup scripts don't need to do anything else other than exist in the first place. In my case I missed it and just created the script afterwards.That could be a problem?
[root@vultr ~]# docker run -dtp 1235:1235/udp mifki/dfremote
9624f1616f93fa0870475ecec86b036e53f8141eb0c2e659ab5b55fa70665b7a
[root@vultr ~]#
Wait a minute. That gives no errors. Let's see...
PID TID RUID EUID THR SYSCPU USRCPU VGROW RGROW RDDSK WRDSK ST EXC S CPUNR CPU CMD 1/1
2376 - root root 6 0.04s 0.08s 0K 0K 0K 0K -- - S 0 1% Dwarf_Fortress
Yes, it's running now. Apparently the startup script works as in it setups something I don't understand to allow DF to run.
Actually to my amazement, the iOs app now is able to connect to the server too. Allright! I was sure I'd have to publish it first to make it work over internet. Although now I don't know how to setup a password etc. because I have no idea where those docker files are. But I guess that's one google search away, too. Anyway, it works now.
What I'm saying is, I'm a huge fan of your work but I'm a Windows user to the heart and I fought for 2 days trying to set all this up. I gave up on the Docker distro (I now realise) because I didn't understand a thing it was doing and it still didn't work. And I take the "challenge" wholehearted because I do want to learn linux, but this is a lot of steps that were unnecessary and only came up because I was kinda confused about what is and isn't going on.
It's a whole wall of text but what I
really have to say is I love the huge effort you put into these plugins and the whole huge impact you have on the community and modding. I'm not really looking for anyone to address any of this, unless they find something I missed or misinterpreted of course. I just wanted all this out in the open for further troubleshoot help because I'm quite sure there will be a lot of my kind asking the same basic questions all over and over again. So now it's all here laid out with both the problems and the solutions documented.
By the way, the "Read about required libraries" link is dead in http://mifki.com/df/setup/ but the info is there, you just have to access it thru http://mifki.com/df/support/. That I can stand behind!! Cheers!
Edit: I toned it down a little at the end. It's a first post thing and writing ahead of thinking thing.
Don't know why I took it that personally.