Go to advanced search

by DougieLawson
Fri Jan 18, 2019 10:29 pm
Forum: Troubleshooting
Topic: Script doesn't run in crontab, but runs in command line
Replies: 5
Views: 53

Re: Script doesn't run in crontab, but runs in command line

If your program needs the GUI start it from the autostart file.

/home/pi/.config/lxsession/LXDE-pi/autostart (or wherever it is on your system)
by DougieLawson
Fri Jan 18, 2019 10:27 pm
Forum: HATs and other add-ons
Topic: Geekworm Power Pack Pro V1.1 problem
Replies: 5
Views: 65

Re: Geekworm Power Pack Pro V1.1 problem

Try booting with Raspbian 2018-11-13 (which has support for 3B+ & 3A+ boards).
by DougieLawson
Fri Jan 18, 2019 10:24 pm
Forum: HATs and other add-ons
Topic: Geekworm Power Pack Pro V1.1 problem
Replies: 5
Views: 65

Re: Geekworm Power Pack Pro V1.1 problem

If you are constantly getting a low volt warning then the UPS board is obviously not able to maintain 5v while supplying the current required to power the pi3B+ FTFY, you're welcome. If you are constantly getting a low volt warning your software/kernel/bootcode on your SDCard is older than your Ras...
by DougieLawson
Fri Jan 18, 2019 10:21 pm
Forum: Troubleshooting
Topic: Raspbian Stretch - ifconfig wlan0 up not getting IP
Replies: 4
Views: 64

Re: Raspbian Stretch - ifconfig wlan0 up not getting IP

What security does your AP use? Is it WPA or WPA2? Is it old, insecure, deprecated WEP?
by DougieLawson
Fri Jan 18, 2019 8:59 pm
Forum: Raspbian
Topic: Rasperry: Button to press light switch
Replies: 2
Views: 30

Re: Rasperry: Button to press light switch

Controlling mains AC voltages with any device requires relevant electrical knowledge and training, which from the tone of your post I suspect you do not have. You don't have to touch the mains if you take the purely mechanical approach and build a switch flicker (using a low voltage servo). https:/...
by DougieLawson
Fri Jan 18, 2019 8:38 pm
Forum: Troubleshooting
Topic: Booting from ssd stops working when other usb drives are connected.
Replies: 4
Views: 68

Re: Booting from ssd stops working when other usb drives are connected.

Why not carve out a 42MB partition on each harddisk and clone /boot from the drive you want to have as root. Then whatever USB gets seen first by the bootloader will do the right thing. I'll be a PITA when the /boot stuff changes (when apt-get installs an update to raspberrypi-kernel). The /boot/cmd...
by DougieLawson
Fri Jan 18, 2019 7:45 pm
Forum: Raspbian
Topic: USB drive re-mounted ro due to errors
Replies: 8
Views: 92

Re: USB drive re-mounted ro due to errors

Try
sudo systemctl enable [email protected]

You'll find the "strange-stuff-goes-here" from ls /dev/disk/by-label/* use the full path name without the leading slash.

I can't tell from the docs whether sudo systemctl enable [email protected]/sda1 works or not.
by DougieLawson
Fri Jan 18, 2019 7:02 pm
Forum: General discussion
Topic: Tweeting Babbage problem
Replies: 6
Views: 93

Re: Tweeting Babbage problem

Try starting it from the autostart file ~/.config/lxsession/LXDE-pi/autostart

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@/usr/bin/python3 /home/pi/babbage.py
by DougieLawson
Fri Jan 18, 2019 6:33 pm
Forum: Raspbian
Topic: USB drive re-mounted ro due to errors
Replies: 8
Views: 92

Re: USB drive re-mounted ro due to errors

If your drive is always plugged into your RPi then why is it formatted as VFAT. Make it EXT4 and you'll gain two things: 1. unix style file security (no uid, gid, dmask or umask junk needed in fstab) & 2. a journalling filesystem that's less likely to need a forced fsck.
by DougieLawson
Fri Jan 18, 2019 5:04 pm
Forum: Automation, sensing and robotics
Topic: Controlling relays with temperature sensor
Replies: 12
Views: 1157

Re: Controlling relays with temperature sensor

You may have a long wait for an answer TheScrawler hasn't been on the forum since Tue 13 Mar 2018, 02:57.
by DougieLawson
Fri Jan 18, 2019 5:00 pm
Forum: General discussion
Topic: Obfuscation thread
Replies: 34
Views: 3725

Re: Obfuscation thread

I don't know but, you really think having multiple posts talking about the same subject is better ? Answer. Honestly. Yes. Because the Wheezy threads are useless. The Jessie threads are borderline useless. This year the Stretch threads will start to be borderline useless as we move to Buster. Thing...
by DougieLawson
Fri Jan 18, 2019 4:42 pm
Forum: General discussion
Topic: Tweeting Babbage problem
Replies: 6
Views: 93

Re: Tweeting Babbage problem

Only one program can use the camera at a time. It's not a shared resource.
by DougieLawson
Fri Jan 18, 2019 12:41 pm
Forum: General discussion
Topic: Tweeting Babbage problem
Replies: 6
Views: 93

Re: Tweeting Babbage problem

Change your @reboot line to:

Code: Select all

