Go to advanced search

by DougieLawson
Mon May 20, 2019 4:58 pm
Forum: Troubleshooting
Topic: RPI Zero doesnt work
Replies: 5
Views: 129

Re: RPI Zero doesnt work

Time to buy a new Raspberry.
by DougieLawson
Mon May 20, 2019 4:40 pm
Forum: Beginners
Topic: Questions about webSocket server
Replies: 4
Views: 80

Re: Questions about webSocket server

I'm running Mosquitto as a websocket server.

http://www.steves-internet-guide.com/mqtt-websockets/
by DougieLawson
Mon May 20, 2019 4:38 pm
Forum: Troubleshooting
Topic: fstab error - bad UNC
Replies: 1
Views: 33

Re: fstab error - bad UNC

Try this in /etc/fstab //192.168.1.20/USB_Storage /srv/ReadyShare cifs username=XXXXX,password=yyyyyyyy 0 0 Or create /etc/systemd/srv-ReadyShare.mount [Unit] Description=Mount \\192.168.1.20\USB_Storage on /srv/ReadyShare Requires=network-online.target After=network-online.service [Mount] What=//19...
by DougieLawson
Mon May 20, 2019 12:25 pm
Forum: Networking and servers
Topic: warning in recent wpa_supplicant update
Replies: 5
Views: 3077

Re: warning in recent wpa_supplicant update

Brolaf wrote:
Mon May 20, 2019 11:12 am
Ignoring it will not break your WiFi access.
Mine broke.
Then fix your router/access point.
by DougieLawson
Sun May 19, 2019 7:54 pm
Forum: Troubleshooting
Topic: Operation Not Permitted
Replies: 2
Views: 81

Re: Operation Not Permitted

What's the filesystem format on your drive?

If it's NTFS you'll need to install ntfs-3g to get read/write access.
by DougieLawson
Sun May 19, 2019 5:23 pm
Forum: Beginners
Topic: how to require username and password on remote shutdown of PI?
Replies: 5
Views: 96

Re: how to require username and password on remote shutdown of PI?

That's unacceptable. You shouldn't have ANY lines in /etc/sudoers or /etc/sudoers.d/xxx files with NOPASSWD if you want a secure system. With Apache2 you'd use suexec to allow CGI programs to run with elevated privileges. Also HTTP basic-authentication (which can be used with Flask) is unacceptable ...
by DougieLawson
Sun May 19, 2019 4:04 pm
Forum: Beginners
Topic: how to require username and password on remote shutdown of PI?
Replies: 5
Views: 96

Re: how to require username and password on remote shutdown of PI?

You can't protect that. You really shouldn't allow www-data to run sudo, it's a massive security exposure. Also you shouldn't ever run a flask web server with a privileged userid (or one in the sudoers file).
by DougieLawson
Sun May 19, 2019 12:44 pm
Forum: Troubleshooting
Topic: RPI Zero doesnt work
Replies: 5
Views: 129

Re: RPI Zero doesnt work

You need a new SDCard.

Build a copy of Raspbian on it. Boot that as a rescue system. Mount your broken system in a USB reader. Mount that in your RPi.

Use the rescue system to fix the broken system or copy your programs & data to the new SDCard.
by DougieLawson
Sat May 18, 2019 6:02 am
Forum: General discussion
Topic: Accuracy of Raspberry Pi "clock"
Replies: 39
Views: 12418

Re: Accuracy of Raspberry Pi "clock"

If the Pi gains or loses a fixed amount of time each day, couldn't a daily adjustment be programmed in? Or does the amount of time lost/gained vary? Despite the pointless thread necro. Raspbian includes timedatectl and systemd-timesyncd to keep the clock stable. If you're off the grid then get a DS...
by DougieLawson
Tue May 14, 2019 3:48 pm
Forum: Troubleshooting
Topic: Where to kernel bug report
Replies: 2
Views: 97

Re: Where to kernel bug report

You aren't even using the latest stable kernel. You won't find anyone willing to look at a bug in a 4.9 kernel as it would be a complete and total waste of time.

Recreate it on 4.14.98 or 4.19.40 and folks may take you more seriously.
by DougieLawson
Tue May 14, 2019 3:35 pm
Forum: Python
Topic: Installed LAMP on Raspberry and PHP works strangely
Replies: 8
Views: 209

Re: Installed LAMP on Raspberry and PHP works strangely

Run this program

Code: Select all

<?PHP phpinfo(); ?>
That's the best way to test PHP is working.
by DougieLawson
Mon May 13, 2019 3:07 pm
Forum: Networking and servers
Topic: warning in recent wpa_supplicant update
Replies: 5
Views: 3077

Re: warning in recent wpa_supplicant update

Ignore it. It's entirely irrelevant. Ignoring it will not break your WiFi access.
by DougieLawson
Sat May 11, 2019 4:56 pm
Forum: Troubleshooting
Topic: apt update not permitted by root ?
Replies: 5
Views: 100

Re: apt update not permitted by root ?

