Friday, October 26, 2007

Enable File Sharing and Firewall

Try to change deny policy of your firewall about system process and port 445 on tcp inbound to allow. If not work try udp, too.

SSH for windows

download from SSHWindows and install. It's linux sshd with small cygwin. It installs as windows service(OpenSSHd)

after install in bin folder, run below commands:

mkgroup -l >> ..\etc\group
mkpassword -l >> ..\etc\passwd

Thursday, October 25, 2007

Useful Utilitis for Windows

NirCmd, a small command-line utility that allows you to do some useful tasks without displaying any user interface.

UnixUtils some ports of common GNU utilities to native Win32

Clear RunMRU at Loggoff

Set the following registery
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

ClearRecentDocsOnExit
1 : Clear
0 : Off
This setting also clear typed url in IE.

Good staff : http://windowsxp.mvps.org/

Configure Windows XP to Automatically Login

Click Start, Run and type CONTROL USERPASSWORDS2, and click Ok. Select the user account from the list (the account to which you want to automatically logon). Uncheck Users must enter a user name and password to use this computer option, and click Ok. Type the user account password and complete the process.

Or
Configure it manually in registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Set the DefaultDomainName, DefaultPassword (must be non-blank), and DefaultUserName. Set AutoAdminLogon to 1 (all are type REG_SZ). If you ever want to logon as a different user, hold down the shift key as you logoff.



Add Persian(Farsi) Keyboard Layout Manually

This step is useful if you can't add your languyage and keyboard by windows input languages in Regional Settings

1- Install Additional files for complex script and right to left languages
2- Get and put kbdfa.dll in system32 folder (It's farsi keyboard layout)
3- Open windows\inf\intl.inf and add the following settings
3-1-
[Locales]
00000429 = %Farsi% ,720 ,11,,0409:00000409,0429:00000429,0429:00000401
3-2- Enter after same entries
[00000429]
;
; Farsi (Iran)
;
DelReg = FontSubs.Registry.Remove,FileSystem.Registry.FE
AddReg = NLS.Registry.Farsi
AddReg = NLS.Setlang.0429,Font.CP1256.Substitutes

3-3- Enter after same entries (On my windows, It's only entry about this keyboard layout in that file)
[NLS.Registry.Farsi]
HKLM,System\CurrentControlSet\Control\NLS\Codepage, ACP,,1256
HKLM,System\CurrentControlSet\Control\NLS\Codepage,OEMCP,,720
HKLM,System\CurrentControlSet\Control\NLS\Codepage,MACCP,,10004
HKLM,"Software\Microsoft\Windows NT\CurrentVersion\FontMapper","DEFAULT",0x00010001,178
3-4-
[KBD.LGFiles.Install.Arabic]
kbdfa.dll ; Farsi

[KBD.LGFiles.Remove.Arabic]
kbdfa.dll ; Farsi

3-5-
[Strings]
Farsi = "Farsi"
KLT_124 = "Farsi"

4- Add below registry entries
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language Groups]
"d"="1"
d is equal to 13 for arabic group which can be find in intl.inf file.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
"10000"="c_10000.nls"
"1256"="c_1256.nls"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Locale]
"00000429"="d"
These are farsi lang id and arabic lang group id

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\\00000429]
"Layout File"="KBDFA.DLL"
"Layout Text"="Farsi"
"Layout Display Name"="@%SystemRoot%\system32\input.dll,-5124"

Hide a User from the Windows Welcome List

create a special value under this registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

Under this key you simply create a new DWORD value - the name matches the users name exactly, and the value is one of the following (Decimal format)

0 - Hides the user just from the welcome screen
1 - The user is shown

Two or more concurrent sessions in Windows XP (Terminal Server Patch)

The beta 2055 release of XP PRO SP2 let you run two or more sessions (one local console and one or more remote desktop) concurrently. But this functionality was removed in the Final release. This patch will enable two or more concurrent sessions in Windows XP PRO Service Pack 2 (SP2) or later if you have FAST USER SWITCHING enabled, and your windows is NOT in a domain.

Uninstaller is also included and can be found at windows Control Panel -> Add or Remove Programs.

Screenshot
Download Latest Binary

Sunday, October 21, 2007

Solaris Automatic Package Download

Using pkg-get package easily can search, compare and install package for solaris autmatically.

pkg-get -c|compare automake
pkg-get -i|install automake

configuration file: /opt/csw/etc/pkg-get.conf

Friday, October 19, 2007

enable NUM LOCK before a user logs on

To enable NUM LOCK before a user logs on, use the steps below.

1.Run Registry Editor (Regedt32.exe).
2.Navigate to HKEY_USERS\.Default\Control Panel\Keyboard.
3.Change the value for InitialKeyboardIndicators from 0 to 2.
Additional references:
217884 (http://support.microsoft.com/kb/217884/EN-US/) NUM LOCK Setting Reset After Logging Off Terminal Server

262625 (http://support.microsoft.com/kb/262625/EN-US/) How to Set the NUM LOCK State at Logon Using a Logon Script ID