Saturday, February 29, 2020

Welcome

Welcome to my Blog.

Most the stuff you see here is Linux, Audio or Computer related

Thursday, August 16, 2018

Run 32bit executables under 64bit Ubuntu

Trying to run an old linux script. Turned out to be 32bit.
Just install
apt-get install libc6-i386
 
and it works.
 
from https://superuser.com/questions/1076730/how-to-run-32-bit-app-in-recent-ubuntu-64-bit 

Tuesday, September 8, 2015

Lubuntu Change Autologin User

From http://www.itworld.com/article/2725495/it-management/how-to-put-lubuntu-into-automatic-login-mode.html

Where you make the changes to configure a Lubuntu system for automatic login depends on the release you are using. In releases prior to 12.04, the change must be made in the file /etc/lxdm/default.conf. You can open a terminal (lxterminal) and edit it with vi (e.g., gksudo vi /etc/lxdm/default.conf) or use a desktop editor like leafpad (e.g., gksudo leafpad /etc/lxdm/default.conf).
Uncomment the following line and change "dgod" to the intended login name. This ensures that the automatic login recognizes your account and knows where your home directory and files belong, etc.
# autologin=dgod
After the change, the autologin line in your file might look like this:
autologin=spongebob
 
 
In Ubuntu releases starting with 12.04, however, you need to edit a different file. With the new display manager, lightdm, a different file is used to manage this setting. So, you edit the /etc/lightdm/lightdm.conf file instead.
lightdm is an X display manager that is fast, extensible and provides the ability to use multiple desktops -- like lubuntu and OpenBox. The lightdm.conf file, after your changes, will look something like this. Note the lack of # signs on the autologin lines:

[SeatDefaults] 
autologin-user=spongebob 
autologin-user-timeout=0 
user-session=Lubuntu 
greeter-session=lightdm-gtk-greeter

You can switch back to the using a username and password to log in in by reversing the changes described above. Put the comment markers back in front of the autologin lines and reboot.
In both cases, the username must match the one you set up when you installed the system or you will need to edit your /etc/passwd and /etc/shadow files and move the home directory to match the new name.
Obviously, autologin can only be used for one account. The system needs to know which account to activate when it boots.

Wednesday, August 27, 2014

Checking if rdairplay is running

I was having a few problems with rdairplay crashing randomly and leaving silence on air. I made a script to check if it is running and restart if neccessary and delete the rdairplaylock file. I hope someone finds this usefull.
 I think someone wrote something similar a while back using a while loop or something.
You could run it periodically using crontab if you wished?
When you save this file dont include the word "rdairplay" as part of the file name or else the running of this script will show up as an "rdairplay" process on your system. I called my script checkrdair.sh ... but you can choose a name that suits you.


#!/bin/bash

# This returns a value of 0 (if not running) or 1 (if rdairplay running)

statusrdairplay=`ps x | grep -v grep | grep -c rdairplay`

echo $statusrdairplay

 if [ $statusrdairplay = "1" ]; then
 echo "rdairplay is running"
else

# Remove rdlockfile Change the path to the rdairplaylock file on your set up.
rm /home/geoff2/.rdairplaylock

# Start rdairplay /usr/bin/rdairplay &

#Pause for 10 seconds to give rdairplay time to start up prior the running rmlsend command sleep 10

#Optional you could add this rmlsend line here to play next track if you wished
rmlsend PN\ 1\!

fi

exit

Friday, August 1, 2014

Connecting to a Remote Webstream with Rivendell

Rivendell Macro Cart.
Note this can be triggered during ordinary playback on rdairplay to connect as required.

RN /home/USERNAME/scripts/stream-connect-script.sh! < script that starts mplayer connected to remote stream (while loop) through 3rd sound card.

SP 10! < Sleep 10 ms

RN /home/USERNAME/scripts/openinput.sh! < script that open channel on Line Input (1st sound card) so 3rd soundcard output connects to it.

SP 10!

PM 3! < Switches Rdairplay to Manual Mode

LB Starting stream in 10 seconds!

SP 2000!

LB Starting stream in 8 seconds!

SP 2000!

LB Starting stream in 6 seconds!

