{"id":335,"date":"2025-01-02T12:30:35","date_gmt":"2025-01-02T05:30:35","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=335"},"modified":"2025-01-02T12:30:35","modified_gmt":"2025-01-02T05:30:35","slug":"vlc-on-proxmox-host-raspbian","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2025\/01\/02\/vlc-on-proxmox-host-raspbian\/","title":{"rendered":"VLC on Proxmox Host \/ Raspbian"},"content":{"rendered":"\n<p><code>alsactl init<br>apt install alsa vlc<br>adduser vlcuser audio<\/code><br><br><code>vlc -I telnet --telnet-password=&lt;password> --telnet-port=9999 --alsa-audio-device default<\/code><\/p>\n\n\n\n<p><strong>VLC on Raspbian Lite Headless<\/strong><\/p>\n\n\n\n<p><code>sudo nano \/lib\/modprobe.d\/aliases.conf<\/code><\/p>\n\n\n\n<p>find the line and comment (for usb soundcard):<\/p>\n\n\n\n<p><code>options snd-usb-audio index=-2<\/code><br><code>flock -n \/tmp\/vlc.lock vlc -I telnet --telnet-password=home --telnet-port=9999 --aout=alsa --no-dbus --file-logging --logfile=\/tmp\/vlc.log<\/code><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.adafruit.com\/usb-audio-cards-with-a-raspberry-pi\/updating-alsa-config\">https:\/\/learn.adafruit.com\/usb-audio-cards-with-a-raspberry-pi\/updating-alsa-config<\/a><\/p>\n\n\n\n<p>automatic start script<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat startvlc.sh\nXDG_RUNTIME_DIR=\/run\/user\/$(id -u)\nDISPLAY=:0\nflock -n \/tmp\/vlc.lock vlc -I telnet --telnet-password=&lt;password> --telnet-port=9999 --file-logging --logfile=\/tmp\/vlc.log<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat checkerror.sh\nif &#91; ! -f \/tmp\/vlc.log ] ; then\n  echo 'log not found'\n  exit 0\nfi\noutp=$(grep -c \"vlcpulse error\" \/tmp\/vlc.log)\nif &#91; $outp -gt 0 ] ; then\n  echo $(date)' error found, killall vlc' >> \/tmp\/vlccheck.log\n  pulseaudio --check\n  killall vlc\n  sleep 1\n  cp \/tmp\/vlc.log \/tmp\/vlc.log.bk\n  rm \/tmp\/vlc.log\n  sleep 5\nelse\n  echo $(date)' no error found' >> \/tmp\/vlccheck.log\nfi<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat \/etc\/wpa_supplicant\/wpa_supplicant.conf\nctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\ncountry=ID\n\nnetwork={\nssid=\"ssidname\"\npsk=\"wifipassword\"\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>alsactl initapt install alsa vlcadduser vlcuser audio vlc -I telnet &#8211;telnet-password=&lt;password> &#8211;telnet-port=9999 &#8211;alsa-audio-device default VLC on Raspbian Lite Headless sudo nano \/lib\/modprobe.d\/aliases.conf find the line and comment (for usb soundcard): options snd-usb-audio index=-2flock -n \/tmp\/vlc.lock vlc -I telnet &#8211;telnet-password=home &#8211;telnet-port=9999 &#8211;aout=alsa &#8211;no-dbus &#8211;file-logging &#8211;logfile=\/tmp\/vlc.log https:\/\/learn.adafruit.com\/usb-audio-cards-with-a-raspberry-pi\/updating-alsa-config automatic start script<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":10,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}