Microsoft Windows 2000 – Problem Starting Computer Management Console

When are you having problem to start up Computer Management Console, one of the error you will see in the Windows 2000 error log is;

“Temporary directory is not found or there is not enough disk space …”.

The error message means that Windows is unable to locate Temp Directory (temporary directory). In order to find out system default Temp Directory, Use “echo %TEMP%” to output System Default Temporary Directory folder configuration

If the Temporary Directory is not exist, create one at the sub folder.

Try again to launch your Computer Management Consol, it should works fine now :)

ifconfig – NIC capabilities / functions

find out what is the capability of an network interface, e.g. :

ifconfig -m vr0

configure / set media types of a NIC, e.g :

ifconfig vr0 media 100baseTX
ifconfig vr0 media autoselect

Network Time Protocol Sync with External Server on Windows Server

configure / set network time server :

net time /setsntp:0.pool.ntp.org

start the network time services :

net stop w32time

net start w32time

check whether network time is in sync :

net time /querysntp

windows 2000 – command line (cmd) command auto completion

By default, windows 2k server does not activate this function. Do this to activate it :

  • start regedit
  • goto HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor
  • change the keyword “CompletionChar” from 64 to 9
  • close all command line window and start and new window

Voila!

bash – dealing with backtics ” ` ” in mysql statement

problem :

using backticks in bash for mysql statements. e.g. :

mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ’someuser’@’somehost’;” -p<password with no space after parameter>

would get an error :

./scriptname: line 5: somedatabase: command not found

solution :

escape () the backticks ” ` ” surround “somedatabase”

mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ’someuser’@’somehost’;” -p<password with no space after parameter>