Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Kirk to Enterprise -- beam down yeoman Rand and a six-pack.


computers / comp.sys.raspberry-pi / Re: How to safely power down a headless Pi?

SubjectAuthor
* How to safely power down a headless Pi?Chris Green
+* Re: How to safely power down a headless Pi?Theo
|`* Re: How to safely power down a headless Pi?The Natural Philosopher
| `- Re: How to safely power down a headless Pi?Chris Green
+* Re: How to safely power down a headless Pi?R.Wieser
|`* Re: How to safely power down a headless Pi?Chris Green
| `* Re: How to safely power down a headless Pi?R.Wieser
|  +* Re: How to safely power down a headless Pi?Chris Green
|  |`* Re: How to safely power down a headless Pi?R.Wieser
|  | `* Re: How to safely power down a headless Pi?Chris Green
|  |  `* Re: How to safely power down a headless Pi?R.Wieser
|  |   `* Re: How to safely power down a headless Pi?Chris Elvidge
|  |    `* Re: How to safely power down a headless Pi?56g.1183
|  |     `* Re: How to safely power down a headless Pi?druck
|  |      +* How to safely power down a headless Pi?Vincent Coen
|  |      |+- Re: How to safely power down a headless Pi?R.Wieser
|  |      |+- Re: How to safely power down a headless Pi?Richard Kettlewell
|  |      |+* Re: How to safely power down a headless Pi?The Natural Philosopher
|  |      ||`- Re: How to safely power down a headless Pi?Ahem A Rivet's Shot
|  |      |`* Re: How to safely power down a headless Pi?Andy Burns
|  |      | +* Re: How to safely power down a headless Pi?Andy Burns
|  |      | |`* Re: How to safely power down a headless Pi?The Natural Philosopher
|  |      | | `- Re: How to safely power down a headless Pi?Computer Nerd Kev
|  |      | `- Re: How to safely power down a headless Pi?Richard Kettlewell
|  |      `* Re: How to safely power down a headless Pi?Anssi Saari
|  |       +- Re: How to safely power down a headless Pi?The Natural Philosopher
|  |       +* Re: How to safely power down a headless Pi?Computer Nerd Kev
|  |       |`- Re: How to safely power down a headless Pi?Anssi Saari
|  |       `* Re: How to safely power down a headless Pi?druck
|  |        +- Re: How to safely power down a headless Pi?Richard Kettlewell
|  |        `* Re: How to safely power down a headless Pi?Anssi Saari
|  |         `- Re: How to safely power down a headless Pi?druck
|  `- Re: How to safely power down a headless Pi?The Natural Philosopher
+* Re: How to safely power down a headless Pi?56g.1173
|+* Re: How to safely power down a headless Pi?Chris Green
||+* Re: How to safely power down a headless Pi?56g.1173
|||+* Re: How to safely power down a headless Pi?The Natural Philosopher
||||`* Re: How to safely power dA.M. Rowsell
|||| +- Re: How to safely power dThe Natural Philosopher
|||| +* Re: How to safely power dPancho
|||| |`* Re: How to safely power dThe Natural Philosopher
|||| | `* Re: How to safely power d56g.1183
|||| |  `- Re: How to safely power dThe Natural Philosopher
|||| `* Re: How to safely power ddruck
||||  `- Re: How to safely power dPancho
|||+* Re: How to safely power down a headless Pi?Chris Green
||||`- Re: How to safely power down a headless Pi?The Natural Philosopher
|||`- Re: How to safely power down a headless Pi?Jim Jackson
||`- Re: How to safely power down a headless Pi?Jim Jackson
|`* Re: How to safely power down a headless Pi?The Natural Philosopher
| +* Re: How to safely power down a headless Pi?56g.1173
| |`- Re: How to safely power down a headless Pi?The Natural Philosopher
| `- Re: How to safely power down a headless Pi?56g.1173
`* Re: How to safely power down a headless Pi?John Aldridge
 +* Re: How to safely power down a headless Pi?Martin Gregorie
 |`- Re: How to safely power down a headless Pi?Chris Green
 `- Re: How to safely power down a headless Pi?Jim Jackson

Pages:123
How to safely power down a headless Pi?

<hg5j4k-um341.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8474&group=comp.sys.raspberry-pi#8474

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 10:39:45 +0000
Lines: 12
Message-ID: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net iQOsTS1h00L+ps9eaEQ0vQLSUK5ohJxQSfCIso3Ps2rqKMf18=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:HmLq7vo9bxrB40U+VAKwMuacAng= sha256:rtkph6gUKhpIEUe1Lpiopcl8tq3tpbDJvxZR/JqcFnE=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Mon, 11 Dec 2023 10:39 UTC

This sort of continues from my earlier question.

I run a number of headless Pis, sometimes I get something wrong and I
can't log in via ssh, how can one then shut down safely?

I guess the risk of simply pulling the power isn't *that* bad but one
would prefer not to.

--
Chris Green
·

Re: How to safely power down a headless Pi?

<WQE*IaCxz@news.chiark.greenend.org.uk>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8477&group=comp.sys.raspberry-pi#8477

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.samoylyk.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: 11 Dec 2023 12:28:56 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <WQE*IaCxz@news.chiark.greenend.org.uk>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="21619"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Mon, 11 Dec 2023 12:28 UTC

