Go to advanced search

by NotRequired
Tue Nov 23, 2021 6:14 pm
Forum: General discussion
Topic: Restarting raspberry pi after each 30 min
Replies: 3
Views: 216

Re: Restarting raspberry pi after each 30 min

What is the Pi meant to do? Maybe another solution with a more power efficient MCU (like an ESP32) would be a better choice..
by NotRequired
Fri Nov 12, 2021 1:19 pm
Forum: General discussion
Topic: Lifesaving my hdd's
Replies: 11
Views: 413

Re: Lifesaving my hdd's

As already mentioned a coupe of times, the most wear to a drive is caused during spin-up. It can be compared to a car where accelerating is causing much more strain to the drive chain than maintaining the velocity. Instead of using fstab for your mount options, you should consider to use udev rules ...
by NotRequired
Tue Nov 09, 2021 6:19 pm
Forum: Python
Topic: Pygame
Replies: 2
Views: 154

Re: Pygame

Impossible to decode the wiring / circuit from the pictures, but the capacitor looks massively massive for your use case. Try to remove the capacitor and see what happens without: One leg of the LDR to 3V3 and the other to GPIO input. If you need to smooth the LDR with a capacitor you should not go ...
by NotRequired
Fri Sep 24, 2021 12:13 pm
Forum: General discussion
Topic: Been Hack By Update
Replies: 26
Views: 1420

Re: Been Hack By Update

