Go to advanced search

by DougieLawson
Sun Aug 01, 2021 9:55 pm
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 6
Views: 130

Re: Strange partition setup after flash to NVME USB drive

When I connect the device to my PI, I can see it however when trying to boot from it, i receive the error: "Unsupported block size 4096" Use the Raspberry Pi Imager tool to write your Linux OS to your SDCard. Do NOT use ANY Windows native utilities (unless you've got the WIN10/WIN11 WSL i...
by DougieLawson
Sun Aug 01, 2021 5:40 pm
Forum: Advanced users
Topic: Second TV HAT on Zero-W
Replies: 3
Views: 156

Re: Second TV HAT on Zero-W

Pearl.852 wrote:
Sat Jul 31, 2021 5:03 am
Take a look at https://pinout.xyz/pinout/spi
https://pinout.xyz/pinout/tv_hat is more likely to be useful for the OP.
by DougieLawson
Sun Aug 01, 2021 5:38 pm
Forum: General discussion
Topic: No revision info in /proc/cpuinfo
Replies: 9
Views: 331

Re: No revision info in /proc/cpuinfo

The stock Linux arm64 kernel doesn't display revision, serial or model in /proc/cpuinfo. The RPT kernel has a patch applied that adds it. OP isn't using RPi OS so their kernel presumably doesn't have it. So replace the kernel with the RPF/RPTL version. It's easy enough to grab that from https://git...
by DougieLawson
Sun Aug 01, 2021 2:08 pm
Forum: General discussion
Topic: No revision info in /proc/cpuinfo
Replies: 9
Views: 331

Re: No revision info in /proc/cpuinfo

Why aren't folks using the more reliable cat /sys/firmware/devicetree/base/model;echo which is easier than decoding the /proc/cpuinfo Revision string.
by DougieLawson
Sun Aug 01, 2021 2:05 pm
Forum: Troubleshooting
Topic: Incorrect Date and Time Preventing Web Access
Replies: 5
Views: 151

Re: Incorrect Date and Time Preventing Web Access

Is it possible that your Network Manager has by policy blocked network protocols that are not needed/approved, thus preventing the RPi/Buster systems from syncing their time from the Internet via NTP? Then they ought to provide a time server on the local network ? (Wouldn't have to be full NTP. Eve...
by DougieLawson
Sun Aug 01, 2021 12:59 pm
Forum: General discussion
Topic: A simple way to get all IP and MAC addresses on my network
Replies: 24
Views: 577

Re: A simple way to get all IP and MAC addresses on my network

I use this nmap script #!/bin/bash $ip="192.168.3.0/24" sudo nmap -n -sP $IP | awk '/Nmap/ {if (x) {if (x ~ /B8:27/) {split(x, m); print m[5] " " m[13];} x="";} } {x=(!x)?$0:x" "$0;}' I'm only looking for the old Raspberry MAC address with that awk command. Or...
by DougieLawson
Sun Aug 01, 2021 12:42 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 37
Views: 2177

Re: Network keeps dropping on System Containing Raspberry Pis

I'm running a bash script that sleeps for ten minutes, wakes up, checks the network and either sleeps for ten minutes or fixes it.[/code] It's a bit crude, but before I upgraded my TP-Link firmware (which solved the problem permanently) it was keeping the network alive on all of my WiFi raspberries...
by DougieLawson
Sun Aug 01, 2021 12:39 pm
Forum: Advanced users
Topic: Optimal distcc settings when compiling an RPi
Replies: 4
Views: 134

Re: Optimal distcc settings when compiling an RPi

Why not ask the Box86 developer(s) by opening an issue at https://github.com/ptitSeb/box86/issues? They appear to be optimising for ArmV7 in https://github.com/ptitSeb/box86/blob/master/pkgbuilds/PKGBUILD-raspberrypi They should be using -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-f...
by DougieLawson
Sun Aug 01, 2021 12:28 pm
Forum: Advanced users
Topic: Home server security
Replies: 6
Views: 180

Re: Home server security

The thing that really scared me are those 2 entries: 24.99.***.*** - - [01/Aug/2021:02:08:34 +0200] "GET /admin/index.php?lang=en HTTP/1.1" 200 9434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"...
by DougieLawson
Sun Aug 01, 2021 12:15 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 37
Views: 2177

Re: Network keeps dropping on System Containing Raspberry Pis

The linux watchdog is always a tricky to setup past "apt install watchdog". The watchdog device in a Pi must be polled at least every 15 seconds, so naively using the "ping" directive in watchdog.conf makes the Pi send a ping every 10 secs or so. I'm running a bash script that s...
by DougieLawson
Sun Aug 01, 2021 11:22 am
Forum: Python
Topic: PHP/PYTHON runs fine on a PI3 but not on a PI4
Replies: 8
Views: 227

Re: PHP/PYTHON runs fine on a PI3 but not on a PI4

To be more secure take www-data out of sudoers. Use sudo usermod -a -G gpio www-data; sudo systemctl restart nginx lighttpd apache2 to allow the web server to access RPi.GPIO. Get the paho-mqtt module with sudo pip3 install paho-mqtt #!/usr/bin/python3 import RPi.GPIO as GPIO import os import paho.m...
by DougieLawson
Sun Aug 01, 2021 10:20 am
Forum: Beginners
Topic: How does my RPi get the time -- no NTP daemon
Replies: 2
Views: 87

Re: How does my RPi get the time -- no NTP daemon

It's all done with systemd timesyncd.

If you want to run ntpd you have to a) install it & b) disable the systemd timesyncd stuff.
by DougieLawson
Sun Aug 01, 2021 10:17 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: overclocking the raspberry pi desktop
Replies: 4
Views: 110

