Archive for April, 2008

h1

WinSCP

April 15, 2008

Open source freeware SFTP client, FTP client and SCP client for Windows.

Download at : http://winscp.net/eng/download.php

h1

Putty

April 15, 2008

PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms.

Download at : http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

h1

How to use apt-get behind proxy server (Ubuntu/Debian)

April 15, 2008

If you’re using Synaptic

Open up your Synaptic package manager (usually as root), go to Settings-> Preference -> Network. Enter your proxy server details like : username:password@proxyserver.net, and put the proxy server port (usually 8080).

If you’re using command-line apt-get

Edit your /etc/bash.bashrc file as root.

Put these line at the end of your /etc/bash.bashrc file :

export http_proxy=http://username:password@proxyserver.net:port/ export ftp_proxy=http://username:password@proxyserver.netport/ 

You can omit the username:password, if your proxy server has no password.

The lower-case export lines with quotes worked for me:
export http_proxy=”http://username:password@proxyserver.net:port”
export ftp_proxy=”http://username:password@proxyserver.net:port”
But I appended them to the file /etc/profile instead of /etc/bash.bashrc so that it would effect synaptic from the menus (and lots of other system programs).

Source : http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html

h1

Netscan – Freeware

April 15, 2008

The program pings computers, scans for listening TCP ports and displays which types of resources are shared on the network (including system and hidden)

[Image]

Download at : http://www.softperfect.com/products/networkscanner/

h1

NetMeter – freeware

April 15, 2008

a Useful tool to monitor your network connection.

[Image]

Download at : http://www.metal-machine.de/readerror/

h1

Hide Users on the Welcome Screen on Windows XP

April 15, 2008

When you add an account for certain users with Windows XP, their user names will appear on the Welcome Screen. Sometimes a user needs to be added to a Windows XP machine, because the user needs access (via the network) to resources on the machine, but the user will not be physically logging in on the computer. You can remove this user name from the Welcome Screen, while still maintaining the user account.

  1. Start the Registry Editor
  2. Go to HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon SpecialAccounts UserList
  3. Right-click an empty space in the right pane and select New > DWORD Value
  4. Name the new value exactly as the Username
  5. Leave the Value data as 0
  6. If you want to enable this user again on the Welcome Screen, either double-click the Username value, and change the Value data to 1, or delete the Username
  7. Close the registry editor

h1

automatically remove files older than ‘x’ days

April 15, 2008

Tape backups have failed me too many times, so I now do my Windows backup to an external hard drive. One of the office staff is in charge of swapping out our backup drives and taking it offsite. I needed a solution that would remove old backups without user intervention so they wouldn’t have to worry about having enough space available for the backup to complete.My hard drives can hold four backups, so here’s a very simple .vbs script that deletes files from I:Backup Files that are more than three days old:

Dim Fso

Dim Directory

Dim Modified

Dim Files

Set Fso = CreateObject(”Scripting.FileSystemObject)

Set Directory = Fso.GetFolder(”I:Backup Files”)

Set Files = Directory.Files

For Each Modified in Files

If DateDiff(”D”, Modified.DateLastModified, Now) > 3 Then Modified.Delete

Next

Save this as filename.vbs

To execute this file, run:

cscript.exe filename.vbs

——————————–

You can read all about the 800a0408 error at http://www.computerperformance.co.uk/Logon/code/code_800A0408.htm

The quotation mark is not the correct ASCI character

Source: http://thebackroomtech.wordpress.com/2007/06/12/howto-automatically-remove-files-older-than-x-days/

h1

Not enough server storage is available to process this command

April 15, 2008

Found this on Microsoft site. Also works in Windows XP.
Click here for the original page.

Clients cannot access network shares. Additionally, Event Viewer on the Windows server may log one or more of the following event messages in the system log: Event ID : 2011
Source : Srv
Description: The Server’s configuration parameter “IRPStackSize” is too
small for the server to use a local device. Please
increase the value of this parameter.

1.Click Start, and then click Run.
2.Type regedit, and then click OK.
3.Navigate to the following key:
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanServerParameters
4.In the right pane, double-click the IRPStackSize value.

NOTE: If the IRPStackSize value does not already exist, use the following procedure to create it:
a. In the Parameters folder of the registry, right-click the right pane.
b. Point to New, and then click DWord Value.
c. Type IRPStackSize.

IMPORTANT: Type “IRPStackSize” exactly as it is displayed because the value name is case-sensitive.
5.Change the Base to decimal.
6.In the Value Data box, type a value that is larger than the value that is listed.

If you created the IRPStackSize value using the procedure described in step 4, the default value is 15. It is recommended that you increase the value by 3. Therefore, if the previous value was 11, type 14, and then click OK.
7.Close the Registry Editor.
8.Restart the computer. If the problem persists after you complete the preceding procedure, try to increase the value of IRPStackSize even more. The maximum value for Windows 2000 is 50 (0×32 hex).

h1

To give a server more then one name.

April 15, 2008

It is possible to access one of your 2000 or 2003 servers with different names then the one assigned to it.
Found this article on the Microsoft site.
Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name.
Additionally, to resolve this problemin Windows 2000 Server you must complete all of 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 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_MACHINESystemCurrentControlSetServicesLanmanServerParameters
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.
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_MACHINESystemCurrentControlSetServicesLanmanServerParameters
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.

h1

Environment Variables in Windows XP

April 15, 2008
Variable Typical value (May vary, depending on system)
%ALLUSERSPROFILE% C:Documents and SettingsAll Users
%APPDATA% C:Documents and Settings{username}Application Data
%COMPUTERNAME% {computername}
%COMSPEC% C:WindowsSystem32cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% Documents and Settings{username}
%PATH% C:WindowsSystem32;C:Windows;C:WindowsSystem32Wbem
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH
%PROGRAMFILES% Directory containing program files, usually C:Program Files
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SYSTEMDRIVE% The drive containing the Windows XP root directory, usually C:
%SYSTEMROOT% The Windows XP root directory, usually C:Windows
%TEMP% and %TMP% C:DOCUME~1{username}LOCALS~1Temp
%USERNAME% {username}
%USERPROFILE% C:Documents and Settings{username}
%WINDIR% C:Windows

Source : http://vlaurie.com/computers2/Articles/environment.htm