SP 2000!

LB Starting stream in 4 seconds!

SP 2000!

LB Starting stream in 2 seconds!

SP 2000!

LB Remote Stream On!

PS 0 5000! < Stop Machine playing out with a 5 second fadeout

SP 5000!


-------------------------------------------------------------------------------------------------------------------------


stream-connect-script.sh
#!/bin/bash
#Note: Playing sound out of 3rd sound card hw2,0 (1st card hw0,0 and 2nd card hw1,0)
sleep 11

while [ true ]
do
mplayer -ao alsa:device=hw=2,0 http://actual-url-of-stream:8000

sleep 3
done

---------------------------------------------------------------------------------------------------------------------------------


openinput.sh
#!/bin/bash

sleep 13

# open amixer Line input channel to 90% volume, (adjust on audio level of stream.)
amixer -c 0 sset Line,0 90%,90%

Disconnecting from Stream

RN /home/USERNAME/scripts/stopstreams.sh!

SP 100!

RN /home/USERNAME/scripts/closeinput.sh!

PM 2!

LB Resume Playlist in 14 seconds!

SP 2000!

LB Resume Playlist in 12 seconds!

SP 2000!

LB Resume Playlist in 10 seconds!

SP 2000!

LB Resume Playlist in 8 seconds!

SP 2000!

LB Resume Playlist in 6 seconds!

SP 2000!

LB Resume Playlist in 4 seconds!

SP 2000!

LB Resume Playlist in 2 seconds!

SP 10!

PN 1!

LB The Worlds Best Radio Station!

-------------------------------------------------------------------------------------------------------------------------

stopstreams.sh!

#!/bin/bash

#Delay 13 seconds
sleep 13


#Kill Streaming processes
killall stream-connect-script.sh
killall mplayer

------------------------------------------------------------------------------------------------------------------------

closeinput.sh

#!/bin/bash

sleep 12

amixer -c 0 sset Line,0 0%,0%


Sunday, May 25, 2014

Show Only Unread Messages in the Gmail Inbox with Search

This uses a search function, making it temporary, and it does not change how the inbox functions or sorts messages beyond this task:
Click into the Gmail Search box and type the following exactly:

is:unread

This info from  http://osxdaily.com/2013/06/30/show-unread-messages-gmail/

Monday, July 15, 2013

How to Set the Mythbuntu 12.04 Root password for mysql

All this info from...
http://askubuntu.com/questions/75153/i-just-installed-mythbuntu-what-is-the-mysql-root-password

Please reset MySQL password as below:
  1. Ctrl + Alt + T to launch terminal
  2. sudo dpkg-reconfigure mysql-server-5.5
  3. New password for the MySQL "root" user: mysqlsamplepassword
  4. Repeat password for the MySQL "root" user: mysqlsamplepassword

Friday, February 15, 2013

Fade instead of STOP

This is from the Rivendell Mailing list from Wayne Merricks

Any suggestion where I can read of a way to FADE a playing source when we come to a live event rather than having to chop audio cold with the STOP button?  Im sure its here; I just cant find it.

Two simple ways of doing this:

Make a macro and stick it on the panel to fade to be fired manually
Make an aux log that fires a few seconds before the live event starts
to fade down the main log

The macro itself is fairly simple:

PS executes a stop with an optional log/port to stop and optional fade, so we'll do the following:
 

