Go to advanced search

by DougieLawson
Wed Jul 28, 2021 9:22 pm
Forum: Beginners
Topic: Help with the Zero; pleeeease
Replies: 4
Views: 96

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: 107

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: 11
Views: 798

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: 121

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.
by DougieLawson
Mon Jul 26, 2021 4:21 pm
Forum: Other
Topic: Pi-Star Repeater refuse to work
Replies: 8
Views: 205

Re: Pi-Star Repeater refuse to work

You may as well be writing your problem description in Greek. I don't have the PiStar, I don't even know what it's meant to do. If you want help on here you have to write your problem description in terms that the passing Martian or other little green alien would understand. http://www.catb.org/~esr...
by DougieLawson
Mon Jul 26, 2021 4:05 pm
Forum: Troubleshooting
Topic: apache2 permissions
Replies: 4
Views: 121

Re: apache2 permissions

What are you trying to achieve?

ALL files in /tmp are removed at reboot time, no exceptions.
by DougieLawson
Mon Jul 26, 2021 4:04 pm
Forum: Troubleshooting
Topic: Pi Zero W - LED Flashing (Not boot issue)
Replies: 6
Views: 189

Re: Pi Zero W - LED Flashing (Not boot issue)

whitling2k wrote:
Mon Jul 26, 2021 2:45 pm
I increased the size of the swap file, re-ran the operation that was causing the issue, and it ran successfully in about 20 minutes.
That's because the swapping system is thrashing the SDCard to death so the read/write LED appears to be always ON.
by DougieLawson
Mon Jul 26, 2021 4:01 pm
Forum: Other
Topic: Pi-Star Repeater refuse to work
Replies: 8
Views: 205

Re: Pi-Star Repeater refuse to work

I think you would be much more likely to get a sane and coherent response by posting your question (complete with many more details of how it fails) on the PiStar forum at: https://forum.pistar.uk/
by DougieLawson
Mon Jul 26, 2021 3:56 pm
Forum: General programming discussion
Topic: HTML problem for running scripts over web
Replies: 4
Views: 157

Re: HTML problem for running scripts over web

Have you added the www-data userid/group to the GPIO group?

sudo usermod -a -G gpio www-data
sudo systemctl restart lighttpd apache2 nginx # pick your poison
by DougieLawson
Sat Jul 24, 2021 3:31 pm
Forum: Other programming languages
Topic: Cobol in schools
Replies: 92
Views: 2674

Re: Cobol in schools

