Please excuse the lack of text wrapping on this page
RRAbuntu-demo.sh Script v 1.13
#!/bin/bash
#set -x ## For testing purposes
#
#RRAbuntu-demo.sh
#
# Setup test tone, promos, sample logs for demoing Rivendell with RRAbuntu.
#
# (C) Copyright 2010 Frederick Henderson
#
# RRAbuntu-demo.sh,v 1.13 2010.05.21 FJH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
## KEY TO CHANGE LOG AND CHANGES Initials
# FJH= Frederick Henderson frederickjh AT henderson-meier DOT org
CHANGELOG
####################### CHANGE LOG ######################
version 1.13
Removed commands to close and open Nautilus at beginning and
end as now the scripts are started from icons on the desktop. FJH
Added code to turn off pulseaudio autospawning and killed any
running pulseaudio instances. FJH
Fixed paths that use to go to ~/Desktop/Rivendell to go to
/etc/skel/Rivendell. FJH
Added loop to hold up the script till RDAirplay starts. FJH
#########################################################
version 1.12
Added code for positioning the zenity dialog windows. Windows with
RRAbuntu in the title will be sent down to the bottom center of the
screen, while windows with titles with Tip in them will be sent to
the bottom left-hand corner. Only include one of the keywords
(RRAbuntu, Tip) in the title or things may not work the way you want.
The .ds files setup the parameters on where which windows should go.
We use a program called devilspie to move the windows around. So we
will start and stop it after we are finished. Add more .ds files to
add new positioning setups. -FJH
Moved Rivendell directory from Desktop into users home directory.
Modified to point to files in the /etc/skel directory - geoff 2010.05.09
################################################################
version 1.11
changed version numbers to match CD release numbers.
intermediary changes before the next CD get a third number like
1.11.1 then 1.11.2 then 1.11.3 etc. -FJH
Added renaming of Rivendell Promos to script -FJH
Removed extra RML command to start play list as loading the
play list also started the its as well. This was causing the
audio to jump at the start of the demo. -FJH
Set the asyncronous field to N as this was causing a runawy condition
in the Aux1 log that was disrupting the audio playout as it was trying
to run all the macros in the cart at once.-FJH
Moved code to set proper permissions for /var/snd up in the script to
before Rivendell daemons are started and test tone is created. -FJH
Removed sudo from rdgen command to generate test tone as it is no
longer needed now that the linux user is set as owner of the folder
before it is run.-FJH
#########################################################
version 1.25 initial release with RRAbuntu Live CD 1.10
#########################################################
CHANGELOG
## Added devilspie code to position windows.-FJH 2010.03.25
# Get the screen sizes, find the line with the asterisks that shows the
# current screen size, get the first column with the screen dimensions,
# then using the "x" as a separator get first the screen width and then the height.
WIDTH=$(xrandr | sed -n '/\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $1 }')
HEIGHT=$(xrandr | sed -n '/\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $2 }')
# Figure out where to position the top left corner of of our window based on the width
# of the screen. The zenity dialogs are normally 443 pixel wide. So we subtract this
# from the width and divide by 2.
HORIZONTALPOS=$(echo "($WIDTH-443)/ 2" | bc )
# Put the horizontal position in our RRAbuntu.ds file to position the windows with
# RRAbuntu. Make .devilspie dirctory in the users home folder. Then copy RRAbuntu.ds
# and the Tips.ds file to their proper home.
sed s/REPLACEME/$HORIZONTALPOS/ /etc/skel/devilspie/RRAbuntu.ds >~/temp.ds
cp ~/temp.ds ~/.devilspie/RRAbuntu.ds
rm ~/temp.ds
# Figure out if devilspie is running. If so remember this, kill it and restart it so
# it re-reads the configuration files and we will also redirect error messages to the trash.
# Way down at the end of this script we will decided whether or not we should kill devilspie or let it run.
DEVILSPIEPS=$(ps -C devilspie -o comm=)
LEAVEDEVILSPIERUNNING=0
if [ ! -z $DEVILSPIEPS ]; then
LEAVEDEVILSPIERUNNING=1
fi
echo $LEAVEDEVILSPIERUNNING
killall devilspie
devilspie 2> /dev/null &
## Add user ubuntu to the rivendell and audio groups
sudo adduser ubuntu rivendell
sudo adduser ubuntu audio
## Turn off pulseaudio autospawning and then kill all instances of it.
# Copy pulseaudo client configuration file to home folder
cp /etc/pulse/client.conf ~/.pulse/client.conf
# Find the string "; autospawn = yes"and replace it with
# autospawn = no. This disables pulseaudio autospawning. FJH
sed s/\;\ autospawn\ =\ yes/autospawn\ =\ no/ ~/.pulse/client.conf >~/temp.conf
cp ~/temp.conf ~/.pulse/client.conf
rm ~/temp.conf
# Kill pulseaudio
killall pulseaudio
# Restart Rivendell daemons just in case the got messed up
# by pulseaudio starting at the same time. FJH
/etc/init.d/rivendell stop
/etc/init.d/rivendell start
## Start RDAdmin to get mysql database prompt to create
## rivendell database. This only happens the first time
## RDAdmin starts after new install or after updating
## to a new version. It is very important to run
## RDAdmin after upgrading to a new version of Rivendell
rdadmin &
sleep 2
## Inform the user what the username and password are for
## The mysql database setup
zenity --info --title="RRAbuntu Demo Setup - MySQL" --text="A window titled mysql Admin will pop-up. The username is... root and the password is.... rivendell. Close this window only after entering the username and password, Click OK and after the Created Database window with the message New Rivendell Database Created! pops up."
zenity --info --title="RRAbuntu Demo Setup - RDAdmin" --text="Now rdadmin will start up. The username is .... admin
with no password"
## FIXME
## Fix permissions to /var/snd currently the user is rduser not ubuntu
## Is this something we need to fix or is it something Alban needs to fix
## or does this go back to Fred G.?
## Moved up in the script to before Rivendell daemons are started and test tone is created. -FJH 2010.03.16
sudo chown ubuntu:rivendell /var/snd
## Generate Test tone for the RDLibrary
# Removed sudo from rdgen command to generate test tone as it is no
# longer needed now that the linux user is set as owner of the folder
# before it is run.-FJH 2010.03.17
rdgen -t 10 -l 16 /var/snd/999999_000.wav
## Start up RDAirplay for the user
# Removed ampersand after rdairplay. This was allowing the script
rdairplay &
# Hang around waiting for RDAirplay to appear. -FJH 2010.05.21
ISITOPENYET=$(wmctrl -l | sed -n '/.RDAirPlay/p' | awk '{ print $4 }')
while [ -z $ISITOPENYET ]; do
sleep 1
ISITOPENYET=$(wmctrl -l | sed -n '/.RDAirPlay/p' | awk '{ print $4 }')
done
sleep 1
## Welcome the user with a label in Rivendell
rmlsend LC\ blue\ Welcome\ to\ Rivendell\ Radio\ Automation\!
sleep 1
## Load test tone into Main log=1 (Aux 1 log=2, Aux 2 log=3)
rmlsend PX\ 1\ 999999\!
sleep 1
## Start the log playing
rmlsend PN\ 1\!
sleep 10
## Load the test tone in the button at row 1, column 1 of the current pannel.
rmlsend PE\ C\ 1\ 1\ 999999\!
sleep 1
#Play the button at row 1, column 1 of the current panel.
rmlsend PP\ C\ 1\ 1\!
sleep 5
zenity --info --title="RRAbuntu Demo Setup - Congratulations!" --text="If you heard the test tone twice then this script has properly configured Rivendell. Now on with the show!"
sleep 1
## Change to directory with promos and add them to the library -FJH
cd /etc/skel/Rivendell/Promos
rdimport --to-cart=999998 --metadata-pattern=%a-%t. TRAFFIC ./*.flac
## Set up the variables to use in the script
USER=root
PASSWORD=rivendell
RD_USER=rduser@localhost
RD_PASSWORD=letmein
CARTSTOADD=10
COUNTER=0
ID=1
COUNT=1
## Loop through and add the carts to create the Sample log
while [ $COUNTER -le $CARTSTOADD ]; do
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into SAMPLE_LOG(ID,COUNT,CART_NUMBER) VALUES($ID,$COUNT,999998)"
let COUNTER=COUNTER+1
let ID=ID+1
let COUNT=COUNT+1
done
## Add macro at the end of the audio log to load the same
## audio log to keep it running forever or till the user hits stop.
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into SAMPLE_LOG(ID,COUNT,TYPE,COMMENT,LABEL) VALUES($ID,$COUNT,5,\"Sample\ Log\",\"SAMPLE\")"
## Change the Title and Artist of our Rivendell Promo cart
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
update CART set TITLE=\"Rivendell\ Promo\", ARTIST=\"The\ Rivendell\ Announcer\ Guy\" where NUMBER=999998"
#
# Create Titles Log
#
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
CREATE TABLE IF NOT EXISTS TITLES_LOG (
ID INT NOT NULL PRIMARY KEY,
COUNT INT NOT NULL,
TYPE INT DEFAULT 0,
SOURCE INT(11) SIGNED DEFAULT 0,
START_TIME TIME NOT NULL,
GRACE_TIME INT(11) SIGNED DEFAULT 0,
CART_NUMBER INT UNSIGNED NOT NULL,
TIME_TYPE INT NOT NULL,
POST_POINT ENUM('N','Y') DEFAULT 'N',
TRANS_TYPE INT NOT NULL,
START_POINT INT NOT NULL DEFAULT -1,
END_POINT INT NOT NULL DEFAULT -1,
FADEUP_POINT INT(11) SIGNED DEFAULT -1,
FADEUP_GAIN INT(11) SIGNED DEFAULT -3000,
FADEDOWN_POINT INT(11) SIGNED DEFAULT -1,
FADEDOWN_GAIN INT(11) SIGNED DEFAULT -3000,
SEGUE_START_POINT INT NOT NULL DEFAULT -1,
SEGUE_END_POINT INT NOT NULL DEFAULT -1,
SEGUE_GAIN INT(11) SIGNED DEFAULT -3000,
DUCK_UP_GAIN INT(11) DEFAULT 0,
DUCK_DOWN_GAIN INT(11) DEFAULT 0,
COMMENT CHAR(255),
LABEL CHAR(64),
ORIGIN_USER CHAR(255),
ORIGIN_DATETIME DATETIME,
LINK_EVENT_NAME CHAR(64),
LINK_START_TIME INT(11) SIGNED,
LINK_LENGTH INT(11) SIGNED DEFAULT 0,
LINK_START_SLOP INT(11) SIGNED DEFAULT 0,
LINK_END_SLOP INT(11) SIGNED DEFAULT 0,
LINK_ID INT(11) SIGNED DEFAULT -1,
LINK_EMBEDDED ENUM('N','Y') DEFAULT 'N',
EXT_START_TIME TIME,
EXT_LENGTH INT(11) SIGNED,
EXT_CART_NAME CHAR(32),
EXT_DATA CHAR(32),
EXT_EVENT_ID CHAR(8),
EXT_ANNC_TYPE CHAR(8),
INDEX COUNT_IDX (COUNT),
INDEX CART_NUMBER_IDX (CART_NUMBER),
INDEX START_TIME_IDX (START_TIME),
INDEX LABEL_IDX (LABEL)
)"
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
GRANT ALL ON TITLES_LOG TO $RD_USER IDENTIFIED BY \"$RD_PASSWORD\""
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
INSERT INTO LOGS (NAME,SERVICE,DESCRIPTION,ORIGIN_USER,ORIGIN_DATETIME)
VALUES (\"TITLES\",\"Production\",\"Titles Log\",\"user\",NOW())"
#
# Create Welcome Macro Cart
# Set the asyncronous field to N as this was causing a runawy condition
# in the Aux1 log that was disrupting the audio playout as it was trying
# to run all the macros in the cart at once.-FJH 2010.03.18
mysql -u $USER -p$PASSWORD -e"USE Rivendell; INSERT INTO CART(TYPE,NUMBER,GROUP_NAME,TITLE,CUT_QUANTITY,FORCED_LENGTH,ASYNCRONOUS,MACROS)
VALUES (2,050001,\"MACROS\",\"Welcome\",0,6000,\"N\",\"\LC\ blue\ Welcome\ to\ Rivendell\ Radio\ Automation\!SP\ 3000\!LC\ red\ Open\ Source\ Broadcast\ Automation\!SP\ 3000\!LC\ green\ RRAbuntu\ Live\ CD\ Project\!SP\ 3000\!LC\ darkcyan\ The\ Easiest\ Rivendell\ Demo\ and\ Install\!SP\ 3000\!LC\ darkBlue\ Your\ Messages\ and\ Alerts\ for\ Your\ DJs\ Can\ Display\ Here\ Too.\!SP\ 3000\!\")"
## Reset the variables for the lines in the log
ID=1
COUNT=1
## Add Welcome Macro Cart to Titles log
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into TITLES_LOG(ID,COUNT,CART_NUMBER)VALUES($ID,$COUNT,050001)"
let ID=ID+1
let COUNT=COUNT+1
## Add macro at the end of the titles log to load the same
## audio log to keep it running forever or till the user hits stop.
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into TITLES_LOG(ID,COUNT,TYPE,COMMENT,LABEL) VALUES($ID,$COUNT,5,\"Titles\ Log\",\"TITLES\")"
## Load the Sample Log in the Main log
rmlsend LL\ 1\ Sample\ Log!
## Load the Titles Log in the Aux 1 log
rmlsend LL\ 2\ Titles\ Log!
sleep 100
zenity --info --title="RRAbuntu Demo Setup - Thanks!" --text="Thank you for testing the RRAbuntu demo CD. If you would like to install RRAbuntu on your system. Click on the Install RRAbuntu icon on the Desktop. www.rivendellaudio.org .
Many Thanks from Geoff Barkman, Frederick Henderson and Alban Peignier"
# Cleanup, if devilspie was running before we started this script then leave it running otherwise kill it.
if [ ! $LEAVEDEVILSPIERUNNING = 1 ]; then
killall devilspie
fi
# END
RRAbuntu-install.sh Script v 1.13
#!/bin/bash
#set -x ## For testing purposes
#
# RRAbuntu-install.sh
#
# To assist in installing RRAbuntu. This script walks the user through installing Ubuntu.
#
# Geoff Barkman 2010
# (based on scripts created by Frederick Henderson)
#
# RRAbuntu-install.sh,v 1.12 2010.03.27 FJH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
## KEY TO CHANGE LOG AND CHANGES Initials
# FJH= Frederick Henderson frederickjh AT henderson-meier DOT .org
# geoff= Geoff Barkman
#
CHANGELOG
######################### CHANGE LOG ###########################
version 1.12
Added code for positioning the zenity dialog windows. Windows with
RRAbuntu in the title will be sent down to the bottom center of the
screen, while windows with titles with Tip in them will be sent to
the bottom left-hand corner. Only include one of the keywords
(RRAbuntu, Tip) in the title or things may not work the way you want.
The .ds files setup the parameters on where which windows should go.
We use a program called devilspie to move the windows around. So we
will start and stop it after we are finished. Add more .ds files to
add new positioning setups. -FJH
Added code to position the Installer windows. This is done with a
program called wmctrl.-FJH
Moved Rivendell folder from Desktop into users home directory.
Changed closing message on installer because everything ran from
icons on desktop.-geoff 2010.05.09
################################################################
version 1.11
changed version numbers to match CD release numbers.
intermediary changes before the next CD get a third number like
1.11.1 then 1.11.2 then 1.11.3 etc. -FJH
Changed starting dialogue to let the user know to click OK on the
windows and that we will be holding their hand. -FJH
Changed the starting dialogue into a question that offers to start
the installer or allows them to abort the script.-FJH
################################################################
version-less initial release with RRAbuntu Live CD 1.10
################################################################
CHANGELOG
## Added devilspie code to position windows.-FJH 2010.03.25
# Get the screen sizes, find the line with the asterisks that shows the
# current screen size, get the first column with the screen dimensions,
# then using the "x" as a separator get first the screen width and then the height.
WIDTH=$(xrandr | sed -n '/.0\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $1 }')
HEIGHT=$(xrandr | sed -n '/.0\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $2 }')
# Figure out where to position the top left corner of of our window based on the width
# of the screen. The zenity dialogs are normally 443 pixel wide. So we subtract this
# from the width and divide by 2.
HORIZONTALPOS=$(echo "($WIDTH-443)/ 2" | bc )
# Figure out where to position the top left corner of of our Installer window based on the width
# of the screen. The installer dialogs are 816 pixel wide. So we subtract this
# from the width and divide by 2.
HORIZONTALPOSINSTALLER=$(echo "($WIDTH-816)/ 2" | bc )
# Put the horizontal position in our RRAbuntu.ds file to position the windows with
# RRAbuntu. Make .devilspie dirctory in the users home folder. Then copy RRAbuntu.ds
# and the Tips.ds file to their proper home.
sed s/REPLACEME/$HORIZONTALPOS/ /etc/skel/devilspie/RRAbuntu.ds >~/temp.ds
cp ~/temp.ds ~/.devilspie/RRAbuntu.ds
rm ~/temp.ds
# Figure out if devilspie is running. If so remember this, kill it and restart it so
# it re-reads the configuration files and we will also redirect error messages to the trash.
# Way down at the end of this script we will decided whether or not we should kill devilspie or let it run.
DEVILSPIEPS=$(ps -C devilspie -o comm=)
LEAVEDEVILSPIERUNNING=0
if [ ! -z $DEVILSPIEPS ]; then
LEAVEDEVILSPIERUNNING=1
fi
echo $LEAVEDEVILSPIERUNNING
killall devilspie
devilspie 2> /dev/null &
## Changed OK to YES and Cancel to NO - geoff
## Changed opening dialog to a question offering to start the Ubuntu installer for them and allow them to abort as well.-FJH 2010.03.17
zenity --question --title "Install RRAbuntu?" --text="This script will install Ubuntu with Rivendell click on YES to start the installer or NO to abort. Installing takes about 30 minutes depending on your hardware. Don't worry we will walk you through it. Just click the OK buttons in these windows after you complete each step and an new window will pop up to help you with the next step."
if [ ! $? = 0 ]; then
exit
else
# Let the user know we are doing something the installer takes a while to load on my test machine.-FJH 2010.03.27
zenity --info --title="Starting the installer." --text="Please wait, we are starting the installer." --timeout=30 &
# Start Ubuntu installer
ubiquity --desktop %k gtk_ui &
fi
# Hang around waiting for our Install window to appear then reposition it using wmctrl. -FJH 2010.03.26
ISITOPENYET=$(wmctrl -l | sed -n '/.Install/p' | awk '{ print $4 }')
while [ -z $ISITOPENYET ]; do
sleep 1
ISITOPENYET=$(wmctrl -l | sed -n '/.Install/p' | awk '{ print $4 }')
done
sleep 10
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --info --title="RRAbuntu Installation - Step 1 of 7" --text="1 of 7 Welcome - Select your language. - Click forward"
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --info --title="RRAbuntu Installation - Step 2 of 7" --text="2 of 7 Where are you? - Select your location on the map. - Click forward" --width=443
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --info --title="RRAbuntu Installation - Step 3 of 7" --text="3 of 7 Keyboard layout - Choose your keyboard layout, or keep suggested keyboard layout. - Click forward"
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --warning --title="RRAbuntu Installation - Step 4 of 7" --text="4 of 7 Prepare disk space - Select use entire disk. (WARNING: Selecting this option will delete your entire existing hard drive contents) - Or you can choose partitions manually (advanced users) Beginners DON'T choose this. - Click forward" &
sleep 7
zenity --info --title="Tip" --text="Note there are other options at this step, but I recommend, just erasing whole disk, rather than keeping windows, i.e. dual boot (for simplicity)" --width=310
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --info --title="RRAbuntu Installation - Step 5 of 7" --text="5 of 7 Who are you? - Type your name. - Type the user name you wish to use (NOTE:This should be all lower case letters.) - Enter your password x2 and the name for the computer on the network(could be your station name with no gaps) - Optionally select Log in automatically (Otherwise the password will be required on every boot.) - Click forward"
wmctrl -F -r Install -e 0,$HORIZONTALPOSINSTALLER,0,-1,-1
zenity --info --title="RRAbuntu Installation - Step 7 of 7" --text="7 of 7 - Ready to install - Check that the installation settings are all correct then, click Install" --width=443
zenity --info --title="Tip - While you wait . . ." --text="While installing you can surf the net if you wish, just click Firefox icon. This will take 30 mins approximately (depends on hardware specifications)" --width=310
sleep 10
zenity --info --title="RRAbuntu Installation - When the Installation is Finished . . ." --text="Once installation is complete, you will be prompted to Restart Now.... Stand clear of the CD drawer....Remove CD after it pops out.... and hit Enter "
sleep 30
##reworded because installer now run from desktop shortcut
zenity --info --title="Tip - After the Reboot . ." --text="After the reboot you will want to click on the Post Install RRAbuntu icon on the desktop to setup Rivendell." --width=310
sleep
# Cleanup, if devilspie was running before we started this script then leave it running otherwise kill it.
if [ ! $LEAVEDEVILSPIERUNNING = 1 ]; then
killall devilspie
fi
# END
RRAbuntu-First_Run.sh Script v 1.13
#!/bin/bash
#set -x ## For testing purposes
#
# RRAbuntu-First_run.sh
#
# To assist in installing RRAbuntu. To be run after installing Ubuntu and rebooting.
#
# Geoff Barkman 2010
# (based on scripts created by Frederick Henderson)
# RRAbuntu-First_run.sh,v 1.13 2010.05.21 FJH
#
# Sections below created by Frederick Henderson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
## KEY TO CHANGE LOG AND CHANGES Initials
# FJH= Frederick Henderson frederickjh AT @henderson-meier DOT org
# geoff= Geoff Barkman
CHANGELOG
########################## CHANGE LOG ##################################
version 1.13
Clean up, Added code to get rid of the desktop file that starts the First_run_prompter.sh script that
displays a prompt to run this script, down at the end. FJH
Fixed paths that use to go to ~/Desktop/Rivendell to go to
/etc/skel/Rivendell. FJH
Added loop to hold up the script till RDAirplay starts. FJH
########################################################################
version1.12
Removed unneeded sudo on sed command.-FJH
Added code for positioning the zenity dialog windows. Windows with
RRAbuntu in the title will be sent down to the bottom center of the
screen, while windows with titles with Tip in them will be sent to
the bottom left-hand corner. Only include one of the keywords
(RRAbuntu, Tip) in the title or things may not work the way you want.
The .ds files set-up the parameters on where which windows should go.
We use a program called devilspie to move the windows around. So we
will start and stop it after we are finished. Add more .ds files to
add new positioning set-ups. -FJH
Moved demo install to a function. Also change dialog after test tones play
to a question that allows the user to decide if they want to install the demo or not. -FJH
Made section at end of code to delete Desktop icons and
add new icons on Desktop section. -geoff
########################################################################
version 1.11
changed version numbers to match CD release numbers.
intermediary changes before the next CD get a third number like
1.11.1 then 1.11.2 then 1.11.3 etc.-FJH
Changed sudo statements to be done via a function that also make
sure that the script does not continue on its merry way if something
does not happen correctly.-FJH
Change initial prompt to a question and added code so the user can abort
the script if it is not what they wanted to do.-FJH
Removed some unneeded sleep statements that were just slowing down the
pop-up of dialogues.-FJH
Added code to change the owner of /var/log/rivendell to the current linux
user. Needs fixing upstream. -FJH
Added code to automate changing the linux user name in rd.conf to the
current linux user and then save it in /etc/rd.conf -FJH
Moved code to fix permissions for /var/snd up in script to before
Rivendell daemons start and test tone is created.-FJH
Removed sudo from rdgen command to generate test tone as it is no
longer needed now that the linux user is set as owner of the folder
before it is run.-FJH
Replace dialogue to reboot computer with code to start the Rivendell
daemons. -FJH
Added renaming of Rivendell Promos to script -FJH
Set the asyncronous field to N as this was causing a runawy condition
in the Aux1 log that was disrupting the audio playout as it was trying
to run all the macros in the cart at once. Also added new text to the
cart to let folks know their messages cand appear in "The Label Area" -FJH
#######################################################
version less initial release with RRAbuntu Live CD 1.10 was two
scripts RRAbuntu-Reboot-1.sh and RRAbuntu-Reboot-final.sh
#######################################################
CHANGELOG
################### FUNCTIONS ##########################
#
# function to run commands as super user. This will keep give the user
# option to re-enter the password till they get it right or allow them
# to exit if something goes wrong instead of continuing on.
# Usage:
# run_sudo_command [COMMANDS...] -FJH 2010.03.17
run_sudo_command() {
# grab the commands passed to the function and put theme in a variable for safe keeping
sudocommand=$*
gksudo $sudocommand
# Check the exit status if it is not 0 (good) then assume that the password was not entered correctly and loop them till they get it right or cancel the running of this script.
while [ ! $? = 0 ]; do
zenity --question --title='RRAbuntu Rivendell Setup - Attention Needed!' --text="Something is not right here. (Did you correctly enter your password? Is the Caps-Locks on?) Do you want to try to enter the password again(OK) or exit this script(Cancel)?"
if [ ! $? = 0 ]; then
exit
else
gksudo $sudocommand
fi
done
}
install_demo() {
## Change to directory with promos and add them to the library
cd /etc/skel/Rivendell/Promos
rdimport --to-cart=999998 --metadata-pattern=%a-%t. TRAFFIC ./*.flac
## Set up the variables to use in the script
##### FIXME The variables below are hard coded in. This is ok
# for the demo run but if anyone wants to change their usernames
# or passwords this means this script will fail. We should also
# allow the user the option to set passwords and usernames as well.
# -FJH 2010.03.16
USER=root
PASSWORD=rivendell
RD_USER=rduser@localhost
RD_PASSWORD=letmein
CARTSTOADD=10
COUNTER=0
ID=1
COUNT=1
## Loop through and add the carts to create the Sample log
while [ $COUNTER -le $CARTSTOADD ]; do
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into SAMPLE_LOG(ID,COUNT,CART_NUMBER) VALUES($ID,$COUNT,999998)"
let COUNTER=COUNTER+1
let ID=ID+1
let COUNT=COUNT+1
done
## Add macro at the end of the audio log to load the same
## audio log to keep it running forever or till the user hits stop.
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into SAMPLE_LOG(ID,COUNT,TYPE,COMMENT,LABEL) VALUES($ID,$COUNT,5,\"Sample\ Log\",\"SAMPLE\")"
## Change the Title and Artist of our Rivendell Promo cart
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
update CART set TITLE=\"Rivendell\ Promo\", ARTIST=\"The\ Rivendell\ Announcer\ Guy\" where NUMBER=999998"
#
# Create Titles Log
#
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
CREATE TABLE IF NOT EXISTS TITLES_LOG (
ID INT NOT NULL PRIMARY KEY,
COUNT INT NOT NULL,
TYPE INT DEFAULT 0,
SOURCE INT(11) SIGNED DEFAULT 0,
START_TIME TIME NOT NULL,
GRACE_TIME INT(11) SIGNED DEFAULT 0,
CART_NUMBER INT UNSIGNED NOT NULL,
TIME_TYPE INT NOT NULL,
POST_POINT ENUM('N','Y') DEFAULT 'N',
TRANS_TYPE INT NOT NULL,
START_POINT INT NOT NULL DEFAULT -1,
END_POINT INT NOT NULL DEFAULT -1,
FADEUP_POINT INT(11) SIGNED DEFAULT -1,
FADEUP_GAIN INT(11) SIGNED DEFAULT -3000,
FADEDOWN_POINT INT(11) SIGNED DEFAULT -1,
FADEDOWN_GAIN INT(11) SIGNED DEFAULT -3000,
SEGUE_START_POINT INT NOT NULL DEFAULT -1,
SEGUE_END_POINT INT NOT NULL DEFAULT -1,
SEGUE_GAIN INT(11) SIGNED DEFAULT -3000,
DUCK_UP_GAIN INT(11) DEFAULT 0,
DUCK_DOWN_GAIN INT(11) DEFAULT 0,
COMMENT CHAR(255),
LABEL CHAR(64),
ORIGIN_USER CHAR(255),
ORIGIN_DATETIME DATETIME,
LINK_EVENT_NAME CHAR(64),
LINK_START_TIME INT(11) SIGNED,
LINK_LENGTH INT(11) SIGNED DEFAULT 0,
LINK_START_SLOP INT(11) SIGNED DEFAULT 0,
LINK_END_SLOP INT(11) SIGNED DEFAULT 0,
LINK_ID INT(11) SIGNED DEFAULT -1,
LINK_EMBEDDED ENUM('N','Y') DEFAULT 'N',
EXT_START_TIME TIME,
EXT_LENGTH INT(11) SIGNED,
EXT_CART_NAME CHAR(32),
EXT_DATA CHAR(32),
EXT_EVENT_ID CHAR(8),
EXT_ANNC_TYPE CHAR(8),
INDEX COUNT_IDX (COUNT),
INDEX CART_NUMBER_IDX (CART_NUMBER),
INDEX START_TIME_IDX (START_TIME),
INDEX LABEL_IDX (LABEL)
)"
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
GRANT ALL ON TITLES_LOG TO $RD_USER IDENTIFIED BY \"$RD_PASSWORD\""
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
INSERT INTO LOGS (NAME,SERVICE,DESCRIPTION,ORIGIN_USER,ORIGIN_DATETIME)
VALUES (\"TITLES\",\"Production\",\"Titles Log\",\"user\",NOW())"
#
# Create Welcome Macro Cart
# Set the asyncronous field to N as this was causing a runawy condition
# in the Aux1 log that was disrupting the audio playout as it was trying
# to run all the macros in the cart at once.-FJH 2010.03.18
mysql -u $USER -p$PASSWORD -e"USE Rivendell; INSERT INTO CART(TYPE,NUMBER,GROUP_NAME,TITLE,CUT_QUANTITY,FORCED_LENGTH,ASYNCRONOUS,MACROS)
VALUES (2,050001,\"MACROS\",\"Welcome\",0,6000,\"N\",\"\LC\ blue\ Welcome\ to\ Rivendell\ Radio\ Automation\!SP\ 3000\!LC\ red\ Open\ Source\ Broadcast\ Automation\!SP\ 3000\!LC\ green\ RRAbuntu\ Live\ CD\ Project\!SP\ 3000\!LC\ darkcyan\ The\ Easiest\ Rivendell\ Demo\ and\ Install\!SP\ 3000\!LC\ darkBlue\ Your\ Messages\ and\ Alerts\ for\ Your\ DJs\ Can\ Display\ Here\ Too.\!SP\ 3000\!\")"
## Reset the variables for the lines in the log
ID=1
COUNT=1
## Add Welcome Macro Cart to Titles log
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into TITLES_LOG(ID,COUNT,CART_NUMBER) VALUES($ID,$COUNT,050001)"
let ID=ID+1
let COUNT=COUNT+1
## Add macro at the end of the titles log to load the same
## audio log to keep it running forever or till the user hits stop.
mysql -u $USER -p$PASSWORD -e"USE Rivendell;
insert into TITLES_LOG(ID,COUNT,TYPE,COMMENT,LABEL) VALUES($ID,$COUNT,5,\"Titles\ Log\",\"TITLES\")"
## Load the Sample Log in the Main log
rmlsend LL\ 1\ Sample\ Log!
## Load the Titles Log in the Aux 1 log
rmlsend LL\ 2\ Titles\ Log!
sleep 100
}
################## HERE STARTS THE MAIN PROGRAM ####################
## Added devilspie code to position windows.-FJH 2010.03.25
# Get the screen sizes, find the line with the asterisks that shows the
# current screen size, get the first column with the screen dimensions,
# then using the "x" as a separator get first the screen width and then the height.
WIDTH=$(xrandr | sed -n '/.0\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $1 }')
HEIGHT=$(xrandr | sed -n '/.0\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $2 }')
# Figure out where to position the top left corner of of our window based on the width
# of the screen. The zenity dialogs are normally 443 pixel wide. So we subtract this
# from the width and divide by 2.
HORIZONTALPOS=$(echo "($WIDTH-443)/ 2" | bc )
# Put the horizontal position in our RRAbuntu.ds file to position the windows with
# RRAbuntu. Make .devilspie dirctory in the users home folder. Then copy RRAbuntu.ds
# and the Tips.ds file to their proper home.
sed s/REPLACEME/$HORIZONTALPOS/ /etc/skel/devilspie/RRAbuntu.ds >~/temp.ds
cp ~/temp.ds ~/.devilspie/RRAbuntu.ds
rm ~/temp.ds
# Figure out if devilspie is running. If so remember this, kill it and restart it so
# it re-reads the configuration files and we will also redirect error messages to the trash.
# Way down at the end of this script we will decided whether or not we should kill devilspie or let it run.
DEVILSPIEPS=$(ps -C devilspie -o comm=)
LEAVEDEVILSPIERUNNING=0
if [ ! -z $DEVILSPIEPS ]; then
LEAVEDEVILSPIERUNNING=1
fi
echo $LEAVEDEVILSPIERUNNING
killall devilspie
devilspie 2> /dev/null &
#### NOTE: the next part of this script used to be RRAbuntu-Reboot-1.sh
# Change first dialog to question and added code to allow aborting. -FJH 2010.03.16
zenity --question --title="RRAbuntu Rivendell Setup - Ready to configure? " --text="These instructions are for configuring RRAbuntu on first reboot after the installation. Are you ready to do this?"
# Check the exit status $? to see if the user clicked OK(=0) or Cancel(=1).
# Then exit the whole script if they clicked Cancel.-FJH 2010.03.16
if [ ! $? = 0 ]; then
exit
fi
## Turn off pulseaudio autospawning and then kill all instances of it.
# Copy pulseaudo client configuration file to home folder
cp /etc/pulse/client.conf ~/.pulse/client.conf
# Find the string "; autospawn = yes"and replace it with
# autospawn = no. This disables pulseaudio autospawning. FJH
sed s/\;\ autospawn\ =\ yes/autospawn\ =\ no/ ~/.pulse/client.conf >~/temp.conf
cp ~/temp.conf ~/.pulse/client.conf
rm ~/temp.conf
# Kill pulseaudio
killall pulseaudio
# Changed dialog to state that they will be only asked for the
# password after they click OK.-FJH 2010.03.16
## Changed OK and CANCEL to YES and NO Geoff 2010.05.08
zenity --question --title='RRAbuntu Rivendell Setup - Password will be needed!' --text="You will be asked for your password after clicking YES. Please enter your Linux user password from the Ubuntu installation. We need this as some parts of the script need to be run as the super user. If the script takes longer than 5 minutes to complete you may be asked again. If you are uncomfortable with this select NO to exit."
if [ ! $? = 0 ]; then
exit
fi
## Add user ubuntu to the rivendell and audio groups
# Make the current linux user name available as a system variable.
export currentuser=$(whoami)
run_sudo_command adduser $currentuser rivendell
run_sudo_command adduser $currentuser audio
# Restart Rivendell daemons just in case the got messed up
# by pulseaudio starting at the same time. FJH
run_sudo_command /etc/init.d/rivendell stop
run_sudo_command /etc/init.d/rivendell start
# Find the string "AudioOwner=username"and replace the username
# part with the currently running linux username and save it to
# /etc/rd.conf Also removed zenity, sleep and cp lines.-FJH 2010.03.16
# Removed sudo on the sed command below for security reasons as it is not need.-FJH 2010-03-24
sed s/AudioOwner=username/AudioOwner=$currentuser/ /etc/skel/Rivendell/rd.conf >~/temp.conf
run_sudo_command cp ~/temp.conf /etc/rd.conf
rm ~/temp.conf
##### FIXME
## Fix permissions to /var/snd currently the user is rduser not ubuntu
## nor the current user.
## Is this something we need to fix or is it something Alban needs to fix
## or does this go back to Fred G.?
## Moved up in the script to before Rivendell daemons are started and test tone is created. -FJH 2010.03.16
run_sudo_command chown $currentuser:rivendell /var/snd
##### FIXME
## Fix permissions to /var/log/rivendell currently the user is rduser not ubuntu
## nor the current user.
## Is this something we need to fix or is it something Alban needs to fix
## or does this go back to Fred G.?
run_sudo_command chown $currentuser:rivendell /var/log/rivendell
# Replaced dialog to tell the user to reboot with code below
# to start the Rivendell daemons. -FJH 2010.03.16
run_sudo_command /etc/init.d/rivendell start
#### NOTE: the script below here used to be RRAbuntu-Reboot-final.sh
## Start RDAdmin to get mysql database prompt to create
## rivendell database. This only happens the first time
## RDAdmin starts after new install or after updating
## to a new version. It is very important to run
## RDAdmin after upgrading to a new version of Rivendell
rdadmin &
sleep 2
## Inform the user what the username and password are for
## The mysql database setup
zenity --info --title="RRAbuntu Rivendell Setup - MySQL" --text="A window titled mysql Admin will pop-up behind this one. The username is... root and the password is.... rivendell. Close this window only after entering the username and password, Click OK and after the Created Database window with the message New Rivendell Database Created! pops up."
zenity --info --title="RRAbuntu Rivendell Setup - RDAdmin" --text="Now rdadmin will start up. The username is .... admin
with no password"
## Generate Test tone for the RDLibrary
# Removed sudo from rdgen command to generate test tone as it is no
# longer needed now that the linux user is set as owner of the folder
# before it is run.-FJH 2010.03.17
rdgen -t 10 -l 16 /var/snd/999999_000.wav
## Since we are finished with sudo commands remove the user's
# timestamp entirely from the /etc/sudoer file to prevent them
# from running sudo command without retyping the password as a
# safety precaution. This would time-out in 5 minutes from the
# time the user enter the password to allow sudo command, but
# we want to be on the safe side.-FJH 2010.03.17
sudo -K
## Start up RDAirplay for the user
rdairplay &
# Hang around waiting for RDAirplay to appear. -FJH 2010.05.21
ISITOPENYET=$(wmctrl -l | sed -n '/.RDAirPlay/p' | awk '{ print $4 }')
while [ -z $ISITOPENYET ]; do
sleep 1
ISITOPENYET=$(wmctrl -l | sed -n '/.RDAirPlay/p' | awk '{ print $4 }')
done
sleep 1
## Welcome the user with a label in Rivendell
rmlsend LC\ blue\ Welcome\ to\ Rivendell\ Radio\ Automation\!
sleep 1
## Load test tone into Main log=1 (Aux 1 log=2, Aux 2 log=3)
rmlsend PX\ 1\ 999999\!
sleep 1
## Start the log playing
rmlsend PN\ 1\!
sleep 10
## Load the test tone in the button at row 1, column 1 of the current panel.
rmlsend PE\ C\ 1\ 1\ 999999\!
sleep 1
#Play the button at row 1, column 1 of the current panel.
rmlsend PP\ C\ 1\ 1\!
sleep 6
## Changed OK and CANCEL to YES and NO geoff 2010.05.08
zenity --question --title="RRAbuntu Rivendell Setup - Did you hear it?" --text="If you heard the test tone twice then this script has properly configured Rivendell. If you would like, we can now install the demo the same as with the live CD. Press YES to install the demo audio and logs. NO to not install the demo."
# Check the exit status $? to see if the user clicked OK(=0) or Cancel(=1).
# Then exit the whole script if they clicked Cancel.-FJH 2010.03.16
if [ $? = 0 ]; then
install_demo
fi
zenity --info --title="RRAbuntu Rivendell Setup" --text="Thank you for installing RRAbuntu. Visit the Rivendell website and download the Rivendell Operations Guide from the Docs section on page. Print out for more advanced configuration. www.rivendellaudio.org .
Many Thanks from Geoff Barkman, Frederick Henderson and Alban Peignier"
###############################################################################
# New Section below to Clean Up Desktop and New Icons on Desktop - geoff 2010.05.09
sleep 5
zenity --question --title="PS. Clean up and Add Icons?" --text="P.S. Did you want to delete the no longer required Installer icons and add some New Icons on the desktop for Rdairplay, Rdlibrary, Rdedit and Rdlogmanager? If you do need them again there is some back up copies sitting in your home directory in the Rivendell icons folder"
# Check the exit status $? to see if the user clicked Yes(=0) or No(=1).
# Delete icons and add new ones if they answer yes
# Then continue with the rest of the script if they clicked No.-geoff 2010.05.10
if [ ! $? = 1 ]; then
# Delete the unneeded Desktop icons.
#rm ~/Desktop/Read_Me_First.desktop
rm /home/$currentuser/Desktop/RRAbuntu_Install.desktop
rm /home/$currentuser/Desktop/RRAbuntu_Demo.desktop
rm /home/$currentuser/Desktop/RRAbuntu_Post_Install.desktop
# Copy Icons to the desktop
cp /home/$currentuser/Rivendell/icons/rdairplay.desktop /home/$currentuser/Desktop/rdairplay.desktop
cp /home/$currentuser/Rivendell/icons/rdlibrary.desktop /home/$currentuser/Desktop/rdlibrary.desktop
cp /home/$currentuser/Rivendell/icons/rdlogedit.desktop /home/$currentuser/Desktop/rdlogedit.desktop
cp /home/$currentuser/Rivendell/icons/rdlogmanager.desktop /home/$currentuser/Desktop/rdlogmanager.desktop
fi
# Clean up, if devilspie was running before we started this script then leave it running otherwise kill it.
if [ ! $LEAVEDEVILSPIERUNNING = 1 ]; then
killall devilspie
fi
# Clean up, Get rid of desktop file that displays the prompt to run this script. FJH
rm ~/.config/autostart/RRAbuntu_autostart.sh.desktop
# END
RRAbuntu-First_Run.sh Script v 1.13
#!/bin/bash
#set -x ## For testing purposes
#
# RRAbuntu_autostart.sh
#
# Automatically displays either the readme.txt if booted from the CD or
# if booted from the hard drive a dialogue prompting the user to run the
# first run script.
#
# C) Copyright 2010 Frederick Henderson
#
# RRAbuntu_autostart.sh,v 1.13 2010.05.25 FJH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
## KEY TO CHANGE LOG AND CHANGES Initials
# FJH= Frederick Henderson frederickjh AT henderson-meier DOT org
# geoff= Geoff Barkman
CHANGELOG
########################## CHANGE LOG ##################################
version 1.13
initial release -FJH
#######################################################
CHANGELOG
################### FUNCTIONS ##########################
#
# function to run commands as super user. This will keep give the user
# option to re-enter the password till they get it right or allow them
# to exit if something goes wrong instead of continuing on.
# Usage:
# run_sudo_command [COMMANDS...] -FJH 2010.03.17
run_sudo_command() {
# grab the commands passed to the function and put theme in a variable for safe keeping
sudocommand=$*
gksudo $sudocommand
# Check the exit status if it is not 0 (good) then assume that the password was not entered correctly and loop them till they get it right or cancel the running of this script.
while [ ! $? = 0 ]; do
zenity --question --title='RRAbuntu Rivendell Setup - Attention Needed!' --text="Something is not right here. (Did you correctly enter your password? Is the Caps-Locks on?) Do you want to try to enter the password again(OK) or exit this script(Cancel)?"
if [ ! $? = 0 ]; then
exit
else
gksudo $sudocommand
fi
done
}
readme_displayer(){
# Get the screen sizes, find the line with the asterisks that shows the
# current screen size, get the first column with the screen dimensions,
# then using the "x" as a separator get first the screen width and then the height.
WIDTH=$(xrandr | sed -n '/\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $1 }')
HEIGHT=$(xrandr | sed -n '/\*/p' | awk '{ print $1 }' | awk -F "x" '{ print $2 }')
# Now that we have the screen size figure out what size to make the dialog
PERCENTWIDTH=$(echo "scale=0; $WIDTH*87.9/100" | bc )
PERCENTHEIGHT=$(echo "scale=0; $HEIGHT*62.5/100" | bc )
if [ $PERCENTWIDTH -gt 800 ]; then
SCREENWIDTH=800
else
SCREENWIDTH=$PERCENTWIDTH
fi
if [ $PERCENTHEIGHT -gt 800 ]; then
SCREENHEIGHT=800
else
SCREENHEIGHT=$PERCENTHEIGHT
fi
currentuser=$(whoami)
zenity --text-info --title="Welcome to RRAbuntu" --width=$SCREENWIDTH --height=$SCREENHEIGHT --filename="/etc/skel/Rivendell/README.txt"
}
first_run_prompter(){
# Inform the user that we still need to setup Rivendell then offer to start the script.
zenity --question --text="Now that you have installed Ubuntu we need to setup Rivendell like we did for the demo! Do you want me to start the script to do this?"
if [ ! $? = 0 ]; then
exit
else
# Start the RRAbuntu_first_run.sh script
/etc/skel/Rivendell/RRAbuntu-First_run.sh &
fi
}
################## HERE STARTS THE MAIN PROGRAM ####################
# Check for /rofs directory and for the file /etc/casper.conf that only exists when booted from the CD.
if [ -d /rofs -a -f /etc/casper.conf ] ; then
readme_displayer
else
first_run_prompter
fi
# END
Readme_displayer.sh
#!/bin/bash
#set -x ## For testing purposes
#
#Readme_displayer.sh
#
# Setup test tone, promos, sample logs for demoing Rivendell with RRAbuntu.
#
# (C) Copyright 2002-2003 Frederick Henderson
#
# Readme_displayer.sh,v 1.12 2010.04.24 FJH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
## KEY TO CHANGE LOG AND CHANGES Initials
# FJH= Frederick Henderson frederickjh AT henderson-meier DOT org
CHANGELOG
####################### CHANGE LOG ######################
version 1.12
Initial Release-FJH
#########################################################
CHANGELOG
currentuser=$(whoami)
zenity --text-info --title="Welcome to RRAbuntu" --width=800 --height=900 --filename="/etc/skel/Rivendell/README.txt"