raspberrypi

3064 readers
13 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
 
 

I found this tutorial about how to use a raspberry pi to add a digital panel to old cars (canbus port needed)

2
3
 
 

Can anyone suggest a plug and play USB mic for my raspberry pi (that you've used and know it works). I've managed to avoid work meetings on teams for a long time but there's one I can't get out of and my laptop broke so I'm computing only on my pi for the time being. Don't really care for webcam, noone needs to see me, but I need to be able to speak to them.

4
 
 

Friends... my new Raspberry Pi makes me crazy!!!

I would like to install Docker on the RPi5 (8 GB). I am following this guide: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

However, at step 2:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

I always get the error:

E: Package 'docker-ce' has no installation candidate
E: Package 'docker-ce-cli' has no installation candidate
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
E: Unable to locate package docker-buildx-plugin
E: Unable to locate package docker-compose-plugin

Then I found out that at step 1:

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

I receive the error:

Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Ign:5 https://download.docker.com/linux/ubuntu bookworm InRelease
Err:6 https://download.docker.com/linux/ubuntu bookworm Release
  404  Not Found [IP: 18.165.183.12 443]

What I am doing wrong? :-( What am I missing? Why can't this IP be found?

Many thanks! :-)

5
6
 
 

I don't get a very detailed error message but it fails and tells me to try reinserting it. I've tried a few times. It fails at different percentages sometimes. Any thoughts or ways to get a more detailed error message? I have Mac and Linux too.

7
8
 
 

So I've got an 8GB Pi 5 with the offical Active Cooler and then the Pineberry NVME HAT on top in the Pi52 tall alumnium cooling case and thermals are not great. Looking for guidance and/or recommendations.

I already have the active cooler so I'm all out of fan headers, and I have 3 hard drives plugged in so I'm not sure about powering a whole USB fan.

I saw that Noctua finally came out with their desk fan and thought that may be a perfect solution. I was thinking of just slapping it under the Pi, but I was wondering if this would even make a difference.

Also wondering what the best configuration would be between push/pull & bottom/top or if anybody has better ideas, I'm all ears. Thank y'all!

9
 
 

Hey all! I wanted to build/buy a retro gaming console with Raspberry Pi to play roms. What is the simplest way to do this? Can I buy a Raspberry Pi that has RetroPi installed already, then just dump my roms onto it?

Thanks ๐Ÿ‘

10
11
12
1
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 
 

DietPi is an excellent ARM SBC debian distro if you want to run a DIY NAS/media server/Pi-Hole/torrent platform.

They have a great set of CLI tools to cover most common use cases for a headless device. Personally, I found their tooling to be a great introduction to CLI linux. The baseline tools have you covered, but you can start experimenting once are comfortable with linux CLI (and you need to implement some custom solutions).

One cool feature that it has is that logging is done in RAM, thus extending the life of your SD card.

I've been using DietPi since 2018. For a relatively small distro (about ~100K users), they are very active and responsive on their communication channels.

13
 
 

"Raspberry Pi Ltd, a leader in low-cost, high-performance computing, announces that it is considering an initial public offering (the "IPO" or the "Offer") and that it intends to publish today a registration document (the "Registration Document"). The Company is considering applying for admission of its ordinary shares to the premium listing segment of the Official List of the FCA and to trading on the Main Market of the London Stock Exchange ("Admission")."

14
 
 

I recently acquired a Raspberry Pi 5, but I've been having a lot of difficulty in getting LUKS encryption to work. Has anyone had any luck?

Also, I am using an NVMe drive, so Raspbian is really the only OS that works well. NetBSD can see the disk, too, but I found it annoying to use; and FreeBSD ended up breaking itself. I have not yet tried Armbian.

15
16
 
 

I've been using Chromecasts and it's gotten so slow and buggy. I was trying to cast from VLC on my phone to it and I had a ton of trouble getting it to show up and connect and after I finished streaming from my phone I tried to switch to the YouTube app and it just kept on crashing.

It's 2024, I'm tired of dealing with shitty tv streaming experiences. I want something completely uncompromising. I want a silky smooth experience and I don't want it to randomly break on my.

I'm thinking about shelling out for a shield TV, but I'd rather have control over my device since I don't want to deal with the manufacturers fucking around with my device after the fact.

I'd love to be able to set up a raspberry pi for this, but would I be able to get a seamless experience? I don't mind doing extra up front work to get it set up, but I don't want it to be an ongoing maintenance thing, and I'd like it to work with Chromecast so it's easy to stream to from a variety of devices.

Can I actually pull that off with a raspberry pi or should I go with the shield TV?

17
18
 
 

In December 2017 I set up a Raspberry Pi Zero W (v1.1) with a bash script to automatically launch Chromium browser at startup in kiosk mode, wait 2 minutes, then use xdotool to change tabs.

Browser was configured to launch with 2 tabs. One was a locally hosted (static) HTML file, the other was a Google Slides slideshow. HTML file displayed a welcome message and current time (via css clock) while the slideshow loaded in the background tab.

This was working flawlessly for years.

Here's my problem
If the display was showing desktop background instead of clock/slideshow I would just SSH in and reboot to fix it ... but over the last 6 months, this "reboot fix" reliability of launching the Chromium browser has fallen off a cliff... From 100% to 50% to 10% then basically 0%

I suspected the latest version of the browser is not supported on this old Zero W ... So I formatted the SD card, burned the 32-bit Legacy version of Pi OS (bullseye) for the Zero W using imager and confirmed my suspicions.

I almost fixed the issue by launching Midori in Fullscreen mode instead, but it's displaying the navbar for some reason. Am I missing something?

For this simple use case, would I be better off running 32-bit Pi OS Lite and an X11 window manager? How?

19
20
 
 

I wanted to share my most recent delivery from AliExpress, an MCUZone MPS2242-POE A hat for my Pi 5, that combines an NVME controller, and POE circuitry. I couldn't find any info on these before buying, so I thought it would be good to share with the raspberry Pi community here.

I think these hats would be useful for merging the functions of both devices if you were planning to buy them anyways. You can already get the same functionality of this with combining a NVME base (ex. Pimoroni) with the Waveshare POE hat, but I didn't think the combo would fit in my little 1U pi rack, since the base adds some height (see attached photo album for checking our the sizes)

Costs seem similar to buying the hats separately, this combined hat was 3,980 yen with shipping for me, and the waveshare POE hat was about 3000 yen, plus 1500 yen for a NVME base (costs might be more or less depending on where you're shipping it to, I'm in Japan).

It supports disks of 2230 or 2242 size only. In the case of 2230, there's no standoff included for the hole, and you need to supply your own. I used a small bolt (M3 I think) to fix my 2230 disk in place. This hat does block the CSI/ DSI port, but there's a B version that has holes in the PCB so you can use these plugs, but it's taller then the A version I bought.

There's also a USB-C port on the board, I initially though this could be used for mounting the drive on another machine, but it doesn't seem to work for that. It's just there to supply power to other accessories (5V 3A according to spec-sheet)

I only installed it earlier today, but as a first review it works great. I have my Pi setup with two USB devices (zigbee stick and connection to a UPS) and power is working fine.

The tricky part for me was moving/ installing an OS on the NVME drive, as I don't have a NVME to USB reader to access the NVME disk from the normal raspberry Pi Imager tool I use on my laptop. To anyone in the same position these steps will work with any NVME hat for the Pi 5 to install:

  • Create a generic Rasperry PI OS image on any microsd card, then boot that up from the on your Pi 5 with NVME hat installed.
  • Use this environment to update the EEPROM, which depending on your version might be necessary for the NVME hat to work.
sudo rpi-eeprom-update
sudo raspi-config
  • You can then use the built-in raspberry pi disk imager tool to install whatever you want with the NVME as a target, or if you have an existing Pi 5 image you want to copy over you can do so with dd to clone it (In my case this was a Home Assistant image), as long as you can plug in your existing microSD card with a USB reader to the Pi5 so it can access both disks. (Check the names of your disks with lsblk)
sudo dd if=/dev/sda of=/dev/nvme0n1 status=progress
  • Once this is done, shutdown the pi and pull the microSD card (and USB microSD adapter if you were using one). If everything worked you'll boot up into your NVME environment. You can also use the raspi-config tool to setup nvme boot as a priority over microSD boot, but I left mine as default in case I need to go back to another OS quickly for any reason by just plugging in any old microSD installation.

Hope this info is useful to people here! If there's any questions about this guy let me know.

21
 
 

Pi4 1gb, posters on left with feh, info board on right which is a html file running on chromium

22
 
 

I'm sorry if this isn't the place to ask this, I also asked over at [email protected].

So what I want to do is this: Two RasPis are at different locations. They're on different networks but have internet access. Pressing a button on one of the Pis turns on an LED over at the other Pi via GPIO. How can I make the communication work? My first thought was Telegram bots as I'm familiar with those for notifications but you can't have Telegram bots communicate with each other, sadly. Is there a good (and secure) solution to this? Preferably using Python code and without continuous costs like server hosting, etc?

Thanks!

23
1
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Instructables sucks and my github's a mess, so I'm just going to post this here, so Lemmy exclusive I guess..

Before starting you will need an rpi 4b, after monitoring over ssh I'm pretty sure a 2gb model will be enough, the RAM usage didn't really get much past 1.7gb, I used an old 4gb that used to be my projects centre. Cooling is advised, you can overclock and get the performance boost that way too which helps a lot with 1080p, although still don't expect to get near that with youtube, go with piped instead. Ethernet and an overclock will get the best performance, although 720p on most sites seems to run okay over wifi. You will want to run from USB storage too, I'm using the M.2 SSD base with the argon ONE case, but I tested on a USB 3.0 thumbdrive and results were pretty similar.

Start by flashing the latest 64-bit raspi lite OS to a usb device. You may need to update the EEPROM if you haven't already in order to boot from USB. Take advantage of the rpi imager settings here to enable SSH and change the hostname so you can tell it apart from the 6 other pi's you have running around your house, if using a different imager then don't forget to include the SSH file you may need it on the next step.

After initial boot, the screen may black out, using the same image I had this happen with the USB SSD, but not the USB thumb drive. If it blacks out then ssh in and vi or nano into /boot/firmware/config.txt and comment out and add the following lines:

#dtoverlay=vc4-kms-v3d
dtoverlay=vc4-fkms-v3d

Now that the screen is working you can log into the session, and make the usual prayer sudo apt update && sudo apt upgrade -y followed by a sudo reboot for luck. And next install KDE Plasma; I originally went for kde-plasma-desktop as its the lighter install, but it kept hanging at boot, you might have more luck, but expect to start again if it fails.

sudo apt install kde-standard

After that another reboot for luck. Then we need to activate the sddm login manager service, and tell raspi OS that we want it to boot into GUI on the next boot:

sudo systemctl enable sddm
sudo systemctl set-default graphical.target

And reboot again. It should now boot into plasma, and the first thing you should do is disable all the desktop effects; older KDE plasma guides suggest to disable compositor, but the session defaults to wayland unless you tell it not to, and wayland can't run without the compositor - I've noticed no major differences between X11 and wayland myself in this use case (don't believe the hype). [edit: have found that disabling compositor in X causes screen tearing on video, so just disable desktop effects but leave compositor on]

Now the effects are disabled, and if you have your cooling set up, now is a good time to overclock, so back into /boot/firmware/config.txt. I just went with the following:

# Overclock
over_voltage=6
arm_freq=2000
gpu_freq=700

Next we can install the other bits we need:

sudo apt install chromium-browser rpi-chromium-mods plasma-bigscreen

If you want to watch DRM services like netflix you will need another package thats not included in lite:

sudo apt install libwidevinecdm0

KDE connect and an android phone make the perfect remote control, connect should already be included in the KDE install. But firewall suggested, with connect and ssh rules:

sudo apt install ufw
sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw allow 22/tcp
sudo ufw enable

Next open chromium, add the extensions you want, and "install" your "web apps".

Now open up KDE settings again, select Startup and Shutdown > Login Screen (SDDM), and then click the behaviour button at the bottom and set plasma to log in automatically and change the session to bigscreen, password to confirm, and it should prompt you to set a password for the keychain, I set a blank password because I want other people to be able to use the tv. Also disable power saving, or at least getting sent back to the login screen after sleep.

Done! Reboot and enjoy!

Some optional polish:

plasma bigscreen is designed to work one window at a time, so if you minus a window without a keyboard you've essentially lost it, so in settings you can remove the titlebar buttons for max/min and hide and just leave the one to close the window with.

Xscreensaver has a pretty cool analog tv effect screensaver that will cycle through images in a folder and display them with various tv static effects:

sudo apt install xscreensaver xscreensaver-data-extra

[edit: it looks like this version of bigscreen doesn't suport KDE login scripts so xscreensaver for now is a non-starter. Hopefully debian gets plasma 5.26 soon and this will then work]

[added:] Not quite full screen: KDE's window management isn't quite perfect, and full screen often falls short by 1 pixel on the right and bottom borders (despite any window rules you might add), this can be an irritant when a bright wallpaper sits behind whatever you're watching. Easiest fix is to set a dark-edged wallpaper. The newer bigscreen lets you use the kde settings which is nice as you can set the wallpaper to plain colour black, but the debian version you have to use the built in wallpaper settings app found in the settings menu on the home screen. It will only show you the wallpapers that are installed, so download your dark wallpaper, then move it to the wallpaper folder and it will show up in the wallpaper changer application:

sudo mv ~/Downloads/<wallpaper> /usr/share/wallpaper/
24
 
 

Had been waiting for my pi 5 argon case which got lost in the post before I could set this up. Ive been tinkering with an old SFF PC running arch over the last few months to get a "smart tv" set up going that im happy with, now ive condensed it down into a little debian box that uses a fraction of the electricity. Happy days.

25
view more: next โ€บ