Diese Seite (Version-113) wurde zuletzt am 25-Apr.-2025 17:33 von Administrator geändert.

Diese Seite wurde am 24-März-2024 13:42 von Administrator erstellt.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar
113 25-Apr.-2025 17:33 15 KB Administrator zur vorherigen
112 29-Dez.-2024 10:53 14 KB Administrator zur vorherigen | zur neuesten
111 29-Dez.-2024 10:50 14 KB Administrator zur vorherigen | zur neuesten DynDNS and ipv6 ==> DNS, DynDNS and ipv6
110 29-Dez.-2024 10:35 14 KB Administrator zur vorherigen | zur neuesten
109 29-Dez.-2024 10:35 14 KB Administrator zur vorherigen | zur neuesten Raspberry Security ==> DynDNS and ipv6
108 28-Dez.-2024 17:15 14 KB Administrator zur vorherigen | zur neuesten
107 23-Dez.-2024 12:43 14 KB Administrator zur vorherigen | zur neuesten
106 20-Dez.-2024 17:48 14 KB Administrator zur vorherigen | zur neuesten
105 18-Dez.-2024 19:55 14 KB Administrator zur vorherigen | zur neuesten
104 18-Dez.-2024 19:49 14 KB Administrator zur vorherigen | zur neuesten
103 18-Dez.-2024 17:06 13 KB Administrator zur vorherigen | zur neuesten
102 18-Dez.-2024 16:59 13 KB Administrator zur vorherigen | zur neuesten
101 18-Dez.-2024 16:51 13 KB Administrator zur vorherigen | zur neuesten

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 4: 9 Zeilen gelöscht.
Extra subpage for
* [Raspberry OS on 4TB]
* [Squeezebox Server]
* [Backup] with Syncthing
* [DNS, DynDNS and ipv6]
* [Firewall with iptables]
* [Exposing Raspberry to Internet]
Zeile 17: 50 Zeilen gelöscht.
!Prepare PI5
I followed more or less [StepByStep Instructions by Harald Kreuzer|https://www.haraldkreuzer.net/aktuelles/logitech-media-server-auf-dem-raspberry-pi-4b-mit-5-zoll-display-installieren] to install on my PI5
! OS and update
I installed Raspberry PI 5 / Raspberry PI OS 64bit on 128GB microSD via Imager Software\\
Note: Settings has three tabs !
* name = raspberrypi5
* Enable SSH !
* Enable WLAN
Keep updated, for a major update (debian) you need to reinstall
{{{
> sudo apt update
> sudo apt -y full-upgrade
> sudo apt -y clean
> sudo apt -y autoremove
}}}
Automatic updates, see [elektronik-kompendium.de|https://www.elektronik-kompendium.de/sites/raspberry-pi/2002101.htm]
{{{
> sudo apt-get install unattended-upgrades # installation
> sudo vi /etc/apt/apt.conf.d/20auto-upgrades # created at installation
"1" means daily
> sudo vi /etc/apt/apt.conf.d/50unattended-upgrades # created at installation
uncommend: "origin=Debian,codename=${distro_codename}-updates";
> sudo dpkg-reconfigure -plow unattended-upgrades # activate with Yes
> sudo unattended-upgrades --dry-run # simulate
> sudo vi /var/log/unattended-upgrades/unattended-upgrades.log # log file
}}}
!Display / Lite to Desktop
Change Raspberry OS lite to [desktop|https://raspberrytips.com/upgrade-raspbian-lite-to-desktop/]. \\
If you need just a console via HDMI, install default desktop for raspberry.\\
This uses wayland for debaian bookworm and PIXEL for older versions.
{{{
> sudo apt install raspberrypi-ui-mods
> sudo raspi-config > System Options > S5 Boot / Auto Login > B3 or B4 to use desktop #use to switch to desktp mode
}}}
The console display is controlled via [cmdline.txt|https://www.raspberrypi.com/documentation/computers/configuration.html#set-the-kms-display-mode].\\
Notes:
* the cmdline.txt must have ONE line only, keep what is in there and append with SPACE as separator
* you can have "video=" only on the first HDMI port (does not work on second)
{{{
> kmsprint | grep Connector # find out which hdmi port is used, you need HDMI-A-1
> sudo vi /boot/firmware/cmdline.txt # edit as ONE line !
append in first line " video=HDMI-A-1:1920x1080M@60,rotate=90" # rotation happens anti-clockwise
}}}
Zeile 79: Eine Zeile geändert.
||Component||Default Max Speed
||Component||Speed
Zeile 81: 3 Zeilen geändert.
|PCIe 1.0 x1|250 MB/s
|PCIe 2.0 x1|500 MB/s <= default on PI5
|PCIe 3.0 x1|970 MB/s <= can be enabled
|PCIe 2.0 x1|250 MB/s
Zeile 87: 2 Zeilen geändert.
As my case offers a PCIe M.2 NVMe slot I added a SSD 4TB Lexar NM790 M.2 2280 PCIe. This had frequently "input/output error", which could be resolved via reboot only. There seems to be an issue at the kernel, see [here|https://forum.proxmox.com/threads/lexar-nm790-2tb.134293/]
Anyway, I returned this device and bought a "4TB Samsung 990 PRO M.2 2280 PCIe 4.0 x4 3D-NAND TLC (MZ-V9P4T0BW)", which worked flawlessly.
As my case offers a PCIe M.2 NVMe slot I added a SSD 4TB Lexar NM790 M.2 2280 PCIe. This had frequently "input/output error", which could be resolved via reboot only. There seesm to be an issue at the kernel, see [here|https://forum.proxmox.com/threads/lexar-nm790-2tb.134293/]
Anyway, I returned this device and bought a "4TB Samsung 990 PRO M.2 2280 PCIe 4.0 x4 3D-NAND TLC (MZ-V9P4T0BW)".
Zeile 90: 41 Zeilen gelöscht.
!Drive Speed / Performance Test
see [1|https://forums.raspberrypi.com/viewtopic.php?t=75125] and [2|https://en.wikipedia.org/wiki/GNOME_Disks]\\
{{{
sudo apt-get install gnome-disk-utility
}}}
After that you have following at your desktop: \\
Menu > Zubehör > Laufwerke > Pick One > Three Dots > Leistungstest > Enable Write / Keep Defaults > Start
My results:
[{Table style='width:auto'
||Device||Read MB/s||Write MB/s||Access ms
|USB Seagate Expansion Desk 5TB|134,7-135,4|44,8|16,22-17,05
|USB IcyBox 366-C31 2TB|36,4|30,2|14,61
|m2 Samsung SSD 990 Pro 4TB|471,1|339,6|0,09|PCI 2
|m2 Samsung SSD 990 Pro 4TB|923,1|430,5|0,06|PCI 3
}]
Alternative:
{{{
> sudo apt-get install hdparm
> sudo hdparm -Tt /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 5433.18 MB/sec
Timing buffered disk reads: 884.73 MB/s
}}}
!Drive Info
{{{
> sudo blkid # get PARTUUID
> lsblk -f # list devices
> df -h # check size
> fdisk --list # list all devices
> cat /sys/class/block/sdb/device/{model,vendor} # show model+vendor
> lsblk -S # show models of sd*
> lsusb # usb devices info
> usb-devices # detailed usb devices info
change label for ext4:
> sudo e2label /dev/sda1 seagate
> sudo e2label /dev/sdb1 icybox
}}}
Zeile 31: 3 Zeilen hinzugefügt.
list devices
> lsblk -f
nvme0n1
Zeile 161: Eine Zeile geändert.
mount via PARTUUID (blkid) or /dev/xxx, note: multiple USB device may switch at /dev/xxx after restart, e.g. better to use UUID !!!
get device ids (you can use also the name in fstab)
> sudo blkid
Zeile 167: Eine Zeile gelöscht.
/dev/sda1 /mnt/usb auto defaults,nofail 0 2
Zeile 171: 2 Zeilen geändert.
}}}
If you add an USB drive in fstab, make sure to use option __nofail__, because system will enter emergency mode (leave with Ctrl+D) if USB drive is turned off otherwise!
> df -h
> fdisk --list
> lsblk -o PATH,FSTYPE,MOUNTPOINT /dev/nvme0n1p1
}}}
Zeile 77: 7 Zeilen hinzugefügt.
! OS and update
I installed Raspberry PI 5 / Raspberry PI OS 64bit on 128GB microSD via Imager Software\\
Note: Settings has three tabs !
* name = raspberrypi5
* Enable SSH !
* Enable WLAN
Zeile 238: 3 Zeilen geändert.
~\\raspberrypi5\Musik => Anmelden\\
or just the device to see all shares\\
~\\raspberrypi5
~\\raspberrypi5\Musik => Anmelden
Zeile 287: Eine Zeile geändert.
!!Software / Use Cases
!!Logitech Squeezebox Radio
!Logitech
See [mysqueezebox|https://www.mysqueezebox.com/index/Home] | [forum1|https://forums.slimdevices.com/forum/user-forums/deutsch/1668931-mysqueezebox-com-und-uesmartradio-com-infrastruktur] | [forum2|https://forums.slimdevices.com/forum/user-forums/general-discussion/1668327-uesmartradio-com-and-mysqueezebox-com-servers] | [LMS (Logitech Media Server) Downloads|https://lms-community.github.io/lms-server-repository/] | [LMS Getting Started|https://lms-community.github.io/getting-started/]\\
Zeile 199: 75 Zeilen hinzugefügt.
I followed more or less [StepByStep Instructions by Harald Kreuzer|https://www.haraldkreuzer.net/aktuelles/logitech-media-server-auf-dem-raspberry-pi-4b-mit-5-zoll-display-installieren].
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) for music (only)
{{{
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|https://mystupidnotes.com/common-logitech-media-server-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
# 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\\
Zeile 293: 2 Zeilen gelöscht.
* though >wide_links=yes< should allow symbolic links, it is NOT working with minidlna !
* Standard share is media_dir=/var/lib/minidlna, you may want to change at /etc/minidlna.conf
Zeile 299: 5 Zeilen gelöscht.
> minidlnad -h
> sudo minidlnad -R
> sudo service minidlna restart
> sudo rm /var/cache/minidlna/files.db # purge media database
> sudo netstat -ntpl # check port 8200
Zeile 284: 2 Zeilen hinzugefügt.
Standard share is at {{{/var/lib/minidlna/}}}\\
Zeile 309: 2 Zeilen geändert.
vi /etc/minidlna.conf # <= edit here
}}}
vi /etc/minidlna.conf
}}}
Zeile 312: 7 Zeilen geändert.
! Access Desktop Remotely / VNC
see [remote-access|https://www.raspberrypi.com/documentation/computers/remote-access.html]
VNC - Virtual Network Computing (Remote Framebuffer Protocol)\\
Raspberry comes with realvncserver by default (alternative tightvncserver)
Enable WayVNC
!!Backup with [Syncthing|https://docs.syncthing.net/users/config.html]
see [heise CT article|https://ct.de/yub8]
Zeile 320: 5 Zeilen geändert.
> sudo raspi-config > Interface options > VNC > Enable
On Windows install [TigerVNC|https://github.com/TigerVNC/tigervnc/releases] > Binary Relases > tigervnc64-1.14.1.exe
Run "TigerVNC Viewer"
Options > Input > Enable "Show dot when no cursor"
Enter IP address > Connect
get source signed key
> sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
add source to package lists
> echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
check
>sudo vi /etc/apt/sources.list.d/syncthing.list
install
> sudo apt update
> sudo apt full-upgrade -y
> sudo apt install syncthing -y
enable web gui for all IP addresses
>sudo vi ~/.local/state/syncthing/config.xml
update line: <address>0.0.0.0:8384</address>
start/stop
> sudo systemctl enable syncthing@markus.service
> sudo systemctl start syncthing@markus.service
> sudo systemctl disable syncthing@markus.service
> sudo systemctl stop syncthing@markus.service
> sudo systemctl restart syncthing@markus.service
Zeile 315: 5 Zeilen hinzugefügt.
Web Guid at [http://raspberrypi5:8384]\\
API can be used with header: X-API-Key=<see web gui preferences>
{{{
https://raspberrypi5:8384/rest/pending/folders
}}
Zeile 327: Eine Zeile geändert.
! Image viewer feh
!!Image viewer feh
Zeile 347: Eine Zeile geändert.
!Monitoring with RPi Monitor
!RPi Monitor
Zeile 367: 29 Zeilen gelöscht.
!! wifi / wlan
If you connect via cable, you do not need wlan\\
Check WLAN
{{{
> ifconfig > find "wlan0"
> dmesg > find "WLAN Adapter"
(sudo dmesg -c clear messages)
> sudo iwconfig <========= find "Mode:Managed Access Point"
> sudo iwgetid
> sudo apt-get install iw
> iwconfig find "IEEE 802.11bgn"
> iwlist chan
> iw list
}}}
Disable wlan
{{{
> sudo vi /boot/firmware/config.txt
add after [all]
dtoverlay=disable-wifi
}}}
{{{
> rfkill
> rfkill block wifi
> rfkill unblock wifi
> sudo ip link set wlan0 down
}}}
Zeile 424: 4 Zeilen gelöscht.
! Login loop after installing VNC
Error "Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start"
My desktop user was assigned to group "root".\\
=> assign another [primary group|User]
Zeile 429: 10 Zeilen gelöscht.
!minidlna does not stream
Do not use symbolic links in your media drive, content there will be listed, but not displayed!
! no diskspace on mmcblk0p2 (SD Card extension partition, e.g. not the boot one)
{{{
> sudo lsblk -f # check partition usage
> df # check where partition is used
> sudo du -h -d 1 # check all folder's usage in current folder
}}}
Solution: with du I could identify that minidlna log captured everything at /var/log/minidlna