Wednesday, April 10, 2013

Thursday, October 25, 2012

External NTP sync for Domain Controllers

Long time, no see.

One more for the road :-)

This is to be done on the PDC emulator, usually your 1st DC.

1. Set registry values 

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer [STRING] = "1st.fqdn.or.ip,0x1 2nd.fqdn.or.ip,0x1"
(space separated string, with ',0x1' after each entry) 

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\ReliableTimeSource [DWORD] = 1
(if this doesn't exist, don't create it) 

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\LocalNTP [DWORD] = 0
(if this doesn't exist, don't create it) 

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags [DWORD] = 5

2. Restart w32time

net stop w32time && net start w32time

3. Resync the time service

w32tm /resync /rediscover

4. Verify sync

w32tm /query /status

[ trackback ]

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

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 ]