Assembler is useful in post-mortem dump analysis especially when the dump formatter includes a built-in disassembler. I spent twenty years doing that form of troubleshooting (when I wasn't doing the third level Q&A stuff).
by DougieLawson
Sat Jul 24, 2021 2:23 pm
Forum: General programming discussion
Topic: Bizarre behavior of motors when using WiringPi
Replies: 1
Views: 84

Re: Bizarre behavior of motors when using WiringPi

WiringPi is deprecated.
http://wiringpi.com/wiringpi-deprecated/

You're probably better off trying to find another library to use with C/C++.
by DougieLawson
Sat Jul 24, 2021 2:07 pm
Forum: Other programming languages
Topic: Cobol in schools
Replies: 92
Views: 2674

Re: Cobol in schools

Making a case to teach Assembly programming too? Maybe on a Pico, but Aarch64 assembly is supposed to be easier than 32bit Arm.assembly. Brush off 68000 assembly coding or RISC-V? Hmm assembly coding in the Pico PIO? That might be very useful The editor/debugger can run in the Arm cores. If the Pic...
by DougieLawson
Sat Jul 24, 2021 2:02 pm
Forum: General discussion
Topic: Motors not spinning with GPIO pins
Replies: 4
Views: 136

Re: Motors not spinning with GPIO pins

You should take a look at the UCtronics Wiki https://www.uctronics.com/wiki/(SKU:_K0 ... ry_Pi_V1.0 (there's even a "contact" link on there to ask the developers for help).
by DougieLawson
Sat Jul 24, 2021 10:51 am
Forum: Troubleshooting
Topic: pi 4 cannot ping gateway but can connect to internet
Replies: 5
Views: 170

Re: pi 4 cannot ping gateway but can connect to internet

Your school may have ICMP blocked. This is the protocol that ping uses. Sometimes ICMP is turned off as a security measure. Any network admin that blocks a ping needs to get off my network and go away and learn why blocking ICMP breaks networks. What I'd do on a system that appears to be blocked is...
by DougieLawson
Sat Jul 24, 2021 10:45 am
Forum: Troubleshooting
Topic: Pi Zero W - LED Flashing (Not boot issue)
Replies: 6
Views: 189

Re: Pi Zero W - LED Flashing (Not boot issue)

I think it's a memory issue. I reran the command with an increased swapfile and it ran no problem. Could anyone confirm (or otherwise) that a steady blinking LED on a fully booted and running Pi Zero is an out-of-memory alert? Not usually. The blinking LED is indicating access to the SDCard. You ha...
by DougieLawson
Sat Jul 24, 2021 9:30 am
Forum: Other programming languages
Topic: Cobol in schools
Replies: 92
Views: 2674

Re: Cobol in schools

All the main OS's are written primarily in C, including Linux, Windows, MacOS, UNIX. In fact C was created specifically to write the UNIX OS in. Rewriting UNIX in C made it portable, and allowed UNIX to expand and become a full multi-user OS. More on-topic, Dougie noted that the GNU Cobol compiler ...
by DougieLawson
Thu Jul 22, 2021 11:25 pm
Forum: C/C++
Topic: How to use BCM.h library and wiring Pi together.
Replies: 4
Views: 239

Re: How to use BCM.h library and wiring Pi together.

Humza wrote:
Thu Jul 22, 2021 11:02 pm

I'm not working with an LCD? I just need to run other peripherals with the mcp23017, im not sure what I am looking at through the github/what part of that will be helpful.
That code sample is driving an LCD with an MCP23017 GPIO expander. You clearly didn't bother reading my code.
by DougieLawson
Thu Jul 22, 2021 10:56 pm
Forum: C/C++
Topic: How to use BCM.h library and wiring Pi together.
Replies: 4
Views: 239

Re: How to use BCM.h library and wiring Pi together.

However I am also using the MCP23017 which has everything setup in the wiring Pi libraries. ( i had got this code working first for some tests that i neeeded to run) . You DO NOT need WiringPi to run an MCP23017. There's some sample code here: https://github.com/DougieLawson/RaspberryPi/blob/master...
by DougieLawson
Thu Jul 22, 2021 10:50 pm
Forum: Raspberry Pi OS
Topic: Feature suggestion: Add screen keyboard by default
Replies: 10
Views: 325

Re: Feature suggestion: Add screen keyboard by default

Good or bad idea? It's an exceedingly bad idea. 99.99% of users would never need it, there's enough bloat in RaspiOS without adding more unnecessary stuff. If you want a screen keyboard you can ssh into the system and install one (although the ones I've tried are with my 7" touch screen are ab...
by DougieLawson
Thu Jul 22, 2021 9:44 pm
Forum: Beginners
Topic: A few python application won't update...?!
Replies: 8
Views: 252

Re: A few python application won't update...?!

Do you need to upgrade? Is there something not working that leads you to believe you need to upgrade them? If not, leave it alone. Or just upgrade them. I wouldn't bother doing anything as the whole collection of installed python3 modules WILL change with RaspiOS Bullseye (which is due out next mon...
by DougieLawson
Thu Jul 22, 2021 6:06 pm
Forum: Raspberry Pi OS
Topic: Kernel 5.10.17 32-bit for low latency
Replies: 5
Views: 302

Re: Kernel 5.10.17 32-bit for low latency

Post an issue at https://github.com/RPi-Distro/rpi-source/issues and ask for help from the developer/maintainer.
by DougieLawson
Thu Jul 22, 2021 6:03 pm
Forum: Off topic discussion
Topic: Pi Modules
Replies: 6
Views: 329

Re: Pi Modules

Why not ask them, they appear to have a contact page @ https://pimodules.com/contact-us

Of course you could just be a spammer & sock puppet for them.
by DougieLawson
Wed Jul 21, 2021 6:30 pm
Forum: Networking and servers
Topic: Trying to run Web Server with nginx!
Replies: 10
Views: 358

Re: Trying to run Web Server with nginx!

Stop changing things. It's working as you got the PHP logo.

Go to advanced search