Go to advanced search

by sparkie777
Thu Oct 08, 2020 5:50 pm
Forum: Beginners
Topic: Connect RPi Zero W with DC cable
Replies: 27
Views: 653

Re: Connect RPi Zero W with DC cable

an all in one solution for Pi0 with

- passive PoE
- ethernet connection
- compact size

is illustrated here:

connecting Pi0 to the ethernet
supplying power to the Pi0 with an UBEC (preparation for passive PoE)
putting all things together
by sparkie777
Thu Oct 08, 2020 5:40 pm
Forum: Beginners
Topic: Connect RPi Zero W with DC cable
Replies: 27
Views: 653

Re: Connect RPi Zero W with DC cable

just connect an 5V/3A UBEC to the proper GPIO header pins and you are done: Post
by sparkie777
Thu Oct 08, 2020 3:36 pm
Forum: Troubleshooting
Topic: Mailto Crontab
Replies: 2
Views: 95

Re: Mailto Crontab

enry86cami wrote:
Thu Oct 08, 2020 3:18 pm
Could someone tell me why?
if you redirect the output of your cron command to a file nothing is leftover for cron to email
by sparkie777
Fri Oct 02, 2020 6:41 pm
Forum: General discussion
Topic: Security on Raspbian OS
Replies: 12
Views: 587

Re: Security on Raspbian OS

fruitoftheloom wrote:
Fri Oct 02, 2020 5:26 pm
As the OP has a BCM2835 RPi only ARMEL is supported by Debian as it is ARMv6:
I was wondering what he meant with 'raspberrypi W'. Your answer implies he missed the 'zero'. Don't know if that's what he really was talking about.
by sparkie777
Fri Oct 02, 2020 3:04 pm
Forum: General discussion
Topic: Security on Raspbian OS
Replies: 12
Views: 587

Re: Security on Raspbian OS

you may be right. But I think the pure-Debian-and-nothing-else evangelists won't interest that much.
by sparkie777
Fri Oct 02, 2020 1:06 pm
Forum: Camera board
Topic: Motion.conf file for low light
Replies: 13
Views: 20732

Re: Motion.conf file for low light

Johnny_quattro wrote:
Fri Oct 02, 2020 12:32 pm
When Motion is installed via apt, the mmalcam option is not available
this and most of the other quotations is completely outdated. At least in Pi OS buster.

Why don't you just install via apt and check '/etc/motion/motion.conf'? You will see all required options are already there.
by sparkie777
Fri Oct 02, 2020 3:54 am
Forum: Troubleshooting
Topic: Can’t get rid of the ia_addr insert error filling my syslog
Replies: 2
Views: 107

Re: Can’t get rid of the ia_addr insert error filling my syslog

being pissed off a certain message in your logs => simply suppress that from being logged e.g. to suppress lines Feb 10 16:23:35 raspberrypi snmpd[19807]: error on subcontainer 'ia_addr' insert (-1) assuming 'rsyslogd' is your current system for log processing simply create a file ending with '.conf...
by sparkie777
Fri Oct 02, 2020 3:19 am
Forum: General discussion
Topic: Security on Raspbian OS
Replies: 12
Views: 587

Re: Security on Raspbian OS

@pinguim86:
no worries mate. if you for some reason definitively can't cope with Pi OS simply resort to: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4 - Raspberry Pi Forums
by sparkie777
Fri Oct 02, 2020 2:54 am
Forum: Troubleshooting
Topic: Bash : erasedups
Replies: 18
Views: 391

Re: Bash : erasedups

If you are typing a command that you know you are likely to need again in future, in my opinion you should be documenting that somewhere sensible. Just throwing everything you have ever typed into one file is worse than useless can you predict the future? :D sometimes after months I remember weakly...
by sparkie777
Thu Oct 01, 2020 6:03 pm
Forum: Troubleshooting
Topic: Bash : erasedups
Replies: 18
Views: 391

Re: Bash : erasedups

my full blown 'bash_hist_sanitizer' script down below. A few years ago I sporadically found my .bash_history truncated or even empty. I don't know what the reason was. Maybe since I use too many shells writing all to the same history file at the same time without locking :lol: If that script detects...
by sparkie777
Thu Oct 01, 2020 5:08 pm
Forum: Troubleshooting
Topic: Bash : erasedups
Replies: 18
Views: 391

Re: Bash : erasedups

I'm curious as to why the size of the .bash_history file and the existence of duplicates is a problem for you though. duplicates in the bash_history are maximum annoying. In particular if you search backwards for a certain variant of a less specific command. And you get tons of exactly the same cal...
by sparkie777
Thu Oct 01, 2020 3:36 pm
Forum: Troubleshooting
Topic: Bash : erasedups
Replies: 18
Views: 391

Re: Bash : erasedups

wow, thanks! you entitled my first good deed today :D
by sparkie777
Thu Oct 01, 2020 3:08 pm
Forum: Troubleshooting
Topic: Bash : erasedups
Replies: 18
Views: 391

Re: Bash : erasedups

