Go to advanced search

by jbudd
Thu Oct 29, 2020 3:10 pm
Forum: Beginners
Topic: Push button
Replies: 8
Views: 249

Re: Push button

Strictly speaking there is no 5V gpio pin, though there are 5V pins on the Pi's header, connected directly to the USB power in. If you connect 5V to any of the actual gpio pins on the header, it will destroy the Pi. That PIR device can be powered with 5 - 20V (I think) therefore it must have a volta...
by jbudd
Tue Oct 27, 2020 1:21 pm
Forum: Beginners
Topic: Push button
Replies: 8
Views: 249

Re: Push button

I think pir boards usually have +, gnd and signal connections. They may be in different order on different boards, so check the printing on the board. Make sure that you pick a pir device which can be powered from 3.3V, or else check that it's signal output is regulated to 3.3V or you will fry your ...
by jbudd
Tue Oct 27, 2020 10:33 am
Forum: Beginners
Topic: Can anyone help me? Beginner setup.
Replies: 3
Views: 177

Re: Can anyone help me? Beginner setup.

You don't say if your Pi has to run on battery because it's of the grid completely or if you expect power cuts. A zero wh has WiFi built in but you will need an adapter/hub to connect a usb 3G dongle and maybe a usb speaker. You could consider splitting the project into two: A Pi somewhere warm with...
by jbudd
Mon Oct 19, 2020 12:43 pm
Forum: Beginners
Topic: 2nd ip
Replies: 6
Views: 222

Re: 2nd ip

You can set up a fallback IP, the instructions are in the config file. /etc/dhdcp.conf I've wondered if the fallback can be non-static, I suspect so but not tried it. Shouldn't that be /etc/dhcpcd.conf? You can define alternative static ip aliases for different networks using /etc/dhcpcd.exit-hook ...
by jbudd
Tue Oct 13, 2020 12:21 pm
Forum: Beginners
Topic: Moving/flowing banner on the terminal.
Replies: 2
Views: 131

Re: Moving/flowing banner on the terminal.

Maybe you can find online an animated gif generator to scroll the names. If so, you can use chafa to display the image on a Bash terminal. You can install it with sudo apt install chafa . More info at https://hpjansson.org/chafa/download/ Alternatively look at banner and lolcat . The first displays ...
by jbudd
Tue Sep 22, 2020 9:11 am
Forum: General discussion
Topic: run a bash script without ". /"?
Replies: 11
Views: 600

Re: run a bash script without ". /"?

If the directory ~/bin exists it is automatically added to $PATH when you login, so scripts in there can be run without ./ An alternative for simple commands like yours is an alias, which you can define in the profile file (~/.bashrc for command line login). alias usb.on="sudo uhubctl -l 1-1 -a on" ...
by jbudd
Wed Sep 16, 2020 1:38 pm
Forum: Beginners
Topic: I need help with Raspberry Pi and a IOT server.
Replies: 2
Views: 106

Re: I need help with Raspberry Pi and a IOT server.

You can find all sorts of advice on setting up and using a raspberry pi in the Help , Documentation section of the website. There are projects which you might find useful in the MagPi magazine which is free to download. What do you understand "iot server" to mean? For me it would mean a place to rec...
by jbudd
Tue Sep 15, 2020 10:25 am
Forum: General discussion
Topic: Node RED is taking too much RAM (and growing)
Replies: 3
Views: 187

Re: Node RED is taking too much RAM (and growing)

"The process is using 18% of ram.. for what I don't know."
What process is that?
by jbudd
Mon Sep 07, 2020 10:17 pm
Forum: Troubleshooting
Topic: Permision denied error when creating ssh file.
Replies: 6
Views: 276

Re: Permision denied error when creating ssh file.

Since you have access to the Pi GUI, you can enable ssh by Preferences | Raspberry Pi Configuration | Interfaces | ssh Did you try to create SSH as a file or a directory? The error message implies you tried to create a directory, I don't know if that would enable ssh even if it was successful. Do yo...
by jbudd
Mon Sep 07, 2020 5:28 pm
Forum: Beginners
Topic: Raspberry pi Ip address
Replies: 7
Views: 452

Re: Raspberry pi Ip address

Ah yes, sorry! And all those puctuation marks wasted too...
by jbudd
Mon Sep 07, 2020 5:18 pm
Forum: Beginners
Topic: Raspberry pi Ip address
Replies: 7
Views: 452

Re: Raspberry pi Ip address

I have followed all instructions Which instructions? FTrevorGowan asked you if you have a router!!! You didn't reply!!!!! Does it work if you connect to the router with an ethernet cable???????? All you need to connect to wifi is a properly structured wpa_supplicant.conf file. Don't try to set up a...
by jbudd
Mon Sep 07, 2020 5:09 pm
Forum: Beginners
Topic: How to add and control Fan in RPi4 without other power source
Replies: 11
Views: 484

Re: How to add and control Fan in RPi4 without other power source

There is a gpio overlay that allows you to switch a 5v fan on and off according to temperature, no code required. It requires a transistor (probably a resistor in the GPIO connection is a good idea too) and 5V, GND and one GPIO pins. A suitable fan - https://noctua.at/en/nf-a4x10-5v . It's a three w...
by jbudd
Thu Sep 03, 2020 11:36 pm
Forum: Beginners
Topic: Understanding the '&' and '>>' while running a file
Replies: 32
Views: 1073

Re: Understanding the '&' and '>>' while running a file