PS 0 5000! 
SP 5000! ( wait for 5 seconds, this is important otherwise the fade
will start, the macro will then nearly instantly terminate and the fade
will mess up before its actually finished fading (especially if an event
is queued to follow the fade)


The way I do it is to create an aux log so that I get a nice fade into
hard timed events that start on the hour and on the half hour.  My aux
log is a simple log that looks like the following:

00:29:54 Play Fade Macro
00:59:54 Play Fade Macro (etc etc for the whole day)

I chose to start it a second early as I had some odd results with
overlapping of macros and hard times that sometimes seemed to make the
times get missed and the hard timed event would therefore not auto
start.  The strange part was most of the time it worked fine but then
you'd get that call at 3 in the morning.  So I decided 1 second of dead
air was preferable to a phone call.

At the end of the aux log is a log chain to the same aux log (so that
the timed events refresh).

FYI don't put the macro in your main log as a timed event even though
it kind of makes sense.  My feeble brain expected a nice fade out but
the reality is an abrupt song stop, then 5 seconds of "fading" deadly
silence before the next event kicks in.

Thursday, February 14, 2013

Working out weather a week is the 1st 2nd 3rd 4th week of the year

I needed a program to work out what week number it was for Radio station Log generation.... so I made this. It makes pretty boring reading...

#!/bin/bash

WEEK_NUM=`date +%V`

echo $WEEK_NUM

sleep 1
#DIV_WEEK=`expr $WEEK_NUM % 4`
#echo $DIV_WEEK

case "$WEEK_NUM" in
    01) export THIS_WEEK=1
    export WEEK2=2
    export WEEK3=3
    export WEEK4=4
    export WEEK5=1
    export WEEK6=2
    ;;
    02) export THIS_WEEK=2
    export WEEK2=3
    export WEEK3=4
    export WEEK4=1
    export WEEK5=2
    export WEEK6=3
    ;;
    03) export THIS_WEEK=3
    export WEEK2=4
    export WEEK3=1
    export WEEK4=2
    export WEEK5=3
    export WEEK6=4
    ;;
    04) export THIS_WEEK=4
    export WEEK2=1
    export WEEK3=2
    export WEEK4=3
    export WEEK5=4
    export WEEK6=5
    ;;
    05) export THIS_WEEK=1
    export WEEK2=2
    export WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    06) export THIS_WEEK=2
    export WEEK2=3
    export WEEK3=4
    export WEEK4=1
    export WEEK5=2
    export WEEK6=3
    ;;
    07) export THIS_WEEK=3
    export WEEK2=4
    export WEEK3=1
    export WEEK4=2
    export WEEK5=3
    export WEEK6=4
    ;;
    08) export THIS_WEEK=4
    export WEEK2=1
    export WEEK3=2
    export WEEK4=3
    export WEEK5=4
    export WEEK6=5
    ;;
    09) export THIS_WEEK=1
    export WEEK2=2
    export WEEK3=3
    export WEEK4=4
    export WEEK5=1
    export WEEK6=2
    ;;
    10) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    11) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    12) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    13) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    14) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    15) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    16) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    17) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    18) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    19) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    20) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    21) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    22) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    23) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    24) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    25) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    26) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    27) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    28) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    29) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    30) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    31) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    32) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    33) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    34) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    35) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    36) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    37) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    38) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    39) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    40) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    41) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    42) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    43) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    44) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    45) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    46) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    47) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    48) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    49) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
    50) THIS_WEEK=2
    WEEK2=3
    WEEK3=4
    WEEK4=1
    WEEK5=2
    WEEK6=3
    ;;
    51) THIS_WEEK=3
    WEEK2=4
    WEEK3=1
    WEEK4=2
    WEEK5=3
    WEEK6=4
    ;;
    52) THIS_WEEK=4
    WEEK2=1
    WEEK3=2
    WEEK4=3
    WEEK5=4
    WEEK6=5
    ;;
    53) THIS_WEEK=1
    WEEK2=2
    WEEK3=3
    WEEK4=4
    WEEK5=1
    WEEK6=2
    ;;
   
esac
echo 'this week is' $THIS_WEEK
echo 'week 2 is' $WEEK2
echo 'week 3 is' $WEEK3
echo 'week 4 is' $WEEK4
echo 'week 5 is' $WEEK5
echo 'week 6 is' $WEEK6

sleep 5
exit
   



Sunday, January 27, 2013

How to Install the Classic Gnome Menu in Unity in Ubuntu

All these instructions from  Lori Kaufman's page at

http://www.howtogeek.com/105997/how-to-install-the-classic-gnome-menu-in-unity-in-ubuntu-11.10/



