web analytics

Windows: disable sticky keys

If some keyboard key is pressed several times in the short period of time, the accessibility window will appear. It’s possible to disable this behaviour.

Just create the following REG-file and import it with the regedit:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys] "Flags"="0"

Alternative: just do it from the command line:

REG ADD "HKEY_CURRENT_USER\Control […]

Unix: show tcp packets

TCP packets could be catched by tcpdump:

tcpdump -n -i any ‘tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn and port 80’

UNIX: mounting CD

Here are the mount commands for different *nix systems.

HP-UX

nohup /usr/sbin/pfs_mountd & nohup /usr/sbin/pfsd & /usr/sbin/pfs_mount -t rrip -x unix /dev/dsk/c5t2d0 /SD_CDROM

AIX

mount -r -v cdrfs /dev/cd0 /cdrom

Solaris Intel

mount -F hsfs -r /dev/dsk/c0t6d0p0 /cdrom

SPARC Solaris

mount -r -F hsfs /dev/dsk/c0t6d0s2 /cdrom

TRU64

mount -t cdfs -r -o nodefperm,noversion,rrip /dev/rz4c /cdrom […]

Windows: local printer option is greyed out

Some time ago I need to add the local printer to the system, however, this option was greyed out in the “Add printer” wizard. The problem was caused by local policy, preventing the adding of the new devices to the system.

The following should be done to enable “Add local printer” option

Start the policy […]

Windows 7: remove SP1 installation files

Here is the command to remove old installation files for SP1.

dism /online /cleanup-image /spsuperseded

Warning! The uninstallation of the Service Pack 1 will be impossible after removing these files!

Unix: how to get md5 sum

Here are the possibilities to calculate md5 sum:

(Linux): md5sum filename

(Solaris): digest -a md5 -v filename

Oracle: problem relinking binaries on Solaris

I’ve got the following message relinking the binaries on Solaris:

ld: fatal: dlopen() of support library (libmakestate.so.1) failed with error:

ld.so.1: /usr/ccs/bin/sparcv9/ld: fatal: /usr/lib/libmakestate.so.1: wrong ELF class: ELFCLASS32

The problem was caused by missing 64-bit library libmakestate.so.1 in /usr/lib.

The normal library should look like the following:

[#] file /usr/lib/sparcv9/libmakestate.so.1 libmakestate.so.1: ELF 64-bit MSB dynamic […]

Linux: get the version of the system

Get the version of the distro:

cat /etc/issue cat /etc/*-release

Get the kernel version:

uname -r