Archive for the ‘Documentation’ Category

Windows – modify users profile – ntuser.dat.

You need to make sure the user is logged out before doing this.

1) Run regedit
2) Go to HKEY_USERS
3) Load Hive # navigate to the ntuser.dat you want to load.
4) Make changes.
5) Unload Hive

Windows NT 4.0/2000/2003 Server file system performance tweak

I made this modification on an HP DL-360 with dual 1.3 GHz processors, 2GB of memory, and RAID 1 drive (two drives mirrored). It made a huge improvement accessing a directory with a lot of files. According to Microsoft (, ), the setting is increased in Windows 2003. I set in my NT 4.0 server to 16,644.

The SizReqBuf value is stored in the registry under the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Value Name: SizReqBuf
Data Type : REG_DWORD
Data : 512 – 65535 (bytes in decimal, or 200 – FFFF hexadecimal)
Default : 4356 Specifies the size of request buffers that the server uses.

Source: http://support.microsoft.com/kb/320829

MacOSX update from the command line.

You can use the softwareupdate command to install updates from a Terminal session. I used this on Leopard.

softwareupdate -i -a #To install all.

softwareupdate -l #To list available updates.

How to Hard Reset a T-Mobile Dash

Select Start/Accessories/Clear Storage
Enter 1234
Select Yes

OR

Turn the phone off
Press and hold the dashes to the left and right of the red and green phone buttons.
Press and hold the power button for a couple seconds while holding the buttons above.
Release the keys.
You will be prompted you to clear storage.

Source: http://www.good.com/faq/17957.html

How to mount an iso, dmg or other image in MacOSX

From a terminal session:

hdiutil mount filename

hdiutil attach dmgfilename

From what I can tell, this is similar to just double clicking on the filename from Finder.

The image file is then mounted at /Volumes/imagelabel.

Linux- to decode base64 text.

base64 -d inputfilename > outputfilename

CentOS/Redhat/Fedora display BIOS information

The dmidecode utility will display the SMBIOS (System Management BIOS) or the DMI (Desktop Management Interface) table. It can be very useful to determine your current hardware and other good information.

To display type options:

# dmidecode -t
Type number or keyword expected
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot

Here is an example:
# dmidecode -t processor
# dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0400, DMI type 4, 35 bytes
Processor Information
Socket Designation: Proc_1
Type: Central Processor
Family: Pentium 4
Manufacturer: Intel
ID: 29 0F 00 00 FF FB EB BF
Signature: Type 0, Family 15, Model 2, Stepping 9
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (Fast floating-point save and restore)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Hyper-threading technology)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Not Specified
Voltage: 1.5 V
External Clock: 533 MHz
Max Speed: 3200 MHz
Current Speed: 2800 MHz
Status: Populated, Enabled
Upgrade: ZIF Socket
L1 Cache Handle: 0x0700
L2 Cache Handle: 0x0701
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified

Handle 0x0401, DMI type 4, 35 bytes
Processor Information
Socket Designation: Proc_2
Type: Central Processor
Family: Pentium 4
Manufacturer: Intel
ID: 00 00 00 00 00 00 00 00
Signature: Type 0, Family 0, Model 0, Stepping 0
Flags: None
Version: Not Specified
Voltage: 1.5 V
External Clock: 533 MHz
Max Speed: 3200 MHz
Current Speed: Unknown
Status: Unpopulated
Upgrade: ZIF Socket
L1 Cache Handle: 0x0703
L2 Cache Handle: 0x0704
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified

MacBook Pro page down through messages in Mail

To page up or down through the list of messages in Mail on a MacBook Pro, hold down the fn and control keys and hit the up or down arrow depending which way you want to go in the list. Note: this does not select them, but at least allows you to scroll through them quickly.

This has been one of the most frustrating problems I have had using the MacBook Pro. I get a lot of mail that just need to scan and delete. It would be nice if I knew how to select them too. In thunderbird, you just use the fn key and the arrows to page down/up. If you use fn and shift, this will also select them. I guess I will have to use thunderbird, if I cannot find a solution.

I have many mail accounts, and I like the way Mail put the Inbox for all of them up top. It makes it easy to get to the unread messages. I would like to try to use Mail, but I need to be able to select too.

A way to determine raw disk performance.

time -p dd if=/dev/sda5 of=/dev/null bs=1024k count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 25.2325 seconds, 42.6 MB/s
real 25.26
user 0.00
sys 1.82

This transferred 1 gigabyte of data in 42.g megabytes per second.

Process mail messages already in the spool mailbox file.

formail -Y -s sendmail -odq username < /var/spool/mail/username

sendmail -v -qRnewaddress

For example:

formail -Y -s sendmail -odq james < /var/spool/mail/james

sendmail -v -qRjames@newmailbox.com

Return top

INFORMATION