If you like the Unity desktop, but you’re used to the classic Gnome menu, there’s a way to install the Classic Gnome Menu on the top panel on the Unity desktop, allowing you to experience the best of both worlds.
We’ve shown you how to add the Classic Gnome Desktop to the logon screen, allowing you to login to a Gnome desktop with no Unity features. However, if you want to use both the Unity desktop and the classic Gnome menu, you can install a tool called Classic Menu Indicator.
First, we need to add the repository containing the Classic Menu Indicator program. To do this, press Ctrl + Alt + T to open a Terminal window. Type the following at the prompt and press Enter.
sudo apt-add-repository ppa:diesch/testing
NOTE: You can also copy and paste the command at the prompt. To paste text at the prompt, right-click on the Terminal window and select Paste from the popup menu.
Enter your password when prompted.



 A message displays telling you which PPA (Personal Package Archive) you are about to add to your system. Press Enter to continue adding the PPA.



Once the repository has been added, you must update it. Type the following command at the prompt and press Enter, or copy and paste it into the Terminal window.
sudo apt-get update
This command actually updates all the repositories in your system.



Now, you can install Classic Menu Indicator. Type the following command at the prompt and press Enter, or copy and paste it into the Terminal window.
sudo apt-get install classicmenu-indicator

 
When the installation is finished, type “exit” (without the quotes) at the prompt and press Enter to close the Terminal window.


To apply the changes, you must log out of your session and log back in. To log out, select Log Out from the power menu in the upper, right corner of your screen on the top panel.

 A confirmation Log Out dialog box displays. Click Log Out to continue logging out.

 Once you have logged back in, the classic Gnome menu displays with the Ubuntu logo icon on the top panel to the left of the icons on the right side. If you decide you don’t want the menu, you can close it by selecting ClassicMenu Indicator | Quit from the Gnome menu.

 You can easily show the classic Gnome menu again. To do so, click the Dash home button on the Unity launcher.

 Start entering “classicmenu indicator” (without the quotes) in the search box. You do not need to press Enter. The results of your search display as you type, as illustrated in the image below. Click the ClassicMenu Indicator icon that displays.

 Now, you can easily turn on the classic Gnome menu when you have trouble finding something using the Unity interface. It’s just as easy to turn if off again.



VNC'ing to an Ubuntu 12.04 box with unity desktop

If you try vncing to use the remote desktop on Ubuntu with Unity, the session can be real slow if not impossible to use.

Try logging out and Log back in again using the Ubuntu 2d desktop.
The performance of the session will be improved and easy to use.

If you can't find the shortcut to get vnc running, go to the "Dash Home" and type vino-preferences. Then click on the "Desktop Sharing" icon

Sunday, December 23, 2012

Bulk converting of Old PCM Wave audio into new mp2 format for Rivendell

This idea courtesy of Daniel Kahn on the Rivendell mailing list Oct 16, 2012.

 Take a copy of your library over to a machine with a Rivendell install
with nothing in the library.  Now run this on your library:


for i in *;do echo $i;j=`echo $i | sed
's/_[0-9].*.*$//;s/^.*_//'`;rdimport --to-cart="$j"
--normalization-level=-13 --autotrim-level=0 music "$i"; done

rdimport converts your library.  Now move the newly created library back
to your original machine.

I can't think why this shouldn't work.  I am sure someone can write a
cleaner scripted then me.


So my better half Monica modified it ever so slightly because it suited me and made a shell script.

#!/bin/bash

for i in *.wav;
do
echo $i;
j=`echo $i | sed 's/_[0-9].*.*$//;s/^.*_//'`;
echo $j;
rdimport --verbose --segue-level=-10 --to-cart=$j --normalization-level=-13 --autotrim-level=0  --delete-cuts Album $i >> importlog.txt


#Note the line above this is all one line but gets word wrapped by google blogs.
done

Saturday, November 10, 2012

Converting m4a files to mp3

If you want to convert m4a files to mp3 so they can be played by a larger variety of users. Use this command to convert them.
ffmpeg -i input.m4a -acodec libmp3lame -ab 192k output.mp3

Saturday, August 11, 2012

Opening firefox pages in the background

This from...
http://www.techsupportalert.com/content/how-stop-firefox-stealing-window-focus.htm

