Tiny Core Base > Micro Core
How do I get microcore to sound a System Bell Beep?
Misalf:
--- Quote ---How do I uninstall oss and alsa (the easy way preferably)?
--- End quote ---
Remove oss.tcz and/or alsa.tcz from /etc/sysconfig/tcedir/onboot.lst .
For sound to work via ALSA, you may need alsa-config.tcz to be installed (listed in onboot.lst).
mrstarr:
SUCCESS!
I edited /etc/sysconfig/tedir/onboot.lst and ripped out alsa.tcz, alsa-oss.tcz, libao.tcz, and left oss.tcz
filetool.sh -b
rebooted
$ ossplay doorbell.wav now works! I don't even have to plug in speakers, doorbell.wav comes out of the onboard speaker. Sounds like an old skool pinball thumper. Couldn't be happier.
Thanks last poster :-) And well all posters. Geez Louise...
mrstarr:
Final Bash Script:
--- Code: ---#!/bin/bash
# NETWORK BOX MONITOR ping script
# simple bash script to ping ip of servers and check if they are up or down and beep if they aren't
# usage:
# name file checkhosts.sh and run from linux command line with 'sh checkhosts.sh'
# press control c to exit
# doorbell.wav or wav sound file of same file name needs to be in same dir, and oss.tsz needs to be installed
# pretty straight forward, modify and hack it up to suit your needs
# author: Mark Starr <mrstarr@nyx.net> 2015-11-25
# the doorbell.wav sound file can be found here: http://soundbible.com/165-Door-Bell.html
# just download file, and rename to doorbell.wav and put in same dir as script
while :
do
clear
echo "NETWORK BOX MONITOR"
echo "Pinging Hosts every 60 seconds: press Control C to exit"
echo
date
echo
echo
# set x to equal y at any point in script if we want to play doorbell alert sound after all pinging is done.
x="0"
y="1"
ping -c 1 71.226.8.1 &> /dev/null
if [ $? -ne 0 ]
then
echo " COMCAST DOWN <--"
x = "1"
else
echo " COMCAST Ok"
fi
ping -c 1 192.168.2.1 &> /dev/null
if [ $? -ne 0 ]
then
echo " AP1 DOWN <-- Dlink Gaming Router"
x = "1"
else
echo " AP1 Ok"
fi
ping -c 1 192.168.2.11 &> /dev/null
if [ $? -ne 0 ]
then
echo " AP11 DOWN <-- Belkin AP on Trailer Wall"
x = "1"
else
echo " AP11 Ok"
fi
ping -c 1 192.168.1.1 &> /dev/null
if [ $? -ne 0 ]
then
echo " AP3 DOWN <-- Linksys Router Parents Wall"
x = "1"
else
echo " AP3 Ok"
fi
ping -c 1 192.168.2.3 &> /dev/null
if [ $? -ne 0 ]
then
echo " AP6 DOWN <-- Linksys Router Little House"
x = "1"
else
echo " AP6 Ok"
fi
if [ "$x" = "$y" ]
then
ossplay "doorbell.wav"
# alternatively, if you can get system bell to beep to work from a command line for you, you can substitute
# echo -ne "\007" for ossplay statement above, and thereby not need to install oss
fi
sleep 60
done
--- End code ---
bela.d:
For future reference, this works for me:
--- Code: ---echo -ne '\007' > /dev/tty0
--- End code ---
Change tty0 to your tty.
Navigation
[0] Message Index
[*] Previous page
Go to full version