Raspberry PI5
[Zurück zur aktuellen Version][Diese Version wiederherstellen]

24.03.2024

Raspberry PI5 8GB#

Getting Started

OS#

I installed Raspberry PI 5 / Raspberry PI OS 64bit on 128GB microSD via Imager Software
Note: Settings has three tabs !

Update:

sudo apt-get update
sudo apt-get upgrade
sudo reboot

The Squeezebox Radio needs an IP address (see below), so I activated in FritzBox to give the same IP always to "raspberrypi5".

Samba#

Add samba service to share with windows
>sudo apt-get install samba
# Samba user, same password:
> sudo smbpasswd -a <user>
> sudo mkdir /var/log/samba
}}
> sudo vi /etc/samba/smb.conf
add something like:
[global]
 workgroup = WORKGROUP
# MARKUS ADDED
 netbios name = LINUXSERVER
 lanman auth = no
 ntlm auth = yes
 client lanman auth = no
 wins support = yes
 local master = yes
 preferred master = yes

# MARKUS ADDED
[Musik]
 comment=Raspberry Pi Share
 path = /media
 browseable = yes
 writeable = yes
 read only = no
 only guest = no
 create mask = 0775
 directory mask = 0755
 public = no
 force user = markus
Write permissions on windows are shared on Linux level:
> sudo chmod a+rwx /media
Linux Commands
note: you see the shares used only if some user uses currently, otherwise check config
> sudo service smbd restart
> sudo smbcontrol all reload-config
> samba --version => Version 4.17.12-Debian
> systemctl status smbd
> sudo smbstatus
> sudo smbstatus --shares
> sudo pdbedit -L -v
> cat /var/log/samba/log.smbd

In Windows use
\\raspberrypi5\Musik => Anmelden

Temperature and Power#

Power
You cannot properly messure power consumption in PI, app "powertop" cannot be used due to missing batterie.

 > vcgencmd measure_volts => volt = 0,7200V
I used a smart power adapter from Gosund to check:

Temperature
You can use Linux for checking that:

 > sudo cat /sys/class/thermal/thermal_zone0/temp
Some Linux background about temperatures:
see folder /sys/class/thermal/
=> zones, PI5 has one only = thermal_zone0
note: values like 60050 = 60,05°C
filedescriptionvalue
typeType of the thermal zonecpu-thermal
tempCurrent temperature56,0 - 60,5 without fan in arcyl case
modeWorking mode of the thermal zoneenabled
policyThermal governor used for this zonestep_wise
available_policiesAvailable thermal governors for this zonestep_wise
trip_pointstemp=temperature/type=type/hyst=Hysteresis value for this trip point0 critical / 110 °C / 0
1 active / 50 °C / 5
2 active / 60 °C / 5
3 active / 67,5 / 5
4 active / 75 °C / 5
slopeSlope constant applied as linear extrapolation-550
sustainable_powerSustainable dissipatable power0
k_poProportional term during temperature overshoot0
k_puProportional term during temperature undershoot0
k_iPID's integral term in the power allocator gov0
k_dPID's derivative term in the power allocator0
integral_cutoffOffset above which errors are accumulated0
offsetOffset constant applied as linear extrapolation450000

Current CPU frequency

 > cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq => 15000000
 > vcgencmd measure_clock arm => frequency(0)=1500004352

Logitech Squeezebox Radio#

See mysqueezebox | forum1 | forum2 | LMS (Logitech Media Server) Downloads | LMS Getting Started

I followed more or less StepByStep Instructions by Harald Kreuzer.

Disable swap file

sudo service dphys-swapfile stop
sudo systemctl disable dphys-swapfile
sudo apt-get purge dphys-swapfile
sudo apt autoremove

sudo vi /boot/firmware/cmdline.txt
ADD at the end of line >noswap<
console=[...] noswap

sudo vi /etc/fstab
ADD:
# Log to RAM
tmpfs   /tmp            tmpfs   defaults,noatime,nosuid,mode=1777,size=256m 0 0
tmpfs   /var/log        tmpfs   defaults,noatime,nosuid,mode=0755,size=128m 0 0
tmpfs   /var/tmp        tmpfs   defaults,noatime,nosuid,mode=0755,size=128m 0 0

Install LMS (Logitech Media Server)#

sudo apt-get install libsox-fmt-all libflac-dev libfaad2 
sudo apt-get install libio-socket-ssl-perl 
sudo apt-get install libcrypt-openssl-bignum-perl 
sudo apt-get install libcrypt-openssl-random-perl 
sudo apt-get install libcrypt-openssl-rsa-perl 
# download ARM version Debian !
wget https://downloads.slimdevices.com/LogitechMediaServer_v8.5.0/logitechmediaserver_8.5.0_arm.deb
(note: NOT the ARM tgz = .tar.gz => tar xvf *.tgz)
sudo dpkg -i logitechmediaserver_8.5.0_arm.deb
# to test at window you need lame too
sudo apt-get -y install lame

LMS Commands

sudo service logitechmediaserver start
sudo service logitechmediaserver stop
sudo service logitechmediaserver restart

WebGUI: http://raspberrypi5:9000/ You can listen to selected stream with http://raspberrypi5:9000/stream.mp3

Enable at radio
Settings in radio see https://lms-community.github.io/getting-started/migrate-from-uesr-de/

UPNP/DLNA => Settings > Plugins verwalten > enable "UPnP/DLNA Media Interface (v1.0)

Custom URL #

Note: WebGUI > Radio > URL laden - does not save the URL
  1. Create m3u file like
format:
#EXTM3U  <= must be first line 
#EXTINF:<seconds>,<track title>

examples:

#EXTM3U
#EXTINF:295,Starlight Express - AC/DC
MyCDs\Starlight Express - Starlight Express, Bochum 1991\Starlight Express - 05 ACDC.mp3
#EXTM3U
#EXTINF:0,Radio BOB
http://streams.radiobob.de/bob-national/mp3-192/mediaplayer
2. copy in the folder which is configured in settings > Grundeinstellungen > Wiedergabenlisten-Ordner
3. After changes: Settings > "Durchsuchen starten" (auch für Wiedergabelisten)
4. At radio you can choose Eigene Musik > Wiedergabelisten; you can even save that as favorite