Chris Green <cl@isbd.net> wrote:
> This sort of continues from my earlier question.
>
> I run a number of headless Pis, sometimes I get something wrong and I
> can't log in via ssh, how can one then shut down safely?
>
> I guess the risk of simply pulling the power isn't *that* bad but one
> would prefer not to.

Unless you're prepared to plug in a monitor, or enable and connect a serial
console, then pulling the plug is the only way.

Theo

Re: How to safely power down a headless Pi?

<ul743h$36as4$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8480&group=comp.sys.raspberry-pi#8480

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 14:50:27 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ul743h$36as4$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
Injection-Date: Mon, 11 Dec 2023 13:50:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ac027be0c0dda7cd3018fb858d243bee";
logging-data="3353476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zWj/H86Zy6kezDILox3CWjFaj+0X1jCyMER4RQfgtpA=="
Cancel-Lock: sha1:l69AIR5MGBZvYdncme+q24Jg/NY=
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Mon, 11 Dec 2023 13:50 UTC

Chris,

> I run a number of headless Pis, sometimes I get something wrong and I
> can't log in via ssh, how can one then shut down safely?

Maybe adding a "shutdown" button as per the below ?

https://raspberrypi.stackexchange.com/questions/117013/raspberry-pi-4-b-gpio-boot-and-shutdown-buttons

(DDG search term "RPi shutdown button")
Regards,
Rudy Wieser

Re: How to safely power down a headless Pi?

<ul74a8$36ahf$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8481&group=comp.sys.raspberry-pi#8481

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 13:54:16 +0000
Organization: A little, after lunch
Lines: 31
Message-ID: <ul74a8$36ahf$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<WQE*IaCxz@news.chiark.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Dec 2023 13:54:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d90d79b51f81ee3696990345fbc9eb6";
logging-data="3353135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18w0pVJCT9qcYyrJxo5vHd3d4rFl1D1VVo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:N/7AIay2/+LYmkkcK7S2Et3Wrmk=
In-Reply-To: <WQE*IaCxz@news.chiark.greenend.org.uk>
Content-Language: en-GB
 by: The Natural Philosop - Mon, 11 Dec 2023 13:54 UTC

On 11/12/2023 12:28, Theo wrote:
> Chris Green <cl@isbd.net> wrote:
>> This sort of continues from my earlier question.
>>
>> I run a number of headless Pis, sometimes I get something wrong and I
>> can't log in via ssh, how can one then shut down safely?
>>
>> I guess the risk of simply pulling the power isn't *that* bad but one
>> would prefer not to.
>
> Unless you're prepared to plug in a monitor, or enable and connect a serial
> console, then pulling the plug is the only way.
>
Not quite Theo.

You *could* set up a hardware interrupt on a GPIO pin that invokes some
kind of (more or less) orderly shutdown.

And attach a 'reset' button. Or a 'power off' button. Depending on what
you did in the interrupt service routine

> Theo

--
"In our post-modern world, climate science is not powerful because it is
true: it is true because it is powerful."

Lucas Bergkamp

Re: How to safely power down a headless Pi?

<68ij4k-36051.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8483&group=comp.sys.raspberry-pi#8483

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.samoylyk.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 14:17:10 +0000
Lines: 30
Message-ID: <68ij4k-36051.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <WQE*IaCxz@news.chiark.greenend.org.uk> <ul74a8$36ahf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net aT9C0fx6h5EFZrjeH6S+5QMNgolhIM4k5ih3Gkz7a5zVHlD1Q=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:SVm9QIt+y9nNuMuVUrhXpJsj7ZU= sha256:OYP5CTPK2/5zcZ9iTIRcjr2Z/udlrRNpR4YZNAgihYE=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Mon, 11 Dec 2023 14:17 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 11/12/2023 12:28, Theo wrote:
> > Chris Green <cl@isbd.net> wrote:
> >> This sort of continues from my earlier question.
> >>
> >> I run a number of headless Pis, sometimes I get something wrong and I
> >> can't log in via ssh, how can one then shut down safely?
> >>
> >> I guess the risk of simply pulling the power isn't *that* bad but one
> >> would prefer not to.
> >
> > Unless you're prepared to plug in a monitor, or enable and connect a serial
> > console, then pulling the plug is the only way.
> >
> Not quite Theo.
>
> You *could* set up a hardware interrupt on a GPIO pin that invokes some
> kind of (more or less) orderly shutdown.
>
> And attach a 'reset' button. Or a 'power off' button. Depending on what
> you did in the interrupt service routine
>
Yes, presumably that's what the BBB's 'power off' button does, it
sometimes takes quite a few seconds after clicking the button before
the BBB actually powers down. What's rather nice is that if you click
the button again the BBB powers up.

--
Chris Green
·

Re: How to safely power down a headless Pi?

<vhij4k-36051.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8485&group=comp.sys.raspberry-pi#8485

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 14:22:23 +0000
Lines: 19
Message-ID: <vhij4k-36051.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net tYIUjoDzvg/U6MXhalgDCACXdYNv+nO1r2H7CATwJoSUQxB3Y=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:MPY4rSstQuTH9F+Jrb+ZqZc+5vc= sha256:fimWFHBnsFO4y6UYfwqVt23aiuAActsskr7Fq5MZUmA=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Mon, 11 Dec 2023 14:22 UTC

