• Usurper Linux

    From Shitty@77:1/142 to All on Tue Dec 22 18:03:57 2020
    Do any of you have Usurper for Linux working on your BBS?

    If so, can you give me some pointers? I can't get it to work properly. It
    keeps loading in local mode.

    It says:

    LOCAL LOGIN - FOR NODE 1

    Run USURPER /? for command-line usage help

    Name or handle: SYSOP_

    I'm connected to the BBS with Netrunner, so it shouldn't be treated as a local login (AFAK.) I also tried running it with a different Mystic account and the same thing happens.

    I know that Zero Reader (Alcoholiday) ran this at one point, and he had it working, but I don't want to bother him since he's been out of the BBS world for so long already.

    Any tips? I'll take em.

    Alternatively - Anyone got Usurper working with a direct door code via Doorparty? (using a Mystic/Linux BBS?) I'd rather do that - but it seems equally difficult.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Warpslide@77:1/156 to Shitty on Tue Dec 22 16:42:05 2020
    On 22 Dec 2020, Shitty said the following...

    Alternatively - Anyone got Usurper working with a direct door code via Doorparty? (using a Mystic/Linux BBS?) I'd rather do that - but it seems equally difficult.

    I have Usurper working with a direct door code through BBSLink (bbslink.net) and it also works via SSH with the python script.

    Action List Data
    (DD) Exec external program python bbslink.py usrp %#

    It was super easy to setup, just sign up with bbslink.net and then follow the instructions at: http://bbslink.net/sysop/linux.php

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/142 to Warpslide on Wed Dec 23 00:27:57 2020
    I have Usurper working with a direct door code through BBSLink (bbslink.net) and it also works via SSH with the python script.

    Thanks for your advice on this.

    I'm already established with BBS Link. I didn't like their Usurper setup initially. They (Lab Rat?) had it running Usurper maintenance each time a player entered the game - as of today, I think he fixed that because I was
    able to play the game quickly.

    BBS Link is definitely the easiest game server to use with Mystic. I like it, but I'm still interested in setting up my own local Usurper just in case the BBS Link one goes to shit again. Plus I intend to customize it - certain stuff in that game really ought to be disabled. Stuff that offends the Shitty Compufuck guy! :)

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Gamgee@77:1/114 to Shitty on Tue Dec 22 20:44:00 2020
    Shitty wrote to Warpslide <=-

    I have Usurper working with a direct door code through BBSLink (bbslink.net) and it also works via SSH with the python script.

    Thanks for your advice on this.

    I'm already established with BBS Link. I didn't like their
    Usurper setup initially. They (Lab Rat?) had it running Usurper maintenance each time a player entered the game - as of today, I
    think he fixed that because I was able to play the game quickly.

    BBS Link is definitely the easiest game server to use with
    Mystic. I like it, but I'm still interested in setting up my own
    local Usurper just in case the BBS Link one goes to shit again.
    Plus I intend to customize it - certain stuff in that game really
    ought to be disabled. Stuff that offends the Shitty Compufuck
    guy! :)

    Have you thought about running the DOS version of Usurper via Dosemu?
    I have that working fine here on Linux (Synchronet), and it's no more difficult to set up than any other DOS door.



    ... Reality failure. Press Enter to continuum.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.11-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (77:1/114)
  • From paulie420@77:1/158 to Shitty on Wed Dec 23 04:46:17 2020
    Do any of you have Usurper for Linux working on your BBS?

    Hey Shitty, I don't... but if you'd upload it to 2o fOr beeRS I'll also try to get it rocking. I my close-mindedness, I didn't realize that there were native Linux door games. [Leave me alone!] Lulz.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbS>>20ForBeers.com:1337 (77:1/158)
  • From ryan@77:1/128 to Shitty on Wed Dec 23 12:08:55 2020
    Do any of you have Usurper for Linux working on your BBS?

    Which BBS software are you using?

    I can't make modern Usurper for linux work properly with Mystic. There is
    some weird double-enter thing happening and strings are displayed oddly.

    It works fine in Daydream and Synchronet (linux for both) so I assume there's
    a strange Mystic thing happening.

    Let me know - I'm still happy to share my config details, but if you're
    hoping to run from a Mystic board you may be SOL.

    --- Mystic BBS v1.12 A46 2020/08/06 (Linux/64)
    * Origin: monterey bbs (77:1/128)
  • From Shitty@77:1/142 to Gamgee on Wed Dec 23 12:39:37 2020
    Have you thought about running the DOS version of Usurper via Dosemu?
    I have that working fine here on Linux (Synchronet), and it's no more difficult to set up than any other DOS door.

    That sounds like a good idea! I will try DOSEMU. I never used it before. But that seems like a good solution because then I can do the same thing with LORD.

    It's something lke dosbox right? So I can run it like:
    dosemu usurper.exe /p....
    That's where I'm confused already.. How do you provide a linux path to a DOS program?

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Netsurge@77:1/100 to Gamgee on Wed Dec 23 17:00:50 2020
    Have you thought about running the DOS version of Usurper via Dosemu?
    I have that working fine here on Linux (Synchronet), and it's no more difficult to set up than any other DOS door.

    I gave up trying to get it to run in Linux and run it via dosemu. Works like a dream.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- Mystic BBS/QWK Gate v1.12 A47 2020/11/23 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Shitty@77:1/142 to paulie420 on Wed Dec 23 20:57:51 2020
    Hey Shitty, I don't... but if you'd upload it to 2o fOr beeRS I'll also try to get it rocking. I my close-mindedness, I didn't realize that
    there were native Linux door games. [Leave me alone!] Lulz.

    Thanks Paulie! I appreciate it, but like I was telling ryan, game servers (DP/BBSLink) will be the best option for dealing with Usurper on Linux.

    Some day, I bet Rick Parris will fix the linux Usurper distro. He fixed a lot of other shit. For now, let's take the cheesy way out! :)

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Shitty@77:1/142 to ryan on Wed Dec 23 21:03:42 2020
    Do any of you have Usurper for Linux working on your BBS?

    Which BBS software are you using?

    I can't make modern Usurper for linux work properly with Mystic. There is some weird double-enter thing happening and strings are displayed oddly.

    I'm using Mystic. Thanks for this heads-up. I remember there being a display issue on Alcoholiday (that BBS was Mystic/Linux too.) With that being said, it will be best for me to stick to a game server.

    I'll go with BBS Link for now. I played their Usurper 2 days in a row now with no problems. I'm just amazed that they fixed it.

    But if any of you guys have Mystic/Linux/Doorparty Direct Codes working,
    please let me know how you did it because I'd be glad to get in on their Usurper game too.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Netsurge@77:1/111 to Shitty on Wed Dec 23 21:02:05 2020

    On Wednesday December 23, 2020, Shitty said to Gamgee...

    That sounds like a good idea! I will try DOSEMU. I never used it before. But that seems like a good solution because then I can do the same thing with LORD.

    It's something lke dosbox right? So I can run it like: dosemu
    usurper.exe /p.... That's where I'm confused already.. How do you
    provide a linux path to a DOS program?

    If you grab the SciNet Info pack from https://scinet-ftn.org there are
    detailed instructions on getting dos games working with Mystic and dosemu.

    I don't have a setup guide for Usurper as it isn't an InterBBS game, but you can probablly figure it out from all the other games that are listed there.

    [%] frank!netsurge // hysteriabbs.com // zeus 1.7 // amiga 4ooo [%]
    [%] SciNet! . the ftn of the bbs scene . https://scinet-ftn.org [%]

    --- Zeus BBS 1.5
    * Origin: hysteria - amiga 4ooo - hysteriabbs.com (77:1/111.0)
  • From Gamgee@77:1/114 to Shitty on Wed Dec 23 19:56:00 2020
    Shitty wrote to Gamgee <=-

    Have you thought about running the DOS version of Usurper via Dosemu?
    I have that working fine here on Linux (Synchronet), and it's no more difficult to set up than any other DOS door.

    That sounds like a good idea! I will try DOSEMU. I never used it
    before. But that seems like a good solution because then I can do
    the same thing with LORD.

    It's something lke dosbox right? So I can run it like:
    dosemu usurper.exe /p....
    That's where I'm confused already.. How do you provide a linux
    path to a DOS program?

    I honestly have no idea how to do it on Mystic... Maybe some kind
    soul will jump in here with some tips for you. It probably is
    discussed on the Mystic Wiki.

    I did a quick google and it's described in this document, just do a
    search for the word "door":

    https://github.com/KALRONG/mysticbbs/blob/master/mystic/docs/unix.install.txt

    Good luck!



    ... He does the work of 3 Men...Moe, Larry & Curly
    === MultiMail/Linux v0.52
    --- SBBSecho 3.11-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (77:1/114)
  • From Shitty@77:1/142 to Netsurge on Thu Dec 24 04:37:56 2020
    If you grab the SciNet Info pack from https://scinet-ftn.org there are detailed instructions on getting dos games working with Mystic and
    dosemu.

    I looked at it and I appreciate those instructions, but I apologize, I should have mentioned that this dopewars game is not a BBS door, but just a regular DOS text-based game. I think bbs door games have something special about them that permit the output to be sent to the modem, but regular DOS programs lack that capability.

    Doorway.exe is a program that supposedly lets you take text-based dos programs and run them as doors, but either I'm not using it properly, or the game I'm trying to run does not have compatible graphics, although it appears to be typical ansi.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Shitty@77:1/142 to Gamgee on Thu Dec 24 04:39:28 2020
    I honestly have no idea how to do it on Mystic... Maybe some kind
    soul will jump in here with some tips for you. It probably is
    discussed on the Mystic Wiki.

    Thanks, I just didn't explain it right. But yea, I'm hoping somebody knows Doorway well - it's a program that's been mystifying me for decades.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Netsurge@77:1/100 to Shitty on Thu Dec 24 01:47:52 2020
    I looked at it and I appreciate those instructions, but I apologize, I shouldhave mentioned that this dopewars game is not a BBS door, but just
    a regularDOS text-based game. I think bbs door games have something special about themthat permit the output to be sent to the modem, but regular DOS programs lackthat capability.

    If I remember correctly, apam wrote a shim program that piped console stuff to a bbs allowing you to run DOS games and programs as doors.

    It was part of MagickaBBS but can be used with any Linux bbs program. It's called dosbox_shim. It fires up dosbox and then pipes anything back to your bbs as if it's a door.

    You can find it on his github here:

    gitlab.com/magickabbs/MagickaBBS/-/tree/master/utils/dosbox_shim

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- Mystic BBS/QWK Gate v1.12 A47 2020/11/23 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Warpslide@77:1/156 to Shitty on Thu Dec 24 16:37:12 2020
    On 23 Dec 2020, Shitty said the following...

    But if any of you guys have Mystic/Linux/Doorparty Direct Codes working, please let me know how you did it because I'd be glad to get in on their Usurper game too.

    I just got Doorparty working on my board with direct door codes. Here's how I did it:

    Download your custom .zip package from: http://wiki.throwbackbbs.com/doku.php?id=doorcode:dp_package

    Unzip the package to /tmp:
    unzip ./dpConnect_linux.zip -d /tmp

    Unzip the master.zip:
    cd /tmp
    unzip ./master.zip

    Make a directory for Doorparty & move the appropriate files:
    mkdir /home/pi/mystic/dp
    mv /tmp/NR_DP.sh ~/mystic/dp <- Your .sh filename will be different!
    mv /tmp/dpc2-master/build/linux_arm6/doorparty-connector ~/mystic/dp
    ^^^^
    Replace the above with x64 if not installing on a Pi.
    mv /tmp/dpc2-master/doorparty-connector.ini ~/mystic/dp

    You should now have 3 files in /home/pi/mystic/dp:
    doorparty-connector
    doorparty-connector.ini
    NR_DP.sh <- Your .sh filename will be different!

    Make the .sh file executable:
    chmod +x ~/mystic/dp/NR_DP.sh <- Your .sh filename will be different!

    Edit the doorparty-connector.ini with the information you received on signup (system tag, SSH username & password).

    Edit the .sh file you received and make sure your prefix is correct.

    Run doorparty-connector:
    cd /home/pi/mystic/dp
    ./doorparty-connector &

    Now create a menu item in Mystic as follows:

    Action List Access Data
    (D3) Exec DOOR32 Progam ./dp/NR_DP.sh %U USURPER


    If all goes according to plan, you should now be able to play Usurper!

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Warpslide@77:1/156 to Shitty on Thu Dec 24 17:49:47 2020
    On 24 Dec 2020, Warpslide said the following...

    I just got Doorparty working on my board with direct door codes. Here's how Idid it:

    I forgot one step:

    Install rsh-redone-client:
    sudo apt install rsh-redone-client

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From ryan@77:1/128 to Warpslide on Thu Dec 24 17:19:19 2020
    Run doorparty-connector:
    cd /home/pi/mystic/dp
    ./doorparty-connector &

    I would strongly advise making this a systemd script - my assumption is that
    it could be prone to crashing if it's just a backgrounded bash script.

    --- Mystic BBS v1.12 A46 2020/08/06 (Linux/64)
    * Origin: monterey bbs (77:1/128)
  • From Warpslide@77:1/156 to ryan on Thu Dec 24 21:00:47 2020
    On 24 Dec 2020, ryan said the following...

    I would strongly advise making this a systemd script - my assumption is thatit could be prone to crashing if it's just a backgrounded bash
    script.

    Yes correct, I should have mentioned that in there. This is what I did just to get it going.

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/142 to Netsurge on Thu Dec 24 14:47:37 2020
    If I remember correctly, apam wrote a shim program that piped console stuff to a bbs allowing you to run DOS games and programs as doors.

    That sounds perfect. I downladed the package, but the docs folder is empty! I'll ask Apam about this.

    Thanks for the tip!

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Shitty@77:1/142 to Warpslide on Fri Dec 25 23:44:10 2020
    If all goes according to plan, you should now be able to play Usurper!

    Thank you and your instructions worked perfectly!

    Now I've got Usurper via BBS Link and Usurper via Doorparty on my BBS.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Shitty@77:1/142 to Warpslide on Fri Dec 25 23:50:59 2020
    I would strongly advise making this a systemd script - my assumption thatit could be prone to crashing if it's just a backgrounded bash script.

    Yes correct, I should have mentioned that in there. This is what I did just to get it going.

    That's over my head - Is systemd a way of running the server upon reboot? Sorta like autoexec.bat for DOS?

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From ryan@77:1/128 to Shitty on Fri Dec 25 22:57:48 2020
    That's over my head - Is systemd a way of running the server upon
    reboot? Sorta like autoexec.bat for DOS?

    systemd is a modern init system. It's rather controversial as it contravenes
    a number of traditional init system unwritten by-laws and tries to do many things. I'm of the opinion it does these things well and standardizes a lot
    of a linux installation and I'm not one of those guys that drinks the systemd haterade. That said...

    Yeah, it's sort of like autoexec.bat in one sense that it can do things at a certain point during boot. However, it also does monitoring, can tell you if your daemons are still running, can help you figure out why one may /not/ be running (i.e., if it crashed for some reason), and can be configured to auto-restart or start a daemon when a certain other action takes place. It's pretty useful!

    Depending on your linux distro and particular linux installation will
    determine which init system you use. Debian, Ubuntu, Arch...these are all basically systemd (with exceptions). Other distros I'm not sure, it kind of runs the gamut.

    --- Mystic BBS v1.12 A46 2020/08/06 (Linux/64)
    * Origin: monterey bbs (77:1/128)
  • From Warpslide@77:1/156 to Shitty on Sat Dec 26 07:27:49 2020
    On 25 Dec 2020, Shitty said the following...

    That's over my head - Is systemd a way of running the server upon
    reboot? Sortalike autoexec.bat for DOS?

    There's a couple of ways to automatically start something when you boot up, I put some things in my /etc/rc.local file which would be more analogous to the autoexec.bat file, but to ryan's point, if DoorParty were to crash for some reason it wouldn't automatically restart on its own, whereas with systemd it can.


    Create a service file:
    sudo nano /etc/systemd/system/dp.service

    dp.service:

    [Unit]
    Description=DoorParty Connector
    After=network.target
    StartLimitIntervalSec=0

    [Service]
    User=pi
    WorkingDirectory=/home/pi/mystic/dp ExecStart=/home/pi/mystic/dp/doorparty-connector
    Restart=always
    RestartSec=1

    [Install]
    WantedBy=multi-user.target


    (Update the User=, WorkingDirectory= & ExecStart= lines for your purposes)

    CTRL-X to save & exit

    Start the new service:
    sudo systemctl start dp

    Enable it to automatically run on startup:
    sudo systemctl enable dp


    A couple of things you can do later:

    Check to see if it's running & view any console output:
    sudo systemctl status dp

    Stop it from running on statup:
    sudo systemctl disable dp

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Bob Roberts@77:1/200 to Warpslide on Sat Dec 26 11:34:20 2020
    Re: Usurper Linux
    By: Warpslide to Shitty on Sat Dec 26 2020 07:27 am

    There's a couple of ways to automatically start something when you boot up, I put some things in my /etc/rc.local file which would be more analogous to the autoexec.bat file, but to ryan's point, if DoorParty were to crash for some reason it wouldn't automatically restart on its own, whereas with systemd it can.

    Very nice writeup. I wish I had it when I was trying to get doorparty working properly. I eventually got it, but this is a nice summary. :-)

    Bob Roberts
    --- SBBSecho 3.11-Linux
    * Origin: Halls of Valhalla -=- Happy New Year (77:1/200)
  • From paulie420@77:1/158 to Shitty on Sat Dec 26 13:28:34 2020
    I looked at it and I appreciate those instructions, but I apologize, I shouldhave mentioned that this dopewars game is not a BBS door, but just
    a regularDOS text-based game. I think bbs door games have something special about themthat permit the output to be sent to the modem, but regular DOS programs lackthat capability.

    Doorway.exe is a program that supposedly lets you take text-based dos programsand run them as doors, but either I'm not using it properly, or the game I'mtrying to run does not have compatible graphics, although it appears to betypical ansi.


    Synchronet's DOSXTRN does this, and I believe you can just use the program with Mystic...

    :P



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbS>>20ForBeers.com:1337 (77:1/158)
  • From Shitty@77:1/142 to Warpslide on Tue Dec 29 21:46:47 2020
    ryan & Warpslide: Thanks for sharing this info about systemd!

    Create a service file:
    sudo nano /etc/systemd/system/dp.service

    I followed these instructions and they worked perfectly.

    But then I got carried away and tried to repeat this for mis server, and that didn't work. (mis server didn't load upon restart.)

    Here's how I attempted it:

    (I called it mis.service)

    [Unit]
    Description=MIS
    After=network.target
    StartLimitIntervalSec=0

    [Service]
    User=admin
    WorkingDirectory=/home/admin/web/compufuck.xyz/public_html/mystic ExecStart=/home/admin/web/compufuck.xyz/public_html/mystic/mis server Restart=always
    RestartSec=1

    [Install]
    WantedBy=multi-user.target

    I only changed the Description, the WorkingDirectory, and ExecStart.

    Could it be because mis server has a space in it?

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Warpslide@77:1/156 to Shitty on Tue Dec 29 20:57:37 2020
    On 29 Dec 2020, Shitty said the following...

    But then I got carried away and tried to repeat this for mis server, and thatdidn't work. (mis server didn't load upon restart.)

    mis is a little different because it forks.

    Here's what I came up with for mis.service:

    [Unit]
    Description=Mystic Internet Server
    After=network.target
    StartLimitIntervalSec=0

    [Service]
    Type=forking
    User=pi
    Environment="mysticbbs=/home/pi/mystic" "TERM=linux" WorkingDirectory=/home/pi/mystic
    ExecStartPre=/home/pi/mystic/mis poll killbusy all ExecStart=/home/pi/mystic/mis daemon
    PIDFile=/home/pi/mystic/semaphore/mis.bsy
    ExecStop=/home/pi/mystic/mis shutdown
    ExecStopPost=/home/pi/mystic/mis poll killbusy all
    Restart=always
    RestartSec=1

    [Install]
    WantedBy=multi-user.target

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/142 to Warpslide on Wed Dec 30 13:50:29 2020
    Here's what I came up with for mis.service:

    I created mis.service the way you showed me, I changed paths & username to mine, then I did this:

    sudo systemctl start mis
    sudo systemctl enable mis

    Then I rebooted, but it didn't load mis server.

    I thought it might be because I didn't have mis server shut down properly, so
    I tried it again after doing mis shutdown, but it still didn't work for me.

    If you have any suggestions let me know.

    Thanks for this info!

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Warpslide@77:1/156 to Shitty on Wed Dec 30 10:37:49 2020
    On 30 Dec 2020, Shitty said the following...

    I thought it might be because I didn't have mis server shut down
    properly, soI tried it again after doing mis shutdown, but it still
    didn't work for me.

    If you have any suggestions let me know.

    What does it say if you run: sudo systemctl status mis

    This may give us a hint.

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/142 to Warpslide on Wed Dec 30 17:10:35 2020
    What does it say if you run: sudo systemctl status mis

    It said:
    mis.service: Can't open PID

    I double checked and I have the path to mis.bsy in there correctly, so I'm still stumped.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Warpslide@77:1/156 to Shitty on Wed Dec 30 14:34:35 2020
    On 30 Dec 2020, Shitty said the following...

    It said:
    mis.service: Can't open PID

    Hmm, maybe some sort of permissions issue?

    In mis.service I have:

    User=pi
    PIDFile=/home/pi/mystic/semaphore/mis.bsy


    pi@bbs:~ $ whoami
    pi

    pi@bbs:~ $ ll /home/pi/mystic/semaphore/mis.bsy
    -rw-r--r-- 1 pi pi 4 Dec 30 01:03 /home/pi/mystic/semaphore/mis.bsy

    pi@bbs:~ $ cat /home/pi/mystic/semaphore/mis.bsy
    562


    What does your mis.service file look like?

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/100 to Warpslide on Wed Dec 30 15:20:00 2020
    Hmm, maybe some sort of permissions issue?

    I set mis.service permissions like this:
    sudo chmod 755 mis.service

    Here's the content of that file:

    [Unit]
    Description=Mystic Internet Server
    After=network.target
    StartLimitIntervalSec=0

    [Service]
    Type=forking
    User=admin
    Environment="mysticbbs=/home/mystic" "TERM=linux"
    WorkingDirectory=/home/mystic
    ExecStartPre=/home/mystic/mis poll killbusy all
    ExecStart=/home/mystic/mis daemon
    PIDFile=/home/mystic/semaphore/mis.bsy
    ExecStop=/home/mystic/mis shutdown
    ExecStopPost=/home/mystic/mis poll killbusy all
    Restart=always
    RestartSec=1

    [Install]
    WantedBy=multi-user.target

    --- Mystic BBS/QWK Gate v1.12 A47 2020/11/23 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Warpslide@77:1/156 to Shitty on Wed Dec 30 15:25:24 2020
    On 30 Dec 2020, Shitty said the following...

    User=admin
    Environment="mysticbbs=/home/mystic" "TERM=linux"

    Is mystic its own user? It looks like you're trying to run it as admin here.

    What does:

    ls -l /home/mystic/semaphore/mis.bsy

    look like?

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Shitty@77:1/142 to Warpslide on Wed Dec 30 22:01:55 2020
    Is mystic its own user? It looks like you're trying to run it as admin here.

    No sorry, I shortened the path in the message to make it fit in the message better. admin is the user.

    ls -l /home/mystic/semaphore/mis.bsy

    This is what that shows:
    -rw-r--r-- 1 admin admin 5 Dec 20:21 /home/admin/web/compufuck.xyz/public_html/mystic/semaphore/mis.bsy

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Zip@77:2/107 to Shitty on Thu Dec 31 07:41:27 2020
    Hello Shitty!

    On 30 Dec 2020, Shitty said the following...
    It said:
    mis.service: Can't open PID

    Maybe you stumbled across the same problem that I did --

    When the MIS binary creates/launches the actual subprocess running the MIS daemon, it appears to let the *subprocess* create the PID file, i.e. it is created a short time *after* the MIS binary has "returned".

    (I believe the "correct" way would be for the MIS binary to create the subprocess, check what PID it got, create the PID file with the PID inside it, and then return control to systemd...)

    Systemd expects the PIDFile to exist as soon as the MIS binary has returned, so it complains that there is no PIDfile yet.

    You can try adding:

    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /home/pi/mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    This will wait up to 5 seconds for the PIDFile to get generated (i.e. for the daemon to actually launch), and hopefully this makes systemd happy. :)

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)
  • From Shitty@77:1/142 to Zip on Thu Dec 31 07:55:13 2020
    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /home/pi/mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    Thanks Zip, I added that to the end of the [Service] section, but then when I tried this:

    sudo systemctl start mis

    the terminal became an unresponsive input - I had to press ctrl-z to get out
    of it.

    It's no big deal though. I appreciate what you guys are trying to help me
    with, but I can go without it. Starting mis manually is not a problem for me.

    You guys run *extra* efficient BBSs and I think that's awesome. If mine
    crashes or anything, it's not a problem.

    This stuff is way over my head - if I spend time reading up on systemd, and
    get a better understanding of it, then I can probably figure out what I'm
    doing wrong. But this is like the pilot telling the flight attendant how to land the plane :)

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Warpslide@77:1/156 to Shitty on Thu Dec 31 18:12:48 2020
    On 31 Dec 2020, Shitty said the following...

    It's no big deal though. I appreciate what you guys are trying to help me with, but I can go without it. Starting mis manually is not a problem
    for me.

    The other thing you can do if you wanted to start it automatically is add it to /etc/rc.local

    Just add:

    sudo -u admin /path/to/mis daemon

    Just before the exit 0 line.

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (77:1/156)
  • From Zip@77:2/107 to Shitty on Fri Jan 1 10:08:28 2021
    Hello Shitty!

    On 31 Dec 2020, Shitty said the following...
    the terminal became an unresponsive input - I had to press ctrl-z to get outof it.

    Sounds like systemd us trying to start, it fails, it retries and retries (StartLimitIntervalSec=0 so it will try forever) every second (RestartSec=1). However I just noticed that the path to the PIDFile might be incorrect.

    Try:

    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /home/mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    ...or even:

    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /home/pi/mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    ...to ensure that the path to the PIDFile is correct.

    And don't forget to run:

    sudo systemctl daemon-reload

    ...after changing the mis.service file to ensure that systemd notices the changes.

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)
  • From Zip@77:2/107 to Shitty on Fri Jan 1 10:19:40 2021
    Hello again Shitty!

    On 01 Jan 2021, Zip said the following...
    Try:
    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /home/mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    ...which matches the path to the PIDFile:

    PIDFile=/home/mystic/semaphore/mis.bsy

    (I mixed up your paths and Warpslide's paths in one of my previous messages...)

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)
  • From Shitty@77:1/142 to Zip on Sat Jan 2 22:09:42 2021
    PIDFile=/home/mystic/semaphore/mis.bsy

    Thanks Zip, I confirmed that the paths were correct. Then I tried this again, and it looked better because when I did:

    sudo systemctl enable mis

    this time the screen didn't go black with an unresponsive prompt, this time it looked like everything was good, but when I rebooted, MIS server still hadn't loaded on its own.

    It's all good though. I'm probably neglecting something, and hopefully in the near future I'll find my mistake.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Zip@77:2/107 to Shitty on Sun Jan 3 09:52:59 2021
    Hello Shitty!

    On 02 Jan 2021, Shitty said the following...
    time itlooked like everything was good, but when I rebooted, MIS server still hadn'tloaded on its own.

    Check "sudo systemctl status mis" or "sudo journalctl -xea -u mis" to see what it says.

    Also, the mis.log logfile from MIS might show something.

    It'll be interesting to hear what you find there!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)
  • From Shitty@77:1/142 to Zip on Sun Jan 3 17:38:35 2021
    Check "sudo systemctl status mis" or "sudo journalctl -xea -u mis" to
    see what it says.

    I did all this:

    sudo ./mis shutdown
    sudo systemctl enable mis
    sudo systemctl start mis
    sudo reboot
    (waited for the server to come back up)
    Was unable to connect via telnet

    Checked mis.log:
    MANAGER Starting event system
    MANAGER Starting 1 server(s)
    MANAGER Starting servers in DAEMON mode
    TELNET Unable to open IPV4 port: Error -1 (13)
    TELNET Unable to open IPV6 port: Error -1 (13)
    MANAGER Cryptlib not detected; SSL/SSH capabilities disabled
    EVENT Starting 1 event(s)

    sudo systemctl status mis
    mis.service - Mystic Internet Server
    Loaded: loaded (/etc/systemd/system/mis.service; enabled; vendor present; enab
    Active: active (running) since Sun 2021-01-03 17:13:41 UTC; 12min ago
    Process: 848 ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c while :; do [
    Process: 838 ExecStart=/home/admin/web/compufuck.xyz/public_html/mysic/mis
    Main PID: 845 (mis)
    Tasks: 1 (limit: 2303)
    CGroup: /system.slice/mis.service
    ^-845 /home/admin/web/compufuck.xyz/public_html/mystic/mis daemon
    Jan 03 17:13:40 vps-aa2bbee8.vps.ovh.us systemd[1]: Starting Mystic Internet S
    Jan 03 17:13:40 vps-aa2bbee8.vps.ovh.us mis[777]: [2.1k blob data]
    Jan 03 17:13:41 vps-aa2bbee8.vps.ovh.us systemd[1]: Started Mystic Internet Se

    sudo journalctl -xea -u mis
    -- This information indicated that "mis.service has finished starting up."
    and "The start-up result is RESULT."

    What I make of this: The mis.log indicated that it was unable to open ports
    (at that moment) so I'm not sure why. Maybe the script is running too quickly after boot? That's just my guess.

    Let me know if you have any suggestions based on this info. But no pressure! I can live without mis.service, but it would be cool if it worked.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Shitty@77:1/142 to Warpslide on Sun Jan 3 17:40:08 2021
    It's no big deal though. I appreciate what you guys are trying to hel with, but I can go without it. Starting mis manually is not a problem for me.

    The other thing you can do if you wanted to start it automatically is
    add it to /etc/rc.local

    I tried that but I don't have that file for some reason.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From ryan@77:1/128 to Shitty on Sun Jan 3 18:12:07 2021
    Let me know if you have any suggestions based on this info. But no pressure! I can live without mis.service, but it would be cool if it worked.

    Try 'sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/mystic/mis'

    This'll allow mis to bind to privileged ports.

    Just remember to do the setcap thing again every time you upgrade.

    --- Mystic BBS v1.12 A46 2020/08/06 (Linux/64)
    * Origin: monterey bbs (77:1/128)
  • From Zip@77:2/107 to Shitty on Mon Jan 4 09:23:22 2021
    Hello Shitty!

    On 03 Jan 2021, Shitty said the following...
    TELNET Unable to open IPV4 port: Error -1 (13)
    TELNET Unable to open IPV6 port: Error -1 (13)

    What I make of this: The mis.log indicated that it was unable to open ports(at that moment) so I'm not sure why. Maybe the script is running
    too quicklyafter boot? That's just my guess.

    Let me know if you have any suggestions based on this info. But no

    Try changing:

    After=network.target

    ...to:

    After=network-online.target

    Also, for the [Service] section, try adding:

    AmbientCapabilities=CAP_NET_BIND_SERVICE

    ...as suggested by: https://unix.stackexchange.com/a/581337

    Hope this helps!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)
  • From Shitty@77:1/142 to Zip on Mon Jan 4 14:51:58 2021
    Ryan, Warpslide, Zip, thank you!

    It's working now.

    I did this:
    After=network-online.target
    and this:
    AmbientCapabilities=CAP_NET_BIND_SERVICE

    And mis starts automatically now. It's great! I don't reboot often, but next time I do, it's gonna be much more relaxing without having to log-in just to start doorparty & mis.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz (77:1/142)
  • From Zip@77:2/107 to Shitty on Tue Jan 5 09:08:44 2021
    Hello Shitty!

    On 04 Jan 2021, Shitty said the following...
    And mis starts automatically now. It's great! I don't reboot often, but

    Glad to hear that! :D

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (77:2/107)