Go to advanced search

by jbudd
Wed Jul 17, 2019 8:45 am
Forum: Troubleshooting
Topic: Raspberry Pi /etc/network/interfaces file
Replies: 3
Views: 98

Re: Raspberry Pi /etc/network/interfaces file

Yes it is!
Is it a problem?
by jbudd
Tue Jul 16, 2019 9:27 pm
Forum: Beginners
Topic: errorcode script
Replies: 2
Views: 103

Re: errorcode script

Linux commands have an exit value that indicates whether they succeeded or not. 0 means success, anything else means failure. You can see the exit code of the previous command with echo $? ls /duntexist ls: Cannot access /duntexist. No such file or directory. echo $? 2 echo $? 0 Note that $? doesn't...
by jbudd
Sun Jul 14, 2019 10:42 pm
Forum: General discussion
Topic: ppp0 set route permanently
Replies: 11
Views: 252

Re: set default gateaway with 2 network interfaces

Sorry - I dont think my answer was actually relevant to your question - deleted.
by jbudd
Sun Jul 14, 2019 10:11 pm
Forum: General discussion
Topic: Raspberry and electricity
Replies: 16
Views: 803

Re: Raspberry and electricity

Raspberry is used as a server, but there is no possibility to always monitor it and after a power outage it is off fir a long time. A decent UPS should give the Pi time to shutdown gracefully in a power outage, and automatically reboot it when power is restored. But what if for some reason the Pi d...
by jbudd
Sat Jul 13, 2019 12:13 pm
Forum: General discussion
Topic: I didn't think the usb c power thing was a big deal...
Replies: 92
Views: 3889

Re: I didn't think the usb c power thing was a big deal...

No I hadn't. Thanks for that.
by jbudd
Sat Jul 13, 2019 11:47 am
Forum: General discussion
Topic: will QuickCharge 3.0 5V/3A work on pi 4?
Replies: 9
Views: 420

Re: will QuickCharge 3.0 5V/3A work on pi 4?

The problem with using a cheap charger, even if it's rated 3A is that it may not maintain 5V at higher current.

But QC3 chargers can increase the voltage to 9V (or more?) If the device indicates it can take it. I wonder if that implies they have better output voltage regulation?
by jbudd
Sat Jul 13, 2019 11:36 am
Forum: General discussion
Topic: I didn't think the usb c power thing was a big deal...
Replies: 92
Views: 3889

Re: I didn't think the usb c power thing was a big deal...

Just buy the $8 official PSU. Problem solved. That's what I have. But the official PSU needs a mains socket all to itself which is a bit of a nuisance. I have a selection of 4 port usb chargers which can power my other pis, breadboard, esps etc and charge my phone all at the same time. No doubt som...
by jbudd
Thu Jul 11, 2019 11:01 pm
Forum: Troubleshooting
Topic: What am i doing wrong with my IP config
Replies: 9
Views: 235

Re: What am i doing wrong with my IP config

I have no idea if this will help with the disappearing Pi problem. It shouldn't take too long to try it though. Since you have no DHCP server, you could disable DHCP on the Pi and give it a static IP in /etc/network/interfaces. Solution 2 in this page: https://errorin10.wordpress.com/2016/03/07/rasp...
by jbudd
Thu Jul 11, 2019 6:39 pm
Forum: Troubleshooting
Topic: What am i doing wrong with my IP config
Replies: 9
Views: 235

Re: What am i doing wrong with my IP config

If you connect a machine to the network without first giving it a static IP does it get an ip address other than 269.154.xxx.xxx? In other words, is there a DHCP server in the network? It seems unlikely that a machine would have networking without any way to change the IP. What would happen if you h...
by jbudd
Thu Jul 11, 2019 6:24 pm
Forum: Beginners
Topic: Sensors network
Replies: 3
Views: 64

Re: Sensors network

Is this a school/college project? No doubt ZigBee will .work if you can get all your devices enabled for it. The simplest and cheapest way to connect them is probably WiFi though, assuming that they can all connect to a network (and you know the ssid and password). That way you don't have to do anyt...
by jbudd
Thu Jul 11, 2019 8:27 am
Forum: General discussion
Topic: how long will it take for the Raspberry Pi 4 to be available everywhere?
Replies: 13
Views: 844

Re: how long will it take for the Raspberry Pi 4 to be available everywhere?

filipeflop, the official distributor of pi's in Brazil, are selling pi 3B+ at a reasonable price R$262.90 or £53! Nice blue board though. I was going to buy one when I was there but the price was just too much. I wonder if the price shows the cost of lower volume manufacturing in Brazil or if profi...
by jbudd
Tue Jul 09, 2019 7:19 pm
Forum: General discussion
Topic: Error on sudo apt-get update
Replies: 14
Views: 526

Re: Error on sudo apt-get update

You are completely right PeterO. I tried both suggested work-arounds and they both allow successful update and upgrade. I don't believe that any other questions were put and automatically accepted by apt -y. I have not done extensive reading to find out possible side effects of either command. I did...
by jbudd
Tue Jul 09, 2019 2:49 pm
Forum: General discussion
Topic: Error on sudo apt-get update
Replies: 14
Views: 526

Re: Error on sudo apt-get update

Your problem is related to Raspian Buster having been offically released before Debian Buster.
It will no doubt go away when the next Raspbian image is released in a month or two.

