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

Graphics, sound and multimedia • Re: Launch Video on Boot w/ Trixie Lite

$
0
0
thagrol, your guide was very helpful! Created a bash script and everything works wonderfully.

For those interested this is what I ended up with:

sudo nano ~/.bashrc
cvlc --fullscreen --loop --no-osd /home/pi/test.mkv

sudo raspi-config
Enable Auto Login

Whenever the Pi boots up it automatically displays the video on loop via the connected monitor. Perfect!

Now I just need to figure out how to hide all of the boot text and splash screen...

Glad it helped but that really is not the best way to do it. Here's three reasons but there are others:
  • It won't be restarted if it exits.
  • It will get started at every login (including over serial or ssh) even if it's already running. It may also get started if you're in the desktop and open a terminal windows.
  • It's incredibly insecure. The user created by Imager has root level access without any credentials checks. If there is a keyboard plugged in (or if I can plug a keyboard in) I can kill cvlc and have full access to the OS and any files present.
Ultimately it's up to you. If you can live with the risks and limitation stick with it. If not, find another way.

Statistics: Posted by thagrol — Sat Oct 11, 2025 9:55 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles