Go to advanced search

by jbudd
Sun Feb 09, 2020 2:08 pm
Forum: General discussion
Topic: No /tmp filesystem
Replies: 7
Views: 446

Re: No /tmp filesystem

Well I wasn't "planning" on storing anything there! The Pi with 100% full root fs has PiVPN installed on it, using wireshark. Currently wireshark is dumping a 40 - 50 MB file into /tmp every 20 minutes and the VPN isn't even in use. Obviously that's not a problem to discuss here. Edit - I have had /...
by jbudd
Sun Feb 09, 2020 1:55 pm
Forum: General discussion
Topic: Buying more than one Pi zero?
Replies: 25
Views: 1352

Re: Buying more than one Pi zero?

At The Pi Hut, where Pi Zero W's are currently in stock at £13, you can buy 5 for £65 and the total shipping charge is £2.99. (UK, Royal Mail 1st class)

I did look at another authorised retailer but they were out of stock.
by jbudd
Sun Feb 09, 2020 1:43 pm
Forum: General discussion
Topic: No /tmp filesystem
Replies: 7
Views: 446

Re: No /tmp filesystem

Thanks jahboater.

A Pi is constrained by a) potentially only 256MB memory and b) limited writes before the SD card dies
I guess a) is why /tmp isn't a tmpfs filesystem?

What happens if a /tmp filesystem uses up the allocated memory - the Pi grinds to a halt, or frantic swapping?
by jbudd
Sun Feb 09, 2020 1:27 pm
Forum: General discussion
Topic: Shell script in init.d
Replies: 9
Views: 820

Re: Shell script in init.d

Yes, your code worked. Well mostly. The define statement and the file handling did not I'm not sure what you mean by the define statement: sunrise="${myarray[0]}" ? or ARG="-ISO 100 -drc med -co 10 -n -w 1024 -h 768 -ss 450 -tl 30000 -t 2147483647 -o /run/shm/$SCR.jpg" ? If it's the former, make su...
by jbudd
Sun Feb 09, 2020 12:22 am
Forum: Troubleshooting
Topic: Pi Zero W appears to be dead after electrical short
Replies: 4
Views: 229

Re: Pi Zero W appears to be dead after electrical short

I'm afraid your Pi is dead.

Either there was a voltage spike on one of the cables plugged in to it or maybe you fried it with static electricity.

You really should turn the power off before plugging / unplugging anything.
by jbudd
Sat Feb 08, 2020 3:39 pm
Forum: General discussion
Topic: No /tmp filesystem
Replies: 7
Views: 446

No /tmp filesystem

I only just noticed this when trying to upgrade one of my Pies (8GB SD, Raspbian Buster Lite, Sept 2019) /tmp is just a directory not a filesystem and accumulated junk there caused the root filesystem to fill up. pi@APi:/ $ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 7312912 ...
by jbudd
Sat Feb 08, 2020 2:45 pm
Forum: General discussion
Topic: Shell script in init.d
Replies: 9
Views: 820

Re: Shell script in init.d

I don't understand your Excel code but I think it's probably exactly what the shell script I offered above is trying to do.
Did you try it, were there problems?
by jbudd
Thu Feb 06, 2020 7:14 pm
Forum: Troubleshooting
Topic: MQTT - Cloudmqtt (Working) Mosquitto (not) Same script
Replies: 7
Views: 480

Re: MQTT - Cloudmqtt (Working) Mosquitto (not) Same script

Is it possible that the message topic or contents are not actually identical when sent via the two brokers? Perhaps you have a trailing null \0 or carriage return \r character? I would test this by having the script print topic_sub, msg.topic and msg.payload, then exit. And pipe it's output through ...
by jbudd
Wed Feb 05, 2020 1:33 am
Forum: General discussion
Topic: Shell script in init.d
Replies: 9
Views: 820

Re: Shell script in init.d

How do you obtain sunrise and sunset times and in what format? One possible solution is to save them in a file, expressed as the number of seconds since the Unix epoch, first line sunrise time, second line sunset time. (Obviously you would have to populate this file at startup and again at midnight)...
by jbudd
Wed Feb 05, 2020 12:11 am
Forum: General discussion
Topic: Firefox ESR onRaspberry Pi B+
Replies: 9
Views: 1213

Re: Firefox ESR onRaspberry Pi B+

... Chromium which synchronizes the web browser with Google ... I thought that the chromium browser is supposed to be "degooglised"? I prefer to share as little as possible of my life with organisations that consider me their property to sell. A good reason to struggle with Firefox ESR. And on the ...
by jbudd
Sun Feb 02, 2020 3:10 am
Forum: Beginners
Topic: Neccessity of iptables/fail2ban
Replies: 2
Views: 497

Re: Neccessity of iptables/fail2ban

If you open port 22 to the internet, you very quickly get attempts to login to your Pi using lists of login ids and passwords. Install fail2ban and you can see them logged in /var/log/fail2ban.log I think that the computers trawling the internet for vulnerable devices tend to be programmed to evade ...
by jbudd
Sun Feb 02, 2020 2:34 am
Forum: General discussion
Topic: Data Usage and Production
Replies: 11
Views: 1078

Re: Data Usage and Production