R.Wieser <address@is.invalid> wrote:
> Chris,
>
> > I run a number of headless Pis, sometimes I get something wrong and I
> > can't log in via ssh, how can one then shut down safely?
>
> Maybe adding a "shutdown" button as per the below ?
>
> https://raspberrypi.stackexchange.com/questions/117013/raspberry-pi-4-b-gpio-boot-and-shutdown-buttons
>
>
OP here, thank you, that's really useful, and not only for the
shutdown button. I'm using the RPi to read/control several I2C
devices (taking over from a BBB) and that page has lots of useful I2C
information as well.

--
Chris Green
·

Re: How to safely power down a headless Pi?

<ul7f0j$3833h$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8491&group=comp.sys.raspberry-pi#8491

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 17:56:37 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ul7f0j$3833h$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me> <vhij4k-36051.ln1@esprimo.zbmc.eu>
Injection-Date: Mon, 11 Dec 2023 16:56:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ac027be0c0dda7cd3018fb858d243bee";
logging-data="3411057"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1Dh6amHzeGswbwakRSQKczQr7+5yaVUcBe/Hv0khGHg=="
Cancel-Lock: sha1:xi4bnhEwZrHD5fT1L+EzOnzJp/E=
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Mon, 11 Dec 2023 16:56 UTC

Chris,

> OP here, thank you, that's really useful, and not only for the
> shutdown button. I'm using the RPi to read/control several I2C
> devices (taking over from a BBB) and that page has lots of useful I2C
> information as well.

You're welcome, even though the I2C extras where (ofcourse) a lucky shot.
:-)

One question though : I don't think that your above BBB means "Better
Business Bureau", but than what /does/ it mean ?

Regards,
Rudy Wieser

Re: How to safely power down a headless Pi?

<id3k4k-ig461.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8497&group=comp.sys.raspberry-pi#8497

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Mon, 11 Dec 2023 19:10:10 +0000
Lines: 25
Message-ID: <id3k4k-ig461.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me> <vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net X7F2Ut0ky00F3rjkP21gSQxQcVglGEqmn2KFY6ulI3ITtQp78=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:F6xweIP9BM5rVVY3+Ap+yykfrP4= sha256:HGAiq3OoQXl6fvaOXKCJS3tgGGedcbqrRZYrZnA4/1s=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Mon, 11 Dec 2023 19:10 UTC

R.Wieser <address@is.invalid> wrote:
> Chris,
>
> > OP here, thank you, that's really useful, and not only for the
> > shutdown button. I'm using the RPi to read/control several I2C
> > devices (taking over from a BBB) and that page has lots of useful I2C
> > information as well.
>
> You're welcome, even though the I2C extras where (ofcourse) a lucky shot.
> :-)
>
> One question though : I don't think that your above BBB means "Better
> Business Bureau", but than what /does/ it mean ?
>
It means Beaglebone Black, a single board computer quite similar in
some ways to the Pi. It was introduced about the same time with the
specific aim of having open source *hardware*. It las a lot more I/O
than the Pi, two 46-way sockets.

However it hasn't got updated like the Pi and so is now somewhat
behind as regards processor power etc.

--
Chris Green
·

Re: How to safely power down a headless Pi?

<K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8505&group=comp.sys.raspberry-pi#8505

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 12 Dec 2023 05:16:22 +0000
Subject: Re: How to safely power down a headless Pi?
Newsgroups: comp.sys.raspberry-pi
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
From: 56g.1...@ztq9.net (56g.1173)
Organization: proton hyperbole
Date: Tue, 12 Dec 2023 00:16:07 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
Lines: 28
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-Miy6MKulpH5ha05aR/hmHXedRM5dfR7JQ9gKR5adh5GJqMIJNCSR/D1ZToXmMpDFLWv7VdGUb4TQR9F!83KO/3uLJWOKlAkTYisEGaB9fY6RhVKnYFIqrcswgkGWvMDS5ueZXZ3Y5cEhVjnOogkBXxeOB4Li!67ePBTZRwOuWuj69vRe/
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2411
 by: 56g.1173 - Tue, 12 Dec 2023 05:16 UTC

On 12/11/23 5:39 AM, Chris Green wrote:
> This sort of continues from my earlier question.
>
> I run a number of headless Pis, sometimes I get something wrong and I
> can't log in via ssh, how can one then shut down safely?
>
> I guess the risk of simply pulling the power isn't *that* bad but one
> would prefer not to.

You can SSH into them and then "(sudo) shutdown now".
That works.

Alas Pi's really DON'T have a proper 'reset' pin. You
can MAKE a shutdown-pin by polling one of the GPIO
pins though - attach it to a physical push-button
switch.

Pi's are microPROCESSORS rather than microCONTROLLERS.
Most modern microC's have a "weak pull-up" you can set
for a pin. Then just ground the pin to register your
button-press. For a Pi, you may prefer to use a
pull-up resistor from the 3.3v pin - 10,000 ohms
is fine. THEN poll, looking for a sudden change to
zero volts. You can write a simple Python daemon
and @reboot it to life in root crontab. Check maybe
every one or one/half sec so you don't burn too
much CPU. You can also use interrupts, but that's
unnecessarily complicated most times.

Re: How to safely power down a headless Pi?

<ul95pt$3jf0h$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8509&group=comp.sys.raspberry-pi#8509

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 07:45:02 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ul95pt$3jf0h$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me> <vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me> <id3k4k-ig461.ln1@esprimo.zbmc.eu>
Injection-Date: Tue, 12 Dec 2023 08:31:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb7301013a99274f2b951778deef4c23";
logging-data="3783697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QF+qI58Yg83ZvamxQ+u2begOovWGWBu/l/1xWXxKPrg=="
Cancel-Lock: sha1:W2k3AcyiTPThiV3msAKeNJcxwaw=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Tue, 12 Dec 2023 06:45 UTC

