Go to advanced search

by rpdom
Wed May 22, 2019 2:31 pm
Forum: Beginners
Topic: Power button (halt/wake) without GPIO3?
Replies: 15
Views: 203

Re: Power button (halt/wake) without GPIO3?

To address various points from the above: I don't think grounding GPIO 3 on a Pi 2 will boot it up though? That only works on model 3's. As far as I know anyway. It works on the one I have otherwise I wouldn't have posted it. For information, my Pi 2 is v1.1 with a Revison code of a01041 I've also ...
by rpdom
Wed May 22, 2019 3:20 am
Forum: Automation, sensing and robotics
Topic: Need Assistance Automating Fan Remote
Replies: 3
Views: 107

Re: Need Assistance Automating Fan Remote

There is no safe way to connect that remote to the Pi without additional hardware. What I would probably do is to use a load of opto-isolators, one per button, to completely isolate the Pi's gpio from the 12v remote. As the output stage of the opto will only let current flow in one direction, you wi...
by rpdom
Wed May 22, 2019 3:07 am
Forum: Beginners
Topic: Pi Zero not booting
Replies: 38
Views: 424

Re: Pi Zero not booting

Is your Pi Zero in a case? There have been some reports of the mini-HDMI adaptors not pushing in far enough to make contact.

Although the complete lack of LED activity is not a good sign.
by rpdom
Tue May 21, 2019 7:13 pm
Forum: Beginners
Topic: Pi Zero not booting
Replies: 38
Views: 424

Re: Pi Zero not booting

I have to take that back. I just tried putting the card from my Pi Zero W in a Pi Zero and it booted. Still not sure if it'll work between Pi's with different microcontrollers. Zero and Zero W both use the same chip. If the card is loaded with a current version of Raspbian it will work in any model...
by rpdom
Tue May 21, 2019 10:29 am
Forum: Troubleshooting
Topic: i2c Enable causes fatal error
Replies: 4
Views: 73

Re: i2c Enable causes fatal error

Have you performed a software update (sudo apt update && sudo apt upgrade)?

If so, did you reboot afterwards?

The update could have installed a new kernel and matching modules and deleted the old one, but the old kernel will still be in use until the system is rebooted.
by rpdom
Tue May 21, 2019 6:53 am
Forum: Beginners
Topic: Synaptic wont work on new install
Replies: 4
Views: 99

Re: Synaptic wont work on new install

Is it weird that using sudo doesnt ask for a password? Is the user 'Pi' different from a regular user or something? Should I be extra careful with 'Pi' like it's root and I could screw everything up? It's not that weird, it's set in the file /etc/sudoers.d/010_pi_nopasswd pi ALL=(ALL) NOPASSWD: ALL...
by rpdom
Mon May 20, 2019 7:23 pm
Forum: Beginners
Topic: sources.list file location
Replies: 5
Views: 70

Re: sources.list file location

The main sources.list file is in /etc/. There are other files that are also used in addition to sources.list in /etc/sources.list.d/
by rpdom
Sun May 19, 2019 3:54 pm
Forum: General discussion
Topic: setup Raspberry Pi Zero without internet access and only 1 micro usb port
Replies: 14
Views: 323

Re: setup Raspberry Pi Zero without internet access and only 1 micro usb port

No it is for personal use, so there are no problems with drivers having different hw? No problems. Raspbian is shipped with drivers for the hardware on all models of Pi to date. The Pi Zero and Pi 1 range use a different Linux kernel to the Pi 2 and 3, but the bootloader takes care of that for you....
by rpdom
Sun May 19, 2019 8:51 am
Forum: Troubleshooting
Topic: Raspberry pi zero w no data on micro usb port
Replies: 4
Views: 109

Re: Raspberry pi zero w no data on micro usb port

The USB on a zero connects directly to the SOC. It can't be dead without your entire Pi being dead. Agreed. I suppose it is remotely possible that the USB block on the SoC has died without killing the rest of the chip, but that is unlikely. Another possibility is that too high a current has been us...
by rpdom
Sun May 19, 2019 8:46 am
Forum: Troubleshooting
Topic: [Investigation] pi's password is lost in every reboot issue
Replies: 8
Views: 182

Re: [Investigation] pi's password is lost in every reboot issue

Yes, your Pi has been compromised. It is accessible by someone from outside who can do whatever they like on it. It's not just the "pi" password that has been changed, they have allowed "root" access from somewhere else. Turn it off now . Pull the power. Install a fresh copy of Raspbian on the card ...
by rpdom
Sun May 19, 2019 6:29 am
Forum: Other
Topic: mate-panel is eating my Pi (at least the memory and swap)
Replies: 3
Views: 128

Re: mate-panel is eating my Pi (at least the memory and swap)

Not on the Pi (as all of mine run without a desktop), or with mate-panel (I don't run mate), but I do have a similar issue on my laptop with the Debian Stretch-based Raspberry Pi Desktop installed. lxpanel (possibly related to mate-panel? Maybe they use some of the same libraries and the issue is in...
by rpdom
Sun May 19, 2019 5:25 am
Forum: Troubleshooting
Topic: [Investigation] pi's password is lost in every reboot issue
Replies: 8
Views: 182

Re: [Investigation] pi's password is lost in every reboot issue

Ok, something that will give more information ( you may have to keep adding bits to this, depending on how it is being called) is to add this line inside your usermod wrapper script, anywhere between the two brackets ( ) will do. ps -p $PPID -o ruser,pid,ppid,cmd That will display some information a...
by rpdom
Sat May 18, 2019 9:21 pm
Forum: Troubleshooting
Topic: [Investigation] pi's password is lost in every reboot issue
Replies: 8
Views: 182

Re: [Investigation] pi's password is lost in every reboot issue

Try creating a "wrapper" script that pretends to be usermod, but dumps information to a file instead. Something like #!/bin/bash ( echo "usermod called at $(date)" echo "env" env echo echo "command line" echo "[email protected]" ) >>/tmp/usermod.log There are probably more things you can add to track down what is ...
by rpdom
Fri May 17, 2019 5:43 pm
Forum: Networking and servers
Topic: Apache2 Server not accessible trough domain
Replies: 7
Views: 133

Re: Apache2 Server not accessible trough domain

Your configuration looks correct, as far as I can tell.

Have you checked with your Internet Provider that they don't block common ports like http (80)? Many of them do.
by rpdom
Fri May 17, 2019 12:18 pm
Forum: General discussion
Topic: Protect python code to prevent copy
Replies: 8
Views: 279

Re: Protect python code to prevent copy

There is no hardware encryption chip built into the Pi and if I remember correctly the serial number can be changed as can the MAC address. The serial number is in the OTP so can't be reprogrammed but it may be possible to spoof it, I don't know. It is possible to spoof the serial number if is read...
by rpdom
Fri May 17, 2019 7:13 am
Forum: Troubleshooting
Topic: WPA Supplicant not compatible with network?
Replies: 21
Views: 295

Re: WPA Supplicant not compatible with network?

Did you use double quotes around your password in the wpa_passphrase command? I did not. That would probably solve my problem of it changing the "!" to "ifconfig" Legitimately had no clue what was causing this. See my comment above. Double quotes won't work for the ! character. The shell still trie...
by rpdom
Fri May 17, 2019 5:28 am
Forum: Troubleshooting
Topic: WPA Supplicant not compatible with network?
Replies: 21
Views: 295

Re: WPA Supplicant not compatible with network?

If you're going to use a ! character on the command line, it is best to enclose it in single quotes '!', otherwise the shell will treat it as a command to search your command line history and replace it with a matching entry. So instead of wpa_passphrase "MY_SSID" "my!password" use wpa_passphrase "M...
by rpdom
Fri May 17, 2019 5:13 am
Forum: Beginners
Topic: Problem updating
Replies: 2
Views: 89

Re: Problem updating

The Raspbian Wheezy repository has been moved to an archive location. You need to update your sources.list files. change the line that says deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi to read deb http://legacy.raspbian.org/raspbian/ wheezy main contrib non-free ...
by rpdom
Fri May 17, 2019 4:45 am
Forum: Beginners
Topic: USB devices not recognized on startup
Replies: 10
Views: 249

Re: USB devices not recognized on startup

nockless wrote:
Fri May 17, 2019 1:30 am
As a side note, an possible root cause, the Pi I received from Amazon was not in a static bag.
The Pi 3B+ is packaged with anti-static card so it doesn't need a bag.
by rpdom
Thu May 16, 2019 6:20 pm
Forum: Other programming languages
Topic: General language discussion.
Replies: 151
Views: 2391

Re: General language discussion.

Heater wrote:
Thu May 16, 2019 5:39 pm
However, instead, I built my first electric circuits when I was 5. Does that count?
I was building electrical circuits aged 4 with the help of the Ladybird Book "Magnets, Bulbs and Batteries" :)

I learnt how to wire a mains plug and lights a year or two later.
by rpdom
Thu May 16, 2019 3:40 pm
Forum: Troubleshooting
Topic: Pi3A+ Doesn't USB boot
Replies: 14
Views: 259

Re: Pi3A+ Doesn't USB boot

If the green LED is flashing too fast to count easily it means that the Pi is booting or running. The error codes are made up of slow pulses. Not sure what it is as when static with SD the green light is off. With USB there is the constant same pattern maybe on for 2 secs 4 pulses off for 1sec that...
by rpdom
Thu May 16, 2019 12:06 pm
Forum: Troubleshooting
Topic: Pi3A+ Doesn't USB boot
Replies: 14
Views: 259

Re: Pi3A+ Doesn't USB boot

If the green LED is flashing too fast to count easily it means that the Pi is booting or running. The error codes are made up of slow pulses.
by rpdom
Thu May 16, 2019 11:52 am
Forum: General discussion
Topic: Noobs hangs at 1% extracting file system
Replies: 45
Views: 6778

Re: Noobs hangs at 1% extracting file system

I left H2test2 running overnight. It initially said it was going to take 30 minutes. It is now stuck at about 55% and the time remaining keeps rising. currently 9 hours have elapsed and 7.5 hours remain. "Warning: Only 32768 of 255932 MByte tested. The media is likely to be defective. 16.0 GByte OK...
by rpdom
Wed May 15, 2019 7:46 pm
Forum: Other projects
Topic: Multiple DS18B20 data lines on one GPIO pin?
Replies: 7
Views: 166

Re: Multiple DS18B20 data lines on one GPIO pin?

tpyo kingg wrote:
Wed May 15, 2019 6:58 pm
Can I presume that if I add a third, those two will remain as they are?
Yes. Those names are based on the serial numbers of the sensors and those will never change.
by rpdom
Wed May 15, 2019 7:45 pm
Forum: General discussion
Topic: Noobs hangs at 1% extracting file system
Replies: 45
Views: 6778

Re: Noobs hangs at 1% extracting file system

If my computer reads it at the capacity listed, it it not genuine? Not necessarily . Fake cards pretend they have umpteen gazillion terabytes of storage (or whatever) and report that back to the computer - even though they may only have 1GB or less in reality. The first GB or so of these cards is r...

Go to advanced search