Go to advanced search

by DougieLawson
Thu Dec 12, 2019 4:17 pm
Forum: Beginners
Topic: Looking for some Input Regarding Pi Zero
Replies: 7
Views: 202

Re: Looking for some Input Regarding Pi Zero

BT, who uses that apart from the other Douglas?
by DougieLawson
Thu Dec 12, 2019 3:04 pm
Forum: Beginners
Topic: Looking for some Input Regarding Pi Zero
Replies: 7
Views: 202

Re: Looking for some Input Regarding Pi Zero

The difference is that the W has on-board WiFi. Nothing more.
by DougieLawson
Thu Dec 12, 2019 6:35 am
Forum: General discussion
Topic: We want "more"
Replies: 16
Views: 671

Re: We want "more"

Heater wrote:
Thu Dec 12, 2019 5:47 am
Just make more an alias for less, then you will get less when you type more.
I'd be inclined to rename /bin/more to something else and make /bin/more into a link to /usr/bin/less.

The less you use more, the more you use less.
by DougieLawson
Thu Dec 12, 2019 4:53 am
Forum: Beginners
Topic: cd: /usr/lib/cgi-bin/: Permission denied
Replies: 2
Views: 73

Re: cd: /usr/lib/cgi-bin/: Permission denied

/usr/lib/cgi-bin is owned by root (for security reasons). So you can't write there without using sudo. Unless you've mucked it up then it's got 755 (rwxr-xr-x) permission bits so everyone can read it. Programs in /usr/lib/cgi-bin need to have 755 permission bits chmod g+x,a+x mycgi-program.executabl...
by DougieLawson
Thu Dec 12, 2019 4:48 am
Forum: General discussion
Topic: We want "more"
Replies: 16
Views: 671

Re: We want "more"

Imperf3kt wrote:
Wed Dec 11, 2019 10:31 pm
Is there an actual conversation here, because I can't understand a word of this.
What is "less" and "more"?
/bin/more
and
/usr/bin/less

Less is better than more by a country mile.

RTFManPages

man less
man more
by DougieLawson
Thu Dec 12, 2019 4:46 am
Forum: Beginners
Topic: How to connect with ESP8266 and Raspberry pi
Replies: 4
Views: 114

Re: How to connect with ESP8266 and Raspberry pi

I've got some code that does precisely what Neil is suggesting at: https://github.com/DougieLawson/Wemos_Arduino_MQTT
by DougieLawson
Thu Dec 12, 2019 4:40 am
Forum: General discussion
Topic: SD-CARD size problem
Replies: 13
Views: 355

Re: SD-CARD size problem

That's a NOOBS system. Is it one that's been migrated to Buster from Stretch? Only your /boot folder is too small (needs to be 256M now). What I'd do is 1. Get a new SDCard 2. Clone the current system to it (this gives you a safe backup and a bootable rescue system) 3. Install gparted (in case you w...
by DougieLawson
Wed Dec 11, 2019 7:58 pm
Forum: Media centres
Topic: TV Hat - no DVB-T2 muxes
Replies: 4
Views: 158

Re: TV Hat - no DVB-T2 muxes

It's just about certain to be your lousy antenna.
by DougieLawson
Wed Dec 11, 2019 6:00 am
Forum: Official Foundation Display
Topic: Powering The Display OFF, Removing The Power
Replies: 4
Views: 144

Re: Powering The Display OFF, Removing The Power

You can NOT power off the display. It won't be detected when you power it back on.

https://github.com/DougieLawson/backlight_dimmer will dim the display backlight to zero brightness until a touch event happens.
by DougieLawson
Wed Dec 11, 2019 5:51 am
Forum: Media centres
Topic: TV Hat - no DVB-T2 muxes
Replies: 4
Views: 158

Re: TV Hat - no DVB-T2 muxes

What country are you in?
What antenna are you using?

I've just re-scanned my TV HAT and it found all of the UK Hannington HD channels. That's just with a short and stubbie CH21 to CH68 antenna (as obtained from the well known auction site).
by DougieLawson
Tue Dec 10, 2019 11:03 pm
Forum: Networking and servers
Topic: Experts: NFS or Samba?
Replies: 4
Views: 179

Re: Experts: NFS or Samba?

NFS plays nicely with the Linux permission bits and ownership model. Samba/CIFS doesn't do that.
by DougieLawson
Tue Dec 10, 2019 9:44 pm
Forum: Troubleshooting
Topic: I2C Help
Replies: 3
Views: 99

Re: I2C Help

You need to add

Code: Select all

dtparam=i2c_arm=on
to /boot/config.txt it will automatically load the i2c modules needed in the kernel.
by DougieLawson
Tue Dec 10, 2019 9:34 pm
Forum: Beginners
Topic: Ethernet to Pi while running Linux Mint
Replies: 2
Views: 95

Re: Ethernet to Pi while running Linux Mint

The best thing would be to get 1) a new SDcard 2) a USB SDCard reader (may be optional if your Mint system has an SDXC reader built-in). Download Raspbian Buster Download Balena Etcher (which should run on Mint) if you're not confident of running dd to copy Buster to an SDCard on your Mint system. U...
by DougieLawson
Tue Dec 10, 2019 9:22 pm
Forum: Troubleshooting
Topic: Time sync does not after boot on Buster
Replies: 6
Views: 193

Re: Time sync does not after boot on Buster

