Go to advanced search

by GlowInTheDark
Thu Feb 27, 2020 9:09 am
Forum: Beginners
Topic: [Raspian] How to search for packages efficiently ?
Replies: 8
Views: 191

Re: [Raspian] How to search for packages efficiently ?

Is that ex-banker better off or worse off ? It depends on criteria used, who we ask, and how wide we look. As one gets happier others may become less happier, and vice-versa. Indeed. I guess I'm looking at it primarily from the point of view of the ex-wives. They need their alimony checks! There's ...
by GlowInTheDark
Thu Feb 27, 2020 12:51 am
Forum: Beginners
Topic: command line version of piclone?
Replies: 17
Views: 11744

Re: command line version of piclone?

The code sets the src and dst variables internally like this: src=$(mktemp -d) dst=$(mktemp -d) What does this in fact do? ObSnarkiness: "man mktemp" It creates a guaranteed unique directory under /tmp and returns the name of the new directory. BTW, earlier up in your post, you say: sudo ./sdclone ...
by GlowInTheDark
Thu Feb 27, 2020 12:41 am
Forum: Beginners
Topic: deleting the current selected *history* line from Bash, et al, ?
Replies: 4
Views: 179

Re: deleting the current selected *history* line from Bash, et al, ?

Have been reviewing "man history" but couldn't find if there is some convenient way, like at a key-press, while scrolling back the Bash (or other compatible) history buffer, to *delete* the line currently shown - permanently removing it from the historic.... I'm reminded of JPsoftware's 4DOS and 4N...
by GlowInTheDark
Wed Feb 26, 2020 12:56 pm
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

Both "systemd" and "autostart" are, in theory, good ideas.

But in practice, these always have multiple screwups and cause pain and suffering when people try to use them. So, I tend to avoid them.
by GlowInTheDark
Wed Feb 26, 2020 10:08 am
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

Note also that if there isn't a good way to check specifically if the "prowl" thing worked, an alternative is just to check-and-loop for the network itself, then do the prowl. Like: until ping -c1 google.com > /dev/null 2>&1;do sleep 5;done prowl... Note, though, that in some weird edge case, this c...
by GlowInTheDark
Wed Feb 26, 2020 10:03 am
Forum: For sale
Topic: Free Monitors
Replies: 5
Views: 1034

Re: Free Monitors

I am 2 miles from M5 J3 (halesowen), drop me a post and first come 1st serve.
https://en.wikipedia.org/wiki/Halesowen
by GlowInTheDark
Wed Feb 26, 2020 8:28 am
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

Otherwise, the rc.local will react as if it succeeded the first try. Exactly. The point here is that if the user isn't capable of translating my semi-pseudo-code into the actual code needed to test whether or not the "prowl" command succeeded, then it probably is better that he just eliminate the l...
by GlowInTheDark
Tue Feb 25, 2020 9:31 pm
Forum: Beginners
Topic: [Raspian] How to search for packages efficiently ?
Replies: 8
Views: 191

Re: [Raspian] How to search for packages efficiently ?

Teaching a man to fish can be an error if the man is, say, an investment banker or hedge fund manager, making multi-zillions of dollars (doing whatever it is that people in those jobs do) and the result of your teaching them to fish is that they spend all their time at the lake and end up getting fi...
by GlowInTheDark
Tue Feb 25, 2020 7:27 pm
Forum: Raspbian
Topic: How to prevent a certain package from being "upgraded"?
Replies: 4
Views: 112

Re: How to prevent a certain package from being "upgraded"?

Yes, having tested it, this works great. You even get a message when you do the upgrade saying that so-and-so package has been held back. Some other notes in passing: 1) It is "apt list --upgradable" (the second - was missing in an earlier post) 2) When I do the above "list" command and there is onl...
by GlowInTheDark
Tue Feb 25, 2020 5:56 pm
Forum: Raspbian
Topic: How to prevent a certain package from being "upgraded"?
Replies: 4
Views: 112

Re: How to prevent a certain package from being "upgraded"?

So I did this.

Code: Select all

sudo apt-mark hold piwiz
and after the "sudo apt upgrade"...
Great. That looks good. Thanks.
by GlowInTheDark
Tue Feb 25, 2020 5:23 pm
Forum: Raspbian
Topic: How to prevent a certain package from being "upgraded"?
Replies: 4
Views: 112

How to prevent a certain package from being "upgraded"?

