Handy Tips and Tricks
The following "Handy Tips and Tricks" can be found below:
More than 2 kernels when yum updating
Killall AG Script
Disabling the YUM-Update Notifier
By default, when doing yum updates, only 3 kernels remain after the update. Example, current kernel that you are running and the new updated kernel with any existing kernel versions being removed. Sometimes you might want more than 2 kernels, for testing or any other reasons. To enable more kernals, simply edit the following line to the /etc/yum.conf file:
installonly_limit=3
to read
installonly_limit=10
Where the 10 represents the number of maximum number allowed, in the case above, I set the maximum number to 10.
Therefore, the /etc/yum.conf file should look something like:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=10
There may be times when the AG software “hangs” or it doesn’t shutdown correctly. Therefore, the following script can be used to “kill” Access Grid related processes. This script may also be useful if there are “zombie” AG processes still running which prevent the Venue Client from Starting.
Start up "Terminal". Create a file called ag-kill.sh and edit it. To do this type "vi agkill.sh". You then need to type the following into the file. When you are finished, hit the "esc" key, type ":wq" then hit the enter key to save and exit:
#!/bin/shTARGETS="VideoConsumerService VideoProducerService VideoService AudioService rat-4 vic rat VenueClient"
for target in $TARGETS
do
for p in `ps -ef | grep ${target} | grep -v grep | awk '{ print $2 }'`do
kill -KILL $pdone
done
You then need to change the permissions of the file to make it executable. To do this, execute the command chmod 755 agkill.sh
To execute this script, simply execute ./agkill.sh
Note, do not use this script to shutdown the Access Grid software normally, because if you are using a multi-node setup and you use this script to shutdown the AG software, node services such a VideoProducers will still be running on other machines that make up the Access Grid node.
Additionally, is might be useful to make a shortcut to this script and place it on the desktop.
(Please note that there is a bug that only allows the control on a single X window. Currently investigating possible solutions)
Remote desktop is very useful, as it allows you to "vnc" to the desktop and remotely control the display. This is particularly useful when, as a node operator, allows you to remote control the AG. Examples for where this is useful include:
starting and shutting down the AG;
switching venue;
arranging video streams; and
many other purposes.
To enable this, simply select “System -> Preferences -> Internet and Network -> Remote Desktop” from the gnome desktop (See screen shots below).



Once you have the “Remote Desktop Preferences” windows up, it is recommend to use the following settings:
Sharing
Allow other users to view your desktop (enabled)
Allow other users to control you desktop (enabled) [this will allow remote control of desktop]
Security
Ask you for confirmation (disabled) [otherwise for control intervention is required]
Required the user to enter a password (recommended so others cannot accidentally log in)