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