Rename collabra.list to collabra.list~ and wolfram.list to wolfram.list~ Does sudo apt update fail the same way? I'm inclined to suggest building a fresh Raspbian Stretch system on a new SDCard (then moving your data and programs from the Wheezy card) may be your only option to get over this. I thin...
by DougieLawson
Sat May 11, 2019 3:08 pm
Forum: Python
Topic: Installed LAMP on Raspberry and PHP works strangely
Replies: 8
Views: 209

Re: Installed LAMP on Raspberry and PHP works strangely

Your php program needs to be in a xxx.php in /var/www/html or ~/public_html (if you've got mod_userdir enabled).
by DougieLawson
Sat May 11, 2019 12:14 pm
Forum: Troubleshooting
Topic: How to recover files from pi SD card which can't boot
Replies: 2
Views: 84

Re: How to recover files from pi SD card which can't boot

First thing you MUST do (if the GUI is running) is umount the file systems (before you can fsck then). The GUI includes an auto-mounter that's enabled by default.

sudo umount /dev/sda1; sudo umount /dev/sda2; sudo fsck -f -y /dev/sda1; sudo fsck -f -y /dev/sda2
by DougieLawson
Sat May 11, 2019 12:10 pm
Forum: Troubleshooting
Topic: apt update not permitted by root ?
Replies: 5
Views: 100

Re: apt update not permitted by root ?

Have you added any alien respositories to /etc/apt/sources.list or /etc/apt/sources.list.d/xxx.list?

Your "Instruction non permise" error tends to point to trying to run X86/X86_64 code on your ARM based Raspberry.
by DougieLawson
Sat May 11, 2019 12:04 pm
Forum: Beginners
Topic: SSD Boot Process
Replies: 49
Views: 3242

Re: SSD Boot Process

Your problem is the "[TIME] timed out waiting for device ..." error.

Adding a bootdelay should resolve that (if not then you'll need to change the USB/SATA enclosure for your SSD).
by DougieLawson
Sat May 11, 2019 12:00 pm
Forum: Python
Topic: Installed LAMP on Raspberry and PHP works strangely
Replies: 8
Views: 209

Re: Installed LAMP on Raspberry and PHP works strangely

You've not enabled the PHP handler in Apache2.

sudo a2enmod php7.0
sudo systemctl restart apache2
by DougieLawson
Sat May 11, 2019 9:38 am
Forum: Beginners
Topic: SSD Boot Process
Replies: 49
Views: 3242

Re: SSD Boot Process

Try adding

Code: Select all

bootdelay=5
to /boot/cmdline.txt
by DougieLawson
Sat May 11, 2019 9:36 am
Forum: Troubleshooting
Topic: Error when running sudo apt update
Replies: 22
Views: 371

Re: Error when running sudo apt update

You're going to fail. The iTunes drivers will be X86_64 code. That will NOT run on the ARM processor in your RPi (even if you do manage to get them installed).
by DougieLawson
Sat May 11, 2019 6:58 am
Forum: Troubleshooting
Topic: after editing rc.local I am stuck on video after reboot.
Replies: 4
Views: 96

Re: after editing rc.local I am stuck on video after reboot.

Try [ctrl]+[alt]+[prtscr][R] That will terminate the currently running task (without prejudice). It should shoot rc.local dead. If you can't fix it from that you'll need to build a rescue system (Etcher + Raspbian + fresh SDCard), boot that, insert your broken system in a USB reader, mount it and fi...
by DougieLawson
Sat May 11, 2019 6:51 am
Forum: Troubleshooting
Topic: Raspberry pi Kernel error
Replies: 5
Views: 156

Re: Raspberry pi Kernel error

An oops in the ext4 driver tends to point to a broken filesystem.

Do this:
sudo touch /forcefsck
sudo reboot


If you see the failure again after that replace your dying SDCard.
by DougieLawson
Sat May 11, 2019 6:44 am
Forum: Troubleshooting
Topic: cant run sudo apt-get upgrade
Replies: 4
Views: 87

Re: cant run sudo apt-get upgrade

Try running aptitude or synaptic as they have the smarts to fix some dependency errors.
by DougieLawson
Sat May 11, 2019 6:40 am
Forum: Weather station
Topic: beginner here - libmariadbclient install error behind proxy
Replies: 3
Views: 2905

Re: beginner here - libmariadbclient install error behind proxy

Don't bump old threads. Start a new thread with your question.
by DougieLawson
Fri May 10, 2019 3:38 pm
Forum: Troubleshooting
Topic: WiFi drops out and will not reconnect
Replies: 14
Views: 285

Re: WiFi drops out and will not reconnect

Change the case for each host name and each fixed IP (if set). All eighteeen of my Raspberries have fixed IP addresses. That program is running on 14 out of 18.

If you don't have fixed IP addresses then delete

Code: Select all

    logger "WiFi check: $rc -> next: ifconfig $wlx $ip up"
    /sbin/ifconfig $wlx $ip

Go to advanced search