Omx=`ps ax |grep -v grep |grep "omxplayer.bin" | awk ''`Įvery script must have execute permision: chmod +x *.shĪnd use crontab, for enable playing. cat stream/vlna.shĪnd useful script to kill omxplayer from services and stop playing cat stream/kill_omx.sh This script starts to play our live radio. If ps x |grep -v grep |grep -c "omxplayer.bin" #I prefer omxplayerįirst script, that will be used in cron: cat stream/script_audio.sh
#Soft raid vs softraid lite install
Next, I disabled swap, because I didn’t need it: dphys-swapfile swapoffĪnd finally, install some software, create some scripts, to deal with the music itself.
![soft raid vs softraid lite soft raid vs softraid lite](https://i.redd.it/r3oeqj9r7f941.png)
– option noatime (Do not update inode access times on this filesystem) /etc/fstab: In my case, I deal with three bad shdc cards in two years. #this force to check sdhc card every reboot for errorsĮdit /ets/fstab and force to use some log destination to ramdisk and with less write operations.īecause after some time, the sdhc card may fail because of many writing operations on it. #make sure, that /dev/sdb is your sdhc card, free to formatĪfter first use, make some enhacements and customizing: sudo tune2fs -c 1 /dev/mmcblk0p2 I used rpi1 – raspberry 1.įirts, we download Raspbian Jessie Lite and burn this image on sdhc card (of 2GB capacity at least): wget ĭd if=-raspbian-jessie-lite.img of=/dev/sdb bs=4M So I created a raspberry based server, which runs, control’s and deal with radio stream. One time, I must deal with sound on some area in specific time.
#Soft raid vs softraid lite how to
![soft raid vs softraid lite soft raid vs softraid lite](https://img2.owcnow.com/imgs/ndesc/SoftRAID/SFRSOFTRAID5TBY/SFRSOFTRAID5TBY_gall1_med.jpg)