New answers tagged

0

@Ingo's answer got me most of the way, but my script's curl request was exiting with code 6 because it couldn't resolve the url's host yet--even though a network connection was established. A fix shared by @richardeigenmann: Before execution of the service, wait until a ping loop confirms it can resolve google.com: [Service] ExecStartPre=/bin/sh -c 'until ...


0

If you’re new to using a Raspberry Pi try NOOBS first. You can start with two OS on the same card, Raspberry OS and LibreElec, for example. All the software you need is available on the Raspberry website, no need to use Etcher or any other image installer, you can use the Raspberry Installer. After you have given NOOBS a try and have booted either to one OS ...


0

Whenever I tried accessing my Raspberry Pi 4B using VNC Viewer from my MacBook Pro I would get the "timed out" error whenever I typed "raspberrypi" in the connect field. Then I tried typing the IP address of my RPi instead and it worked perfectly. It asked for approval, user name and password. After that I was in and managed to work ...


0

This problem happen with me but finally it solved do : ps afx|grep dpkg sudo killall dpkg sudo rm /var/lib/dpkg/lock Run your process you want, if isn't work follow next step apt --fix-broken install


3

This is what I have found out after I checked out noobs code as well as reverse engineering it. For booting recovery.efi is loaded by bootloader. From here kernel is loaded from recovery.img or some other one for your pi. Now kernel will load recovery.rfs to the ram. recovery.cmdline contains ram0 as root this means kernel will call sbin/init from ramdisk. ...


0

Whether or not the removal of the SD card was an issue is hard to tell. You have apparently written a new image to it. So it is immaterial; it is now impossible to find out. The deletion of the ssh file means at least that the Pi boots; it can only do so when it reads at least the kernel from the card. Otherwise, it could not delete the file. It is an ...


1

You are unlikely to get a definitive answer because none of us use NOOBS. (Those who want multi OS use PINN .) NOOBS is actually an Operating System installer and boot manager. You CAN NOT "boot in recovery mode while holding SHIFT key" - you need to PRESS SHIFT during the brief period it flashes a message. It is unclear what you are actually ...


-1

To answer your question. No, it is not normal.


3

You control the green activity led with /sys/class/leds/led0/trigger and the red power led with /sys/class/leds/led1/trigger. First look at its standard settings with: rpi ~$ cat /sys/class/leds/led0/trigger none rc-feedback kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock ...


-1

With respect to my question at https://raspberrypi.stackexchange.com/a/117643/125839 I found that,editing /etc/dhcpcd.conf file (and do not confuse with /etc/dhcp/dhcclient.conf) can force dhcpdcd to give static ip of out choice. example (add following in /etc/dhcpcd.conf): interface eth0 static ip_address=192.168.1.3/24 static routers=192.168.1.1 static ...


-1

Based on ingo's answer, I thought of using dhcpcd. I am Sharing my experience (Likely to be useful to newbee and irritating to masters) I kept my old /etc/network/interface file as it is. First, as soon as dhcpcd was started, my ssh connection hanged After first reboot, it momentarily pinged to old( 192.168.1.2 , see question above) address. But in few ...


1

Building a bit on the answer by Janghou, the following files in the sysfs dir for cpu0 (first core of the CPU, whether single core or multi-core) /sys/devices/system/cpu/cpu0/cpufreq/ are of interest too: affected_cpus and related_cpus - This should be all the cores of the Pi's CPU (these make more sense with servers with multiple multi-core CPUs and ...


1

I faced similar problem and resolved it using following sudo apt-get install --reinstall lxsession I got a hint about this from .xsession-errors file. The error in this file was /usr/bin/x-session-manager: 33: exec: /usr/bin/lxsession: not found


-2

