Go to advanced search

by DougieLawson
Fri Jul 30, 2021 7:49 pm
Forum: Networking and servers
Topic: Pi web server
Replies: 1
Views: 76

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 7:48 pm
Forum: Networking and servers
Topic: 502 error nginx web server
Replies: 1
Views: 70

Re: 502 error nginx web server

Does /var/www/html/index.php run OK from a command line?

What's in that PHP program?

One way to test PHP is to create index.php with

Code: Select all

<?php phpinfo(); ?>
Once that's working replace it with your own index.php home page.
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: 4
Views: 124

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: 622
Views: 96194

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

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

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

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

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

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

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

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

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

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

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

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

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: 99
Views: 2989

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

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: 99
Views: 2989

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

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

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

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: 99
Views: 2989

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 ...

Go to advanced search