a trivial script tosses any (not only consecutive) duplicate entry keeping only the most recent one. So the history sequence is compacted but still in order. Requires 'gawk' and 'tac' installed #!/bin/sh HST=$HOME/.bash_history tac < $HST | awk '{ if (!A[$0]++) print }' | tac > $HST.$$ mv $HST.$$ $H...
by sparkie777
Wed Sep 30, 2020 7:19 pm
Forum: Camera board
Topic: Streaming mjpg from Raspberry Cam
Replies: 232
Views: 213919

Re: Streaming mjpg from Raspberry Cam

have you already tried to use raspivid with MJPEG encoder? Provides a higher framerate (about 10fps) than mjpg-streamer:

example:

Code: Select all

raspivid -v -md 2 -w 1920 -h 1440 -fps 11 -cd MJPEG -n -rot 180 -t 0 -l -o tcp://0.0.0.0:5001
by sparkie777
Sun Sep 27, 2020 12:00 pm
Forum: Troubleshooting
Topic: Can't set full duplex 1000Mb/s permanent
Replies: 5
Views: 196

Re: Can't set full duplex 1000Mb/s permanent

correct. And that's exactly why we run into trouble in situations when auto-negotiation does not work properly:

PI 4 eth0 link does not come up if only 2 twisted pairs are wired up (100Mbps)
by sparkie777
Sun Sep 27, 2020 11:16 am
Forum: Advanced users
Topic: Writing 128GB sequentially to USB3 SSD fast
Replies: 16
Views: 828

Re: Writing 128GB sequentially to USB3 SSD fast

why not just increase the overall size written to reduce/eliminate caching effects? I now did repeat the measurement with 256GB (instead 128GB) written to RAID0 on my desktop PC. The results remain the same => still 1.1GB/s each single disk on this system however is by far slower than that (see Post...
by sparkie777
Sun Sep 27, 2020 7:36 am
Forum: Camera board
Topic: Camera Suggestions?
Replies: 3
Views: 202

Re: Camera Suggestions?

an example how to setup a Pi0 unit for use with a small cam + passive PoE:

Shrinking a project into an RPi Zero W - how to connect?
by sparkie777
Sun Sep 27, 2020 5:20 am
Forum: Camera board
Topic: raspivid sporadically stops working after days
Replies: 0
Views: 130

raspivid sporadically stops working after days

the problem mentioned basically occurs on all of my surveillance cameras. So I think it's no specific hardware issue. some details: on the Pi side I use: raspivid -v -a 524 -a 4 -a "rpi-6 %Y-%m-%d %X" -md 2 -w 1920 -h 1440 -fps 11 -cd MJPEG -n -rot 180 -t 0 -l -o tcp://0.0.0.0:5001 the client side (...
by sparkie777
Sat Sep 26, 2020 6:55 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 747

Re: Unboxing a Raspberry 4 (8GB version)

sorry, but the trigger condition for 'the report button' has not been reached yet.
by sparkie777
Sat Sep 26, 2020 5:41 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 747

Re: Unboxing a Raspberry 4 (8GB version)

I am also one who misses the spring loaded SD slot. I never had much in the way of problems with them the real inconvenience with the two existing slot types and the mass of my Pis now is I never know (except for the most recent ones) is it spring loaded or not. So to stay on the safe side I always...
by sparkie777
Sat Sep 26, 2020 4:13 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 747

Re: Unboxing a Raspberry 4 (8GB version)

davidcoton wrote:
Sat Sep 26, 2020 4:09 pm
You might be right. But the OP signed up in April 2018. Surely qualified by now :lol:
no. After some time of inactivity the OP started to unbox his first Pi right now :D
by sparkie777
Sat Sep 26, 2020 3:50 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 747

Re: Unboxing a Raspberry 4 (8GB version)

you can't judge the book by its cover (or "box"). Read it! So I think it's a better practice to first work with the Pi a few weeks or months. Over time for many aspects you will discover and learn to appreciate the more subtle details of this ingenious little thing. should after that qualifying peri...
by sparkie777
Sat Sep 26, 2020 3:05 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 747

Re: Unboxing a Raspberry 4 (8GB version)

@KatSeiko:
only 2 posts and just complaining? Don't expect any help in the future :lol:
by sparkie777
Sat Sep 26, 2020 2:47 pm
Forum: Advanced users
Topic: Writing 128GB sequentially to USB3 SSD fast
Replies: 16
Views: 828

Re: Writing 128GB sequentially to USB3 SSD fast

The numbers you report for your internal PC SSD matche my measurements for my laptop's internal SSD. that's really funny since we get similar performance with completely different hardware. You say in your other thread: That RHEL7 laptop has a builtin 500MB NVME SSD, don't know which one in contras...
by sparkie777
Sat Sep 26, 2020 6:05 am
Forum: Networking and servers
Topic: Can't get EXIM4 to listen on ANY ports?
Replies: 4
Views: 193

Re: Can't get EXIM4 to listen on ANY ports?

dc_local_interfaces='[127.0.0.1]:25' what should that mean? please restart exim4 and watch '/var/log/syslog': # systemctl restart exim4 # cat /var/log/syslog [...] Sep 26 08:01:20 rpi-u exim4[2190]: Starting MTA:2020-09-26 08:01:20 Malformed IP address "25" in local_interfaces Sep 26 08:01:20 rpi-u...

Go to advanced search