• Installing binkd on Linux

    From Martin Foster@2:250/1.1 to All on Mon Feb 19 09:32:00 2018
    Greetings All!

    I want to install binkd in /usr/bin

    I do this:

    ./configure --prefix=/usr/bin

    make (as user)

    make install (as root)

    I look in /usr/bin but I don't see it and the reason why I don't see
    it is because it's been installed in /usr/bin/sbin - Huh?!

    Maybe I did something wrong?

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Alexandr Kruglikov@2:5053/58 to Martin Foster on Mon Feb 19 14:07:24 2018
    Good ${greeting_time}, Martin!

    19 Feb 18 09:32, you wrote to All:

    I do this:
    ./configure --prefix=/usr/bin
    make (as user)
    make install (as root)
    I look in /usr/bin but I don't see it and the reason why I don't see
    it is because it's been installed in /usr/bin/sbin - Huh?!
    Maybe I did something wrong?

    May be try use fine tuning of the installation directories?

    --sbindir=DIR system admin executables [EPREFIX/sbin]

    With best regards, Alexandr.

    --- "GoldED+/LNX 1.1.5-b20170303" ---
    * Origin: 24 hours in a day, 24 beers in a case, Hmmm... (2:5053/58)
  • From Alan Ianson@1:153/757 to Martin Foster on Mon Feb 19 02:49:40 2018
    Re: Installing binkd on Linux
    By: Martin Foster to All on Mon Feb 19 2018 09:32 am

    I want to install binkd in /usr/bin

    I do this:

    ./configure --prefix=/usr/bin

    Try --prefix=/usr

    Or you could edit the makefile before "make install".

    Ttyl :-),
    Al


    ... Enter that again, just a little slower.
    --- SBBSecho 3.03-Linux
    * Origin: The Rusty MailBox - Penticton, BC trmb.synchro.net (1:153/757)
  • From Alan Ianson@1:153/757 to Martin Foster on Mon Feb 19 03:03:57 2018
    Re: Installing binkd on Linux
    By: Martin Foster to All on Mon Feb 19 2018 09:32 am

    I want to install binkd in /usr/bin

    Now that I think about it some more.. :)

    By default binkd is placed in /usr/local/sbin, so if you have adjusted your prefix it may be in /usr/sbin.

    That location is not (normaly) on your path. I just invoke binkd like /usr/local/sbin/binkd ... but you could simply copy it to a location on your path like /usr/bin or /usr/local/bin if you want it in your path.

    Ttyl :-),
    Al


    ... Air conditioned environment - Do not open Windows.
    --- SBBSecho 3.03-Linux
    * Origin: The Rusty MailBox - Penticton, BC trmb.synchro.net (1:153/757)
  • From Vince Coen@2:250/1 to Martin Foster on Mon Feb 19 18:19:25 2018
    Hello Martin!

    Monday February 19 2018 09:32, you wrote to All:

    I want to install binkd in /usr/bin

    Why ?

    /usr/bin and likewise sbin should be used for the *nix system executables.

    Check if /usr/local/bin exists and if not create it as root with group and other settings as r-x (use chmod [-R]).



    I do this:

    ./configure --prefix=/usr/bin

    Here check the other settings for prefixes there usually is more than one such as :

    Installation directories:
    --prefix=PREFIX install architecture-independent files in PREFIX
    [/opt/mbse]
    --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
    [PREFIX]

    So you would set --prefix to /usr/local

    and the make should then use ${PREFIX}/bin


    make (as user)

    make install (as root)

    I look in /usr/bin but I don't see it and the reason why I don't see
    it is because it's been installed in /usr/bin/sbin - Huh?!

    Maybe I did something wrong?

    Yep.


    Vince

    --- Mageia Linux v5.1/Mbse v1.0.7.4/GoldED+/LNX 1.1.501-b20150715
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Michael Dukelsky@2:5020/1042 to Vince Coen on Mon Feb 19 23:01:18 2018
    Hello Vince,

    Monday February 19 2018, Vince Coen wrote to Martin Foster:

    I want to install binkd in /usr/bin

    Why ?

    /usr/bin and likewise sbin should be used for the *nix system
    executables.

    No, any executable that comes in a .rpm package go to /usr/bin or /usr/sbin. Programs that are started during the system start go to /usr/sbin and the rest to /usr/bin. Since normally binkd works as a daemon and is started during the system start, it should be installed in /usr/sbin.

    If Martin's system is rpm-based, then building binkd is simple:
    rpmbuild -ta binkd.tar.gz

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)
  • From Tony Langdon@3:633/410 to Alexandr Kruglikov on Tue Feb 20 06:58:00 2018
    Alexandr Kruglikov wrote to Martin Foster <=-

    Good ${greeting_time}, Martin!

    19 Feb 18 09:32, you wrote to All:

    I do this:
    ./configure --prefix=/usr/bin
    make (as user)
    make install (as root)
    I look in /usr/bin but I don't see it and the reason why I don't see
    it is because it's been installed in /usr/bin/sbin - Huh?!
    Maybe I did something wrong?

    May be try use fine tuning of the installation directories?

    --sbindir=DIR system admin executables [EPREFIX/sbin]

    That would appear to hold the key. To answer the OP's question, it looks like using:

    ./configure --prefix=/usr --sbindir=/usr/sbin

    should do the trick.

    I personally prefer to install software I compile myself into /usr/local(/bin|sbin), and leave /usr for software from packages.


    ... Scratch a lover and find a foe.
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
  • From Tony Langdon@3:633/410 to Alan Ianson on Tue Feb 20 07:03:00 2018
    Alan Ianson wrote to Martin Foster <=-

    By default binkd is placed in /usr/local/sbin, so if you have adjusted your prefix it may be in /usr/sbin.

    That location is not (normaly) on your path. I just invoke binkd like /usr/local/sbin/binkd ... but you could simply copy it to a location on your path like /usr/bin or /usr/local/bin if you want it in your path.

    For me, a non issue, I normally only call binkd from scripts, either the ones that start and monitor it, or scripts like "poll", which setup manual polls for nodes. As I said previously, I prefer the default location (/usr/local/sbin), as it is more in line with Linux standards.

    I wouldn't copy binkd. If you need to be able to reference it elsewhere in the filesystem, use a symlink. That way, you don't have multiple copies floating around (confusion when upgrading).

    ln -s /usr/local/sbin/binkd /usr/bin/binkd


    ... I can see clearly now, my brain is gone...
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
  • From Alexandr Kruglikov@2:5053/58 to Tony Langdon on Tue Feb 20 10:08:28 2018
    Good ${greeting_time}, Tony!

    *** Answering a msg posted in area CarbonArea (Мыльце для меня).

    20 Feb 18 06:58, you wrote to me:

    May be try use fine tuning of the installation directories?
    --sbindir=DIR system admin executables [EPREFIX/sbin]
    That would appear to hold the key. To answer the OP's question, it
    looks like using:
    ./configure --prefix=/usr --sbindir=/usr/sbin
    should do the trick.

    I personally prefer to install software I compile myself into /usr/local(/bin|sbin), and leave /usr for software from packages.

    I use /opt for such purposes =)

    With best regards, Alexandr.

    --- "GoldED+/LNX 1.1.5-b20170303" ---
    * Origin: 24 hours in a day, 24 beers in a case, Hmmm... (2:5053/58)
  • From Tony Langdon@3:633/410 to Alexandr Kruglikov on Tue Feb 20 21:37:00 2018
    Alexandr Kruglikov wrote to Tony Langdon <=-

    should do the trick.

    I personally prefer to install software I compile myself into /usr/local(/bin|sbin), and leave /usr for software from packages.

    I use /opt for such purposes =)

    /opt is best for the big apps, but small stuff in /usr/local. :)


    ... DOS never says EXCELLENT command or filename...
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
  • From Paul Quinn@3:640/1384 to Tony Langdon on Tue Feb 20 21:15:12 2018
    Hi! Tony,

    On 20 Feb 18 21:37, you wrote to Alexandr Kruglikov:

    I personally prefer to install software I compile myself into
    /usr/local(/bin|sbin), and leave /usr for software from packages.

    I use /opt for such purposes =)

    /opt is best for the big apps, but small stuff in /usr/local. :)

    Please define big, medium or small. ;-)

    I'm with Alexandr on this matter, for a number of reasons. Lets talk size then; I have three Fido machines each off of /opt/ftn/fido, the largest of which (this one) is a little over half a gig. (Ain't much of a filebase.) Then there's the small-medium system, and the little point system.

    I won't mention the other two binkD installs in some other /home/paul/xxaltfido
    trees that just move files around... oh bugger! Oops.

    Cheers,
    Paul.

    ... __________/oo\__________ "Is it OK to come out yet?"
    --- GoldED+/LNX 1.1.5-b20110213
    * Origin: Quinn's Rock - Live from Paul's Xubuntu desktop! (3:640/1384)
  • From Martin Foster@2:250/1.1 to Alan Ianson on Tue Feb 20 10:58:00 2018
    Hello Alan!

    On 19.02.18 at 02:49, Alan Ianson wrote to Martin Foster:

    Re: Installing binkd on Linux
    By: Martin Foster to All on Mon Feb 19 2018 09:32 am

    I want to install binkd in /usr/bin

    I do this:

    ./configure --prefix=/usr/bin

    Try --prefix=/usr

    If I did that, it would be installed to /usr/sbin

    Or you could edit the makefile before "make install".

    Don't want to do that, thanks ;-)

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Martin Foster@2:250/1.1 to Alan Ianson on Tue Feb 20 11:03:00 2018
    Hello Alan!

    On 19.02.18 at 03:03, Alan Ianson wrote to Martin Foster:

    Re: Installing binkd on Linux
    By: Martin Foster to All on Mon Feb 19 2018 09:32 am

    I want to install binkd in /usr/bin

    Now that I think about it some more.. :)

    Oh, please do :-))

    By default binkd is placed in /usr/local/sbin, so if you have adjusted your prefix it may be in /usr/sbin.

    That location is not (normaly) on your path.

    On my distro(PCLOS), it *is* on my path.

    I just invoke binkd like /usr/local/sbin/binkd ... but you could
    simply copy it to a location on your path like /usr/bin or /usr/
    local/bin if you want it in your path.

    Better idea would be to symlink it to somewhere on my path.

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Martin Foster@2:250/1.1 to Vince Coen on Tue Feb 20 11:06:00 2018
    Hello Vince!

    On 19.02.18 at 18:19, Vince Coen wrote to Martin Foster:

    Monday February 19 2018 09:32, you wrote to All:

    I want to install binkd in /usr/bin

    Why ?

    Personal preference :-)

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Martin Foster@2:250/1.1 to Michael Dukelsky on Tue Feb 20 11:08:00 2018
    Hello Michael!

    On 19.02.18 at 23:01, Michael Dukelsky wrote to Vince Coen:

    [..]
    If Martin's system is rpm-based, then building binkd is simple:
    rpmbuild -ta binkd.tar.gz

    Yes it is and I hadn't thought of building an RPM package, must give
    it a try ;)

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Martin Foster@2:250/1.1 to All on Tue Feb 20 11:24:00 2018
    Hello All!

    On 19.02.18 at 09:32, Martin Foster wrote to All:

    I want to install binkd in /usr/bin

    I do this:

    ./configure --prefix=/usr/bin
    [Rest deleted]

    First of all, I'd like to thank everbody for your informative and
    helpful replies which are *very* much appreciated.

    Out of all the solutions put forward, I've chosen this one:

    ./configure --prefix=/usr

    This actually installs binkd in /usr/sbin which is on my path and
    works best for me.

    Regards,
    Martin

    --- OpenXP 5.0.33
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Alexandr Kruglikov@2:5053/58 to Tony Langdon on Tue Feb 20 16:05:00 2018
    Good ${greeting_time}, Tony!

    *** Answering a msg posted in area CarbonArea (Mail for me).

    20 Feb 18 21:37, you wrote to me:

    I personally prefer to install software I compile myself into
    /usr/local(/bin|sbin), and leave /usr for software from packages.
    I use /opt for such purposes =)
    /opt is best for the big apps, but small stuff in /usr/local. :)

    FidoNet takes a huge place in my heart =D

    With best regards, Alexandr.

    --- "GoldED+/LNX 1.1.5-b20170303" ---
    * Origin: 24 hours in a day, 24 beers in a case, Hmmm... (2:5053/58)
  • From Alexandr Kruglikov@2:5053/58 to Paul Quinn on Tue Feb 20 16:13:42 2018
    Good ${greeting_time}, Paul!

    20 Feb 18 21:15, you wrote to Tony Langdon:

    I use /opt for such purposes =)
    /opt is best for the big apps, but small stuff in /usr/local. :)
    Please define big, medium or small. ;-)
    I'm with Alexandr on this matter, for a number of reasons.

    Thanks for the words of support =) My fido historically works in /home/fido =) Too many scripts need to be rewritten to move to /opt =(

    With best regards, Alexandr.

    --- "GoldED+/LNX 1.1.5-b20170303" ---
    * Origin: 24 hours in a day, 24 beers in a case, Hmmm... (2:5053/58)
  • From Vince Coen@2:250/1 to Martin Foster on Tue Feb 20 15:44:19 2018
    Hello Martin!

    Tuesday February 20 2018 11:06, you wrote to me:

    Hello Vince!

    On 19.02.18 at 18:19, Vince Coen wrote to Martin Foster:

    Monday February 19 2018 09:32, you wrote to All:

    I want to install binkd in /usr/bin

    Why ?

    Personal preference :-)

    Small point - I would assume here that binkd is only run by one user such as the one used for the bbs / mailer and that is not your normal login name.

    If so them build it and all other s/w used for the bbs/mailer etc to be in the local user ./bin directory. This will help keep the system secure.


    Vince

    --- Mageia Linux v5.1/Mbse v1.0.7.4/GoldED+/LNX 1.1.501-b20150715
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Tony Langdon@3:633/410 to Paul Quinn on Wed Feb 21 07:42:00 2018
    Paul Quinn wrote to Tony Langdon <=-

    Hi! Tony,

    On 20 Feb 18 21:37, you wrote to Alexandr Kruglikov:

    I personally prefer to install software I compile myself into
    /usr/local(/bin|sbin), and leave /usr for software from packages.

    I use /opt for such purposes =)

    /opt is best for the big apps, but small stuff in /usr/local. :)

    Please define big, medium or small. ;-)

    Big - majot application suite, which may have its own libraries and other data files. - an example from the early days was OpenOffice, before it came packaged with Linux distros. There have been a few other things of comparable size that tended to be installed into /opt. Strictly speaking, BBSs, which have a fairly involved directory structure could be installed under /opt (e.g. /opt/sbbs, /opt/mystic, etc), though most of us, myself included, don't do this.

    Small - utilities and single purpose programs. binkd only does one thing (it's an FTN mailer). One could argue it's part of the BBS and install it into the BBS's binary directory (e.g. /opt/sbbs/exec). More than one way to skin a cat. ;) What I personally wouldn't do though is install it into /opt/binkd. That seems a bit overkill.

    I'm with Alexandr on this matter, for a number of reasons. Lets talk
    size then; I have three Fido machines each off of /opt/ftn/fido, the largest of which (this one) is a little over half a gig. (Ain't much
    of a filebase.) Then there's the small-medium system, and the little
    point system.

    Sure, the BBS as a whole would be a good fit for /opt . But I was talking about binkd in isolation, rather than the BBS as a whole.

    I won't mention the other two binkD installs in some other /home/paul/xxaltfido trees that just move files around... oh bugger!
    Oops.

    Haha, as I alluded to above, I think we all break the recommended standards in some way. :D


    ... Buckle up; it makes it harder for the aliens to suck you out of the car. === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
  • From Tony Langdon@3:633/410 to Alexandr Kruglikov on Wed Feb 21 07:43:00 2018
    Alexandr Kruglikov wrote to Tony Langdon <=-

    FidoNet takes a huge place in my heart =D

    /opt/heart/fidonet? ;P


    ... Ever caught yourself reading taglines and skipping messages?
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
  • From andrew clarke@3:633/267 to Alexandr Kruglikov on Wed Feb 21 12:47:12 2018
    20 Feb 18 16:05, you wrote to Tony Langdon:

    I personally prefer to install software I compile myself into
    /usr/local(/bin|sbin), and leave /usr for software from packages.
    I use /opt for such purposes =)
    /opt is best for the big apps, but small stuff in /usr/local. :)

    FidoNet takes a huge place in my heart =D

    Then...

    --prefix=/

    ;-)

    --- GoldED+/BSD 1.1.5-b20170303
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)