Tiny Core Linux
Tiny Core Base => CorePlus => Topic started by: evertvaningen on June 14, 2017, 09:52:53 AM
-
I want Mplayer to automatically start playing music after boot.
I tried
echo "mplayer http://91.221.151.155:80/;?.mp3" > ~/.X.d/Playradio
No luck.
I read https://bbs.archlinux.org/viewtopic.php?id=166565 but I don't know how to do all that stuff.
-
I'd try
echo 'xterm -e mplayer "http://91.221.151.155:80/;?.mp3"' > ~/.X.d/Playradio
-
Or your network isn't up yet
{
SEC=60
while [ $SEC -gt 0 ]; do
ifconfig | grep -q "Bcast" && break || sleep 1
echo -ne "Waiting for IP... $((SEC--)) \r"
done
mplayer "http://91.221.151.155:80/;?.mp3"
} &
-
Or your network isn't up yet
{
SEC=60
while [ $SEC -gt 0 ]; do
ifconfig | grep -q "Bcast" && break || sleep 1
echo -ne "Waiting for IP... $((SEC--)) \r"
done
mplayer "http://91.221.151.155:80/;?.mp3"
} &
This looks great but how can I implement this?
-
Just put it in your ~/.X.d/Playradio start script
-
In the thread you posted the link to, they ping the server until it pongs back.
Might make sense.
{
while true; do ping -c1 91.221.151.155 && break || sleep 1; done
xterm -e mplayer "http://91.221.151.155:80/;?.mp3"
} &
-
In the thread you posted the link to, they ping the server until it pongs back.
Might make sense.
{
while true; do ping -c1 91.221.151.155 && break || sleep 1; done
xterm -e mplayer "http://91.221.151.155:80/;?.mp3"
} &
It does open after boot but there is no sound. AlsaMixer tells me there is sound.
speaker-test: not found... :s
Getting tired of all these weird problems all the time...
Reinstalling and try again.
Install alsa.tcz
$echo "amixer set "Master" 39 unmute" > ~/.X.d/alsaunmute
To test the audio
$ speaker-test -Ddefault:0 -c2 -t wav -l1
After clean install speaker-test still missing?
-
In the thread you posted the link to, they ping the server until it pongs back.
Might make sense.
{
while true; do ping -c1 91.221.151.155 && break || sleep 1; done
xterm -e mplayer "http://91.221.151.155:80/;?.mp3"
} &
It does open after boot but there is no sound. AlsaMixer tells me there is sound.
speaker-test: not found... :s
Getting tired of all these weird problems all the time...
Reinstalling and try again.
Install alsa.tcz
$echo "amixer set "Master" 39 unmute" > ~/.X.d/alsaunmute
To test the audio
$ speaker-test -Ddefault:0 -c2 -t wav -l1
After clean install speaker-test still missing?
Auto play Mplayer is now with sound so all is good.
I installed Alsa-Config...
-
I get the error
Cache empty, consider increasing -cache and/or -cash=min. [performance issue]
then it resumes 0.1 sec... get the error again and then the program exits.
Any way to fix this?
Something like...?
$mplayer http://91.221.151.155:80/;?.mp3 -cache
-
That's not why it exits. Look at the whole log.