Like many/most people here, I routinely do the "update/upgrade" dance to keep my installed packages up to date. However, there is one particular package that I don't want to ever get upgraded, because the later versions don't work (don't ask; long story; no need to explain it here). I want to "freez...
by GlowInTheDark
Tue Feb 25, 2020 1:49 pm
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

Awesome, thank you! It didn’t work with “5” so I changed it to “25” and I received the alert on my phone. I’ll probably lower it and see what the threshold is for the timing. It definitely *WILL* work with 5, if you are doing it right. My guess is there was some kind of translation error between wh...
by GlowInTheDark
Tue Feb 25, 2020 1:45 pm
Forum: Troubleshooting
Topic: Message "Drive was removed without ejecting" with sudo eject
Replies: 4
Views: 99

Re: Message "Drive was removed without ejecting" with sudo eject

I've seen this, too. I think that, ultimately, this is bogus and can be ignored. It would be nice to be able to stop it from happening, but that may not be possible. It happens because the GUI notices that the drive is gone (ejected), but knows that it (the GUI) didn't do it, so it assumes that you ...
by GlowInTheDark
Tue Feb 25, 2020 6:24 am
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

rc.local gets run pretty early in the bootup process, generally before the network connection is up. That seems to be what is going on here (it is failing to connect to the "prowl" server). There are "systemd"-ish ways to handle this - some weird setting somewhere tells it to wait for the network - ...
by GlowInTheDark
Tue Feb 25, 2020 5:26 am
Forum: Beginners
Topic: Reading variables from a text file into Bash variables
Replies: 10
Views: 245

Re: Reading variables from a text file into Bash variables

Heh heh. For *that*, you do want to use (( ... )) I.e., this should work: AstroDawnSec=$((AstroDawnMin * 60)) But then you start to realize that shell isn't really supposed to be used as a programming language. It can be pushed and prodded into being one - and bash has gone quite a way towards makin...
by GlowInTheDark
Mon Feb 24, 2020 11:35 pm
Forum: Beginners
Topic: Reading variables from a text file into Bash variables
Replies: 10
Views: 245

Re: Reading variables from a text file into Bash variables

1) I'm assuming that you went with my first suggestion - which puts the contents of the file in $1 through $4. That code is not shown in your listing, but I'm guessing that's the idea - that's what you are passing to the "date" command ($1, $2, $3, $4). 2) Why are you using (( ... ))? Shouldn't you ...
by GlowInTheDark
Mon Feb 24, 2020 9:19 pm
Forum: General discussion
Topic: RPi not booting after power out
Replies: 33
Views: 8707

Re: RPi not booting after power out

We also used these USB sticks instead of SD cards, and this has definitely reduced the risk of data corruption and failed boots, however, it has not completely eliminated them... You know, funnily enough, the one and only time I had a Raspberry Pi OS boot setup go bad on me was one where the rootfs...
by GlowInTheDark
Mon Feb 24, 2020 9:12 pm
Forum: Beginners
Topic: Reading variables from a text file into Bash variables
Replies: 10
Views: 245

Re: Reading variables from a text file into Bash variables

This will put them into $1 through $4 - you can copy them elsewhere if you want.

Code: Select all

set -- $(tr -d , < times)
Or you could put them in an array, like this:

Code: Select all

myvalues=($(tr -d , < times))
Then $myvalues will be the first value, ${myvalues[1]} the second, and so on.
by GlowInTheDark
Mon Feb 24, 2020 6:00 pm
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

First and foremost, whenever dealing with issues relating to /etc/rc.local, always put the following line in as the first executable line (just before the line that says "# Print the IP address". exec > /tmp/rc-local.out 2>&1;set -x Once you do that, and reboot, everything will be made clear as to w...
by GlowInTheDark
Mon Feb 24, 2020 4:15 pm
Forum: Beginners
Topic: Running console command at startup
Replies: 21
Views: 375

Re: Running console command at startup

Did you make /etc/rc.local executable? /etc/rc.local already has execute permissions set by default. Of course, but there is a contingent here that always asks that question. I can imagine someone posting that they didn't like their breakfast cereal this morning, and the first response being asking...
by GlowInTheDark
Sun Feb 23, 2020 6:53 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 9266

"Unzipping in a pipeline" and various other topics

Well, I'm confused. I did not understand what you are talking about. Well, you did notice the Subject line change for this and the last several responses? What we want is a nice tool to flash SD cards. You were commenting on internet services. As far as I know flashing SD cards does not require an ...
by GlowInTheDark
Sun Feb 23, 2020 6:42 pm
Forum: Python
Topic: Run the python interpreter nicer...
Replies: 3
Views: 150

Re: Run the python interpreter nicer...

Yep.

You might also want to look at the renice (1) command.
by GlowInTheDark
Sun Feb 23, 2020 5:04 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 9266

Unzipping in a pipeline

I'm not the one who is confused here.

Granted, this discussion has reached kind of a high level, so the outcome is not surprising.
by GlowInTheDark
Sun Feb 23, 2020 2:16 pm
Forum: Raspbian
Topic: Boot up error
Replies: 1
Views: 71

Re: Boot up error

The picture is upside down. I ran it through: $ convert xxx.jpg -rotate 180 new.jpg to make it more readable. Anyway, your machine seems to have booted OK (in that you get to a login prompt and you get logged in). Did you type in that "sudo systemctl ..." command? If so, why? (Not saying you shouldn...
by GlowInTheDark
Sun Feb 23, 2020 1:33 pm
Forum: Networking and servers
Topic: ssh to a Raspberry from Windows WSL
Replies: 5
Views: 178

Re: ssh to a Raspberry from Windows WSL

rin67630 wrote:
Sun Feb 23, 2020 12:08 pm
I finally got it.
I had to invoke ssh -l [pi]
Else it took the windows user name.
:oops:
Yeah, -l will work. But it is easier to just use "pi@", like this:

Code: Select all

C:> ssh pi@myraspberry

Go to advanced search