Monday, March 26, 2012

Windows Vista & 7 Disconnected drives

Windows Vista & Windows 7 with UAC enabled always show mapped drives as disconnected after login. 

The workaround is a registry setting documented here:
http://support.microsoft.com/kb/937624

Tuesday, March 20, 2012

Routesplit on OSX 10.x

The routesplit tool fails to make routes permanent on Snow Leopard and later versions of OSX.  To work around the issue edit the following file as such:

/Library/LaunchDaemons/net.routes.static.plist



...
<key>ServiceDescription</key>
<string>Install static routes</string>
<key>WatchPaths</key><array>
 <string>/Library/Preferences/SystemConfiguration
</string>
</array>

...

Saturday, March 17, 2012

Linux Shell Menu

Linux shell menu, using pdmenu samples and examples available here:
https://gitlab.com/majorbob/sys-menu/blob/master/usr/lib/sys-menu

Start by installing pdmenu (apt-get install pdmenu).
Then download menu and pdmenu.main to /usr/local/bin and make them executable (chmod +x).
Type menu to start the menu.
Download other pdmenu scrpts as required.

Sunday, February 19, 2012

Draytek 2700G DNS suffix

On Draytek 2700G ADSL router to add a DNS suffix to the DHCP server use the following command in a telnet session to the router:
>sys domainname mydomain.local
You can also define a hostname for the router, e.g.:
>sys name gw.mydomain.local
 The changes save automatically.

Wednesday, February 15, 2012

iPhone has wrong name in Windows Explorer (Digital Camera)

Windows remembers a USB devices name and fails to update if the iPhone's name is changed.  Use regedit to search for the name starting at HKLM\SYSTEM\CurrentControlSet.
 Edit the device names & labels as found - multiple may be found.

Tuesday, February 14, 2012

Valid push dhcp-options for OpenVPN

push "dhcp-option DNS 192.168.1.10"
push "dhcp-option WINS 192.168.1.10"
push "dhcp-option DOMAIN mydomain.local"

In pfSense these options should be set on the OpenVPN "server" settings,
they do not need to be in the client's config file. 

Wednesday, February 1, 2012

Error installing nfsen on Debian Squeeze

Trying to install nfsen on Debian Squeeze, running:
#./install.pl etc/nfsen.conf

would produce an error:
Can't create channel directory: '/srv/nfsen/profiles-data/live/peer' File exists
No collector started!

This is due to trying to install into a custom directory.
Edit etc/nfsen.conf and change to:
$BASEDIR = "/usr/local/nfsen"
(may need to create the directory first?).

Installation guide:
Pre-installed: apache2, php5, perl, linux-base
apt-get install librrds-perl librrdp-perl librrd-dev
apt-get install libmailtools-perl libsocket6-perl
apt-get install flex byacc
apt-get install nfdump mrtg rrdtool
Download and install nfsen from source.