Chris,

>> One question though : I don't think that your above BBB means
>> "Better Business Bureau", but than what /does/ it mean ?
>>
> It means Beaglebone Black, a single board computer quite similar
> in some ways to the Pi.

Ah yes, I've heard about that one. Never seen one though.

> However it hasn't got updated like the Pi and so is now somewhat
> behind as regards processor power etc.

:-) Not everyone yearns for having the newest-and-fastest thingamagotchy.

Take me, I've got a swell time working with a RPi... One? (one of the
earliest versions, without mounting holes) running a Lite version (CLI
interface only) of BullsEye.

Regards,
Rudy Wieser

Re: How to safely power down a headless Pi?

<80ll4k-ll691.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8510&group=comp.sys.raspberry-pi#8510

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 09:16:24 +0000
Lines: 26
Message-ID: <80ll4k-ll691.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me> <vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me> <id3k4k-ig461.ln1@esprimo.zbmc.eu> <ul95pt$3jf0h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 7H4tF3Cql7bAQhcarY8D5QpJaxnSmo7ycWHi9V6bQlKIy2HjY=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:tCjZsIa+HhVYpeR385F7KasB3mw= sha256:/PHhMwLFlYqPQ1bYwCYybY2dH3reetecS5AWtg/jHO8=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Tue, 12 Dec 2023 09:16 UTC

R.Wieser <address@is.invalid> wrote:
> Chris,
>
> >> One question though : I don't think that your above BBB means
> >> "Better Business Bureau", but than what /does/ it mean ?
> >>
> > It means Beaglebone Black, a single board computer quite similar
> > in some ways to the Pi.
>
> Ah yes, I've heard about that one. Never seen one though.
>
> > However it hasn't got updated like the Pi and so is now somewhat
> > behind as regards processor power etc.
>
> :-) Not everyone yearns for having the newest-and-fastest thingamagotchy.
>
> Take me, I've got a swell time working with a RPi... One? (one of the
> earliest versions, without mounting holes) running a Lite version (CLI
> interface only) of BullsEye.
>
I have quite a selection of Pis back to quite early versions and all
of them are CLI only.

--
Chris Green
·

Re: How to safely power down a headless Pi?

<73ll4k-ll691.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8511&group=comp.sys.raspberry-pi#8511

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 09:17:59 +0000
Lines: 18
Message-ID: <73ll4k-ll691.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net T1CmnjywopPJlkzj8mbgngOHFuFSpuMjWPJ4G+aeqnFiRXdoU=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:7KzOkwVqTnQU/yYc+sPXMWlyOlo= sha256:fUhs+4SO1V9e0DfTAqzlq8DnyVLfp4N6dvKJj2FDpP0=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Tue, 12 Dec 2023 09:17 UTC

56g.1173 <56g.1173@ztq9.net> wrote:
> On 12/11/23 5:39 AM, Chris Green wrote:
> > This sort of continues from my earlier question.
> >
> > I run a number of headless Pis, sometimes I get something wrong and I
> > can't log in via ssh, how can one then shut down safely?
> >
> > I guess the risk of simply pulling the power isn't *that* bad but one
> > would prefer not to.
>
> You can SSH into them and then "(sudo) shutdown now".
> That works.
>
Didn't you see the bit that says "...I can't log in via ssh."? :-)

--
Chris Green
·

Re: How to safely power down a headless Pi?

<ul9b8r$3k880$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8518&group=comp.sys.raspberry-pi#8518

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 10:52:43 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ul9b8r$3k880$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me> <vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me> <id3k4k-ig461.ln1@esprimo.zbmc.eu> <ul95pt$3jf0h$1@dont-email.me> <80ll4k-ll691.ln1@esprimo.zbmc.eu>
Injection-Date: Tue, 12 Dec 2023 10:05:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb7301013a99274f2b951778deef4c23";
logging-data="3809536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lwn+el3vf2d9zC81CsosvPkDP/OXivNrxnIl0fJ8yQA=="
Cancel-Lock: sha1:lsyHuFpv3LjSe99fVX9GqE5HzcA=
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Tue, 12 Dec 2023 09:52 UTC

Chris,

> I have quite a selection of Pis back to quite early versions and
> all of them are CLI only.

I did install the full, GUI based version of BullsEye, just to see if it
would work. It did.

But the lack of any kind of speed made me quickly decide that maybe a CLI
version would work better. :-)

To be honest, I was pleasantly surprised that that not-too-old BullsEye
wanted to boot on that rather ancient RPi.

Regards,
Rudy Wieser

Re: How to safely power down a headless Pi?

<ul9blc$3k6ev$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8520&group=comp.sys.raspberry-pi#8520

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 10:11:56 +0000
Organization: A little, after lunch
Lines: 27
Message-ID: <ul9blc$3k6ev$2@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me>
<vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Dec 2023 10:11:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cb737222cc763d1b91c7f97ab50ada1c";
logging-data="3807711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pYaI6z4uEw3xnrE8ndCjtEL2drpExx2Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LiDo9TFR1e39hu0tKTTG3LozKHI=
In-Reply-To: <ul7f0j$3833h$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 12 Dec 2023 10:11 UTC