"What data does the Raspberry Pi use and how does it produce new data?" sounds like a dumb question. But perhaps not... A lot of computer systems are "black boxes" for example the engine management system for a car - you can't see what goes on inside them but you know what data they accept and what ...
by jbudd
Tue Jan 28, 2020 11:41 am
Forum: General discussion
Topic: Embedded SO for Raspberry pi 2
Replies: 3
Views: 353

Re: Embedded SO for Raspberry pi 2

The .img file is a single file containing all the contents of the disk/sd card it was created from, including the file systems eg /boot and their contents eg /boot/bootcode.bin. I have no idea what SO, RTEMS or BSP mean so I can't really comment about renaming .exe files as .img beyond it sounds a b...
by jbudd
Tue Jan 28, 2020 10:11 am
Forum: Beginners
Topic: Case FAN : should it suck, or should it blow ?
Replies: 18
Views: 1518

Re: Case FAN : should it suck, or should it blow ?

Current models of Pi are designed to distribute heat over the whole board, though obviously the CPU and other chips are hottest. For most efficient cooling the air should flow over the Pi from the least warm to the hottest bits which sugests sucking it in at the edges and out over the CPU. I tried m...
by jbudd
Sat Jan 25, 2020 1:01 am
Forum: Beginners
Topic: Setting up a pi with a chromebook
Replies: 3
Views: 183

Re: Setting up a pi with a chromebook

I have never tried it since I don't have a chromebook. However: https://willhaley.com/blog/setup-raspbe ... hromebook/
by jbudd
Thu Jan 23, 2020 5:49 pm
Forum: Troubleshooting
Topic: Rpi can't connect to internet using eth0
Replies: 2
Views: 111

Re: Rpi can't connect to internet using eth0

Tried giving pi a static op adress editing /etc/dhcp.conf.
Still the pi gets a wrong ip.
You shouldn't have to give the Pi a static IP, but if you must do, the file is /etc/dhcpcd.conf not /etc/dhcp.conf
by jbudd
Wed Jan 22, 2020 4:09 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 38975

Re: Future of raspberry pi - software related

This appears to be a commercial installation type of use case. No, it is not: In my case, I am retired and am working benevolently for an association promoting environmental measurement stations. The stations are deployed at homes of people, who are willing to provide a station on their own expense...
by jbudd
Wed Jan 15, 2020 5:54 pm
Forum: Troubleshooting
Topic: Can't connect to RPi4
Replies: 17
Views: 443

Re: Can't connect to RPi4

Windows offering to format the card is not an issue. Just say No. A Raspbian SD card has an ext4 partition which Windows cannot understand so it offers to format.
by jbudd
Wed Jan 15, 2020 5:37 pm
Forum: Troubleshooting
Topic: Can't connect to RPi4
Replies: 17
Views: 443

Re: Can't connect to RPi4

I've tried to reflash image, but couldn't: Etcher says that the space is insufficient ... 32Mb. But initially the card (newest) had 64Gb. Does it mean that card is corrupted ? It does sound like it may be corrupted. Where did you buy it from? Use one of the programs listed at https://www.raymond.cc...
by jbudd
Wed Jan 15, 2020 1:04 am
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 38975

Re: Future of raspberry pi - software related

Some of these things might already be in place. Sorry if I've missed them! I wish Raspbian gave me more confidence that I could plug something (USB stick, hard disk, keyboard, monitor, ...) into a running Pi and it would work, and not risk killing the Pi. I have the impression, possibly wrongly, tha...
by jbudd
Sun Jan 12, 2020 7:17 pm
Forum: General discussion
Topic: Weather Fax - need hardware advice
Replies: 7
Views: 962

Re: Weather Fax - need hardware advice

Thanks for the links Dougie & Steven :)
by jbudd
Sun Jan 12, 2020 5:56 pm
Forum: General discussion
Topic: Weather Fax - need hardware advice
Replies: 7
Views: 962

Re: Weather Fax - need hardware advice

I'm glad you got it working, it sounds like a really interesting use for a Pi.

Over in England we have the Meteorological Office and BBC to forecast the weather for us but it's dumbed down so far. When I feel the need for proper weather maps I look to the USAF!
by jbudd
Wed Jan 08, 2020 2:19 pm
Forum: Troubleshooting
Topic: Shutdown via PHP
Replies: 10
Views: 840

Re: Shutdown via PHP

I do something similar to that using Node-Red.
Bash and python scripts collect statistics, reboot when requested etc.
Node-Red handles scheduling, linking processes together and (via the dashboard add-on) displaying a web interface with buttons, dials and graphs.
by jbudd
Wed Jan 08, 2020 1:22 pm
Forum: General discussion
Topic: Connecting Raspberry Pi to Android Phone
Replies: 6
Views: 971

Re: Connecting Raspberry Pi to Android Phone

Save in UNIX format if you're using notepad++ otherwise raspbian won't recognize it. create a blank file without any extension and name it ssh Actually the current release of Raspbian will accept files called ssh, ssh.txt and even SSH.TXT And wpa_supplicant.conf works even if it is written with Not...
by jbudd
Wed Jan 08, 2020 10:40 am
Forum: Troubleshooting
Topic: RPi4 headless no connect
Replies: 4
Views: 326

Re: RPi4 headless no connect

Can you post your entire wpa_supplicant.conf file here? (falsify the SSID and pasword strings)

Go to advanced search