• Re: Is there a calendar program for RasPiOS ?

    From Daniel James@21:1/5 to Lawrence D'Oliveiro on Sun Mar 16 11:33:25 2025
    On 10/03/2025 23:37, Lawrence D'Oliveiro wrote:
    That’s why the separate “cal” program is included in the same package.

    Actually, cal is just a symlink to ncal. The program looks at the
    commandline to see whether it has been invoked as cal or as ncal and
    adapts its behaviour accordingly.

    $ ls -al /usr/bin/cal
    lrwxrwxrwx 1 root root 4 Feb 20 2023 /usr/bin/cal -> ncal


    --
    Cheers,
    Daniel.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bp@www.zefox.net@21:1/5 to All on Mon Mar 10 19:11:18 2025
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.


    Thanks for reading,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to bp@www.zefox.net on Mon Mar 10 19:27:45 2025
    On 10/03/2025 19:11, bp@www.zefox.net wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.


    Thanks for reading,

    bob prohaska


    Have you tried:
    $ apt search calendar



    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to bp@www.zefox.net on Mon Mar 10 20:56:15 2025
    On 10/03/2025 20:37, bp@www.zefox.net wrote:


    It's hard to believe what I'm looking for doesn't exist, more likely I'm
    just not using the right search terms.

    Remember most applications are not written by people who want a simple
    useful tool, but by coders whose only method of penis enlargement is to
    write enormously complex code in an obscure language that does
    everything except the one thing you actually want.

    --
    Labour - a bunch of rich people convincing poor people to vote for rich
    people by telling poor people that "other" rich people are the reason
    they are poor.

    Peter Thompson

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bp@www.zefox.net@21:1/5 to Chris Townley on Mon Mar 10 20:37:39 2025
    Chris Townley <news@cct-net.co.uk> wrote:
    On 10/03/2025 19:11, bp@www.zefox.net wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.


    Thanks for reading,

    bob prohaska


    Have you tried:
    $ apt search calendar


    Yes, that's where I started. The "calendar" program is laden with trivia and returns a syntax error for something sensible like
    calendar 2025 or
    calendar may 2025 to display a calendar for the month.

    There are a flood of other entries from "apt search calendar" but none seem recognizably likely to simply monthly or yearly calendar, like the paper version. It's a little surprising a calendar of some sort isn't included
    under the raspberry "Accessories" menu.

    It's hard to believe what I'm looking for doesn't exist, more likely I'm
    just not using the right search terms.

    Thanks for writing,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to All on Mon Mar 10 21:45:17 2025
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this <https://packages.debian.org/bookworm/ncal>:

    This package contains the "ncal" program and the traditional "cal"
    program, both are commonly found on BSD-style systems. This
    utility displays a simple calendar in a traditional or an
    alternative and more advanced layout, and the date of Easter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lars Poulsen@21:1/5 to bp@www.zefox.net on Mon Mar 10 22:24:38 2025
    On 2025-03-10, bp@www.zefox.net <bp@www.zefox.net> wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.

    In Fedora, the "cal" command comes with the system. It is also included
    in the Ubuntu version of WSL2, so you may already have it.

    Try "cal 2025" ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan B. Horen@21:1/5 to Lawrence D'Oliveiro on Mon Mar 10 18:46:25 2025
    On 3/10/25 17:45, Lawrence D'Oliveiro wrote:
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this <https://packages.debian.org/bookworm/ncal>:

    This package contains the "ncal" program and the traditional "cal"
    program, both are commonly found on BSD-style systems. This
    utility displays a simple calendar in a traditional or an
    alternative and more advanced layout, and the date of Easter.

    Out-of-the-box "ncal" gives a weird (to me) *vertically-oriented* output:

    March 2025
    Mo 3 10 17 24 31
    Tu 4 11 18 25
    We 5 12 19 26
    Th 6 13 20 27
    Fr 7 14 21 28
    Sa 1 8 15 22 29
    Su 2 9 16 23 30

    I prefer the traditional, horizontally-aligned presentation ("ncal -b"):

    March 2025
    Mo Tu We Th Fr Sa Su
    1 2
    3 4 5 6 7 8 9
    10 11 12 13 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30
    31

    --
    You can have everything, and still not have enough.
    I'd give it all up, for just a little more.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bp@www.zefox.net@21:1/5 to Lawrence D'Oliveiro on Mon Mar 10 22:25:50 2025
    Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this <https://packages.debian.org/bookworm/ncal>:

    Thank you! I was using apt search and the result was very cluttered.

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to All on Mon Mar 10 23:43:22 2025
    On Mon, 10 Mar 2025 22:25:50 -0000 (UTC), bp wrote:

    Thank you! I was using apt search and the result was very cluttered.

    I must admit I had some clues. I remembered there were packages
    containing BSD-style utilities. In my Debian Unstable setup, I found
    one called “bsdmainutils”, which is actually just a dummy “transitional” package, but it had these dependencies:

    Depends: bsdutils (>= 3.0-0), debianutils (>= 1.8), bsdextrautils (>= 2.35.2-7), ncal

    Soon as I saw that “ncal” on the end, I knew where to look further.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to The Natural Philosopher on Mon Mar 10 23:18:08 2025
    On 10/03/2025 20:56, The Natural Philosopher wrote:
    On 10/03/2025 20:37, bp@www.zefox.net wrote:


    It's hard to believe what I'm looking for doesn't exist, more likely I'm
    just not using the right search terms.

    Remember most applications are not written by people who want a simple
    useful tool, but by coders whose only method of penis enlargement is to
    write enormously complex code in an obscure language that does
    everything except the one thing you actually want.


    +1
    rotfl

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charlie Gibbs@21:1/5 to The Natural Philosopher on Mon Mar 10 23:59:42 2025
    On 2025-03-10, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 10/03/2025 20:37, bp@www.zefox.net wrote:

    It's hard to believe what I'm looking for doesn't exist, more likely I'm
    just not using the right search terms.

    Remember most applications are not written by people who want a simple
    useful tool, but by coders whose only method of penis enlargement is to
    write enormously complex code in an obscure language that does
    everything except the one thing you actually want.

    Sometimes. At other times they're writing it that way under duress,
    having been ordered to do so by the top brass who have been seduced
    by the marketing department.

    --
    /~\ Charlie Gibbs | Growth for the sake of
    \ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
    X I'm really at ac.dekanfrus | of the cancer cell.
    / \ if you read it the right way. | -- Edward Abbey

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Jonathan B. Horen on Mon Mar 10 23:37:55 2025
    On Mon, 10 Mar 2025 18:46:25 -0400, Jonathan B. Horen wrote:

    Out-of-the-box "ncal" gives a weird (to me) *vertically-oriented*
    output:

    That’s why the separate “cal” program is included in the same package.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Lars Poulsen on Mon Mar 10 23:39:25 2025
    On Mon, 10 Mar 2025 22:24:38 -0000 (UTC), Lars Poulsen wrote:

    Try "cal 2025" ...

    I can imagine people trying “cal 25” and making assumptions about what they’re seeing ... only to get a rude shock at some point later on ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to bp@www.zefox.net on Tue Mar 11 07:17:58 2025
    bp@www.zefox.net wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.

    The 'cal' command is in package ncal.

    You need the 'apt-file' command to be able to find things like this,
    with:-

    apt-file search /usr/bin/cal

    This produces more hits than just ncal but it's easy enough to se the
    one you want.


    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Jonathan B. Horen on Tue Mar 11 08:05:23 2025
    On 10/03/2025 22:46, Jonathan B. Horen wrote:
    On 3/10/25 17:45, Lawrence D'Oliveiro wrote:
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this
    <https://packages.debian.org/bookworm/ncal>:

         This package contains the "ncal" program and the traditional "cal" >>      program, both are commonly found on BSD-style systems. This
         utility displays a simple calendar in a traditional or an
         alternative and more advanced layout, and the date of Easter.

    Out-of-the-box "ncal" gives a weird (to me) *vertically-oriented* output:

    $ cal
    March 2025
    Su Mo Tu We Th Fr Sa
    1
    2 3 4 5 6 7 8
    9 10 11 12 13 14 15
    16 17 18 19 20 21 22
    23 24 25 26 27 28 29
    30 31

    So use cal instead

        March 2025
    Mo     3 10 17 24 31
    Tu     4 11 18 25
    We     5 12 19 26
    Th     6 13 20 27
    Fr     7 14 21 28
    Sa  1  8 15 22 29
    Su  2  9 16 23 30

    I prefer the traditional, horizontally-aligned presentation ("ncal -b"):

         March 2025
    Mo Tu We Th Fr Sa Su
                    1  2
     3  4  5  6  7  8  9
    10 11 12 13 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30
    31


    --
    “A leader is best When people barely know he exists. Of a good leader,
    who talks little,When his work is done, his aim fulfilled,They will say,
    “We did this ourselves.”

    ― Lao Tzu, Tao Te Ching

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to Jonathan B. Horen on Tue Mar 11 11:47:32 2025
    "Jonathan B. Horen" <me@behere.now> writes:

    I prefer the traditional, horizontally-aligned presentation ("ncal -b"):

    March 2025
    Mo Tu We Th Fr Sa Su
    1 2
    3 4 5 6 7 8 9
    10 11 12 13 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30
    31

    Sure. ncal even does week numbers for those of us
    who live where those are commonly used and I also like to output three
    months at a time:

    $ ncal -b -w -3

    February 2025 March 2025 April 2025
    w| Mo Tu We Th Fr Sa Su w| Mo Tu We Th Fr Sa Su w| Mo Tu We Th Fr Sa Su
    5| 1 2 9| 1 2 14| 1 2 3 4 5 6
    6| 3 4 5 6 7 8 9 10| 3 4 5 6 7 8 9 15| 7 8 9 10 11 12 13
    7| 10 11 12 13 14 15 16 11| 10 11 12 13 14 15 16 16| 14 15 16 17 18 19 20
    8| 17 18 19 20 21 22 23 12| 17 18 19 20 21 22 23 17| 21 22 23 24 25 26 27
    9| 24 25 26 27 28 13| 24 25 26 27 28 29 30 18| 28 29 30
    14| 31

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Theo@21:1/5 to bp@www.zefox.net on Tue Mar 11 10:55:04 2025
    bp@www.zefox.net wrote:
    Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this <https://packages.debian.org/bookworm/ncal>:

    Thank you! I was using apt search and the result was very cluttered.

    If you go to:
    https://packages.debian.org/

    Search the contents of packages
    packages that contain files named like this
    Enter 'cal'
    Click Search

    it says:

    "You have searched for files named cal in suite bookworm, all sections, and all architectures. Found 2 results.
    File Packages
    /usr/bin/cal ncal
    /usr/lib/plan9/bin/cal 9base"

    so you need either the 'ncal' or the '9base' package.

    On Ubuntu ncal comes as standard - I haven't tried the Plan9 versions.

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pancho@21:1/5 to Jonathan B. Horen on Tue Mar 11 17:05:12 2025
    On 3/10/25 22:46, Jonathan B. Horen wrote:
    On 3/10/25 17:45, Lawrence D'Oliveiro wrote:
    On Mon, 10 Mar 2025 19:11:18 -0000 (UTC), bp wrote:

    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS?

    Took me about two minutes to find this
    <https://packages.debian.org/bookworm/ncal>:

         This package contains the "ncal" program and the traditional "cal" >>      program, both are commonly found on BSD-style systems. This
         utility displays a simple calendar in a traditional or an
         alternative and more advanced layout, and the date of Easter.

    Out-of-the-box "ncal" gives a weird (to me) *vertically-oriented* output:

        March 2025
    Mo     3 10 17 24 31
    Tu     4 11 18 25
    We     5 12 19 26
    Th     6 13 20 27
    Fr     7 14 21 28
    Sa  1  8 15 22 29
    Su  2  9 16 23 30

    I prefer the traditional, horizontally-aligned presentation ("ncal -b"):

         March 2025
    Mo Tu We Th Fr Sa Su
                    1  2
     3  4  5  6  7  8  9
    10 11 12 13 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30
    31


    ncal -b 9 1752

    September 1752
    Mo Tu We Th Fr Sa Su
    1 2 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30

    That one always brings a smile to my face.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to Theo on Tue Mar 11 16:56:58 2025
    On 11/03/2025 10:55, Theo wrote:

    so you need either the 'ncal' or the '9base' package.

    On Ubuntu ncal comes as standard - I haven't tried the Plan9 versions.

    Theo

    My 22.04LTS full desktop doesn't have it

    Maybe you installed it separately?


    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tauno Voipio@21:1/5 to Chris Townley on Tue Mar 11 21:21:37 2025
    On 11.3.2025 18.56, Chris Townley wrote:
    On 11/03/2025 10:55, Theo wrote:

    so you need either the 'ncal' or the '9base' package.

    On Ubuntu ncal comes as standard - I haven't tried the Plan9 versions.

    Theo

    My 22.04LTS full desktop doesn't have it

    Maybe you installed it separately?


    Both ncal and 9base are separate packages. ncal is just the
    calendar thing, 9base is a collection utilities. It will mess
    with many of the more usual Ubuntu utilities.

    In Ubuntu 22.04LTS:
    ncal 12.1.7+nmu3ubuntu2
    9base 1:6-11

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Pancho on Tue Mar 11 21:15:19 2025
    On Tue, 11 Mar 2025 17:05:12 +0000, Pancho wrote:

    ncal -b 9 1752

    September 1752
    Mo Tu We Th Fr Sa Su
    1 2 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30

    I wondered why 1752, then I discovered it’s defaulting to the British
    Empire.

    root@ubuntu-24-04:/ # ncal -sIT 10 1582
    October 1582
    Mo 1 18 25
    Tu 2 19 26
    We 3 20 27
    Th 4 21 28
    Fr 15 22 29
    Sa 16 23 30
    Su 17 24 31

    But if you want cal-style format

    root@ubuntu-24-04:/ # ncal -bsIT 10 1582
    October 1582
    Mo Tu We Th Fr Sa Su
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30 31

    Sigh ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pancho@21:1/5 to Lawrence D'Oliveiro on Tue Mar 11 22:47:43 2025
    On 3/11/25 21:15, Lawrence D'Oliveiro wrote:
    On Tue, 11 Mar 2025 17:05:12 +0000, Pancho wrote:

    ncal -b 9 1752

    September 1752
    Mo Tu We Th Fr Sa Su
    1 2 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30

    I wondered why 1752, then I discovered it’s defaulting to the British Empire.

    root@ubuntu-24-04:/ # ncal -sIT 10 1582
    October 1582
    Mo 1 18 25
    Tu 2 19 26
    We 3 20 27
    Th 4 21 28
    Fr 15 22 29
    Sa 16 23 30
    Su 17 24 31

    But if you want cal-style format

    root@ubuntu-24-04:/ # ncal -bsIT 10 1582
    October 1582
    Mo Tu We Th Fr Sa Su
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30 31

    Sigh ...

    Damn, you've destroyed one of my youthful idols.

    Bloody foreigners... :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kees Nuyt@21:1/5 to bp@www.zefox.net on Wed Mar 12 00:27:40 2025
    On 10-03-2025 20:11, bp@www.zefox.net wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.


    Thanks for reading,

    bob prohaska


    $ cal --help
    cal: invalid option -- '-'
    Usage: cal [general options] [-jy] [[month] year]
    cal [general options] [-j] [-m month] [year]
    ncal -C [general options] [-jy] [[month] year]
    ncal -C [general options] [-j] [-m month] [year]
    ncal [general options] [-bhJjpwySM] [-H yyyy-mm-dd] [-s
    country_code] [[month] year]
    ncal [general options] [-bhJeoSM] [year]
    General options: [-31] [-A months] [-B months] [-d yyyy-mm]

    $ cal 5 2025
    Mei 2025
    zo ma di wo do vr za
    1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31

    $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

    Not GUI, but very functional.

    --
    Regards,
    Kees

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