@reboot python3 /home/pi/babbage.py 1> /home/pi/babbage.log 2> /home/pi/babbage.errors
that should give you a clue as to what's failing.
by DougieLawson
Fri Jan 18, 2019 12:39 pm
Forum: Raspbian
Topic: USB drive re-mounted ro due to errors
Replies: 8
Views: 92

Re: USB drive re-mounted ro due to errors

[ 6.290106] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
All of your problems stem from that error.
by DougieLawson
Fri Jan 18, 2019 12:37 pm
Forum: General discussion
Topic: crontab scheduler for multiple scripts
Replies: 1
Views: 33

Re: crontab scheduler for multiple scripts

Three separate lines with no & and no []. If you use sudo crontab -e then you don't need the sudo stuff either. @reboot python3 /usr/bin/hotp/count.py @reboot python3 /usr/bin/hotp/epower.py @reboot python3 /usr/bin/hotp/load.py On my systems I've replaced the regular cron with sudo apt install syst...
by DougieLawson
Fri Jan 18, 2019 8:41 am
Forum: Raspbian
Topic: Disable "Welcome to Raspberry Pi" setup wizard at system start
Replies: 1
Views: 47

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

I've asked Simon to do this before. He wouldn't agree to it.

It's 100% illogical to ask for WiFi and ssh things when WiFi & ssh are already configured - but we have to live with it.
by DougieLawson
Fri Jan 18, 2019 8:38 am
Forum: Advanced users
Topic: careless boot over wifi
Replies: 4
Views: 93

Re: careless boot over wifi

You can, of course, do cardless (PXE) booting over ethernet on the 3B & 3B+. On the 3B you need to set the PXE one time programmable bit.

https://www.raspberrypi.org/documentati ... utorial.md

You can't do PXE over WiFi.
by DougieLawson
Fri Jan 18, 2019 8:17 am
Forum: Beginners
Topic: How to install max6675 on Rasp PI 3 B
Replies: 14
Views: 8822

Re: How to install max6675 on Rasp PI 3 B

cd
git clone https://github.com/keiichishima/RPiSensors
cd RPiSensors
cat README
cd
git clone https://github.com/apollo-ng/picoReflow
cd picoReflow
cat README
by DougieLawson
Fri Jan 18, 2019 8:13 am
Forum: General discussion
Topic: Some Raspberry Pis not connecting to Internet
Replies: 3
Views: 86

Re: Some Raspberry Pis not connecting to Internet

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=GB network={ ssid="S.A.L.'S" psk="password1" priority=1 } network={ ssid="NETGEAR30" psk="password2" key_mgmt=WPA-PSK priority=2 } Priority works the other way up. Priority=100 is chosen ahead of priority=50.
by DougieLawson
Fri Jan 18, 2019 8:05 am
Forum: Troubleshooting
Topic: New download image, eth0 is not finding an IP address.
Replies: 18
Views: 229

Re: New download image, eth0 is not finding an IP address.

To connect to WEP you have to hand-craft the /etc/wpa_supplicant/wpa_supplicant.conf file with some strange arcane (and deprecated) incantations. The taskbar GUI will NOT work (and will never work) with WEP.

https://gist.github.com/clyang/f5bc3a267091d0ab8856
by DougieLawson
Fri Jan 18, 2019 8:02 am
Forum: Beginners
Topic: How do i know when reboot is required after 'apt upgrade' command?
Replies: 6
Views: 158

Re: How do i know when reboot is required after 'apt upgrade' command?

Actually, most of them will get restarted as part of the upgrade process. It's pretty much just the Linux kernel that needs a reboot to activate the change. I'd reboot on a libc6, udev or systemd update just so you don't get any surprises later. The raspberrypi-ui-mod tends to tell you to reboot ev...
by DougieLawson
Thu Jan 17, 2019 9:36 pm
Forum: Troubleshooting
Topic: Rpi3 hangs after 3 hours
Replies: 11
Views: 195

Re: Rpi3 hangs after 3 hours

Not tainted 4.9.61-v7+ #1049
Your kernel is 142 updates behind the current leading edge (hacker's paradise) rpi-update version. It's about 130 updates behind the current stable kernel. You really want to think about doing an upgrade so that you're not re-discovering known and fixed bugs.
by DougieLawson
Thu Jan 17, 2019 9:30 pm
Forum: Troubleshooting
Topic: New download image, eth0 is not finding an IP address.
Replies: 18
Views: 229

Re: New download image, eth0 is not finding an IP address.

Try a factory fresh SDCard and Raspbian Stretch 2018-11-13 written to it with Etcher.
by DougieLawson
Thu Jan 17, 2019 8:28 pm
Forum: Networking and servers
Topic: Some dhcpcd stuff still runs after a purge
Replies: 4
Views: 108

Re: Some dhcpcd stuff still runs after a purge

You'll need to reboot after making that kind of radical change to the default networking set-up.
by DougieLawson
Thu Jan 17, 2019 8:26 pm
Forum: Troubleshooting
Topic: New download image, eth0 is not finding an IP address.
Replies: 18
Views: 229

Re: New download image, eth0 is not finding an IP address.

1. WiFi WILL NOT work until you set the country code. rfkill will disable it. 2. Ethernet not getting an address is usually the sign of a cable fault. 3. In all cases if your power supply is too weedy then networking is the first thing to fail. RPi 3B/3B+ needs 5.1V @ 2.5A (which is, curiously, exac...

Go to advanced search