• Raspberry PI synchronet problems

    From Denn@VERT/OUTWEST to All on Tuesday, February 13, 2018 08:58:54
    1st time I installed Synchronet on my Raspberry PI I got an error so I wiped my OS and restarted from scratch.
    This time I was able to build synchronet with no errors.
    when I try to run sbbs here is what I get.

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port 21
    2/13 09:56:36 ftp 0003 Will retry in 15 seconds (1 of 2)
    2/13 09:56:36 mail 0005 !ERROR 13 binding SMTP Server socket to port 25
    2/13 09:56:36 mail 0005 Will retry in 15 seconds (1 of 2)
    2/13 09:56:36 web Synchronet Web Server Revision 1.646
    2/13 09:56:36 web Compiled Feb 13 2018 08:12:37 with GCC 6.3.0
    2/13 09:56:36 web Initializing on Tue Feb 13 09:56:36 2018 with options: 8c0 2/13 09:56:36 web Loading configuration files from /home/pi/sbbs/ctrl
    2/13 09:56:36 term 0004 !ERROR 13 binding Telnet Server socket to port 23
    2/13 09:56:36 term 0004 Will retry in 15 seconds (1 of 2)
    2/13 09:56:36 srvc Ignoring disabled service: QOTD
    2/13 09:56:36 srvc Ignoring disabled service: QOTD-UDP
    2/13 09:56:36 srvc Adding NNTP listening socket on 0.0.0.0 port 119
    2/13 09:56:36 srvc 0006 !ERROR 13 binding NNTP socket to port 119
    2/13 09:56:36 srvc 0006 Will retry in 15 seconds (1 of 2)
    2/13 09:56:37 web Adding Web Server listening socket on 0.0.0.0 port 80
    2/13 09:56:37 web 0007 !ERROR 13 binding Web Server socket to port 80
    2/13 09:56:37 web 0007 Will retry in 15 seconds (1 of 2)
    2/13 09:56:51 ftp 0003 !ERROR 13 binding FTP Server socket to port 21
    2/13 09:56:51 ftp 0003 Will retry in 15 seconds (2 of 2)
    2/13 09:56:51 mail 0005 !ERROR 13 binding SMTP Server socket to port 25
    2/13 09:56:51 mail 0005 Will retry in 15 seconds (2 of 2)
    2/13 09:56:51 term 0004 !ERROR 13 binding Telnet Server socket to port 23
    2/13 09:56:51 term 0004 Will retry in 15 seconds (2 of 2)
    2/13 09:56:51 srvc 0006 !ERROR 13 binding NNTP socket to port 119
    2/13 09:56:51 srvc 0006 Will retry in 15 seconds (2 of 2)
    2/13 09:56:52 web 0007 !ERROR 13 binding Web Server socket to port 80
    2/13 09:56:52 web 0007 Will retry in 15 seconds (2 of 2)
    [Threads: 7 Sockets: 5 Clients: 0 Served: 0 Errors: 0] (?=Help): q


    Do I have to manually configure sbbs.ini?
    or is there a configuration like in windows that I can run 1st?

    "... Computer programmers don't byte, they just nybble a bit."

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From echicken@VERT/ECBBS to Denn on Tuesday, February 13, 2018 13:01:06
    Re: Raspberry PI synchronet problems
    By: Denn to All on Tue Feb 13 2018 08:58:54

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port 21

    Permission denied. You're not root, so you can't bind to ports < 1024.

    You can start as root and have it switch afterward to the User and Group specified in the [Unix] section of sbbs.ini.

    You could just run it as root, but probably shouldn't.

    You could configure services to bind to ports > 1024 and just start as a normal
    user. Forwarding rules in your firewall could allow you to redirect traffic from 'standard' external ports to wherever your BBS is listening.

    Do I have to manually configure sbbs.ini?
    or is there a configuration like in windows that I can run 1st?

    There's no configuration program that I'm aware of, but it may exist. I just edit the file.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230

    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Nightfox@VERT/DIGDIST to echicken on Tuesday, February 13, 2018 11:03:37
    Re: Raspberry PI synchronet problems
    By: echicken to Denn on Tue Feb 13 2018 01:01 pm

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port
    21

    Permission denied. You're not root, so you can't bind to ports < 1024.

    You can start as root and have it switch afterward to the User and Group specified in the [Unix] section of sbbs.ini.

    You could just run it as root, but probably shouldn't.

    You could configure services to bind to ports > 1024 and just start as a normal user. Forwarding rules in your firewall could allow you to redirect traffic from 'standard' external ports to wherever your BBS is listening.

    There are ways to bind to ports <= 1024 for non-root processes in Linux. The setcap tool can give an executable permission to do so. https://www.jumpingbean.co.za/blogs/mark/run-application-port-below-1024-linux

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From echicken@VERT/ECBBS to Nightfox on Tuesday, February 13, 2018 14:30:30
    Re: Raspberry PI synchronet problems
    By: Nightfox to echicken on Tue Feb 13 2018 11:03:37

    There are ways to bind to ports <= 1024 for non-root processes in Linux. The setcap tool can give an executable permission to do so. https://www.jumpingbean.co.za/blogs/mark/run-application-port-below-1024-l

    Good to know. I've never run into a situation where this is much of a problem for me, but that might be useful in the future.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Al@VERT/TRMB to Denn on Tuesday, February 13, 2018 11:59:02
    Re: Raspberry PI synchronet problems
    By: Denn to All on Tue Feb 13 2018 08:58 am

    1st time I installed Synchronet on my Raspberry PI I got an error so I wiped my OS and restarted from scratch.
    This time I was able to build synchronet with no errors.
    when I try to run sbbs here is what I get.

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port 21
    2/13 09:56:36 ftp 0003 Will retry in 15 seconds (1 of 2)
    2/13 09:56:36 mail 0005 !ERROR 13 binding SMTP Server socket to port 25 2/13 09:56:36 mail 0005 Will retry in 15 seconds (1 of 2)
    2/13 09:56:36 web Synchronet Web Server Revision 1.646
    2/13 09:56:36 web Compiled Feb 13 2018 08:12:37 with GCC 6.3.0

    On linux only root can open ports below 1024. I use the setcap command as outlines in the wiki so a regular user can use those ports.

    http://wiki.synchro.net/howto:linux_non-root

    Do I have to manually configure sbbs.ini?
    or is there a configuration like in windows that I can run 1st?

    Yes edit sbbs.ini and services.ini (and there are more) to what you need.

    Ttyl :-),
    Al


    ... Don't Panic! It's only ones and zeros.

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Al@VERT/TRMB to Denn on Tuesday, February 13, 2018 13:10:42
    Re: Raspberry PI synchronet problems
    By: Denn to All on Tue Feb 13 2018 08:58 am

    Do I have to manually configure sbbs.ini?
    or is there a configuration like in windows that I can run 1st?

    I should have mentioned gtkmonitor in your exec directory. It is much like the windows control panel.. but for linux.

    That is Duece's work and I'm not sure what the current state of that is since I haven't used it in a long time. IIRC Duece said it was experimental so may or may not work as expected. I find exec/sbbs works for me so that is what I use but you could give it a try.

    If you do try it I'd be interested in hearing about your experience.

    Ttyl :-),
    Al


    ... Does the National Ballet travel by Tu Tu Train?

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Mickey@VERT/OXFORDMI to Denn on Tuesday, February 13, 2018 16:44:39
    Re: Raspberry PI synchronet problems
    By: Denn to All on Tue Feb 13 2018 08:58 am

    2/13 09:56:51 term 0004 !ERROR 13 binding Telnet Server socket to port 23 2/13 09:56:51 term 0004 Will retry in 15 seconds (2 of 2)
    2/13 09:56:51 srvc 0006 !ERROR 13 binding NNTP socket to port 119
    2/13 09:56:51 srvc 0006 Will retry in 15 seconds (2 of 2)
    2/13 09:56:52 web 0007 !ERROR 13 binding Web Server socket to port 80
    2/13 09:56:52 web 0007 Will retry in 15 seconds (2 of 2)
    [Threads: 7 Sockets: 5 Clients: 0 Served: 0 Errors: 0] (?=Help): q


    You have to run as root (sudo) to free those lower ports up, so synchronet can access them. Has happened to most of us using the Pi.

    Mick

    ---
    þ Synchronet þ Central Ontario Remote BBS
  • From Denn@VERT/OUTWEST to echicken on Tuesday, February 13, 2018 22:03:43
    Re: Raspberry PI synchronet problems
    By: echicken to Denn on Tue Feb 13 2018 01:01 pm

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port
    21

    Permission denied. You're not root, so you can't bind to ports < 1024.
    I ran it with sudo.
    I am using raspian stretch where normally I would use Ubuntu.


    You can start as root and have it switch afterward to the User and Group specified in the [Unix] section of sbbs.ini.

    I was going to look more into the wiki but its down right now (sigh).

    "... Never use a big word when a little dirty one will do."

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Denn@VERT/OUTWEST to Nightfox on Tuesday, February 13, 2018 22:07:44
    Re: Raspberry PI synchronet problems
    By: Nightfox to echicken on Tue Feb 13 2018 11:03 am

    There are ways to bind to ports <= 1024 for non-root processes in Linux. The setcap tool can give an executable permission to do so. https://www.jumpingbean.co.za/blogs/mark/run-application-port-below-1024-l inux

    I will look into it, the setup runs fine but I was assuming I could run the Console using sudo but I am missing something I guess.

    "... It's bad luck to be superstitious."

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Digital Man@VERT to Denn on Tuesday, February 13, 2018 23:05:57
    Re: Raspberry PI synchronet problems
    By: Denn to echicken on Tue Feb 13 2018 10:03 pm

    Re: Raspberry PI synchronet problems
    By: echicken to Denn on Tue Feb 13 2018 01:01 pm

    2/13 09:56:36 ftp 0003 !ERROR 13 binding FTP Server socket to port
    21

    Permission denied. You're not root, so you can't bind to ports < 1024.
    I ran it with sudo.
    I am using raspian stretch where normally I would use Ubuntu.


    You can start as root and have it switch afterward to the User and Group specified in the [Unix] section of sbbs.ini.

    I was going to look more into the wiki but its down right now (sigh).

    No, it's up. I just hit from hundreds of miles away. <shrug>

    digital man

    Synchronet/BBS Terminology Definition #57:
    XON = Transmit On (ASCII 17, Ctrl-Q)
    Norco, CA WX: 52.6øF, 63.0% humidity, 0 mph SW wind, 0.01 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Denn on Wednesday, February 14, 2018 09:37:06
    Re: Raspberry PI synchronet problems
    By: Denn to Nightfox on Tue Feb 13 2018 10:07 pm

    There are ways to bind to ports <= 1024 for non-root processes in
    Linux. The setcap tool can give an executable permission to do so.
    https://www.jumpingbean.co.za/blogs/mark/run-application-port-below-
    1024-l inux

    I will look into it, the setup runs fine but I was assuming I could run the Console using sudo but I am missing something I guess.

    You could run the console with sudo.. But I think it would be generally bad practice to run public-facing servers as root. If someone somehow gains shell access to your system through the server, you wouldn't want them having root privileges due to the process running as root.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From KK4QBN@VERT/KK4QBN to Nightfox on Wednesday, February 14, 2018 16:14:43
    Re: Raspberry PI synchronet problems
    By: Nightfox to Denn on Wed Feb 14 2018 09:37:06

    I will look into it, the setup runs fine but I was assuming I could
    run the Console using sudo but I am missing something I guess.

    You could run the console with sudo.. But I think it would be generally bad practice to run public-facing servers as root. If someone somehow gains shell access to your system through the server, you wouldn't want them having root privileges due to the process running as root.

    afaik, SUDO only binds the ports, then the software is handed back to the user specified in sbbs.ini or cmdline.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Nightfox@VERT/DIGDIST to KK4QBN on Wednesday, February 14, 2018 14:49:13
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Nightfox on Wed Feb 14 2018 04:14 pm

    You could run the console with sudo.. But I think it would be
    generally bad practice to run public-facing servers as root. If
    someone somehow gains shell access to your system through the
    server, you wouldn't want them having root privileges due to the
    process running as root.

    afaik, SUDO only binds the ports, then the software is handed back to the user specified in sbbs.ini or cmdline.

    sudo is a program that runs a program as root in Linux (sudo is short for "superuser do"). That's my understanding of it, unless there's more to it.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From KK4QBN@VERT/KK4QBN to Nightfox on Wednesday, February 14, 2018 23:41:30
    Re: Raspberry PI synchronet problems
    By: Nightfox to KK4QBN on Wed Feb 14 2018 14:49:13

    sudo is a program that runs a program as root in Linux (sudo is short for "superuser do"). That's my understanding of it, unless there's more to it.

    I may have heard it wrong but I thought I heard Rob say at one time that sbbs was setup to bind the ports with sudo, then revert back to regular user privelidges, as I say "afaik" I may be completely wrong. now SU or loging in as regular root, or running the software as root would give it root prv at all times and not just to bind. like I said, I may be completely wrong here. I just know I have tested cli apps as doors under shell running with su and it would'nt allow these apps to do superuser commands without issuing an su again.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Digital Man@VERT to KK4QBN on Wednesday, February 14, 2018 22:18:36
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Nightfox on Wed Feb 14 2018 11:41 pm

    Re: Raspberry PI synchronet problems
    By: Nightfox to KK4QBN on Wed Feb 14 2018 14:49:13

    sudo is a program that runs a program as root in Linux (sudo is short for "superuser do"). That's my understanding of it, unless there's more to it.

    I may have heard it wrong but I thought I heard Rob say at one time that sbbs was setup to bind the ports with sudo, then revert back to regular user privelidges, as I say "afaik" I may be completely wrong.

    No, that's right.

    digital man

    Synchronet/BBS Terminology Definition #4:
    BBS = Bulletin Board System
    Norco, CA WX: 57.9øF, 62.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Denn@VERT/OUTWEST to Digital Man on Wednesday, February 14, 2018 21:54:05
    Re: Raspberry PI synchronet problems
    By: Digital Man to Denn on Tue Feb 13 2018 11:05 pm

    I was going to look more into the wiki but its down right now (sigh).

    No, it's up. I just hit from hundreds of miles away. <shrug>

    for some reason it was'nt responding for about 30 minutes, It did work afterthat though, lol on the <shrug>

    "... -> - .- --. .-.. .. -. . --. --- . ... .... . .-. . <-"

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Denn@VERT/OUTWEST to Nightfox on Wednesday, February 14, 2018 22:00:46
    Re: Raspberry PI synchronet problems
    By: Nightfox to Denn on Wed Feb 14 2018 09:37 am

    You could run the console with sudo.. But I think it would be generally bad practice to run public-facing servers as root. If someone somehow gains shell access to your system through the server, you wouldn't want them having root privileges due to the process running as root.

    Once I get time to fix the binding problem It will most likely run.
    porbably just need to configure sbbs.ini
    Does Synchronet linux ver load with a console the same a windows Synchronet?

    "... "Friends help you. Real Friends help you bury dead bodies.""

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Denn@VERT/OUTWEST to KK4QBN on Wednesday, February 14, 2018 22:03:25
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Nightfox on Wed Feb 14 2018 04:14 pm

    I will look into it, the setup runs fine but I was assuming I could
    run the Console using sudo but I am missing something I guess.

    You could run the console with sudo.. But I think it would be
    generally bad practice to run public-facing servers as root. If
    someone somehow gains shell access to your system through the
    server, you wouldn't want them having root privileges due to the
    process running as root.

    afaik, SUDO only binds the ports, then the software is handed back to the user specified in sbbs.ini or cmdline.

    I kind of figured it must be a setup item I missed in sbbs.ini

    "... Why haven't we seen a Headline that says "psychic WINS Lottery?""

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Al@VERT/TRMB to Nightfox on Thursday, February 15, 2018 00:34:41
    Re: Raspberry PI synchronet problems
    By: Nightfox to KK4QBN on Wed Feb 14 2018 02:49 pm

    afaik, SUDO only binds the ports, then the software is handed back
    to the user specified in sbbs.ini or cmdline.

    sudo is a program that runs a program as root in Linux (sudo is short for "superuser do"). That's my understanding of it, unless there's more to it.

    That has always been my understanding. Mystics MIS server is run by "sudo ./mis" so it can bind the ports but all the files it creates are owned by the user who owns MIS. I think MIS may have been written to operate that way.

    Ttyl :-),
    Al


    ... I'm as confused as a baby in a topless bar.

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From KK4QBN@VERT/KK4QBN to Digital Man on Thursday, February 15, 2018 07:41:39
    Re: Raspberry PI synchronet problems
    By: Digital Man to KK4QBN on Wed Feb 14 2018 22:18:36

    I may have heard it wrong but I thought I heard Rob say at one time
    that sbbs was setup to bind the ports with sudo, then revert back to
    regular user privelidges, as I say "afaik" I may be completely wrong.

    No, that's right.

    Ok, wanted to be for sure.. I beleive it even shows it at the startup of sbbs after binding it changes uid and gid.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From KK4QBN@VERT/KK4QBN to Denn on Thursday, February 15, 2018 07:44:15
    Re: Raspberry PI synchronet problems
    By: Denn to KK4QBN on Wed Feb 14 2018 22:03:25

    user specified in sbbs.ini or cmdline.

    I kind of figured it must be a setup item I missed in sbbs.ini

    the linux config is mainly at the very bottom of sbbs.ini. but I suggest reading it from top to bottom.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Denn@VERT/OUTWEST to KK4QBN on Thursday, February 15, 2018 07:58:31
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Denn on Thu Feb 15 2018 07:44 am

    user specified in sbbs.ini or cmdline.

    I kind of figured it must be a setup item I missed in sbbs.ini

    the linux config is mainly at the very bottom of sbbs.ini. but I suggest reading it from top to bottom.


    OK here is what I get, I'm not sure how to set the environment varible.

    pi@rasp:~/sbbs $ sudo ~/sbbs/exec/sbbs

    Synchronet Console for Linux Version 3.17a Copyright 2016 Rob Swindell

    !SBBSCTRL environment variable not set, using default value: /sbbs/ctrl

    !ERROR 2 (No such file or directory) opening /sbbs/ctrl/sbbs.ini
    Using default initialization values
    !ERROR 2 changing directory to: /sbbs/ctrl
    Loading configuration files from /sbbs/ctrl
    !ERROR Loading Configuration Files: 2 (No such file or directory) opening /sbbs/ctrl/main.cnf

    It's trying to load the console but the wiki dose'nt show how to set the varible that I can see, I might have somehow missed it :)

    "... We all live in a yellow subroutine."

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Nightfox@VERT/DIGDIST to Denn on Thursday, February 15, 2018 09:37:35
    Re: Raspberry PI synchronet problems
    By: Denn to Nightfox on Wed Feb 14 2018 10:00 pm

    Does Synchronet linux ver load with a console the same a windows Synchronet?

    By default, no. The Linux SBBS runs at the console, although I remember seeing a (GTK?) GUI sbbs monitor for Linux that I think was meant to be similar to the SBBS GUI console for Windows. I run the Windows version though (I've only tried the Linux version a few times for testing), so I don't remember all the details.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Denn on Thursday, February 15, 2018 10:51:41
    Re: Raspberry PI synchronet problems
    By: Denn to KK4QBN on Thu Feb 15 2018 07:58 am

    It's trying to load the console but the wiki dose'nt show how to set the varible that I can see, I might have somehow missed it :)

    http://wiki.synchro.net/config:env

    digital man

    Synchronet/BBS Terminology Definition #37:
    NNTP = Network News Transfer Protocol
    Norco, CA WX: 66.1øF, 30.0% humidity, 2 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From KK4QBN@VERT/KK4QBN to Denn on Thursday, February 15, 2018 14:43:43
    Re: Raspberry PI synchronet problems
    By: Denn to KK4QBN on Thu Feb 15 2018 07:58:31

    Synchronet Console for Linux Version 3.17a Copyright 2016 Rob Swindell

    !SBBSCTRL environment variable not set, using default value: /sbbs/ctrl

    !ERROR 2 (No such file or directory) opening /sbbs/ctrl/sbbs.ini
    Using default initialization values
    !ERROR 2 changing directory to: /sbbs/ctrl
    Loading configuration files from /sbbs/ctrl
    !ERROR Loading Configuration Files: 2 (No such file or directory) opening /sbbs/ctrl/main.cnf

    you can set your SBBSCTRL environ var in many places, like ~/.bashrc ~/profile and under etc. but none of them still EVER work from me so I created a script to run sbbs console.

    #!/bin/bash
    set SBBSCTRL=/sbbs/ctrl/
    set LD_LIBRARY_PATH=/sbbs/exec/
    export SBBSCTRL=/sbbs/ctrl/
    export LD_LIBRARY_PATH=/sbbs/exec/
    cd /sbbs/exec
    sudo ./sbbs -unkk4qbn -ugk4qbn -hnkk4qbn.synchro.net -gi -nh -tf1 -tl10 -ta exit

    The script will ask your sudo passwd. notice I have LD_LIBRARY_PATH setup also because I was hacing issues with that..

    I set these variables up in all the correct place, yet sbbs still states they are not setup

    on the lines:
    cd /sbbs/exec
    sudo ./sbbs -unUNAME -ugUGRP -hnHOSTNAME -gi -nh -tf1 -tl10 -ta

    depending on YOUR setup yo do not need to pass that many switches, but you could:

    cd /sbbs/ctrl
    sudoo /sbbs/exec/sbbs --un -ug.. so on and so forth..

    and I have /sbbs symlinked to my ~/kk4qbn/sbbs.


    like I said.. even though I have set these vairables up like ALL FAQS have shown me to, SBBS still cannot pick the env var up.. under debian.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From KK4QBN@VERT/KK4QBN to Nightfox on Thursday, February 15, 2018 14:45:54
    Re: Raspberry PI synchronet problems
    By: Nightfox to Denn on Thu Feb 15 2018 09:37:35

    Does Synchronet linux ver load with a console the same a windows
    Synchronet?

    By default, no. The Linux SBBS runs at the console, although I remember seeing a (GTK?) GUI sbbs monitor for Linux that I think was meant to be similar to the SBBS GUI console for Windows. I run the Windows version though (I've only tried the Linux version a few times for testing), so I don't remember all the details.

    I run the SBBS console, just so I can monitor debug info, and also run gtkmonitor, or umonitor. umonitor is sdl and allows you to local spy, gtkmonitor does'nt allow local spy, but seems to me is 100% complete one can view all logs, change settings, rerun, etc from it..

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From KK4QBN@VERT/KK4QBN to Denn on Thursday, February 15, 2018 15:04:39
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Denn on Thu Feb 15 2018 14:43:43

    like I said.. even though I have set these vairables up like ALL FAQS have shown me to, SBBS still cannot pick the env var up.. under debian.

    I even tried what was suggested in the wiki

    SBBSCTRL=/sbbs/ctrl && export SBBSCTRL and still:

    kk4qbn@kk4qbn:/sbbs/exec$ ./runsbbs
    [sudo] password for kk4qbn:

    Synchronet Console for Linux Version 3.17a Copyright 2016 Rob Swindell

    !SBBSCTRL environment variable not set, using default value: /sbbs/ctrl


    this is in ~/.profile ~/.bash.profile AND in the script I use to run the SBBS console app. so the env var is actually set in the same term sbbs is being run in RIGHT before it is being run and still don't work.

    to make SCFG work right I either have to run /sbbs/exec/scfg /sbbs/ctrl
    or cd on /sbbs/ctrl and run ../exec/scfg

    it's crazy.. it should be working but will not..

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Digital Man@VERT to KK4QBN on Thursday, February 15, 2018 15:45:00
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Denn on Thu Feb 15 2018 03:04 pm

    Re: Raspberry PI synchronet problems
    By: KK4QBN to Denn on Thu Feb 15 2018 14:43:43

    like I said.. even though I have set these vairables up like ALL FAQS have shown me to, SBBS still cannot pick the env var up.. under debian.

    I even tried what was suggested in the wiki

    SBBSCTRL=/sbbs/ctrl && export SBBSCTRL and still:

    kk4qbn@kk4qbn:/sbbs/exec$ ./runsbbs

    What's in "runsbbs"?

    [sudo] password for kk4qbn:

    Synchronet Console for Linux Version 3.17a Copyright 2016 Rob Swindell

    !SBBSCTRL environment variable not set, using default value: /sbbs/ctrl


    this is in ~/.profile ~/.bash.profile AND in the script I use to run the SBBS console app. so the env var is actually set in the same term sbbs is being run in RIGHT before it is being run and still don't work.

    to make SCFG work right I either have to run /sbbs/exec/scfg /sbbs/ctrl
    or cd on /sbbs/ctrl and run ../exec/scfg

    it's crazy.. it should be working but will not..

    Sounds like a problem with your script. What if you just type this (no script): export SBBSCTRL=/sbbs/ctrl && /path/to/scfg
    or
    export SBBSCTRL=/sbbs/ctrl && /path/to/sbbs
    ?

    digital man

    This Is Spinal Tap quote #2:
    Nigel Tufnel: Well, this piece is called "Lick My Love Pump".
    Norco, CA WX: 70.3øF, 24.0% humidity, 8 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From KK4QBN@VERT/KK4QBN to Digital Man on Thursday, February 15, 2018 19:45:49
    Re: Raspberry PI synchronet problems
    By: Digital Man to KK4QBN on Thu Feb 15 2018 15:45:00

    Sounds like a problem with your script. What if you just type this (no script): export SBBSCTRL=/sbbs/ctrl && /path/to/scfg
    or
    export SBBSCTRL=/sbbs/ctrl && /path/to/sbbs

    Ok, that pulled scfg up, no issues, put it in a script and now working flawlessly as is sbbs.. but still wondering why it will not work machine wide.. I'll keep fooling around with the profile files, etc.. until it gets fixed.

    Tanks man.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Dumas Walker@VERT/CAPCITY2 to NIGHTFOX on Thursday, February 15, 2018 18:57:00
    afaik, SUDO only binds the ports, then the software is handed back to the >KK> user specified in sbbs.ini or cmdline.

    sudo is a program that runs a program as root in Linux (sudo is short for "superuser do"). That's my understanding of it, unless there's more to it.

    Correct, but my understanding of how synchronet works is that it "hands
    back" control of the bbs to the user account once it is done using the sudo user to bind the ports.

    DM will probably correct me here. :)

    ---
    þ SLMR 2.1a þ ....we came in?
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From KK4QBN@VERT/KK4QBN to Dumas Walker on Friday, February 16, 2018 00:49:11
    Re: Raspberry PI synchronet p
    By: Dumas Walker to NIGHTFOX on Thu Feb 15 2018 18:57:00

    Correct, but my understanding of how synchronet works is that it "hands back" control of the bbs to the user account once it is done using the sudo user to bind the ports.

    DM will probably correct me here. :)

    You are correct.. as per DM.. :)

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Denn@VERT/OUTWEST to Digital Man on Friday, February 16, 2018 10:16:19
    Re: Raspberry PI synchronet problems
    By: Digital Man to KK4QBN on Thu Feb 15 2018 03:45 pm

    Sounds like a problem with your script. What if you just type this (no script): export SBBSCTRL=/sbbs/ctrl && /path/to/scfg
    or
    export SBBSCTRL=/sbbs/ctrl && /path/to/sbbs
    ?

    I typed that, the varible works but I still get binding errors I will work on it this weekend, I think I may just need to set stuff up in sbbs.ini

    Once I get it all figured out using the command line I will make a script to load it all at startup.
    I know it's going to be something really simple that I missed lol.

    "... If you can't beat them, arrange to have them beaten."

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Denn@VERT/OUTWEST to KK4QBN on Friday, February 16, 2018 10:20:47
    Re: Raspberry PI synchronet problems
    By: KK4QBN to Digital Man on Thu Feb 15 2018 07:45 pm

    (no script): export SBBSCTRL=/sbbs/ctrl && /path/to/scfg
    or
    export SBBSCTRL=/sbbs/ctrl && /path/to/sbbs

    Ok, that pulled scfg up, no issues, put it in a script and now working flawlessly as is sbbs.. but still wondering why it will not work machine wide.. I'll keep fooling around with the profile files, etc.. until it gets fixed.

    scfg works np for me.
    just sbbs wont load till I fix the binding errors

    "... 53.7% of all statistics are totally incorrect"

    ---
    þ Synchronet þ the Outwest BBS - outwestbbs.com Telnet - outwestbbs.com:23
  • From Al@VERT/TRMB to Denn on Friday, February 16, 2018 12:30:22
    Re: Raspberry PI synchronet problems
    By: Denn to KK4QBN on Fri Feb 16 2018 10:20 am

    just sbbs wont load till I fix the binding errors

    I ran setcap on sbbs in my src/sbbs3/gcc.linux.x64.exe.debug directory. Setcap needs to be run as root. Use sudo or if that fails use su or just log in as root. The directory where your executibles are built may end in .release if you built a release version and may be a little different than mine. In a nutshell..

    setcap 'cap_net_bind_service=ep'

    That works for me to run sbbs as an unpriveleged user. There is more info on the wiki..

    http://wiki.synchro.net/howto:limux_non-root

    Ttyl :-),
    Al


    ... Why does a ship carry cargo and a truck carry shipments?

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Vk3jed@VERT/FREEWAY to Al on Saturday, February 17, 2018 08:16:00
    Al wrote to Nightfox <=-

    That has always been my understanding. Mystics MIS server is run by
    "sudo ./mis" so it can bind the ports but all the files it creates are owned by the user who owns MIS. I think MIS may have been written to operate that way.

    Yes, Mystic is able to run as the owner of the files in its home directory. Synchronet uses a more traditional approach, where to user to run as after binding ports is specified in a configuration file (sbbs.ini).


    ... Hard work never killed anybody, but why take a chance??
    --- MultiMail/Win32 v0.49
    þ Synchronet þ Freeway BBS, Bendigo Australia. freeway.apana.org.au
  • From KK4QBN@VERT/KK4QBN to Vk3jed on Friday, February 16, 2018 16:43:16
    Re: Re: Raspberry PI synchronet problems
    By: Vk3jed to Al on Sat Feb 17 2018 08:16:00

    Yes, Mystic is able to run as the owner of the files in its home directory. Synchronet uses a more traditional approach, where to user to run as after binding ports is specified in a configuration file (sbbs.ini).

    It can be specified on commandline too.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Tony Langdon@VERT to KK4QBN on Saturday, February 17, 2018 15:02:00
    KK4QBN wrote to Vk3jed <=-

    Re: Re: Raspberry PI synchronet problems
    By: Vk3jed to Al on Sat Feb 17 2018 08:16:00

    Yes, Mystic is able to run as the owner of the files in its home directory. Synchronet uses a more traditional approach, where to user to run as after binding ports is specified in a configuration file (sbbs.ini).

    It can be specified on commandline too.

    I haven't looked into that option.


    ... Blessed are the meek for they shall inherit the crap.
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Denn on Friday, February 16, 2018 23:12:28
    Re: Raspberry PI synchronet problems
    By: Denn to Digital Man on Fri Feb 16 2018 10:16 am

    Re: Raspberry PI synchronet problems
    By: Digital Man to KK4QBN on Thu Feb 15 2018 03:45 pm

    Sounds like a problem with your script. What if you just type this (no script): export SBBSCTRL=/sbbs/ctrl && /path/to/scfg
    or
    export SBBSCTRL=/sbbs/ctrl && /path/to/sbbs
    ?

    I typed that, the varible works but I still get binding errors I will work on it this weekend, I think I may just need to set stuff up in sbbs.ini

    Once I get it all figured out using the command line I will make a script to load it all at startup.

    But scripts have already been written (by those who know how) to start Synchronet as a *nix service: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/install/init.d/ http://wiki.synchro.net/howto:systemd

    digital man

    Synchronet "Real Fact" #99:
    You can leave a voicemail for The TechDorks (Stephen and I) at 951-523-7535. Norco, CA WX: 56.3øF, 30.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Al@VERT/TRMB to Vk3jed on Saturday, February 17, 2018 00:10:38
    Re: Re: Raspberry PI synchronet problems
    By: Vk3jed to Al on Sat Feb 17 2018 08:16 am

    Yes, Mystic is able to run as the owner of the files in its home directory. Synchronet uses a more traditional approach, where to user to run as after binding ports is specified in a configuration file (sbbs.ini).

    I think this BBS is ready to be daemonized now since I am not seeing any errors on the console now but I wonder if that can be done by an unpriveleged user?

    I have run sbbs daemonized before but I always ran it as root.

    Maybe the sudo method would work?

    Ttyl :-),
    Al


    ... Give a woman an inch and she'll park a car in it.

    ---
    þ Synchronet þ The Rusty MailBox - Penticton, BC Canada - trmb.synchro.net
  • From Tony Langdon@VERT to Al on Saturday, February 17, 2018 20:00:00
    Al wrote to Vk3jed <=-

    I have run sbbs daemonized before but I always ran it as root.

    Maybe the sudo method would work?

    You have 2 choices:

    Run SBBS as root/use sudo (which is essentially doing the same thing in a more convenient way), or you can use the setcap method and start it as the unprivileged user. The setcap method is on the wiki in the howtos (Linux non-root). I switched to the setcap method earlier today.


    ... Pure drivel tends to drive ordinary drivel off the TV screen.
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From KK4QBN@VERT/KK4QBN to Tony Langdon on Saturday, February 17, 2018 04:22:11
    Re: Re: Raspberry PI synchronet problems
    By: Tony Langdon to KK4QBN on Sat Feb 17 2018 15:02:00

    It can be specified on commandline too.

    I haven't looked into that option.

    ./sbbs -unUSERNAME -ugUSERGROUP -hnHOSTNAME

    think you can do a ./sbbs -? or /? for help

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA USA
  • From Tony Langdon@VERT to KK4QBN on Saturday, February 17, 2018 21:23:00
    KK4QBN wrote to Tony Langdon <=-

    ./sbbs -unUSERNAME -ugUSERGROUP -hnHOSTNAME

    think you can do a ./sbbs -? or /? for help

    Yeah, as I said, haven't had a need to look into it, though useful to know. :)


    ... "I'm sarcastic, what's your superpower?"
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net