The time now is Wed 19 Jun 2013, 09:53
All times are UTC - 4 |
| Author |
Message |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Fri 25 Jan 2013, 14:49 Post subject:
MPG321-0.2.10.6-2 in "Quirky Linux 1.40" ! only script Subject description: Compact sound player |
|
INSTALLATION --->
| Quote: |
Install_MPG321--sr0--fc11.sh
| Code: |
#!/bin/bash
#
mkdir -m 0500 -p /room ;
cd /room ;
#
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'mpg321-0.2.10.6-2.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "mpg321-0.2.10.6-2.fc11.i586.rpm..rm" >/usr/local/etc/mpg321.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/mpg321-0.2.10.6-2.fc11.i586.rpm ;
if [ ! `echo -e "29875c7f640873331e184eae22ce3d43 mpg321-0.2.10.6-2.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i mpg321-0.2.10.6-2.fc11.i586.rpm ;
sleep 0.5s ;
echo "mpg321-0.2.10.6-2.fc11.i586.rpm..rm" >/usr/local/etc/mpg321.dsktop ;
rm /room/mpg321-0.2.10.6-2.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#
ln -s /usr/bin/mpg321 /usr/bin/mpg123 ;
#
fi ;
#1
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libao-0.8.8-6.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "libao-0.8.8-6.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/libao-0.8.8-6.fc11.i586.rpm ;
if [ ! `echo -e "4cd56365a097db1ad860bb9e4b429b8b libao-0.8.8-6.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i libao-0.8.8-6.fc11.i586.rpm ;
sleep 0.5s ;
echo "libao-0.8.8-6.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /room/libao-0.8.8-6.fc11.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#2
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libid3tag-0.15.1b-8.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "libid3tag-0.15.1b-8.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
#
rm /usr/lib/libid3tag.so.0 ;
rm /usr/lib/libid3tag.so.0.3.0 ;
#
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/libid3tag-0.15.1b-8.fc11.i586.rpm ;
if [ ! `echo -e "ccd7810c49280e55669d440e061bba80 libid3tag-0.15.1b-8.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i libid3tag-0.15.1b-8.fc11.i586.rpm ;
sleep 0.5s ;
echo "libid3tag-0.15.1b-8.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /room/libid3tag-0.15.1b-8.fc11.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#3
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libmad-0.15.1b-11.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "libmad-0.15.1b-11.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
#
rm /usr/lib/libmad.so.0 ;
rm /usr/lib/libmad.so.0.2.1 ;
#
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/libmad-0.15.1b-11.fc11.i586.rpm ;
if [ ! `echo -e "42200f12b30b57be21a8a98a4a52456b libmad-0.15.1b-11.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i libmad-0.15.1b-11.fc11.i586.rpm ;
sleep 0.5s ;
echo "libmad-0.15.1b-11.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /room/libmad-0.15.1b-11.fc11.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#4
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'alsa-oss-1.0.17-3.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "alsa-oss-1.0.17-3.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/alsa-oss-1.0.17-3.fc11.i586.rpm ;
if [ ! `echo -e "0147868b5593e93e94779a2925b1b2b3 alsa-oss-1.0.17-3.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i alsa-oss-1.0.17-3.fc11.i586.rpm ;
sleep 0.5s ;
echo "alsa-oss-1.0.17-3.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /room/alsa-oss-1.0.17-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#5
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'alsa-oss-libs-1.0.17-3.fc11.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "alsa-oss-libs-1.0.17-3.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MPG321/Fedora-11_files/alsa-oss-libs-1.0.17-3.fc11.i586.rpm ;
if [ ! `echo -e "dc2c7d5ed557971499f90f378704dfb6 alsa-oss-libs-1.0.17-3.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i alsa-oss-libs-1.0.17-3.fc11.i586.rpm ;
sleep 0.5s ;
echo "alsa-oss-libs-1.0.17-3.fc11.i586.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /room/alsa-oss-libs-1.0.17-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#6
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#
cd / ;
#
if [ `grep -w -s -c 'nimbus-icon-theme-0.1.4-2.el5.i386.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "nimbus-icon-theme-0.1.4-2.el5.i386.rpm..rm" >>/usr/local/etc/mpg321.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MPG321/RedHat-EL-5_files/nimbus-icon-theme-0.1.4-2.el5.i386.rpm ;
if [ ! `echo -e "f42a9ae95381dd0a2f02308950751318 nimbus-icon-theme-0.1.4-2.el5.i386.rpm" | md5sum -c - >/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /.md-5.sm` ] ; then xmessage -file /.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /.md-5.sm`" ; fi ;
rpm2cpio nimbus-icon-theme-0.1.4-2.el5.i386.rpm | cpio -idv ./usr/share/icons/nimbus/48x48/apps/run.png ;
sleep 0.5s ;
echo "nimbus-icon-theme-0.1.4-2.el5.i386.rpm..rm" >>/usr/local/etc/mpg321.dsktop ;
rm /nimbus-icon-theme-0.1.4-2.el5.i386.rpm ;
rm /.md-5.sm ;
fi ;
#-^-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
sed -i '/^$/d' /usr/local/etc/mpg321.dsktop ;
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Name=MPG321 - SINGLE RXVT Playback - List-2' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Exec=bash -c "urxvt -e mpg321 -o alsa -a 0,0:plughw -Z -g 90 -@ /archive/2lst.txt &"' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321--Single_RXVT_Playb.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Name=MPG321 - SINGLE RXVT - STOP' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Exec=bash -c "kill -9 `pidof mpg321|rev|cut -d\" \" -f1|rev`"' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321--Single_RXVT_Stop.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Name=MPG321 - SINGLE AOSS RXVT Playback - List-3' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Exec=bash -c "urxvt -e aoss mpg321 -o alsa -Z -g 90 -@ /archive/3lst.txt &"' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop ;
#
# # #
#
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Name=MPG321 List-1 Maker' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
#
#Don't touch this >>>
#Exec=bash -c 'bash -c "`Xdialog --inputbox \"Creation of FILE LIST: user can change just a SEARCH path and not hidden FILTER commands.\nWAVE files and files with SPECIAL signs will be dropped due to abilities of MPG321.\nSPECIAL signs are the following:\nWHITESPACE, QUOTES, DOUBLE_QUOTES, AT_SYMBOL, SQUARE_BRACKETS, PARENTHESES.\" 10 100 \"bash -c \"'\''\"ls -1 /archive/*.mp3|grep -v \]|grep -v \)|grep -v \\ >/archive/1lst.txt\"'\''\"\" 2>&1`" && bash -c "cat /archive/1lst.txt|grep -v \".wav\"|grep -v \\\"|grep -v \"'"'"'\"|grep -v \"@\" >/archive/1lst.txt"'
grep "\-\-inputbox" /mnt/sr0/_Files/MPG321/Install_MPG321--sr0--fc11.sh | grep AT_SYMBOL | grep -w "1lst.txt" | grep -v "Install_MPG321--sr0--fc11.sh" | sed 's/#//' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
# <<<
echo 'Terminal=false' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
echo 'Categories=no' >> /usr/share/applications/mpg321-1st_Lst_go.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Name=MPG321 List-1 Maker' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Exec=rox /usr/share/applications/mpg321-1st_Lst_go.desktop' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321-1st_Lst.desktop ;
#
# # #
#
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Name=MPG321 List-2 Maker' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
#
#Don't touch this >>>
#Exec=bash -c 'bash -c "`Xdialog --inputbox \"Creation of FILE LIST: user can change just a SEARCH path and not hidden FILTER commands.\nWAVE files and files with SPECIAL signs will be dropped due to abilities of MPG321.\nSPECIAL signs are the following:\nWHITESPACE, QUOTES, DOUBLE_QUOTES, AT_SYMBOL, SQUARE_BRACKETS, PARENTHESES.\" 10 100 \"bash -c \"'\''\"ls -1 /archive/*.mp3|grep -v \]|grep -v \)|grep -v \\ >/archive/2lst.txt\"'\''\"\" 2>&1`" && bash -c "cat /archive/2lst.txt|grep -v \".wav\"|grep -v \\\"|grep -v \"'"'"'\"|grep -v \"@\" >/archive/2lst.txt"'
grep "\-\-inputbox" /mnt/sr0/_Files/MPG321/Install_MPG321--sr0--fc11.sh | grep AT_SYMBOL | grep -w "2lst.txt" | grep -v "Install_MPG321--sr0--fc11.sh" | sed 's/#//' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
# <<<
echo 'Terminal=false' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
echo 'Categories=no' >> /usr/share/applications/mpg321-2nd_Lst_go.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Name=MPG321 List-2 Maker' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Exec=rox /usr/share/applications/mpg321-2nd_Lst_go.desktop' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321-2nd_Lst.desktop ;
#
# # #
#
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Name=MPG321 List-3 Maker' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
#
#Don't touch this >>>
#Exec=bash -c 'bash -c "`Xdialog --inputbox \"Creation of FILE LIST: user can change just a SEARCH path and not hidden FILTER commands.\nWAVE files and files with SPECIAL signs will be dropped due to abilities of MPG321.\nSPECIAL signs are the following:\nWHITESPACE, QUOTES, DOUBLE_QUOTES, AT_SYMBOL, SQUARE_BRACKETS, PARENTHESES.\" 10 100 \"bash -c \"'\''\"ls -1 /archive/*.mp3|grep -v \]|grep -v \)|grep -v \\ >/archive/3lst.txt\"'\''\"\" 2>&1`" && bash -c "cat /archive/3lst.txt|grep -v \".wav\"|grep -v \\\"|grep -v \"'"'"'\"|grep -v \"@\" >/archive/3lst.txt"'
grep "\-\-inputbox" /mnt/sr0/_Files/MPG321/Install_MPG321--sr0--fc11.sh | grep AT_SYMBOL | grep -w "3lst.txt" | grep -v "Install_MPG321--sr0--fc11.sh" | sed 's/#//' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
# <<<
echo 'Terminal=false' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
echo 'Categories=no' >> /usr/share/applications/mpg321-3rd_Lst_go.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Name=MPG321 List-3 Maker' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Exec=rox /usr/share/applications/mpg321-3rd_Lst_go.desktop' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321-3rd_Lst.desktop ;
#
# # #
#
#
# # #
#
echo '#!/bin/bash' >/usr/local/bin/mpg321px2 ;
chmod 0755 /usr/local/bin/mpg321px2 ;
echo '#' >>/usr/local/bin/mpg321px2 ;
echo '#Reason for creating of this script: through some time after launch of ALSAPLAYER the audio system gives a bad sound output. I want to know what MPG321 can give.' >>/usr/local/bin/mpg321px2 ;
echo '#' >>/usr/local/bin/mpg321px2 ;
echo 'urxvt -e aoss mpg321 -o alsa -Z -g 44 -@ /archive/1lst.txt &' >>/usr/local/bin/mpg321px2 ;
echo 'urxvt -e aoss mpg321 -o alsa -Z -g 34 -@ /archive/2lst.txt &' >>/usr/local/bin/mpg321px2 ;
echo 'pkill -9 mpg321 `sleep 3h` ;' >>/usr/local/bin/mpg321px2 ;
echo 'pidof mpg321px2 | xclip ;' >>/usr/local/bin/mpg321px2 ;
echo '/usr/local/bin/mpg321px2 & bash -c "kill -9 `xclip -o 2>&1`"' >>/usr/local/bin/mpg321px2 ;
#
# # #
#
# #echo '#!/bin/bash' >/usr/local/bin/ab_mpg321px2 ;
# #chmod 0755 /usr/local/bin/ab_mpg321px2 ;
# #echo 'kill -9 `pidof mpg321px2` ;' >>/usr/local/bin/ab_mpg321px2 ;
# #echo 'kill -9 `pidof mpg321|rev|cut -d" " -f1|rev` ;' >>/usr/local/bin/ab_mpg321px2 ;
# #echo 'sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
# #echo 'kill -9 `pidof mpg321|rev|cut -d" " -f1|rev`' >>/usr/local/bin/ab_mpg321px2 ;
#
# # #
#
echo '#!/bin/bash' >/usr/local/bin/ab_mpg321px2 ;
chmod 0755 /usr/local/bin/ab_mpg321px2 ;
echo 'if [ `pidof mpg321px2|rev|cut -d" " -f1|rev` ] ; then' >>/usr/local/bin/ab_mpg321px2 ;
echo 'kill -9 `pidof mpg321px2|rev|cut -d" " -f1|rev` ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'else sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'fi ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'if [ `pidof mpg321|rev|cut -d" " -f1|rev` ] ; then' >>/usr/local/bin/ab_mpg321px2 ;
echo 'kill -9 `pidof mpg321|rev|cut -d" " -f1|rev` ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'else sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'fi ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'if [ `pidof mpg321|rev|cut -d" " -f1|rev` ] ; then' >>/usr/local/bin/ab_mpg321px2 ;
echo 'kill -9 `pidof mpg321|rev|cut -d" " -f1|rev`' >>/usr/local/bin/ab_mpg321px2 ;
echo 'else sleep 0.1s ;' >>/usr/local/bin/ab_mpg321px2 ;
echo 'fi' >>/usr/local/bin/ab_mpg321px2 ;
#
# # #
#
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Name=MPG321 - DOUBLE RXVT Playback' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Exec=/usr/local/bin/mpg321px2' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321--Double_RXVT_Playb.desktop ;
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Name=MPG321 - DOUBLE RXVT - STOP' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Comment=Audio player for the Advanced Linux Sound Architecture' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Icon=/usr/share/icons/nimbus/48x48/apps/run.png' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Exec=/usr/local/bin/ab_mpg321px2' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Terminal=false' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Type=Application' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
echo 'Categories=Audio;' >> /usr/share/applications/mpg321--Double_RXVT_Stop.desktop ;
#
# # #
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "-=mpg321-0.2.10.6-2=- has been installed." `jwm -restart`
|
Edit: 2013, jan 25.
|
A script's content can be copied into text editor by means of <Quote> mode.
<--- INSTALLATION
Addition-1:
| Quote: |
/usr/local/bin/0_mpg321
Access: (0500/-r-x------) Uid: ( 0/ root) Gid: ( 0/ root)
Note: '/usr/local/bin/0_mpg321' is created to replace '/usr/share/applications/mpg321--Single_AOSS_RXVT_Playb.desktop'
| Code: |
#!/bin/bash
#
#Reason for creating of this script: through some time after launch of MPG321 the audio system gives a bad sound output.
#
kill -9 `cat /archive/..3lst.txt` 2>/dev/null ; rm -f /archive/..3lst.txt ;
urxvt -e aoss mpg321 -o alsa -Z -g 90 -@ /archive/3lst.txt &
pkill -9 mpg321 `sleep 3h` ;
pidof 0_mpg321 | xclip & pidof xclip 1>/archive/..3lst.txt ; chmod 0000 /archive/..3lst.txt ;
/usr/local/bin/0_mpg321 & bash -c "kill -9 `xclip -o 2>&1`"
|
Edit: 2013, jan 25.
|
Addition-2:
| Quote: |
If there is a need to listen to sound together with the web-browser under user SPOT --->
Note: Firefox web-browser is able to share a sound device with such a music players as: Alsaplayer, MPG321.
| Quote: |
/usr/local/bin/0_AB_mpg321
Access: (0505/-r-x---r-x) Uid: ( 0/ root) Gid: ( 0/ root)
Note: '/usr/local/bin/0_AB_mpg321' is created to stop MPG321 in the case when MPG321 was launched through '/usr/local/bin/0_spo-mpg321'
| Code: |
#!/bin/bash
if [ `pidof 0_mpg321|rev|cut -d" " -f1|rev` ] ; then
kill -9 `pidof 0_mpg321|rev|cut -d" " -f1|rev` ;
else sleep 0.1s ;
fi ;
sleep 0.1s ;
if [ `ps aux|grep '0_spo-MPG321'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ] ; then
kill -9 `ps aux|grep '0_spo-MPG321'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ;
else sleep 0.1s ;
fi ;
sleep 0.1s ;
if [ `ps aux|grep '0_spo-mpg321'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ] ; then
kill -9 `ps aux|grep '0_spo-mpg321'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ;
else sleep 0.1s ;
fi ;
sleep 0.1s ;
if [ `pidof mpg321|rev|cut -d" " -f1|rev` ] ; then
kill -9 `pidof mpg321|rev|cut -d" " -f1|rev` ;
else sleep 0.1s ;
fi ;
sleep 0.1s ;
if [ `ps aux|grep 'sleep 3h'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ] ; then
kill -9 `ps aux|grep 'sleep 3h'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1` ;
else sleep 0.1s ;
fi
|
|
| Quote: |
/usr/local/bin/0_spo-MPG321
Access: (0550/-r-xr-x---) Uid: ( 0/ root) Gid: ( 17/ audio)
| Code: |
#!/bin/bash
aoss mpg321 -o alsa -Z -g 160 -@ /archive/3lst.txt
|
|
| Quote: |
/usr/local/bin/0_spo-mpg321
Access: (0550/-r-xr-x---) Uid: ( 0/ root) Gid: ( 17/ audio)
Note: '/usr/local/bin/0_spo-mpg321' is created to launch MPG321 when there is a need to listen to sound through web-browser under user SPOT
| Code: |
#!/bin/bash
#
#Reason for creating of this script: through some time after launch of MPG321 the audio system gives a bad sound output.
#
kill -9 `cat /archive/.3lst.txt` 2>/dev/null ; rm -f /archive/.3lst.txt ;
kill -9 `cat /archive/..3lst.txt` 2>/dev/null ; rm -f /archive/..3lst.txt ;
urxvt -e su spot -c /usr/local/bin/0_spo-MPG321 &
pkill -9 mpg321 `sleep 3h` ;
ps aux|grep '0_spo-MPG321'|grep urxvt|cut -d. -f1|rev|cut -d' ' -f3|rev | xclip & pidof xclip 1>/archive/..3lst.txt ; chmod 0000 /archive/..3lst.txt ;
echo "`ps aux|grep '0_spo-mpg321'|cut -d. -f1|rev|cut -d' ' -f3|rev|head -1`" >/archive/.3lst.txt ;
chmod 0000 /archive/.3lst.txt ;
/usr/local/bin/0_spo-mpg321 ; bash -c "kill -9 `xclip -o 2>&1`"
|
|
Edit: 2013, jan 25.
|
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|