Re: overclocking the raspberry pi desktop

coolprofessor wrote:
Sun Aug 01, 2021 1:47 am
Is there a way to overclock the raspberry pi desktop?
Search Google for "X86 DebIan overclocking".

The Raspberry piece is only the desktop and the collection of installed programs, nothing to do with the underlying OS.
by DougieLawson
Fri Jul 30, 2021 7:49 pm
Forum: Networking and servers
Topic: Pi web server
Replies: 1
Views: 193

Re: Pi web server

Please don't cross-post. This is a duplicate of viewtopic.php?f=36&t=316740&p=1895110#p1895110
by DougieLawson
Fri Jul 30, 2021 6:35 pm
Forum: Python
Topic: PHP/PYTHON runs fine on a PI3 but not on a PI4
Replies: 8
Views: 227

Re: PHP/PYTHON runs fine on a PI3 but not on a PI4

The problem has been solved by adding: www-data ALL=(ALL) NOPASSWD:ALL in the sudoers file. That is a massive security hole, roughly the size of the crater on Mount Fuji that you've opened in your system. Why do you think your python program needs to run with sudo? Why aren't you using the python p...
by DougieLawson
Fri Jul 30, 2021 5:09 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.10
Replies: 625
Views: 96829

Re: Moving Linux Kernel to 5.10

Unless you need an enhancement included in the newer kernel more, you could easily revert to the previous kernel version you were using, until the CEC functionality you are trying to use is/maybe restored in a newer kernel. It's less than easy when they've pushed it out 5.10.52 with the raspberrypi...
by DougieLawson
Thu Jul 29, 2021 7:15 pm
Forum: Troubleshooting
Topic: BME688 Weather Sensor
Replies: 3
Views: 90

Re: BME688 Weather Sensor

It won't work until you solder in those header pins.
by DougieLawson
Thu Jul 29, 2021 6:32 pm
Forum: Troubleshooting
Topic: Very first piB may now be U/S
Replies: 2
Views: 108

Re: Very first piB may now be U/S

Have you tried replacing the power supply? That's what failed on a couple of my older RPi1 boards.
by DougieLawson
Thu Jul 29, 2021 6:20 pm
Forum: Beginners
Topic: Help with the Zero; pleeeease
Replies: 11
Views: 396

Re: Help with the Zero; pleeeease

Wyndwyllow55 wrote:
Thu Jul 29, 2021 6:09 pm
- I'm NOT english, some things might be missing and maybe it's not easy to get my idea.
Try posting your question in your native language forum at viewforum.php?f=90 where the meaning won't get scrambled by Google translate.
by DougieLawson
Wed Jul 28, 2021 9:22 pm
Forum: Beginners
Topic: Help with the Zero; pleeeease
Replies: 11
Views: 396

Re: Help with the Zero; pleeeease

What's the problem with using RaspiOS 32-bit Lite? Why do you think you need something else?
by DougieLawson
Wed Jul 28, 2021 7:53 am
Forum: Beginners
Topic: UFW firewall prob: WARN: uid is 0 but '/usr' is owned by 1XXX
Replies: 3
Views: 140

Re: UFW firewall prob: WARN: uid is 0 but '/usr' is owned by 1XXX

Gives output: WARN: uid is 0 but '/etc' is owned by 1000 WARN: uid is 0 but '/' is owned by 1000 WARN: uid is 0 but '/lib' is owned by 1000 WARN: uid is 0 but '/usr' is owned by 1000 (numbers subtituted incase it's relevant to security) Someone has been abusing the chmod and chown commands with the...
by DougieLawson
Mon Jul 26, 2021 5:48 pm
Forum: Other projects
Topic: Print server (CUPS) is very slow with pdf files
Replies: 13
Views: 951

Re: Print server (CUPS) is very slow with pdf files

AirPrint is sort of its own print server, so you can print jobs from different computers and they won't collide. CUPS is the standards-based, open source printing system developed by Apple Inc. for macOS® and other UNIX®-like operating systems. Since it was Apple that invented CUPS, there's a very ...
by DougieLawson
Mon Jul 26, 2021 5:42 pm
Forum: Troubleshooting
Topic: apache2 permissions
Replies: 4
Views: 133

Re: apache2 permissions

Start by copying everything in /etc/apache2/*.conf and /etc/apache/conf-available across to your second machine.

Then look at /etc/apache2/sites-available on your original machine.

You may need to run sudo a2enconf ... to enable any config files that you copy across.

Go to advanced search