• Debian and DOSEMU

    From Black Panther@77:1/102 to All on Mon Jul 15 20:09:48 2019
    Hi All,

    Alright. I made the move from Ubuntu to Debian on the BBS system. So far,
    I've had a few hiccups, but overall I'm liking it.

    I am having one problem with DOSEMU though. When I try to run a door, I'm seeing a brief flash on the screen saying some like "MkDir error in creating /root/"

    I've never seen this before, and never had any issues with DOSEMU before. Why would it be trying to create a directory in /root/?

    So far, the only changes I've made in the dosemu.conf file, are:

    $_cpu_emu = "fullsim"

    and

    $_com1 = "virtual"

    Everything else is identical to the way I had it running under Ubuntu, but
    now I'm getting that error...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Mon Jul 15 22:19:34 2019
    Hi All,

    Alright. I made the move from Ubuntu to Debian on the BBS system. So far, I've had a few hiccups, but overall I'm liking it.

    I am having one problem with DOSEMU though. When I try to run a door, I'm seeing a brief flash on the screen saying some like "MkDir error in creating /root/"

    I've never seen this before, and never had any issues with DOSEMU
    before. Why would it be trying to create a directory in /root/?

    So far, the only changes I've made in the dosemu.conf file, are:

    $_cpu_emu = "fullsim"

    and

    $_com1 = "virtual"

    Never seen that one before. Could you turn on logging by adding the following to your dosemu.conf file:

    log_level= 2

    That should turn on full logging into your syslog. Post the output here.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Apam@77:3/100 to Black Panther on Tue Jul 16 12:28:26 2019
    Re: Debian and DOSEMU
    By: Black Panther to All on Mon Jul 15 2019 08:09 pm

    I am having one problem with DOSEMU though. When I try to run a door, I'm seeing a brief flash on the screen saying some like "MkDir error in creating /root/"

    Are you launching mystic as root to use lower ports or launching as a user with setpcap?

    I know mystic will run as a different user if you launch as root, but perhaps it's getting the home directory wrong because it started as root (and it's trying to create a .dosemu directory)

    I'm just wildly stabbing in the dark here..

    Andrew
    --- SBBSecho 3.07-FreeBSD
    * Origin: Nocturnal - nocturnal.hopto.org:2023 (77:3/100)
  • From Black Panther@77:1/102 to Netsurge on Mon Jul 15 20:47:02 2019
    On 15 Jul 2019, Netsurge said the following...

    Never seen that one before. Could you turn on logging by adding the following to your dosemu.conf file:

    I'm thinking there's a problem with Mystic... Any of the events that I have running through Mystic are all giving me error 126. I have a script that runs when there's outbound mail called mailout.sh, located in ~/mystic/mailout.sh. The permissions are set as executable.

    EVENT Cmd: ./mailout.sh
    EVENT Res: 126

    EVENT Cmd: ~/mystic/mailout.sh
    EVENT Res: 126

    EVENT Cmd: /home/dan/mystic/mailout.sh
    EVENT Res: 126

    I can run the script manually with no problems. It's only when Mystic tries
    to run it, that I'm getting the 126.

    A 126 usually means there are permission issues...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Black Panther@77:1/102 to Apam on Mon Jul 15 20:48:52 2019
    On 16 Jul 2019, Apam said the following...

    Are you launching mystic as root to use lower ports or launching as a
    user with setpcap?

    I've been launching it with sudo to use port 23...

    I know mystic will run as a different user if you launch as root, but perhaps it 's getting the home directory wrong because it started as
    root (and it's trying to create a .dosemu directory)

    That's a possibility. It is showing in System Monitor as running as 'dan',
    but it's listed under sudo with a user of 'root'...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Mon Jul 15 22:57:14 2019
    I'm thinking there's a problem with Mystic... Any of the events that I have running through Mystic are all giving me error 126. I have a script that runs when there's outbound mail called mailout.sh, located in ~/mystic/mailout.sh. The permissions are set as executable.

    I'm going to go with apam here, how are you starting mis?

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Apam on Mon Jul 15 20:55:32 2019
    On 16 Jul 2019, Apam said the following...

    I know mystic will run as a different user if you launch as root, but perhaps it 's getting the home directory wrong because it started as
    root (and it's trying to create a .dosemu directory)

    I think you were on to something there. I changed the port on the internal network to 2300, and didn't use sudo to start mis. The events seems to be running right now...

    Now back to the doors...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Mon Jul 15 23:05:14 2019
    I've been launching it with sudo to use port 23...

    Have you tried to run it without sudo and set your various ports >1024 and
    then create a rule to map connections to the higher ports as root?

    Something like:

    ipfw add 100 fwd 127.0.0.1,2323 tcp from any to any 23 in

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Netsurge@77:1/100 to Black Panther on Mon Jul 15 23:06:44 2019
    I think you were on to something there. I changed the port on the
    internal network to 2300, and didn't use sudo to start mis. The events seems to be running right now...

    Did you change to Mystic's dir (which has to be in your home dir) before starting Mystic as root?

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Mon Jul 15 21:04:12 2019
    On 15 Jul 2019, Netsurge said the following...

    I'm going to go with apam here, how are you starting mis?

    That was the problem...

    I think everything is running smoothly again. Evidently, under Debian, mis doesn't give complete contol back to the user, and stays as root. Once I changed the internal network ports, and started without sudo, everything started running right...

    I just have the modem set to route incoming port 23 to internal port 2300
    going to 192.168.0.15.

    Even the doors are working again. At least the couple I just tried... :)

    Thank you both for your help.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Black Panther@77:1/102 to Netsurge on Mon Jul 15 21:12:16 2019
    On 15 Jul 2019, Netsurge said the following...

    Have you tried to run it without sudo and set your various ports >1024
    and then create a rule to map connections to the higher ports as root?

    That's what I'm doing now, but inside the modem. Port 23 is being forward to that computer on port 2300.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Mon Jul 15 23:13:18 2019
    That's what I'm doing now, but inside the modem. Port 23 is being
    forward to that computer on port 2300.

    That works too.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 12:54:56 2019
    Ok, so now I've noticed another hiccup. This time with Binkd.

    If the node has a non-standard port, I'm having issues connecting. The logs look like it's trying to connect to port 0, instead of the port indicated.
    Here is the listing in binkd.cfg:

    node 21:1/100@fsxnet agency.bbs.nz:24556 PASSWORD i

    ...and this is what I get in the logs:

    + 17 Jul 12:05:29 [12851] call to 21:1/100@fsxnet
    17 Jul 12:05:29 [12851] trying agency.bbs.nz [219.89.83.33]:0...
    ? 17 Jul 12:07:39 [12851] connection to 21:1/100@fsxnet failed: Connection timed out
    17 Jul 12:07:39 [12307] rc(12851)=0

    Now, if you look at the line that says 'trying agency.bbs.nz', it shows the
    ip address for that domain, followed by ':0'. Does that mean it's trying to connect on port 0?

    I also had this issue with connecting to Janis's system. For hers, I was able to put her ip address instead of the domain, and it connects just fine now. I have tried that with Paul's, and it doesn't make any difference.

    As I am connecting to both 21:1/100 and 21:1/10, and both are on non-standard ports, I have the same issue with both...

    This one has me puzzled, as I've never had any issues with binkd before...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 14:56:38 2019
    If the node has a non-standard port, I'm having issues connecting. The logs look like it's trying to connect to port 0, instead of the port indicated. Here is the listing in binkd.cfg:

    Did you compile binkd yourself?

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 13:07:56 2019
    On 17 Jul 2019, Netsurge said the following...

    Did you compile binkd yourself?

    I think I found the binaries somewhere... I honestly don't remember, as I've had binkd set up on the system for a few years...

    The version is binkd/1.1a-95/Linux.

    I could try compiling and starting fresh...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 15:11:22 2019
    I think I found the binaries somewhere... I honestly don't remember, as I've had binkd set up on the system for a few years...

    The version is binkd/1.1a-95/Linux.

    Yes, you definitely have to compile it again, Buster does a few things different when it comes to accessing the TCP/IP stack.

    Just moving binaries between distros is never a good idea.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 13:32:58 2019
    On 17 Jul 2019, Netsurge said the following...

    Yes, you definitely have to compile it again, Buster does a few things different when it comes to accessing the TCP/IP stack.

    Alright. I have it compiled fresh from github/pgul/binkd. It looks like I'm still having the issue... :(


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 15:39:50 2019
    Alright. I have it compiled fresh from github/pgul/binkd. It looks like I'm still having the issue... :(

    Let me setup a buster vm here and see if I can replicate the problem.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 13:48:08 2019
    On 17 Jul 2019, Netsurge said the following...

    Let me setup a buster vm here and see if I can replicate the problem.

    Thank you. This one has be bewildered...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 14:21:28 2019
    Frank,

    I did notice something different with this version of binkd. I'm running it with the -C option, so it reloads when the config file is changed. I had been getting this in the logs with the old version:

    + 17 Jul 12:22:59 [12306] binkd.cfg changed!
    + 17 Jul 12:22:59 [12306] Reloading configuration...
    17 Jul 12:22:59 [12306] previous config is no longer in use, unloading
    - 17 Jul 12:22:59 [12306] servmgr listen on *:binkp

    I just noticed that I'm not getting that with this version.

    Not sure if it's related or not, probably not, but I thought I'd mention it.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 16:35:20 2019
    I did notice something different with this version of binkd. I'm running it with the -C option, so it reloads when the config file is changed. I had been getting this in the logs with the old version:

    Hmmmm, something sounds weird. Can you drop the binary you compiled into my inbox?

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 14:52:50 2019
    On 17 Jul 2019, Netsurge said the following...

    Hmmmm, something sounds weird. Can you drop the binary you compiled into my inbox?

    It should be in your inbox...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 18:39:00 2019
    It should be in your inbox...

    There must be something goofy going on with your system.

    I just installed a copy of Buster, base system, no X just ssh server.

    I used the binary you sent me and connected to you with my fsxnet credentials as I know you don't operate binkp on the standard port and it went through
    just fine as you can see:

    17 Jul 18:30:09 [617] BEGIN, binkd/1.1a-99/Linux -P 21:4/100 binkd.cfg
    17 Jul 18:30:09 [617] creating a poll for 21:4/100@fsxnet (`d' flavour)
    17 Jul 18:30:09 [617] created /home/frank/fido/binkd.pid
    17 Jul 18:30:09 [619] created /home/frank/fido/outbound.015/00040064.csy
    17 Jul 18:30:09 [619] call to 21:4/100@fsxnet
    17 Jul 18:30:10 [619] trying bbs.castlerockbbs.com [184.155.113.241]:24560... 17 Jul 18:30:10 [619] connected

    You aren't running iptables or any other type of ip filtering? Your dns setting are all okay as I know you also said you had an issue resolving a node.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 16:53:14 2019
    On 17 Jul 2019, Netsurge said the following...

    There must be something goofy going on with your system.

    That's what I'm thinking. I just don't know what or where...

    I used the binary you sent me and connected to you with my fsxnet credentials as I know you don't operate binkp on the standard port and
    it went through just fine as you can see:

    17 Jul 18:30:09 [617] BEGIN, binkd/1.1a-99/Linux -P 21:4/100 binkd.cfg

    That's strange...

    I did notice something else just now... When I first compiled the new version of binkd, I was getting 'binkd/1.1a-99/Linux'. I've restarted it, and now I'm seeing 'binkd/1.1a-95/Linux'...

    I've got binkd installed in ~/binkd and there are no other copies on the system.

    sudo find / -name binkd
    /home/dan/binkd

    I just restarted again, and I'm seeing 1.1a-99 again...

    You aren't running iptables or any other type of ip filtering? Your dns setting are all okay as I know you also said you had an issue resolving
    a node.

    sudo iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    I think I'm going to remove the directory entirely, and start over...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 19:01:08 2019
    I did notice something else just now... When I first compiled the new version of binkd, I was getting 'binkd/1.1a-99/Linux'. I've restarted
    it, and now I'm seeing 'binkd/1.1a-95/Linux'...

    When all else fails, start from scratch.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 18:11:50 2019
    On 17 Jul 2019, Netsurge said the following...

    When all else fails, start from scratch.

    Alright. I recompiled it again, and did find out the version issue. There was
    a stuck process...

    I did finally get it working...

    I had tried:

    node 21:1/100@fsxnet agency.bbs.nz:24556 PASSWORD i
    node 21:1/100@fsxnet 219.89.83.33:24556 PASSWORD i
    node 21:1/100@fsxnet [219.89.83.33]:24556 PASSWORD i
    node 21:1/100@fsxnet [219.89.83.33:24556] PASSWORD i
    node 21:1/100@fsxnet [[219.89.83.33]:24556] PASSWORD i

    The one that worked:

    node 21:1/100@fsxnet [agency.bbs.nz]:24556 PASSWORD i

    I'm not sure if that's a fix, but it works... :)

    Thanks again for the help. See I'm still working on becoming that linux
    geek... :)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 17 20:29:08 2019
    Thanks again for the help. See I'm still working on becoming that linux geek... :)

    We are gonna get you there kicking and screaming if we have to.

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

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 17 18:34:56 2019
    On 17 Jul 2019, Netsurge said the following...

    Thanks again for the help. See I'm still working on becoming that lin geek... :)

    We are gonna get you there kicking and screaming if we have to.

    I'm only kicking and screaming because I'm not getting there fast enough. ;)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)