About redirection > and 2> A Linux process will normally write it's output to a "file" called stdout and error messages to a "file" stderr. If it is run from the command line, these files are your terminal window, but if it's run from rc.local, the output is just discarded. You can redirect the out...
by jbudd
Thu Sep 03, 2020 7:34 am
Forum: General discussion
Topic: A script to flash the Pi's IP address on the PWR or ACT LED
Replies: 8
Views: 517

Re: A script to flash the Pi's IP address on the PWR or ACT LED

Hi David, by all means use the script. I don't have a website to refer you to. If you come up with improvements please let me know. The script features: Inconsistent use of brackets. $i used as a loop counter is bad programming form. The code showthis=SHOWIPGROUP${group} if [ ${!showthis} == "Y" ] (...
by jbudd
Fri Aug 28, 2020 7:12 pm
Forum: Beginners
Topic: Using crontab schedule a script that loops
Replies: 19
Views: 717

Re: Using crontab schedule a script that loops

use systemd and make sure it's configured to restart the script if/when it exits.
Yes!
Simply use a 'sleep' command inside the loop.
Surely it's not a good idea for a home security system to sleep for 15 seconds?
by jbudd
Fri Aug 28, 2020 7:02 pm
Forum: Beginners
Topic: WireGuard VPN: Connected but NO INTERNET
Replies: 4
Views: 1078

Re: WireGuard VPN: Connected but NO INTERNET

A useful Android app is Network Analyser https://play.google.com/store/apps/details?id=net.techet.netanalyzerlite.an&hl=en_US With my phone, connected to Wireguard, the app's Information section tells me: Active Connection Type VPN IP Address 10.6.0.3 DNS Server 10.6.0.1 (my Pi runs both PIVPN and P...
by jbudd
Thu Aug 27, 2020 6:24 pm
Forum: Troubleshooting
Topic: Password stops working next day - fresh install
Replies: 14
Views: 421

Re: Password stops working next day - fresh install

and to this specific port that I had chosen Once they find an open port on your IP address they will keep on hitting it. Since most bots dont scan all possible ports you can make it less likely they will find you by choosing a high port number, maybe somewhere around 50000. But as noted above, once...
by jbudd
Thu Aug 27, 2020 6:17 pm
Forum: Troubleshooting
Topic: Password stops working next day - fresh install
Replies: 14
Views: 421

Re: Password stops working next day - fresh install

and to this specific port that I had chosen Once they find an open port on your IP address they will keep on hitting it. Since most bots dont scan all possible ports you can make it less likely they will find you by choosing a high port number, maybe somewhere around 50000. But as noted above, once...
by jbudd
Thu Aug 27, 2020 5:47 pm
Forum: Beginners
Topic: Reimaging SD cards on Windows 10 failing
Replies: 8
Views: 346

Re: Reimaging SD cards on Windows 10 failing

You might have more success with a USB SD card reader, especially on the older PC. Make sure it can handle SDXC cards. There is no need to format the card before writing a new image with Raspberry Pi Imager (or with the alternative, Etcher). However if the card seems to borked, you might rescue it w...
by jbudd
Thu Aug 27, 2020 5:21 pm
Forum: Troubleshooting
Topic: Password stops working next day - fresh install
Replies: 14
Views: 421

Re: Password stops working next day - fresh install

The failed login attempts in /var/log/auth.log indicate that your router has port forwarding enabled. If you can't see any evidence of that in the router setup, perhaps the router itself has been hacked. If you were using user pi and password raspberry, they have almost certainly gained access to th...
by jbudd
Wed Aug 26, 2020 12:03 pm
Forum: General discussion
Topic: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router
Replies: 10
Views: 402

Re: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router

Perhaps you have discovered a bug in the operating system, certainly ambiguity in the documentation.
If it's reliably reproducible, there is a GitHub page where you can report it.

Sorry, I don't have the URL for GitHub.
by jbudd
Wed Aug 26, 2020 11:13 am
Forum: General discussion
Topic: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router
Replies: 10
Views: 402

Re: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router

Regardless of that the original problem persisted with and without the country=GB line, perhaps not all routers enforce that rule - but thanks for your clarification. It's not the router, it's Raspberry Pi OS. It (supposedly) only turns on the wireless if the country code is set. I set-up /etc/wpa_...
by jbudd
Tue Aug 25, 2020 4:47 pm
Forum: General discussion
Topic: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router
Replies: 10
Views: 402

Re: Buster Lite failed WiFi connection with Gryphon Connect secure WiFi router

Wifi should not work at all unless you set the country code.

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
    ssid="VM734763-2G"
    #psk="KEY_PHRASE_HERE"
    psk=68****************ac810f89b805d6d147c01e281f07f475a3e0195
    }
by jbudd
Mon Aug 24, 2020 10:40 am
Forum: Beginners
Topic: Raspberry Pi led blink patterns
Replies: 1
Views: 98

Re: Raspberry Pi led blink patterns

Code: Select all

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=58151
describes some ACT led blink patterns. I believe there are other patterns not documented there.

The PWR led should never blink. It may occlude intermittently indicating an inadequate power supply.
by jbudd
Mon Aug 24, 2020 10:33 am
Forum: Troubleshooting
Topic: wpa_supplicant.config not working
Replies: 28
Views: 5161

Re: wpa_supplicant.config not working

You seem to have resolved the problem of connecting to your wifi. I get the impression that you expect to be able to log in to the Pi by just clicking on it in Windows Explorer? That's not how it works. You have to have an ssh client on your PC. Lots of people use Putty. I use MobaXTerm. You log in ...

Go to advanced search