Вот вывод при запуске этого файла:immortal писал(а): проверить rc.local просто запустить его
./rc.local
Код: Выделить всё
My IP address is 192.168.0.99
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
No protocol specified
Вызов xcb_connection_has_error() вернул «true».
No protocol specified
[02023d20] core interface error: no suitable interface module
[01f7a918] core libvlc error: interface "globalhotkeys,none" initialization failed
[02023d88] dbus interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
[02023d88] core interface error: no suitable interface module
[01f7a918] core libvlc error: interface "dbus,none" initialization failed
[02023d88] [http] lua interface: Lua HTTP interface
[02023d88] [http] core interface error: socket bind error: Permission denied
[02023d88] [http] core interface error: socket bind error: Permission denied
[02023d88] [http] core interface error: cannot create socket(s) for HTTP host
[02023d88] [http] lua interface error: Error loading script /usr/lib/arm-linux-gnueabihf/vlc/lua/intf/http.luac: lua/intf/http.lua:336: Failed to create HTTP host
Код: Выделить всё
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use /usr/bin/vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
Код: Выделить всё
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
/bin/sleep 20 && service mysql start
-u www-data /usr/bin/vlc -I http --http-password 12345 --http-port 7070
exit 0
UPD:
с голосом частично решил проблему - надо через raspi-config указать выход, куда подключены колонки. У меня к 3,5 мм. Вот вывод после указания этой опции:
Код: Выделить всё
numid=3,iface=MIXER,name='PCM Playback Route'
; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0
: values=1
mplayer /var/www/cached/voice/8a669e9418750c81ab90ae159a8ec410_yandex.mp3 >/dev/null 2>&1
то говорит. Это наверное с пользователем связано?
И ещё, не могу восстановить предыдущий бэкап через интерфейс МДМ, зависает.