• Which subdirectory for a usedr-specific executable?

    From Richard Owlett@21:1/5 to All on Thu Oct 3 15:00:01 2024
    Is there standard/recommended location for an executable to be used by
    only a one user?
    In my case it should be under /home/richard/ .
    But where?

    TIA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Thu Oct 3 15:20:01 2024
    Is there standard/recommended location for an executable to be used by only
    a one user?
    In my case it should be under /home/richard/ .
    But where?

    I'd put it in ~/bin


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerome BENOIT@21:1/5 to Richard Owlett on Thu Oct 3 15:30:01 2024
    Hello Richard,

    the /etc/skel/.profile add to PATH ~/bin and ~/.local/bin if they exist.

    On 03/10/2024 14:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    hth,
    Jerome



    TIA


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to Stefan Monnier on Thu Oct 3 15:30:02 2024
    On 10/03/2024 08:11 AM, Stefan Monnier wrote:
    Is there standard/recommended location for an executable to be used by only >> a one user?
    In my case it should be under /home/richard/ .
    But where?

    I'd put it in ~/bin


    Stefan



    As /home/richard/bin does not exist, I assume the answer is to create
    that sub-directory?

    TIA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Stefan Monnier on Thu Oct 3 15:30:01 2024
    On Thu, Oct 03, 2024 at 09:11:39AM -0400, Stefan Monnier wrote:
    Is there standard/recommended location for an executable to be used by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    I'd put it in ~/bin

    That's where mine live, too.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZv6bAAAKCRAFyCz1etHa RgHkAJ43gm4O6kneHqY9PX37zZ7aNp6wqQCff9i098cfgIwjvmAk3D/Bcuf0fAs=
    =Dd06
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?utf-8?B?S2rDtnJsaW5n?=@21:1/5 to All on Thu Oct 3 15:40:01 2024
    On 3 Oct 2024 07:51 -0500, from rowlett@access.net (Richard Owlett):
    Is there standard/recommended location for an executable to be used by only
    a one user?
    In my case it should be under /home/richard/ .
    But where?

    The XDG Base Directory Specification recommends ~/.local/bin for
    "user-specific executable files".

    https://specifications.freedesktop.org/basedir-spec/latest/index.html#variables

    systemd also recommends that same directory for "executables that
    shall appear in the user's $PATH search path".

    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#Home%20Directory

    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#~/.local/bin/

    I would say that meets your requirements as stated.

    --
    Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?utf-8?B?S2rDtnJsaW5n?=@21:1/5 to All on Thu Oct 3 15:50:02 2024
    On 3 Oct 2024 15:40 +0200, from tomas@tuxteam.de:
    Is there standard/recommended location for [...]

    The XDG Base Directory Specification recommends [...]

    Glad mine is just a computer, not a desktop ;-)

    Seriously: that's why I walked away from this desktop craze years
    ago. Sure, I still have to have a rough idea of how it works, to
    be able to help other people fix their computers, but... my $HOME
    is mine.

    You are free to arrange your files in whatever manner you prefer.
    However, OP specifically asked for a "standard/recommended location".
    Unlike the other answers I've seen in the thread so far (which are
    personal anecdata), my answer provides one such, with references.

    --
    Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to Jerome BENOIT on Thu Oct 3 15:40:01 2024
    On 10/03/2024 08:03 AM, Jerome BENOIT wrote:
    Hello Richard,

    the /etc/skel/.profile add to PATH ~/bin and ~/.local/bin if they exist.

    On 03/10/2024 14:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used by
    only a one user?
    In my case it should be under /home/richard/ .
    But where?

    hth,
    Jerome



    TIA




    That answers a slightly different question.
    For my specific case I wish to avoid the use of PATH.
    [adding details will only cause confusion]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to All on Thu Oct 3 15:50:01 2024
    On Thu, Oct 03, 2024 at 01:31:14PM +0000, Michael Kjörling wrote:
    On 3 Oct 2024 07:51 -0500, from rowlett@access.net (Richard Owlett):
    Is there standard/recommended location for an executable to be used by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    The XDG Base Directory Specification recommends ~/.local/bin for "user-specific executable files".

    Glad mine is just a computer, not a desktop ;-)

    Seriously: that's why I walked away from this desktop craze years
    ago. Sure, I still have to have a rough idea of how it works, to
    be able to help other people fix their computers, but... my $HOME
    is mine.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZv6ewwAKCRAFyCz1etHa RkquAJ9SAUyj5LGF1RQIFZaLuR3V7KVVdgCeOgzuCTjnYXiEoSuQyYQIU0en3XM=
    =g80A
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Richard Owlett on Thu Oct 3 15:50:01 2024
    On Thu 03 Oct 2024 at 08:31:08 (-0500), Richard Owlett wrote:
    On 10/03/2024 08:03 AM, Jerome BENOIT wrote:
    On 03/10/2024 14:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be
    used by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    the /etc/skel/.profile add to PATH ~/bin and ~/.local/bin if they exist.

    That answers a slightly different question.
    For my specific case I wish to avoid the use of PATH.
    [adding details will only cause confusion]

    Then obviously you should put it anywhere /except/ in one of those two directories, so that it /won't/ be included in your PATH.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to All on Thu Oct 3 16:50:02 2024
    On 10/03/2024 08:45 AM, Michael Kjörling wrote:
    On 3 Oct 2024 15:40 +0200, from tomas@tuxteam.de:
    Is there standard/recommended location for [...]

    The XDG Base Directory Specification recommends [...]

    Glad mine is just a computer, not a desktop ;-)

    Seriously: that's why I walked away from this desktop craze years
    ago. Sure, I still have to have a rough idea of how it works, to
    be able to help other people fix their computers, but... my $HOME
    is mine.

    You are free to arrange your files in whatever manner you prefer.
    However, OP specifically asked for a "standard/recommended location".
    Unlike the other answers I've seen in the thread so far (which are
    personal anecdata), my answer provides one such, with references.


    Actual specifications are worth the bother >99% of the time.
    My actual background is primarily component level analog and was doing
    "end user support" in mid-60's.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to All on Thu Oct 3 16:30:01 2024
    On 10/03/2024 08:31 AM, Michael Kjörling wrote:
    On 3 Oct 2024 07:51 -0500, from rowlett@access.net (Richard Owlett):
    Is there standard/recommended location for an executable to be used by only >> a one user?
    In my case it should be under /home/richard/ .
    But where?

    The XDG Base Directory Specification recommends ~/.local/bin for "user-specific executable files".

    https://specifications.freedesktop.org/basedir-spec/latest/index.html#variables

    systemd also recommends that same directory for "executables that
    shall appear in the user's $PATH search path".

    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#Home%20Directory

    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#~/.local/bin/

    I would say that meets your requirements as stated.


    All portions of those two documents are going be relevant to my project
    [not just the referenced sections].
    Thank you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to David Wright on Thu Oct 3 16:50:02 2024
    On 10/03/2024 08:43 AM, David Wright wrote:
    On Thu 03 Oct 2024 at 08:31:08 (-0500), Richard Owlett wrote:
    On 10/03/2024 08:03 AM, Jerome BENOIT wrote:
    On 03/10/2024 14:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be
    used by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    the /etc/skel/.profile add to PATH ~/bin and ~/.local/bin if they exist.

    That answers a slightly different question.
    For my specific case I wish to avoid the use of PATH.
    [adding details will only cause confusion]

    Then obviously you should put it anywhere /except/ in one of those two directories, so that it /won't/ be included in your PATH.

    Which is why I said thank you to Michael for the standards.
    They are going to prevent problems unrelated to this thread.


    Cheers,
    David.



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From NNTP Surfer@21:1/5 to Richard Owlett on Thu Oct 3 21:40:01 2024
    Richard Owlett <rowlett@access.net> writes:

    Is there standard/recommended location for an executable to be used by
    only a one user?

    I use Debian and I throw every executable in ~/.local/bin, everything just works without any additional setup.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Richard Owlett on Fri Oct 4 01:40:01 2024
    On 10/3/24 05:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used by
    only a one user?
    In my case it should be under /home/richard/ .
    But where?

    TIA



    It would help if you told us about the executable and the context for
    its use -- e.g. self-contain binary for shell usage, one of several
    programs included in a large graphical user interface application suite
    that requires a specific desktop environment, etc.


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to David Christensen on Fri Oct 4 13:50:01 2024
    On 10/03/2024 06:34 PM, David Christensen wrote:
    On 10/3/24 05:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used by
    only a one user?
    In my case it should be under /home/richard/ .
    But where?

    TIA



    It would help if you told us about the executable and the context for
    its use -- e.g. self-contain binary for shell usage, one of several
    programs included in a large graphical user interface application suite
    that requires a specific desktop environment, etc.


    David



    <chuckle> If life were only that simple.
    This started out with planning to update my PRIMARY system from
    32 bit Debian 9 with SeaMonkey 2.49.4
    to
    64 bit Debian 12 with SeaMonkey 2.53.19

    The 32 bit system resembles Topsy. It "just grew".
    My goal for the 64 bit system is that it more closely conform to the expectations of Debian.

    For some indeterminate time BOTH versions of SeaMonkey *MUST* run on
    both the 32 and 64 bit systems.

    From a SeaMonkey list I've gotten the needed information to have two incompatible versions coexist. It's a known problem.

    So my question in a way becomes "Where do I _not put_ SeaMonkey
    executable to avoid future clashes?"

    Michael Kjörling referred me to specific sections of https://specifications.freedesktop.org/basedir-spec/latest/index.html
    and
    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html
    .
    I needed the introductory material in both.
    I will be carefully re-reading both.
    I suspect it will be valuable to browse www.freedesktop.org generally.
    [ I'll likely learn what questions I should be asking. ]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Richard Owlett on Sat Oct 5 01:50:01 2024
    On 10/4/24 04:47, Richard Owlett wrote:
    On 10/03/2024 06:34 PM, David Christensen wrote:
    On 10/3/24 05:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used
    by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    It would help if you told us about the executable and the context for
    its use -- e.g. self-contain binary for shell usage, one of several
    programs included in a large graphical user interface application
    suite that requires a specific desktop environment, etc.

    <chuckle> If life were only that simple.
    This started out with planning to update my PRIMARY system from
       32 bit Debian  9 with SeaMonkey 2.49.4
    to
       64 bit Debian 12 with SeaMonkey 2.53.19

    The 32 bit system resembles Topsy. It "just grew".
    My goal for the 64 bit system is that it more closely conform to the expectations of Debian.

    For some indeterminate time BOTH versions of SeaMonkey *MUST* run on
    both the 32 and 64 bit systems.

    From a SeaMonkey list I've gotten the needed information to have two incompatible versions coexist. It's a known problem.

    So my question in a way becomes "Where do I _not put_ SeaMonkey
    executable to avoid future clashes?"

    Michael Kjörling referred me to specific sections of https://specifications.freedesktop.org/basedir-spec/latest/index.html
    and https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html . I needed the introductory material in both.
    I will be carefully re-reading both.
    I suspect it will be valuable to browse www.freedesktop.org generally.
    [ I'll likely learn what questions I should be asking. ]


    SeaMonkey does not appear to be available as a Debian package:

    https://packages.debian.org/search?keywords=seamonkey&searchon=names&suite=all&section=all


    STFW I see downloadable packages for SeaMonkey:

    https://www.seamonkey-project.org/releases/


    Rather than trying to do an in-place upgrade of your primary system, I
    suggest implementing regular backups on your current primary system,
    building a new primary system with 64 bit Debian 12 with SeaMonkey
    2.53.19, restoring your data onto the new primary system, and
    implementing regular backups of your new primary system.


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to David Christensen on Sat Oct 5 10:40:01 2024
    On 10/04/2024 06:44 PM, David Christensen wrote:
    On 10/4/24 04:47, Richard Owlett wrote:
    On 10/03/2024 06:34 PM, David Christensen wrote:
    On 10/3/24 05:51, Richard Owlett wrote:
    Is there standard/recommended location for an executable to be used
    by only a one user?
    In my case it should be under /home/richard/ .
    But where?

    It would help if you told us about the executable and the context for
    its use -- e.g. self-contain binary for shell usage, one of several
    programs included in a large graphical user interface application
    suite that requires a specific desktop environment, etc.

    <chuckle> If life were only that simple.
    This started out with planning to update my PRIMARY system from
        32 bit Debian  9 with SeaMonkey 2.49.4
    to
        64 bit Debian 12 with SeaMonkey 2.53.19

    The 32 bit system resembles Topsy. It "just grew".
    My goal for the 64 bit system is that it more closely conform to the
    expectations of Debian.

    For some indeterminate time BOTH versions of SeaMonkey *MUST* run on
    both the 32 and 64 bit systems.

     From a SeaMonkey list I've gotten the needed information to have two
    incompatible versions coexist. It's a known problem.

    So my question in a way becomes "Where do I _not put_ SeaMonkey
    executable to avoid future clashes?"

    Michael Kjörling referred me to specific sections of
    https://specifications.freedesktop.org/basedir-spec/latest/index.html
    and
    https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html >> .
    I needed the introductory material in both.
    I will be carefully re-reading both.
    I suspect it will be valuable to browse www.freedesktop.org generally.
    [ I'll likely learn what questions I should be asking. ]


    SeaMonkey does not appear to be available as a Debian package:

    https://packages.debian.org/search?keywords=seamonkey&searchon=names&suite=all&section=all


    As far as I know it never has been.
    I have been using it or its predecessors since the days of Netscape
    Navigator.



    STFW I see downloadable packages for SeaMonkey:

    https://www.seamonkey-project.org/releases/


    Rather than trying to do an in-place upgrade of your primary system, I suggest implementing regular backups on your current primary system, building a new primary system with 64 bit Debian 12 with SeaMonkey
    2.53.19, restoring your data onto the new primary system, and
    implementing regular backups of your new primary system.


    *ROFL* That is the correct standard advice.
    [ also a demo of why I ask SeaMonkey questions on SeaMonkey fora ]
    I also take your suggestion one level deeper by doing it all on a
    physically separate scratch test hardware when some would say doing it
    in VM environment is enough isolation.
    On a previous SeaMonkey update I demonstrated why one has backups ;/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)