First, type (or copy and paste) "about:config" (minus quotes) into the
Firefox address bar and hit enter.
The next thing you'll see is a window telling you this might void your
warranty (a little humor there, Firefox doesn't have a warranty).

Click the "I'll be careful, I Promise!" button. The about:config page will open.
In the Filter bar, type (or copy and paste)
"browser.tabs.loadDivertedInBackground" minus the quotes. You will
then see an entry under Preference Name that matches what you typed
in.

By default, the value of this entry is false. To change it, double
click the entry and it will toggle so that the value reads true.
Restart Firefox and you're done.

If you need to undo the change, right click on the entry, choose Reset
and restart Firefox. This changes the entry back to its default
setting. You can reset any entry that's been changed in the
about:config page the same way. If you scroll down, you'll see some
entries in bold. Those are entries that have been changed already,
either by setting preferences (in the Tools/Options menu) or by an
add-on. Right clicking any entry in bold and choosing Reset will cause
it to revert to the default entry.

Changing entries in the about:config page can cause Firefox to behave
oddly or not work at all. This isn't a good area to experiment with
unless you'd like to uninstall and then do a clean reinstall of
Firefox.

Wednesday, May 2, 2012

SSH aliases

This cool idea came from the March 2012 Linux Format magazine.

Edit your ~/.ssh/config file and if it doesn't exist create one.
To do this type...
touch ~/.ssh/config

Now edit using your favourite text editor.

Add 4 lines...
Host work
  Hostname myworksdomain.net
  User myusernameatwork
  Port 2022

Then save the file. Note the domain at work could be an IP number and the port could be the default port of 22.

Then when you want to ssh to your work just type
ssh work

and when prompted enter your password. this saves you typing long commands like ...
ssh -P 2022 myusernameatwork@myworksdomain.net

Tuesday, August 2, 2011

Speeding Up xvncviewer

If you are not worried about colour of the display and just want performance out of a Remote desktop connection ... use this syntax on your vnc client...

xvncviewer IPNUMBER:PORT -encoding hextile -bgr233 -compresslevel 1 -quality 0

Note. There seems to be variations with xvncviewer and this doesn't work with all :(

Saturday, July 9, 2011

Trash Bin Location on Nautilus on Ubuntu Linux

If you want to find location of the Trash Directory. Turn on Hidden files CTRL H.

It is in...

/home/USERNAME/.local/share/Trash/files

Wednesday, January 5, 2011

Example Dyndns Config file

/etc/ddclient.conf file

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

#comment out next line if you don't run a mail server
mail=root

daemon=300
pid=/var/run/ddclient.pid

protocol=dyndns2
use=web
#, web=checkip.dyndns.com, web-skip='IP Address'

server=members.dyndns.org
login=login-name
password='replace-with-real-password'

mydomainname.dyndns.org

Monday, December 20, 2010

Automatically backup a Rivendell database

I have just discovered that there is a Rivendell Macro for backing up
a database as often as you wish.

DATABASE BACKUP

Mnemonic: DB
Syntax:
DB !
Create a backup copy of the active Rivendell database in .

On my set up I made a new macro called back up database. It has only 2
lines in it.

DB /home/geoff/Downloads/RivendellBackUp/RD-Backup.sql!
RN /home/geoff/Downloads/RivendellBackUp/datestamp.sh!

The first line makes a new sql file called RD-backup.sql
The second line runs a shell script that renames the backup sql file
to the current day's date.

#!/bin/bash

#Special program to rename the current database back up with todays date.

#NOTE If sharing created files with windows users Colons eg : cannot be in filenames
#I suggest doing the date variable creation like this.
# currentdate=`date +%F-%H.%M.%S`
currentdate=`date +%F-%X`

sleep 30
mv ~/Downloads/RivendellBackUp/RD-Backup.sql
~/Downloads/RivendellBackUp/RD-$currentdate.sql


Note
I found that sometimes the Rivendell macros crash rdairplay so I now run from a command line the following script..... 


#!/bin/bash

currentdate=`date +%F-%X`

echo $currentdate

mysqldump -u rduser -pletmein --lock-tables=false Rivendell > /home/geoff/rivendell-backup/RD-$currentdate.sql



You can set up this macro to run daily weekly or whenever.