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

Tuesday, October 26, 2010

Get Grub2 to save last chosen entry

Every piece of pseudo-help I've read on this matter says:

"edit /etc/default/grub, and set GRUB_DEFAULT=saved" to save your default boot choice.

While this is true, its not complete. It's not what 90+% of the people are looking for. It's a question of semantics.

I want to save my default boot choice EVERY TIME I BOOT... i.e. save the last chosen entry every time I boot - for multi-OS systems, I believe this is fundamental.

For this to happen, you need to ADD to /etc/default/grub (it's missing altogether in the file) the entry:

GRUB_SAVEDEFAULT=true

This solves this issue. Without this line, /boot/grub/grubenv never gets updated when you choose you boot entry in grub boot menu.

This option is listed in 'info grub', but appears nowhere in the /etc/grub.d/* files.

Following the usual notation, the entry should be in the file, set as false and commented, indicating the default option if omitted:

#GRUB_SAVEDEFAULT=false

[ trackback ]

Thursday, July 15, 2010

Disable IPv6 on Windows 7 ~ 8.1

Create

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents = 0xffffffff (DWORD:32b)

[edit - it also works for Windows 8 and 8.1]


[ trackback ]

Monday, May 3, 2010

Disable IPv6 on Ubuntu 10.04 Lucid Lynx

Add to /etc/sysctl.conf


#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1



and reboot... or for a quickie, 'echo 1 > /proc/sys/net...' as root


[ trackback ]

Saturday, March 20, 2010

Wireshark as non-root user

When in Windows, you get the NPF service... in Ubuntu/Debian, you get:

apt-get install libcap2-bin
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

[ backtrack ]

Monday, November 30, 2009

TomTom maps - latest version

Determine which version is the latest for your TomTom device:

  1. Go to tomtom.com/products/maps and select map (for ex. - Europe-840 for x50 devices)
  2. right click on map's picture and get properties - you'll see ....tomtom.com/lib/img/mapshop/maps/map14477.gif - here 14477 - is map ID in TomTom store.
  3. create url-path with this ID: http://num1.id.tomtom.com/14477
  4. put this link to your browser - voila! Now you got almost all map's info including region, build, IQ Routes™ supporting, supported devices
Et voilá!

[ trackback ]