Monday, May 2, 2011

Move Gnome panel between monitors

  1. Right-click the panel you wish to move and select “Properties”.
  2. Uncheck the “Expand” option under the “General” tab.
  3. Grab one of the edges of the panel by clicking on the left or right end (top or bottom end for vertical panels).
  4. Drag the bar to the desired screen and position.
  5. Check the “Expand” option in the “Panel Properties” window and click “Close”.
All done!!

[ trackback ]

Thursday, February 3, 2011

SNMPCONFPATH

Using snmp utils for win32... where to put snmp*.conf?

Anywhere you want, just as long as you set env variable SNMPCONFPATH to wherever you place them.

Simple, hum??

Monday, January 3, 2011

dnsactual.sh FreeDNS client

Since ddclient is supposed to work with FreeDNS, but is not *actually* working on Ubuntu, changed to dnsactual.sh from afraid.org unix client listings.

Since there's no .deb, had to hack it.

location: /usr/local/bin
schedule: root crontab every minute

TOKEN="YOU WISH :-)"
PATH=/bin:/sbin:/usr/bin:/usr/sbin
IFACE=[PUBLIC-IF]

if test -f /etc/freedns/dnsactual.conf
then
CacheIP=$(cat /etc/freedns/dnsactual.conf)
fi

CurreIP=$(ifconfig $IFACE | grep -oEe "addr:[0-9\.]*" | cut -f 2 -d :)

if [ "$CurreIP" = "$CacheIP" ]
then
# Both IP are equal
echo "Update not required..."
else
# The IP has change
echo "Updating http://free.afraid.org with " $CurreIP
wget http://freedns.afraid.org/dynamic/update.php?$TOKEN -o /dev/null -O /dev/stdout
echo `date` "Updating log with IP " $CurreIP >> /var/log/dnsactual.log
fi
rm -f /etc/freedns/dnsactual.conf
echo $CurreIP > /etc/freedns/dnsactual.conf