Till then, start with sudo apt -y update
by jbudd
Mon Jul 08, 2019 3:55 pm
Forum: General discussion
Topic: Is starting with a 3B+ a bad idea now that the 4b is out?
Replies: 20
Views: 756

Re: Is starting with a 3B+ a bad idea now that the 4b is out?

Some of my thoughts and misunderstandings. I expect other people will disagree! 3B+ Pros - Standard HDMI port, You may already have a cable, so saving some money - Micro USB power socket. You may already have a micro USB charger or power supply that can power it, particularly if you plan to use it "...
by jbudd
Sun Jul 07, 2019 3:44 am
Forum: Beginners
Topic: Time logging
Replies: 2
Views: 91

Re: Time logging

Your sensor could be a reed switch connected to two GPIO pins and a magnet that moves with the drawer. For data storage you could simply append a line to a logfile every time an event is detected. Or try Influxdb - it is designed for time related data so you send "open" or "closed" and it automatica...
by jbudd
Sat Jul 06, 2019 11:52 am
Forum: General discussion
Topic: Question: is there a "searchlist" mechanism in raspbian?
Replies: 9
Views: 230

Re: Question: is there a "searchlist" mechanism in raspbian?

You don't have a lot of files in your file system, do you? ;-) Nope! I can't do anything much with that Pi until I can get it to work on my DVI monitor. And yes of course updatedb and find take much much longer when they have realistic numbers of files to traverse. Coffee break timespans. My other ...
by jbudd
Sat Jul 06, 2019 11:39 am
Forum: General discussion
Topic: Question: is there a "searchlist" mechanism in raspbian?
Replies: 9
Views: 230

Re: Question: is there a "searchlist" mechanism in raspbian?

There is a PATH variable in Linux too, and it works in a similar way. I don't know about Windows but $PATH specifies where and in what order Bash looks for executable files, not filenames passed as parameters, as the OP is hoping for. Using find with the right parameters is faster. Well they are bo...
by jbudd
Sat Jul 06, 2019 11:21 am
Forum: General discussion
Topic: Question: is there a "searchlist" mechanism in raspbian?
Replies: 9
Views: 230

Re: Question: is there a "searchlist" mechanism in raspbian?

Find is much slower than locate though and if you run it as a non-root user you get masses of permissions messages unless you throw them away with find / -name myfile.ext 2>/dev/null
by jbudd
Fri Jul 05, 2019 10:34 pm
Forum: Beginners
Topic: Headless Raspberry Pi Zero W Setup
Replies: 7
Views: 232

Re: Headless Raspberry Pi Zero W Setup

network={
ssid="***"
psk="***"
key_mgmt=WPA-PSK
scan_ssid=1
}
Just checking - your file has the Wifi ssid and password, not literally "***"?
by jbudd
Fri Jul 05, 2019 10:31 pm
Forum: Beginners
Topic: Headless Raspberry Pi Zero W Setup
Replies: 7
Views: 232

Re: Headless Raspberry Pi Zero W Setup

I hope you are using the Raspbian image not NOOBS.

Where did you put wpa_supplicant.conf and ssh ? They should be in the "boot" partition

Did wpa_supplicant.conf and ssh get deleted from the boot partition when you started up the Pi? If not, you have them in the wrong place or the Pi isn't booting.
by jbudd
Fri Jul 05, 2019 4:57 pm
Forum: Troubleshooting
Topic: raspbian (buster) lite web access
Replies: 3
Views: 223

Re: raspbian (buster) lite web access

As far as I know you can only connect to a Pi with a web browser if the Pi is running a web server (Apache, ngnix or Lighttp etc) and if you have HTML files or an application to serve HTML But you say "The pi on a full stretch version of raspbian had no issues" and I don't think that Raspbian Stretc...
by jbudd
Fri Jul 05, 2019 3:30 pm
Forum: General discussion
Topic: Question: is there a "searchlist" mechanism in raspbian?
Replies: 9
Views: 230

Re: Question: is there a "searchlist" mechanism in raspbian?

I think it's a bad habit to edit a file unless you know and specify it's location. There is a risk of accidentally editing the wong file. However, one way you can do it if you really want to is with locate , which uses a database of file locations. sudo apt-get install mlocate sudo updatedb -- popul...
by jbudd
Tue Jul 02, 2019 2:04 pm
Forum: General discussion
Topic: Raspberry forum error 502 Bad Gateway
Replies: 1
Views: 87

Raspberry forum error 502 Bad Gateway

I can't reliably load forum pages today because of lots of Cloudflare Bad Gateway errors.

Is that a problem at Raspberry Towers or with my browser setup?
by jbudd
Tue Jul 02, 2019 1:07 am
Forum: Beginners
Topic: No access to the internet but can ping 8.8.8.8
Replies: 3
Views: 101

Re: No access to the internet but can ping 8.8.8.8

If you can ping an IP address ping 8.8.8.8 but not a domain ping google.com then there is an error in your DNS setup.

Pay attention to the syntax of the static domain_name_servers line in /etc/dhcpcd.conf
by jbudd
Tue Jul 02, 2019 12:53 am
Forum: Beginners
Topic: No access to the internet but can ping 8.8.8.8
Replies: 3
Views: 101

Re: No access to the internet but can ping 8.8.8.8

Computers are very unforgiving of typographical errors.
Such apparent trivia as "/dhcpcd.conf" , "/etc/netwirk/interfaces" and the ones pointed out in response to your other similar thread are likely to result in disappointment.

Go to advanced search