ulfh2018 wrote:
Tue Dec 10, 2019 6:45 pm
Thanks a lot! This solved the problem with time-sync, which took some time before, but Domoticz still not working.
You'll need to post your Domoticz problem/bug/annoyance at https://www.domoticz.com/forum/
by DougieLawson
Tue Dec 10, 2019 9:19 pm
Forum: Troubleshooting
Topic: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
Replies: 4
Views: 467

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

iprohorov wrote:
Mon Oct 07, 2019 9:30 am

pi@raspberrypi:~/upload $ uname -srm
Linux 4.19.57-v7+ armv7l
That kernel is out of date. The current stable kernel is 4.19.75-v7+

Run sudo apt update; sudo apt dist-upgrade -y && sudo reboot to get to a current version. That will also get you the go faster but run cooler stuff.
by DougieLawson
Tue Dec 10, 2019 9:13 pm
Forum: Troubleshooting
Topic: File Manger shows spaces as %20 on network shares
Replies: 7
Views: 189

Re: File Manger shows %20 instead of spaces

Have you run sudo apt update; sudo apt dist-upgrade -y recently. There's been some fixes to PCmanFM.
by DougieLawson
Tue Dec 10, 2019 9:11 pm
Forum: Troubleshooting
Topic: MySQL ALTER TABLE commands "hanging" after copying to USB
Replies: 8
Views: 184

Re: MySQL ALTER TABLE commands "hanging" after copying to USB

HyFy wrote:
Tue Dec 10, 2019 7:13 pm

Thanks once again . Your view and advice are always very welcome and I regularly look for your advice on other people's threads
Thank you. That's a very kind comment.

I just wish I could have recreated your problem.
by DougieLawson
Tue Dec 10, 2019 8:47 pm
Forum: General discussion
Topic: Run a python script from PHP
Replies: 7
Views: 176

Re: Run a python script from PHP

marco.costanza wrote:
Tue Dec 10, 2019 8:41 pm

$result = shell_exec('/usr/bin/python /home/pi/script/sample.py');
echo $result;
If that is running in a web server then you need sudo chgrp www-data /home/pi/script/sample.py

And your PHP code becomes

Code: Select all

<?php
$result = shell_exec('/home/pi/script/sample.py');
echo $result;
?>
by DougieLawson
Tue Dec 10, 2019 6:46 pm
Forum: C/C++
Topic: Help with GPCLK setup? My register assignments aren't working?
Replies: 7
Views: 161

Re: Help with GPCLK setup? My register assignments aren't working?

Some values printed: address of gpio = 0x3f200000 address of clk_ctrl = 0x3f101000 // should be 0x3f101070?? clock ctr reg @ address 0x3f101000 = 1b124201 clock div reg @ address 0x3f101004 = 1a000000 Once again, why assigning clk_ctrl[1] = 0x5a000000 turns into 0x1a000000 is beyond me. You've over...
by DougieLawson
Tue Dec 10, 2019 4:50 pm
Forum: Troubleshooting
Topic: MySQL ALTER TABLE commands "hanging" after copying to USB
Replies: 8
Views: 184

Re: MySQL ALTER TABLE commands "hanging" after copying to USB

I think you may have found some sort of bug in MarisDB. So you may want to report that to the developers.
by DougieLawson
Tue Dec 10, 2019 4:48 pm
Forum: Troubleshooting
Topic: Time sync does not after boot on Buster
Replies: 6
Views: 193

Re: Time sync does not after boot on Buster

Have you set "wait for network" in the preferences dialog or with sudo raspi-config?
by DougieLawson
Tue Dec 10, 2019 6:39 am
Forum: Troubleshooting
Topic: Random speed slowdown reading files from connected usb hard drive on rpi3 (not a network problem)
Replies: 19
Views: 879

Re: Random speed slowdown reading files from connected usb hard drive on rpi3 (not a network problem)

Have you considered that it may be GitHub.com that is rate limiting your downloads? I've got a version of rpi-update that works from a one shot download that's hosted on my Raspberry Pi. You only need the ../commits & ../tarball folders to get that running. If you run rpi-update natively then GitHub...
by DougieLawson
Tue Dec 10, 2019 6:33 am
Forum: Troubleshooting
Topic: MySQL ALTER TABLE commands "hanging" after copying to USB
Replies: 8
Views: 184

Re: MySQL ALTER TABLE commands "hanging" after copying to USB

Is it mounted read/write can you touch a file in your ../mysql folder?
Are the permissions set right so the mysql userid can write a file in there and create any new directories?
by DougieLawson
Tue Dec 10, 2019 6:30 am
Forum: Troubleshooting
Topic: temporary failure in name resolution
Replies: 8
Views: 26210

Re: temporary failure in name resolution

Your router & DNS server is unlikely to be the .2 address on your network.

Open a Windows CMD window [WIN]+[R] then run cmd.

When that comes open run ipconfig /all to get Windows to display your gateway router and DNS settings.

Copy those to your RPi's dhcpcd.conf settings.
by DougieLawson
Mon Dec 09, 2019 11:03 pm
Forum: Troubleshooting
Topic: MySQL ALTER TABLE commands "hanging" after copying to USB
Replies: 8
Views: 184

Re: MySQL ALTER TABLE commands "hanging" after copying to USB

What type of filesystem is on your USB drive? Is it NTFS or ext4 or something else?

Go to advanced search