On 11/12/2023 16:56, R.Wieser wrote:
> Chris,
>
>> OP here, thank you, that's really useful, and not only for the
>> shutdown button. I'm using the RPi to read/control several I2C
>> devices (taking over from a BBB) and that page has lots of useful I2C
>> information as well.
>
> You're welcome, even though the I2C extras where (ofcourse) a lucky shot.
> :-)
>
> One question though : I don't think that your above BBB means "Better
> Business Bureau", but than what /does/ it mean ?
>
> Regards,
> Rudy Wieser
>
>
I assume Beagle Bone Black or similar?

--
"A point of view can be a dangerous luxury when substituted for insight
and understanding".

Marshall McLuhan

Re: How to safely power down a headless Pi?

<ul9bnl$3k6ev$3@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8521&group=comp.sys.raspberry-pi#8521

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 10:13:09 +0000
Organization: A little, after lunch
Lines: 21
Message-ID: <ul9bnl$3k6ev$3@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Dec 2023 10:13:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cb737222cc763d1b91c7f97ab50ada1c";
logging-data="3807711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/miuEpl0xWozslieCHmxpR6Evve41jEXQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:a+/AbNAYvp3bkZjP+nDR/ATcHqo=
In-Reply-To: <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 12 Dec 2023 10:13 UTC

On 12/12/2023 05:16, 56g.1173 wrote:
> On 12/11/23 5:39 AM, Chris Green wrote:
>> This sort of continues from my earlier question.
>>
>> I run a number of headless Pis, sometimes I get something wrong and I
>> *can't log in via ssh*, how can one then shut down safely?
>>

>   *You can SSH into them* and then "(sudo) shutdown now".
>   That works.

Edited to display idiocy more clearly

--
"A point of view can be a dangerous luxury when substituted for insight
and understanding".

Marshall McLuhan

Re: How to safely power down a headless Pi?

<ul9ueo$3n1a0$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8531&group=comp.sys.raspberry-pi#8531

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 15:32:38 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <ul9ueo$3n1a0$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <ul743h$36as4$1@dont-email.me>
<vhij4k-36051.ln1@esprimo.zbmc.eu> <ul7f0j$3833h$1@dont-email.me>
<id3k4k-ig461.ln1@esprimo.zbmc.eu> <ul95pt$3jf0h$1@dont-email.me>
<80ll4k-ll691.ln1@esprimo.zbmc.eu> <ul9b8r$3k880$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Dec 2023 15:32:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c6f15dd833dea8406b07daffb01dc07c";
logging-data="3900736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198KCSQ5aFWY9YHuZh+w4qagoaZFPhhw4c="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:x8uJ+giBs0vzHtVrMEzwgcWS0oI=
Content-Language: en-GB
In-Reply-To: <ul9b8r$3k880$1@dont-email.me>
 by: Chris Elvidge - Tue, 12 Dec 2023 15:32 UTC

On 12/12/2023 09:52, R.Wieser wrote:
> Chris,
>
>> I have quite a selection of Pis back to quite early versions and
>> all of them are CLI only.
>
> I did install the full, GUI based version of BullsEye, just to see if it
> would work. It did.
>
> But the lack of any kind of speed made me quickly decide that maybe a CLI
> version would work better. :-)
>
> To be honest, I was pleasantly surprised that that not-too-old BullsEye
> wanted to boot on that rather ancient RPi.
>
> Regards,
> Rudy Wieser
>
>

I've got Bookworm running (no gui) on
Hardware : BCM2835
Revision : 900032
Serial : 00000000c72dee2a
Model : Raspberry Pi Model B Plus Rev 1.2

