raspberrypi

3453 readers
1 users here now

Community about the single-board computers, micro-controllers and related projects.

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 4 years ago
MODERATORS
1
 
 

Hi folks, I'm running a pi4 with rpiOS and had been using rdp to log into my pi that has no peripherals connected. I can still ssh in and I do have physical access but this kinda bothers me.

I know rpi connect is a thing but I'm not too comfortable using another "cloud service" to connect to something on my homenetwork from my homenetwork.

The rdp service does not seem to run anymore and I am unsure how to search for the culprit. I did search for a service resembling rdp on the journal but it doesnt turn up. what could be the correct service name?

Thanks for reading. have a good one.

2
3
 
 

Pi Cap has everything I need for my project in terms of function, however their howto page has 2022 update stating that Bullseye does not work with it and one needs to use Buster. I would appreciate any pointers.

4
 
 

tldr;

i need an always on, always connected music player that connects to Bluetooth speakers.. without a battery

I have built-in bt speakers in some bedroom furniture. they have a remote that controls volume, play, and pause. they're really meant to connect to an 'always-on' device like a tv. when i connect my phone, they loudly exclaim "bluetooth connected", and "bluetooth disconnected" when the phone bt is turned off or if the phone leaves the area. i like to fall asleep to some relaxing stuff and when i leave in the morning, it of course, wakes up my wife. no good. i've been using a tiny, old android phone (kitkat), always on, always connected. i have a playlist of 50 things that are played randomly and in an infinite loop, but turns off with a timer set from the remote. the remote works well. but, i don't like have a charging battery next to the bed all day and night. AND, i'm not thrilled about the old ass phone that i can't really do anything with.

so, i'm totally overwhelmed with options. i've been looking at all kinds of things that just don't 'do it'. i have been using pi(s) for years (easy stuff, like pihole, basic lan based server with docker, other small projects) , but this is a new uncharted category for me.

  • 1 anyone know if the remote ( pause and play ) will work with the bt on a pi? it works with a phone. i believe it even worked with my pc.
  • 2 what are some apps that will fit this scenario? it would be cool to have maybe web access to the player
  • 3 what pi would work best? music only. seems like a pie zero 2 w would work.
  • 4 are there any kits? anything ready built? <-- would love this option

thanks for reading

5
 
 

cross-posted from: https://programming.dev/post/23945016

Hi,

I've recompiled my kernel[^moreinfo] of my raspberry pi 4 than run under Devuan rpi

some of the command used on the rpi to compile

apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
mkdir /RaspKernel_6_1_y && cd /RaspKernel_6_1_y
git clone --depth=1 --branch rpi-6.1.y https://github.com/raspberrypi/linux
cd linux
cp /boot/config-6.1.93 /RaspKernel_6_1_y/linux/.config
KERNEL=kernel8
make menuconfig
time make -j$((`nproc` - 2)) Image.gz modules dtbs
make -j$((`nproc` - 2)) modules_install
cp arch/arm64/boot/Image.gz /boot/broadcom/$KERNEL.img
cp arch/arm64/boot/dts/broadcom/*.dtb /boot/broadcom/
cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
reboot
apt install cryptsetup


In addition to have enabled some cipher/algorithm in the kernel config I have set a string ( TESTversionA ) in CONFIG_LOCALVERSION , may be I shouldn't have :/ ?

I'm currently following this guide LUKS on Raspberry Pi ( for context my related lemmy post )

So now that the kernel has been updated, the cryptsetup benchmark -c xchacha20,aes-adiantum-plain64 command is successful

So in order to enable luks in initramfs I'm following the preparing-linux section of this guide.

we can read:

initramfs has to be recreated

I followed the guidance and edited the initramfs-rebuild file to match my setup

initramfs-rebuild file

#!/bin/sh -e

# Rebuild initrd.gz after kernel upgrade to include new kernel's modules.
# https://github.com/Robpol86/robpol86.com/blob/master/docs/_static/initramfs-rebuild.sh
# Save as (chmod +x): /etc/kernel/postinst.d/initramfs-rebuild

# Remove splash from cmdline.
if grep -q '\bsplash\b' /boot/cmdline.txt; then
  sed -i 's/ \?splash \?/ /' /boot/cmdline.txt
fi

# Exit if not building kernel for this Raspberry Pi's hardware version.
version="$1"
current_version="$(uname -r)"
case "${current_version}" in
  *-v7+)
    case "${version}" in
      *-v7+) ;;
      *) exit 0
    esac
  ;;
  *+)
    case "${version}" in
      *-v7+) exit 0 ;;
    esac
  ;;
esac

# Exit if rebuild cannot be performed or not needed.
[ -x /usr/sbin/mkinitramfs ] || exit 0
[ -f /boot/broadcom/initrd.gz ] || exit 0
lsinitramfs /boot/broadcom/initrd.gz |grep -q "/$version$" && exit 0  # Already in initramfs.

# Rebuild.
mkinitramfs -o /boot/broadcom/initrd.gz "$version"


and when I run mkinitramfs -o /boot/broadcom/initrd.gz I got

grep: /boot/config-6.1.93TEST+: No such file or directory

I've did

cp /RaspKernel_6_1_y/linux/.config /boot/config-6.1.93TEST+
mkinitramfs -o /boot/broadcom/initrd.gz

and it seemed worked. I've edit the remaining files

  • /boot/broadcom/cmdline.txt
  • /etc/fstab
  • /etc/crypttab

rebooted. Landed in the initramfs shell as expected

but benchmark -c xchacha20,aes-adiantum-plain64 is no longer successful :'(

Cipher xchacha20,aes-adiantum-plain64 (with 256 bit key) is not available

Any ideas where might lay the problem ?

Thanks.

[^moreinfo]: --branch rpi-6.1.y https://github.com/raspberrypi/linux

6
7
 
 

I'm notbtue smartest person and I consider myself tech cursed.
Had a pi4 for a while, used it for retropi for a few weeks by the the became kinda bothersome.
The one time I managed to get pihole running on it it blocked not just ads but entire sites so that wasn't ideal.
For the pi 5 I used it for a Minecraft server but I had to restart every other day for some reason to be usable.

So what is an easy to use or no think thing I could use a pi 5 for?

8
39
Raspberry pi 500 launched (www.raspberrypi.com)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

Costs $90, physically looks just like 400 (no pointing device), has 8gb ram and includes a 32gb microsd card. CPU is similar to Raspberry Pi 5. There is a desktop kit for $120. So it's a $20 increase over the Pi 400, but you get an extra 4gb of ram, and an SD card. There is also a 15.6" HDMI monitor available for $100 that draws power from the computer. It's not clear to me if there is an NVMe SSD slot in the computer. It's disappointing that there is still no pointing device.

They have also decreased the 400's price from $70 to $60, and the 400 desktop kit (400+16gb sd card+power cube+mouse) from $100 to $80. I have a 400 and it is nice, but of course the 500 is a significant upgrade

Added: from this comment, "Jeff geerling just did a teardown (on his “level 2 jeff) channel and it seems there is provision on the board for a M.2 slot, but the slot and it’s support components are not populated. He actually soldered down a M.2 connector but then realised that it wasn’t just the slot that needed populating." What a pain. There are other comments speculating on a future model with a slot.

Because of the lack of M2 slot and pointing device, I'd have to carefully weigh getting a Pi 5 and external keyboard instead of a 500.

9
 
 

Hi,

I would like to backup the booted SDcard of my Raspberry pi.

I don't necessary need to backup as a hot backup[^1] So I can remove the SDcard and make the backup on another machine.

with dd

$ fdisk -l
Disk /dev/sda: 29.72 GiB .....
....
Device
/dev/sda1 ...
/dev/sda1 ...

So I first tried:

$ dd bs=4M if=/dev/sda conv=fsync status=progress | gzip > /path/path/foobar.gz

But this create a huge .gz file ! because it backup the unused space too :'(

If you know a ~simple command to just backup the used space I'm all ears.

with rpi-clone

I've discovered rpi-clone

Seem really great, too bad the github tab discussion has been not activated :/ and If the documentation is not clear enough, no way to ask the community.

EDIT: Actually it seem that it clone a SD to a full dest drive ! so not as destination file correct ??

in the README you can read:

rpi-clone-setup is for setting the hostname in /etc/hostname and /etc/hosts files.

It is run automatically by rpi-clone if -s args are given, but before your first clone using a -s option, test run rpi-clone-setup with:

rpi-clone-setup -t testhostname

So what is the purpose of the -s argument ? If you want to set another hostname into the destination backup ? why can we set fews ? Can we have few hostname for a same machine ???

and the -t argument is not even documented (if I'm not mistaken ..)

  • Did you ever tried rpi-clone ?
  • what's your 2cent about it ?
  • does rpi-clone sda promt you to confirm the destination ?
  • do know some thing else ?
  • is it possible to output the backup as a file ?


Thanks.

[^1]:Backup that can be taken while the system is running.

10
 
 

cross-posted from: https://feddit.org/post/4874505

11
 
 

I am trying to set up Yunohost on my old Raspberry Pi 2B, but I am not sure which version of Armbian to install on a board this old. I know there is one out there, because I have had it installed in the past. Anyone know?

12
 
 

I didn't realise BlackBerry owned QNX.

13
6
Polar Aligment (mander.xyz)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

I'm thinking about an IoT Polar Aligner. The main idea is to use a Raspberry Pi W with the camera module to find and detect the North Star and display it on the mobile phone. The final goal is to connect it with servos so that it can automatically align itself. Does anyone know of a similar open source project?

Croaspost: https://mander.xyz/post/20076877

14
15
16
 
 

I've got a Zero set up with usb0 as g_ether and a static IP address:

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 10.14.0.15  netmask 255.255.255.0  broadcast 10.14.0.255
        ether 7e:24:7d:cc:68:7c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I have the OTG port connected to one of the four USB ports on a 4b. I'm not sure what the next steps are to get the actual connectivity to function, though. I've seen posts saying that gadget mode is only supported on the USB-C port - does that only mean for using the 4b as a peripheral, or does that mean for any connectivity, even if it's the host?

17
10
Pilet Mini Computer (www.raspberrypi.com)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
18
 
 

As the title says looking for a case that works with the NVME base bottom hat I've looked but not found anything. Just asking in case I didn't dig deep enough any help is welcome.

19
 
 

I have a pi running pihole next to my retro console TV and would like to make it into an ad blocked YouTube player.

I've been looking on and off for a month to figure it out and the only things I find are for RCA cables or for the old way to change resolution from the 2010's.

20
21
 
 

I am not sure if any interesting ones have been made since focus shifted towards the 4 and 5. Maybe there are some specifically designed around using different HATs like UPS, LoRa, or the camera module.

I'm mostly seeing the average layered 3D printed cases and the mock consoles designed for emulation.

I'd also be interested in hearing some neat projects people are using them for. I have two spares from a while ago that I used for a NAS and an e-ink displayed weather forecast.

22
 
 

I spy with my little eye something something Pi.

23
 
 

Hello everyone, looks like we will start on building our dream home this year. I do want to set up a raspberry for automated photo shooting from the construction site. One picture per day is enough, I do want to create a timelapse video afterwards. The new neighbour is a friend, he allowed me to set up the camera in his house facing the construction site. Only problem he does not have a power supply at his window...

Anyone having experience with a solar module and a battery to power the raspi? Feel free to share your jdeas!

24
25
22
Pi Pico 2 Extreme Teardown (electronupdate.blogspot.com)
submitted 5 months ago by [email protected] to c/[email protected]
 
 

This is a good blog post, with die photos of the new RP2350 chip and a brief description of what they show. There is a link to a 12 minute youtube video that is also very good, that discusses the die shots in more detail and also goes over the rest of the Pico 2 circuit board, including die shots of the QSPI flash chip and the voltage regulator chip.

view more: next ›