Where is the system installed? If it is on a SD-card, that card may have failed on you. This is not uncommon and it often happens after some heavy write operations like an upgrade. If this is a failing SD-card, you will need to copy the (working) contents from that SD-card onto another media (for la...
by NotRequired
Thu Aug 19, 2021 10:09 am
Forum: General discussion
Topic: Backup SD Card
Replies: 3
Views: 246

Re: Backup SD Card

by NotRequired
Tue Aug 17, 2021 1:05 pm
Forum: General discussion
Topic: MiniDLNA, USB Drives and ACL
Replies: 4
Views: 302

Re: MiniDLNA, USB Drives and ACL

no one can access but pi and root How are you trying to access the DLNA shares? On one of my RbPi's I've installed MiniDLNA with content located on an external USB drive, I think it was very easy to set up and I had no issues with ACL's, all shared folders owned by pi:pi. I'm accessing the content ...
by NotRequired
Wed Jul 07, 2021 12:49 pm
Forum: General discussion
Topic: NTP uninstalling itself
Replies: 29
Views: 1494

Re: NTP uninstalling itself

jondallimore wrote:
Wed Jul 07, 2021 12:20 pm
updates run on a cron job overnight
You could let the cron job execute something like "apt update && apt upgrade && apt install the-ntp-service".
by NotRequired
Wed Jul 07, 2021 10:37 am
Forum: General discussion
Topic: NTP uninstalling itself
Replies: 29
Views: 1494

Re: NTP uninstalling itself

Even though it is a dirty fix, you could create a script that checks if the NTP package is installed and if not, then it is being installed and configurated for your usecase. That script could be run periodically - or on boot - with a systemd service or a cron job in root's crontab.
by NotRequired
Wed Jun 16, 2021 6:36 pm
Forum: General discussion
Topic: How to stop unwanted HDD spindown with UASP adapter?
Replies: 0
Views: 238

How to stop unwanted HDD spindown with UASP adapter?

I have a HDD attached to my Pi4 (Raspi OS Lite) with a UGREEN USB3 adapter which supports UASP. Whenever the drive is idle, it spins down almost immediately for a (couple of) minutes before it then spins up again and does some grinding for a (couple of) minutes and then spins down again. I have disa...
by NotRequired
Wed Jun 16, 2021 10:49 am
Forum: Troubleshooting
Topic: python script work well but not if I use : "sudo" !
Replies: 7
Views: 387

Re: python script work well but not if I use : "sudo" !

You could run the call from PHP as another user. As far as I recall, something like this may work:

Code: Select all

runuser -l username -c "python /path/to/script.py"

The "-l" argument may be changed to "-u", but look it up.
by NotRequired
Wed Jun 16, 2021 10:06 am
Forum: Troubleshooting
Topic: python script work well but not if I use : "sudo" !
Replies: 7
Views: 387

Re: python script work well but not if I use : "sudo" !

A couple of things may cause this. If you run the command "env" in a terminal, you will see the environment belonging to your user. If you run "sudo env", you will see root's environment and there should be a big difference and this may cause problems. Another issue is that if th...
by NotRequired
Thu Jun 10, 2021 6:35 pm
Forum: General discussion
Topic: Is My SD Card OK to Use?
Replies: 10
Views: 548

Re: Is My SD Card OK to Use?

@bjtheone : Of course it is better to have a stable card to start with. I prefer the Sandisk A1 cards because that are the only ones that have never misbehaved during operation for me. One of my A1 cards was in the drawer for ~10 months and when I tried to flash it, I got verification errors. Re-fl...
by NotRequired
Thu Jun 10, 2021 11:08 am
Forum: General discussion
Topic: Is My SD Card OK to Use?
Replies: 10
Views: 548

Re: Is My SD Card OK to Use?

All very true. However if a new memory device fails verification after being written to (flashed) once it is very suspect and would never go into a system I want to put any trust in. If it can't even do that how do I know it will even save that first program I spend hours developing before I get to...
by NotRequired
Wed Jun 09, 2021 5:27 pm
Forum: General discussion
Topic: Is My SD Card OK to Use?
Replies: 10
Views: 548

Re: Is My SD Card OK to Use?

I have also experienced occasional verification errors and un-bootable systems after newly flashing SD-cards. This may happen for many reasons, but the same card that failed once may be re-flashed and work stable for a long time. If the flash succeeds the second time and the system boots properly, t...
by NotRequired
Sat May 29, 2021 6:32 pm
Forum: Python
Topic: Pyqt can't play video in raspberry pie?
Replies: 13
Views: 733

Re: Pyqt can't play video in raspberry pie?

Have you tried to install QtCore with:

Code: Select all

sudo apt install python3-pyqt5.qtcore

Dunno why all those dependencies are not installed by default, though..
by NotRequired
Sat May 29, 2021 12:31 pm
Forum: Python
Topic: Pyqt can't play video in raspberry pie?
Replies: 13
Views: 733

Re: Pyqt can't play video in raspberry pie?

You may need to install further packages, try:

Code: Select all

sudo apt install python3-pyqt5.qtmultimedia
by NotRequired
Sat May 29, 2021 12:20 pm
Forum: Python
Topic: Pyqt can't play video in raspberry pie?
Replies: 13
Views: 733

Re: Pyqt can't play video in raspberry pie?

If you run your python script from a command line, which errors are spewed out?
by NotRequired
Sat May 29, 2021 10:46 am
Forum: Python
Topic: Pyqt can't play video in raspberry pie?
Replies: 13
Views: 733

Re: Pyqt can't play video in raspberry pie?

Have you installed pip3?

Code: Select all

sudo apt install python3-pip

Have you tried to use apt to install PyQT5?

Code: Select all

sudo apt install python3-pyqt5
by NotRequired
Tue May 25, 2021 10:32 am
Forum: General discussion
Topic: Cron job not working (1st try)
Replies: 8
Views: 383

Re: Cron job not working (1st try)

Slayerkodi wrote:
Mon May 24, 2021 8:53 pm
Thank you very much, this worked perfectly. I'm gonna adapt what I have done to Kodi and do that aswel. Thanks again.
Great that you got it working, you might want to post your final systemd service since this may be helpful for others.
by NotRequired
Mon May 24, 2021 6:49 pm
Forum: General discussion
Topic: Cron job not working (1st try)
Replies: 8
Views: 383

Re: Cron job not working (1st try)

Does not look fine to me.. What happens if you start urserver from the command line?
by NotRequired
Mon May 24, 2021 9:15 am
Forum: General discussion
Topic: Cron job not working (1st try)
Replies: 8
Views: 383

Re: Cron job not working (1st try)

You should not use cron for such tasks, use a systemd service instead. Create a file named "/etc/systemd/system/urserver.service" and add the content: [Unit] Description=Unified Remote Server After=syslog.target network.target [Service] Type=simple User=pi ExecStart=/opt/urserver/urserver-...
by NotRequired
Wed May 12, 2021 5:43 pm
Forum: General discussion
Topic: Reduce sd card for snapshot
Replies: 6
Views: 387

Re: Reduce sd card for snapshot

Backup: dd if=/dev/mmcblk0 bs=1M iflag=fullblock | gzip > sd-card-image.gz Restore: gunzip -c sd-card-image.gz > /dev/mmcblk0 If you are doing this from a system running off the SD-card, the backup will contain a "dirty" file system and restoring will cause all sorts of havoc. So you will ...
by NotRequired
Fri Apr 30, 2021 10:07 am
Forum: General discussion
Topic: Facing EXT4-fs error on boot
Replies: 4
Views: 349

Re: Facing EXT4-fs error on boot

Not all SD-cards are compatible with the Pi. I've had a new Kingston SD-card that worked fine for the first couple of boots and then I got those EXT4-errors a couple of times and then the Pi would not boot at all anymore. Using the Kingston SD-card in any other device I have causes no issues. Even t...
by NotRequired
Fri Apr 16, 2021 1:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi and i2c
Replies: 9
Views: 499

Re: Raspberry Pi and i2c

Please post the output (copy paste) in code tags instead of screenshots.. Run the command "systemctl | grep failed". This will produce a list of failed services (should be two). For each failed service run the command "systemctl status service-name". An example: $ systemctl | gre...

Go to advanced search