I got it for £10 (still in it's box) on ebay.

--
Chris Elvidge, England
I WILL NOT FAKE RABIES

Re: How to safely power down a headless Pi?

<MPG.3fe301fcb6ced9fb9897b9@news.eternal-september.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8541&group=comp.sys.raspberry-pi#8541

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jps...@cantab.net (John Aldridge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Tue, 12 Dec 2023 23:49:49 -0000
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <MPG.3fe301fcb6ced9fb9897b9@news.eternal-september.org>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="15a7420385d402348b33ff7fb3269497";
logging-data="4051907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ekcq1Z4ACuiBosugKqhj2"
User-Agent: MicroPlanet-Gravity/3.0.11 (GRC)
Cancel-Lock: sha1:PtvXA6Hirdl4UW3oNUxtNDdtpY8=
 by: John Aldridge - Tue, 12 Dec 2023 23:49 UTC

In article <hg5j4k-um341.ln1@esprimo.zbmc.eu>, cl@isbd.net says...
>
> This sort of continues from my earlier question.
>
> I run a number of headless Pis, sometimes I get something wrong and I
> can't log in via ssh, how can one then shut down safely?

What I do on my Pis is run an application which watches for the
insertion of a USB stick labelled SHUTDOWNPI.

https://github.com/jps-aldridge/shutdownthumb

--
Cheers
John

Re: How to safely power down a headless Pi?

<ulauca$3mh6e$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8542&group=comp.sys.raspberry-pi#8542

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mar...@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Wed, 13 Dec 2023 00:37:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <ulauca$3mh6e$1@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<MPG.3fe301fcb6ced9fb9897b9@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Dec 2023 00:37:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3cf5f567b8ce221a12d48014ccb05a5b";
logging-data="3884238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tj9sD01WYlNgG/RvKxECuBmoLAS8WGLA="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:Uyt4D4qFHIpCet8bzVvZdeb1UVY=
 by: Martin Gregorie - Wed, 13 Dec 2023 00:37 UTC

On Tue, 12 Dec 2023 23:49:49 -0000, John Aldridge wrote:

> In article <hg5j4k-um341.ln1@esprimo.zbmc.eu>, cl@isbd.net says...
>>
>> This sort of continues from my earlier question.
>>
>> I run a number of headless Pis, sometimes I get something wrong and I
>> can't log in via ssh, how can one then shut down safely?
>
> What I do on my Pis is run an application which watches for the
> insertion of a USB stick labelled SHUTDOWNPI.
>
> https://github.com/jps-aldridge/shutdownthumb

The standard Linux "su - shutdown" or "su - shutdown --poweroff" should do
the trick, while "man 8 shutdown" or "su - shutdown --help" tells you all
about it.

Hint: If you're not quite sure what a command is called, but you want to
see its manpage, running the command "apropos whatIwant" will show you all
the manual pages whose NAME sentence contains that character string or
something similar.

--

Martin | martin at
Gregorie | gregorie dot org

Re: How to safely power down a headless Pi?

<RGudneZ-8O2ym-T4nZ2dnZfqnPednZ2d@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8543&group=comp.sys.raspberry-pi#8543

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 13 Dec 2023 01:17:35 +0000
Subject: Re: How to safely power down a headless Pi?
Newsgroups: comp.sys.raspberry-pi
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com> <73ll4k-ll691.ln1@esprimo.zbmc.eu>
From: 56g.1...@ztq9.net (56g.1173)
Organization: proton hyperbole
Date: Tue, 12 Dec 2023 20:17:28 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <73ll4k-ll691.ln1@esprimo.zbmc.eu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <RGudneZ-8O2ym-T4nZ2dnZfqnPednZ2d@earthlink.com>
Lines: 29
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-BIiMfArqVqtCCObs8YR/dZDPwVQc94JEvfpFEK6kLM/QRMNyyg8g/nTJwscKCCGrK8DryVRZXegQi6u!/koz3NYAV85QUD8ulZpUaPPvlJfrrBeOoV9rGPG0XtU17HFUyjjW10DT4yLUyMYT23kHDoLqBnu3!u9kgH5iwRS0uaS2awhmr
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2510
 by: 56g.1173 - Wed, 13 Dec 2023 01:17 UTC

On 12/12/23 4:17 AM, Chris Green wrote:
> 56g.1173 <56g.1173@ztq9.net> wrote:
>> On 12/11/23 5:39 AM, Chris Green wrote:
>>> This sort of continues from my earlier question.
>>>
>>> I run a number of headless Pis, sometimes I get something wrong and I
>>> can't log in via ssh, how can one then shut down safely?
>>>
>>> I guess the risk of simply pulling the power isn't *that* bad but one
>>> would prefer not to.
>>
>> You can SSH into them and then "(sudo) shutdown now".
>> That works.
>>
> Didn't you see the bit that says "...I can't log in via ssh."? :-)

I'd hoped he'd figured that out already ... he CAN, if
he sets it up correctly. Most common err on a Pi is to
forget to enable the service ... either using the config
GUI or manually with systemctl. I change the default port
and the too-liberal login stuff in sshd_config too, just
to be safe.

However a "clean shutdown" BUTTON would be a really good
thing - ergo the description of how to go for that. Ya
can also write your OWN little daemon, send "STOP" on
port whatever, separate from SSH.

Re: How to safely power down a headless Pi?

<RGudneF-8O3mm-T4nZ2dnZfqnPednZ2d@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8544&group=comp.sys.raspberry-pi#8544

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 13 Dec 2023 01:18:50 +0000
Subject: Re: How to safely power down a headless Pi?
Newsgroups: comp.sys.raspberry-pi
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com> <ul9bnl$3k6ev$3@dont-email.me>
From: 56g.1...@ztq9.net (56g.1173)
Organization: proton hyperbole
Date: Tue, 12 Dec 2023 20:18:50 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <ul9bnl$3k6ev$3@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <RGudneF-8O3mm-T4nZ2dnZfqnPednZ2d@earthlink.com>
Lines: 16
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-IUbJx50NOING3VD8Rh6U4be9mHOQwsot0n0pV+TgD6ZLyvWkTACrUewAgiouq1lqdh5KbUbc5A4sJW2!KZg10SONLXl0jE5pNtS12t6RnuxLHW/Q3TwRQtTe4EI+MOamyRwYH1keLo8C0EboL3B8T66t5X0z!UtCppFxYnoJuxdrkW7wh
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: 56g.1173 - Wed, 13 Dec 2023 01:18 UTC

On 12/12/23 5:13 AM, The Natural Philosopher wrote:
> On 12/12/2023 05:16, 56g.1173 wrote:
>> On 12/11/23 5:39 AM, Chris Green wrote:
>>> This sort of continues from my earlier question.
>>>
>>> I run a number of headless Pis, sometimes I get something wrong and I
>>> *can't log in via ssh*, how can one then shut down safely?
>>>
>
>>    *You can SSH into them* and then "(sudo) shutdown now".
>>    That works.
>
> Edited to display idiocy more clearly

SSH is almost bulletproof ... hoped he'd figured
it out ......

Re: How to safely power down a headless Pi?

<RGudneB-8O0Am-T4nZ2dnZfqnPcAAAAA@earthlink.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8545&group=comp.sys.raspberry-pi#8545

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 13 Dec 2023 01:19:24 +0000
Subject: Re: How to safely power down a headless Pi?
Newsgroups: comp.sys.raspberry-pi
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
<ul9bnl$3k6ev$3@dont-email.me>
From: 56g.1...@ztq9.net (56g.1173)
Organization: proton hyperbole
Date: Tue, 12 Dec 2023 20:19:24 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <ul9bnl$3k6ev$3@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <RGudneB-8O0Am-T4nZ2dnZfqnPcAAAAA@earthlink.com>
Lines: 1
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-ThP4D7avP9pddN3gXVf2RDcDj2M8jlYy0m02P4bkpLzCwpkRy9KR1TX3YJprM0iGG0IkQm+4tznDZq5!Iyw9HRyTRwLSRTJ7lbdhbIKT5y1NzHu6M6WiJT3Ql4zmLDhER2pkmeOH1hv/BjaUL47Fngsn847T!BrIc34YT84XHeQmoNkbk
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: 56g.1173 - Wed, 13 Dec 2023 01:19 UTC

Oh, "idiocy" ??? I'd say "optimism !" :-)

Re: How to safely power down a headless Pi?

<ulb6m0$3ssh3$5@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8547&group=comp.sys.raspberry-pi#8547

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Wed, 13 Dec 2023 02:59:12 +0000
Organization: A little, after lunch
Lines: 38
Message-ID: <ulb6m0$3ssh3$5@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
<73ll4k-ll691.ln1@esprimo.zbmc.eu>
<RGudneZ-8O2ym-T4nZ2dnZfqnPednZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Dec 2023 02:59:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb1eb5d32d0938bec8f57659538e35d5";
logging-data="4092451"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nuNOoTGRE3FTvAX2WJhjwoOTQzQu0dXI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EXxxkUgCcCeT9A/ZPccs7lDcf2Q=
In-Reply-To: <RGudneZ-8O2ym-T4nZ2dnZfqnPednZ2d@earthlink.com>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 13 Dec 2023 02:59 UTC

On 13/12/2023 01:17, 56g.1173 wrote:
> On 12/12/23 4:17 AM, Chris Green wrote:
>> 56g.1173 <56g.1173@ztq9.net> wrote:
>>> On 12/11/23 5:39 AM, Chris Green wrote:
>>>> This sort of continues from my earlier question.
>>>>
>>>> I run a number of headless Pis, sometimes I get something wrong and I
>>>> can't log in via ssh, how can one then shut down safely?
>>>>
>>>> I guess the risk of simply pulling the power isn't *that* bad but one
>>>> would prefer not to.
>>>
>>>    You can SSH into them and then "(sudo) shutdown now".
>>>    That works.
>>>
>> Didn't you see the bit that says "...I can't log in via ssh."? :-)
>
>
>   I'd hoped he'd figured that out already ... he CAN, if
>   he sets it up correctly.
Seriously, dont be such a fucking twat. Obviously he can until his
system locks up, and then he CANT.

And that is his problem. That he cant ssh in. Ive had this occasionally
with my remote virtual private servers. Something like a memory leak or
a full disk or someone DOSing it stops me getting in.

Only solution is a console reboot and hit the server logs before it
restarts, firewall out whoever is doing it, if they are, or delete the
logs of them trying which have flooded the limited disk...

--
"Anyone who believes that the laws of physics are mere social
conventions is invited to try transgressing those conventions from the
windows of my apartment. (I live on the twenty-first floor.) "

Alan Sokal

Re: How to safely power down a headless Pi?

<ulb6ui$3ssh3$6@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8548&group=comp.sys.raspberry-pi#8548

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Wed, 13 Dec 2023 03:03:46 +0000
Organization: A little, after lunch
Lines: 35
Message-ID: <ulb6ui$3ssh3$6@dont-email.me>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu>
<K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com>
<ul9bnl$3k6ev$3@dont-email.me>
<RGudneF-8O3mm-T4nZ2dnZfqnPednZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Dec 2023 03:03:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb1eb5d32d0938bec8f57659538e35d5";
logging-data="4092451"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jA03m+zi1oXxB5QhF4yowkZ8DbX4fkTc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Z2f4Biost4sQkEN1atj59RCopno=
In-Reply-To: <RGudneF-8O3mm-T4nZ2dnZfqnPednZ2d@earthlink.com>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 13 Dec 2023 03:03 UTC

On 13/12/2023 01:18, 56g.1173 wrote:
> On 12/12/23 5:13 AM, The Natural Philosopher wrote:
>> On 12/12/2023 05:16, 56g.1173 wrote:
>>> On 12/11/23 5:39 AM, Chris Green wrote:
>>>> This sort of continues from my earlier question.
>>>>
>>>> I run a number of headless Pis, sometimes I get something wrong and I
>>>> *can't log in via ssh*, how can one then shut down safely?
>>>>
>>
>>>    *You can SSH into them* and then "(sudo) shutdown now".
>>>    That works.
>>
>> Edited to display idiocy more clearly
>
>   SSH is almost bulletproof ... hoped he'd figured
>   it out ......
SSH is only as bulletproof as the underlying operating system

I cant believe you have never had a headless server that for whatever
reason has run out of RAM, is in full swap, and if you get a login
prompt in under an hour that's good going.

We had a system where we could dial in on a modem and power cycle one of
16 machines in a dark office. If the serial consoles didn't give us a
response. And we couldn't reach the cluster over the internet.

--
The lifetime of any political organisation is about three years before
its been subverted by the people it tried to warn you about.

Anon.

Re: How to safely power d

<702464162@f1.n770.z19152.fidonet.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8554&group=comp.sys.raspberry-pi#8554

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.A...@f1.n770.z19152.fidonet.org (A.M. Rowsell)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power d
Date: Wed, 13 Dec 2023 00:11:00 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <702464162@f1.n770.z19152.fidonet.org>
References: <ulb6m0$3ssh3$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="9956"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: The Natural Philosopher
 by: A.M. Rowsell - Tue, 12 Dec 2023 11:11 UTC

-=> On Wed Dec 13 02:59:00 2023, The Natural Philosopher wrote to All <=-

> On 13/12/2023 01:17, 56g.1173 wrote:
> > On 12/12/23 4:17 AM, Chris Green wrote:
> >> 56g.1173 <56g.1173@ztq9.net> wrote:
> >>> On 12/11/23 5:39 AM, Chris Green wrote:
> >>>> This sort of continues from my earlier question.
> >>>>
> >>>> I run a number of headless Pis, sometimes I get something wrong and I
> >>>> can't log in via ssh, how can one then shut down safely?
> >>>>
> >>>> I guess the risk of simply pulling the power isn't *that* bad but one
> >>>> would prefer not to.
> >>>
> >>> You can SSH into them and then "(sudo) shutdown now".
> >>> That works.
> >>>
> >> Didn't you see the bit that says "...I can't log in via ssh."? :-)
> >
> >
> > I'd hoped he'd figured that out already ... he CAN, if
> > he sets it up correctly.
> Seriously, dont be such a fucking twat. Obviously he can until his
> system locks up, and then he CANT.
>
> And that is his problem. That he cant ssh in. Ive had this occasionally
> with my remote virtual private servers. Something like a memory leak or
> a full disk or someone DOSing it stops me getting in.
I've been having a similar issue with one of my Pis acting as a PiHole. Every
week or so, it totally locks up, can't SSH in, can't even get a serial
terminal, have to hard reboot. Luckily it's actually the secondary DNS so stuff
on my network stays up and running, but it's annoying because it also is
connected to my UPS and a RTL-SDR that reports to FlightAware. Their emails
telling me my feed is down is usually the first time I notice it's locked up
again.
>
> Only solution is a console reboot and hit the server logs before it
> restarts, firewall out whoever is doing it, if they are, or delete the
> logs of them trying which have flooded the limited disk...
>
> --
> "Anyone who believes that the laws of physics are mere social
> conventions is invited to try transgressing those conventions from the
> windows of my apartment. (I live on the twenty-first floor.) "
>
> Alan Sokal
>
> --- SoupGate-Win32 v1.05
> * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway
> (3:770/3)
>
--
Aurelius
Home BBS: aBSiNTHe

=== TitanMail/linux v1.2.4

Re: How to safely power down a headless Pi?

<2ldo4k-t24f1.ln1@esprimo.zbmc.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8556&group=comp.sys.raspberry-pi#8556

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to safely power down a headless Pi?
Date: Wed, 13 Dec 2023 10:29:22 +0000
Lines: 32
Message-ID: <2ldo4k-t24f1.ln1@esprimo.zbmc.eu>
References: <hg5j4k-um341.ln1@esprimo.zbmc.eu> <K22dnTa5e6M7cer4nZ2dnZfqn_GdnZ2d@earthlink.com> <73ll4k-ll691.ln1@esprimo.zbmc.eu> <RGudneZ-8O2ym-T4nZ2dnZfqnPednZ2d@earthlink.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net VtPXPStm4JSjjJECN6ptmw5M9TFxe1bDsrLJm0oj9yrOgwZQ8=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:yjguLxS0fdWSrrY11IeU2vq16W8= sha256:XMFg56DGsmz433wsEYSqdyIXbiT141FSbiWt1yKvWkE=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-89-generic (x86_64))
 by: Chris Green - Wed, 13 Dec 2023 10:29 UTC

56g.1173 <56g.1173@ztq9.net> wrote:
> On 12/12/23 4:17 AM, Chris Green wrote:
> > 56g.1173 <56g.1173@ztq9.net> wrote:
> >> On 12/11/23 5:39 AM, Chris Green wrote:
> >>> This sort of continues from my earlier question.
> >>>
> >>> I run a number of headless Pis, sometimes I get something wrong and I
> >>> can't log in via ssh, how can one then shut down safely?
> >>>
> >>> I guess the risk of simply pulling the power isn't *that* bad but one
> >>> would prefer not to.
> >>
> >> You can SSH into them and then "(sudo) shutdown now".
> >> That works.
> >>
> > Didn't you see the bit that says "...I can't log in via ssh."? :-)
>
>
> I'd hoped he'd figured that out already ... he CAN, if
> he sets it up correctly. Most common err on a Pi is to
> forget to enable the service ... either using the config
> GUI or manually with systemctl. I change the default port
> and the too-liberal login stuff in sshd_config too, just
> to be safe.
>
OP here. What I meant when I said "...I can't log in via ssh." is a
situation where the software has crashed or something like that. I
know quite well how to configure a Pi to let me log in using ssh.

--
Chris Green
·

Pages:123
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor