Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2526

Raspberry Pi OS • Headless Bookworm autostart for a terminal command

$
0
0
I have a headless RPi 4B 8GB with a fully updated RPiOS desktop and recommended software 64-bit (Bookworm running Wayland/Wayfire) and an RPi Camera Module v2.1. The system is set to autologin. I access it via both SSH and TigerVNC in my home network.

I want to start running the following command to stream camera video to a server whenever the RPi boots and autologs the sole user in.

Code:

rpicam-vid -t 0 --inline --width 1920 --height 1080 --framerate 30 -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
I have read the excellent boot.pdf Guide written by 'thagrol' and available here: https://github.com/thagrol/Guides/tree/main. However, I am inexperienced and the best choice remains unclear.

I know how to do this in X11, but I wish to stay with Wayland - as I assume it is 'the future' of the RPiOS.

Which is the most appropriate method to start a terminal command automatically? wayfire.ini? a desktop file? Thank you in advance for your time.

Statistics: Posted by SimonDuffy — Tue Jan 16, 2024 9:57 pm



Viewing all articles
Browse latest Browse all 2526

Trending Articles