Monday, September 26, 2011

kmix - High CPU usage opensuse 11.4

Try running this to correct a corrupt config file


killall -9 kmix
rm -rf $(kde4-config --localprefix)/share/apps/kmix/
rm -f $(kde4-config --localprefix)/share/config/kmix*
kmix &

Wednesday, August 3, 2011

Bash Script to Run get_iplayer From a Desktop Icon

This bash script can be run from a desktop icon. It opens a terminal window updates the get_iplayer TV Index feeds. Displays an example or two of a typical get_iplayer command and allows you to enter get_iplayer commands in the same terminal window.

  • Paste the following text in a file start_get_iplayer using your favourite text editor (vi, kate etc)
  • Give start_get_iplayer execute permissions chmod +x start_get_iplayer
  • Don't forget to change the path as appropriate for your system in line 5 & 8 of the script.
  • Create the desktop application icon and point it to start_get_iplayer

#!/bin/bash
#
# Version 110804-0429
#
# Script to execute get_iplayer from icon
#
cd "/home/monk/get_iplayer"
#
# Get the index feeds
"/home/monk/get_iplayer/get_iplayer" --refresh --force
#
# Print some examples to help the user
echo ""
echo "Examples:"
echo " ./get_iplayer --get \"Made in Britain\""
echo " exit"
echo ""
#
# This while loop gives us the command line prompt so the user
# can enter iplayer commands
#
MY_PROMPT='$ '
while :
do
echo -n "$MY_PROMPT"
read line
eval "$line"
done

exit 0