Wednesday, November 08, 2006

Found a nice sed tutorial

This is a nice little tutorial on sed and had nice examples.

http://pegasus.rutgers.edu/~elflord/unix/sed.html

Friday, August 04, 2006

Cool Windows Trick

Key Sequence:CTRL + SHIFT + A
What's it do?:

This will toggle highlighted text in windows from UPPER/lower case.

In a Shell programming class I took at Sun I can remember that one of the first things that I learned was the classic:

suned# echo hi there tr '[:lower:]' '[:upper:]'
HI THERE

The instructor at the time did not know how to do this in Wintel enviroment. Well now I know.

Friday, June 16, 2006

Using DNS Aliases for Windows Shares

(This is from http://support.microsoft.com/?kbid=281308)

1. Create the CNAME record for the file server on the appropriate DNS server, if the CNAME record is not already present.

2. Apply the hotfix to the computer for which the CNAME record was created, not the DNS server. (Unless the DNS server and file server in question is the same computer, and then all of the changes is applied is to that server.) This hotfix affects the LAN Manager Server Service and does not affect DNS functionality.

3. Apply the following registry change to the file server to which you installed the hotfix. To do so: a. Start Registry Editor (Regedt32.exe).
b. Locate and click the following key in the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters

c. On the Edit menu, click Add Value, and then add the following registry value:
Value name: DisableStrictNameChecking
Data type: REG_DWORD
Radix: Decimal
Value: 1

d. Quit Registry Editor.

4. Restart your computer.

Back to the top

Windows Server 2003
To resolve this problem in Windows Server 2003, complete the following steps:1. Create the CNAME record for the file server on the appropriate DNS server, if the CNAME record is not already present.
2. Apply the following registry change to the file server. To do so, follow these steps: a. Start Registry Editor (Regedt32.exe).
b. Locate and click the following key in the registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters

c. On the Edit menu, click Add Value, and then add the following registry value:
Value name: DisableStrictNameChecking
Data type: REG_DWORD
Radix: Decimal
Value: 1

d. Quit Registry Editor.

3. Restart your computer.