Read 100s of answers for How to setup static wifi on pi I am summarizing my experience: Relevant for oragepi / rasberrypi Why: a pi attached to USB power supply with no 'strings' attached is the goal Connect with LAN (Because Wifi is not set / may get broken during trial systemctl disable NetworkManager (to disable nmtui) content of /etc/network/...


3

IN219 current sensor breakout might be a option. you basically insert this where with want to measure the current, usually the power to the Rasberry pi. It connects to the PI with I2C. should meet what you want. You can carefully split the usb power cord open cut the red wire and attach it to the board. You need a soldering iron and some hook up wire but it'...


2

Yes - there is a world of test instruments in the market that are capable of measuring current, voltage and time (Energy = V * I * t) consumed by a Raspberry Pi. Here's one example of such an instrument, and you can find many others by searching the Internet. You asked about using the GPIO for this measurement. That is rather vague, and would likely be ...


2

The Raspberry Pi OS does not use an Init RAM Disk. If you need one you have to create it by yourself. In addition to the ramdisk you have to add some settings in /boot/config.txt. I have an example to load storage drivers on an early stage. You may have a look at Easy backups and snapshots of a running system with LVM. To get an idea just only look at the ...


0

A solution to enable TightVNC viewer with this issue is to install and open VNC viewer in Chrome. From there you can access the Pi and its VNC server settings. Go to options, set authentication to "VNC password" and Encryption to "Prefer Off". See https://www.raspberrypi.org/forums/viewtopic.php?t=176408 After that I was again able to use ...


0

I never did find an answer to this problem. I eventually fresh-installed the server and reconfigured it (Switching to containerized hosts) This solved the issue... But not sure what the issue was 😕


0

These suggestions are based on experience from Linux on x86 machines, rather than the RasPi. In my experience, whole-disk encryption is bad for performance, is tricky to troubleshoot and makes upgrades difficult. I would avoid it. What is preferable is to leave the root partition unencrypted, but keep a separate /home partition, where all your used data ...


0

if you trying to connect to a 5GHz network, you need to set the country code, so that the 5GHz networking can choose the correct frequency bands also for the latest version of Buster Raspberry Pi OS you need to add ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=<Insert 2 letter ISO 3166-1 country code here> network={ ...


1

Use class 10 type (good quality) SD card and use this for flashing the image. Verify the version of Raspbian OS with RPi board revision and flash that OS.


0

You have obviously modified /etc/dhcpcd.conf which is presumably the cause of your problem; either the contents are corrupt or the permissions wrong. As you have not explained what you did or shown the contents or permissions and obscured relevant details it is difficult to make any concrete suggestions. You should restore /etc/dhcpcd.conf to its default. (...


1

libapache2-mod-php is a virtual package provided by libapache2-mod-php7.3 in Buster and libapache2-mod-php7.0 in Stretch. Check if you have the correct package installed. If not, you should find out why (perhaps you need to run sudo apt-get -f install). As a last resort, you can install the correct package manually.


2

Search for phones which support UVC (USB video device class) profile. When such phones are connected to USB, Android asks what kind of data you want to transmit (Mass Storage, MTP, etc.) and there's a menu entry called "Camera". Select it, and your Pi should see it as a USB webcam.


1

The callback is only set up for rising edges. Change it to wait for both edges.


2

Yes, BlueZ is included in the latest versions of Raspberry Pi OS. To check that it is running on your system, use the command service bluetooth status. BlueZ's API for interfacing with various languages are documented at: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc There is the the mgmt API for system level tasks and the D-Bus API for ...


0

Run the Apache module enable software. From memory sudo a2enmod


0

I finally found the solution: Instead of using Ethernet, I connected the Raspberry Pi to my WiFi Network and apt update and apt upgrade runs smoothly. Do you have any explanation for this strange behavior? This is not the first Pi which I connected to my local network via Ethernet. Never had such problems before.


0

Using Win32 Disk Imager, read your SD card and save the image into a file. Then write the image to another SD card and try it.


0

Add unstable packages with sudo sh -c 'echo "deb http://ftp.us.debian.org/debian sid main" > /etc/apt/sources.list' and upgrade packages apt-get update && apt-get upgrade libc6


0

On my Raspberry Pi 3 with RaspiOS 2020-05-27 Buster (based on Debian 10.4) the problem exists if I run raspi-config into a ssh shell and without a phisical keyboard attached. If an USB keyboard is attached, the dpkg-reconfigure keyboard-configuration command (or the relative raspi-config option) does indeed work, even if invoked into an ssh session.


1

Try this: sudo apt clean sudo rm -rf /var/lib/apt/lists/* sudo apt clean sudo apt update sudo apt upgrade


1

You've broken something. What? No idea... you say you've Changed the /etc/apt/sources.list, but you didn't say what you began with, or what you have now. You should copy/backup the files you've created to a USB drive, download a fresh copy of RasPi OS, and re-flash your SD card.


0

Don't try to start foreground applications from /etc/rc.local. made a log.text to know what's happening \O/ You are possibly the only person I've seen take this time and confusion saving step here in the context of this very common problem -- we get at least one post a week here about this issue, most of them insisting "my script isn't being run",...


1

You can use qemu-system-arm -machine type=raspi2 -m 1024 -kernel vmlinux -initrd initramfs qemu-system-aarch64 -machine type=raspi3 -m 1024 -kernel vmlinux -initrd initramfs The kernel and initramfs you can find on the first partition of your SD card or extract from the OS image for a Raspian Pi. If you want a 64bit OS then you need to use qemu-system-...


0

WiFi can be disabled in /etc/dhcpcd.conf. In my case, I had a interface wlan0 nohook wpa_supplicant in /etc/dhcpcd.conf which I created during original installation following this answer. If one wants to re-enable WiFi later, don't forget to remove these lines!


0

Move the setting of the timestamp inside your picture() method. It looks as though you are currently overwriting the image with the same timestamp. def picture(): timestamp=datetime.now() pc.capture('pic'+str(timestamp)+'.jpg')


1

For whatever reason putting the server.port in external.conf results in an error on restart. Changing it in lighttpd.conf works fine. To get rid of the /admin in the URL one could create a link in the /html folder. ln admin pi-hole -s Together with the port change it could look like this http://op:88/pi-hole/ (well the /admin path would still be there, it ...


1

Try removing xserver-xorg-video-fbturbo, it causes this behavior as well as other problems: sudo apt-get remove xserver-xorg-video-fbturbo sudo reboot


2

I tried to do it via connecting to hotspot with no password but comes out that SSH is not enabled (I guess the issue is with firewall or sth). How I solved it was using the graphical package manager (Raspberry logo on upper left -> Preferences -> Add/Remove software) to install virtual keyboard and typing my wifi password. After that, the SSH worked ...


0

This is expected behaviour for a CMOS input which has an input impedance >10MΩ. You would have to use a resistor >50MΩ (if you could find such a thing), but this would be regarded as poor practice. It is unclear WHY you would WANT to do this. NOTE some of the Comments after your Question are incorrect (or misleading). This Question is not Pi specific.


0

Are you perhaps instead thinking of the effects of both a resistor AND capacitor there? Note: Doing so directly to your digital outs with a low resistance value can be dangerous to output ports if it cannot handle the resulting current. When you have long wires, signal loss is not due to just the resistance, it's also that there is some capacitance and also ...


1

Try this: import io import picamera import logging import socketserver from threading import Condition from http import server PAGE="""\ <html> <head> <title>Raspberry Pi - Surveillance Camera</title> </head> <body> <center><h1>Raspberry Pi - Surveillance Camera</h1></center> <...


2

You wrote: this is my netplan config, which I am trying to duplicate using Raspbian. You cannot just duplicate it to the Raspberry Pi OS because RaspiOS does not use netplan. So lets look how to configure the RasPi to achieve what you want. As far as I understand you want to connect the RasPi to VLAN10 with a static ip address. From the netplan settings I ...


1

I had the same issue. The first thing the raspberry pi requests when you start it up is to change the default password. If, for example, you choose a password with he letter # in it, you will be stuffed if you then change your keyboard to a US keyboard. You will never be able to log in. The Shift-3 key sequence is £ The British currency symbol, once you ...


0

I'm actually not a RAID user, but I was a little bit bothered by the way this issue is ignored in man mdadm, since it is sure to be a common one. The base block device names in /dev are not persistent, as you have realized. There are, however, a number of ways of using a persistent label that should work in this context. I notice in this U&L post both ...


-2

Following instructions on this post I got it working. https://stackoverflow.com/questions/44168415/raspbian-python-script-eof-error-at-startup Just make sure you boot to CLI. Go to: sudo nano /home/pi/.bashrc and add this to the end of the script: echo Running at boot sudo python3 /home/pi/filename.py


2

Is it because the OS itself is compiled for ARMv6? Yes. Why... The same reason the OS is compiled for ARMv6: Because it is intended for use on all models, including the ARMv6 Zeros, etc. There is probably not much point in using an ARMv7 compiler on an ARMv6 system regardless of the underlying hardware. The system libraries and kernel are ARMv6. Also ...


2

Don't use NOOBS to install Raspberry Pi OS It's one more thing to worry about when you're troubleshooting an installation. Just use the Raspberry Pi Imager or something like Etcher. For Encrypting the OS the Offical Raspberry Pi forum has a post with instructions on how to do this. The OP used LUKS and created a script you could use.


Top 50 recent answers are included