Tips

Remove Compress Old Files Feature

I found it very annoying… every time i tried to use Disk Cleanup Tool in windows xp it took a long time to find files it could compress… I ask - WHAT FOR?

Compressing is the last thing I need. There is a good way to disable this or even more… just take a look in your registry at key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files

Then delete whole key, or make a file “rm_compress.reg” file and paste there (or you can download mine:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files]

Tags: ,

Wednesday, August 20th, 2008 Tips, cribs, windows No Comments

Virtual device driver error message in 16-Bit MS-DOS subsystem

Today I got bad sound message, which for me is connected with previous symantec preinstallation (lenovo machine), but it shows up when some some wolterskluwer program is started (with no consequences :) )

Virtual Device Driver

The answer how to repair this problem is described in MS Knowledge Base so go here and have fun :)

Tags: , ,

Thursday, August 14th, 2008 Tips, windows No Comments

Microsoft Office 2007 service pack 1 installation failure

I couldn’t install all windows updates because of the fact that automatic updates is falling down every time because of problem with installing office 2007 sp1. I tried to install it manualy but the same error occured:

2007 Microsoft Office Suite Service Pack 1 (SP1) has stopped working

and in installation log:

Error 1935.An error occurred during the installation of assembly component {46174A62-FAFE-4BD6-9662-F9A9F588F034}. HRESULT: 0×80131047. assembly interface: IAssemblyCacheItem, function: Commit, assembly name: Microsoft.Office.InfoPath.Client.Internal.Host,fileVersion=”12.0.6215.1000″,version= “12.0.0.0000000″,culture=”neutral”,publicKeyToken=”71E9BCE111E9429C”

or:

Error 1935.An error occurred during the installation of assembly component {04E73476-518E-4B6A-8E10-021A00078847}. HRESULT: 0×80131047. assembly interface: IAssemblyCacheItem, function: Commit, assembly name: Microsoft.Office.Interop.PowerPoint,fileVersion=”12.0.6211.1000″,version=”12.0.0.000 0000″,culture=”neutral”,publicKeyToken=”71E9BCE111E9429C”

There is a KB describing this problem here!
The funny thing is “method 2″ (workaround) it sound like this:

Method 2
Put a readable DVD or CD in the DVD drive or in the CD drive before you install the 2007 Microsoft Office suite Service Pack 1 (SP1).

Note We do not recommend that you use Method 2. On some operating systems, Method 2 allows for the drive to be accessed so that the 2007 Microsoft Office suite Service Pack 1 (SP1) can be installed successfully. However, the issue with the original invalid drive still exists. Additionally, this issue may recur when you apply future 2007 Office updates.

believe me or not, it can be even the newest porn film from your “under-bed” collection :) :) :)

Tags:

Wednesday, August 13th, 2008 Tips, office, office system, windows No Comments

HP LaserJet 1020 series spooler.exe problem

I have a common problem with users who has HP LaserJet 1020/1022 series. They have problem with commonly hanging up spooler service. I found some clues at hp business forum but nothing with working solution.

The problem looks like:

Faulting application spoolsv.exe, version 5.1.2600.2696, faulting module ZSR.DLL, version 6.20.1625.0, fault address 0×0001f979.

You  can find a solution working for a while like MS KB324757. But I found almost same, working, and for my users made a small batch file.

Just make a file clean_spooler.bat and insert there:

net stop “spooler”
del /S /Q c:\windows\system32\Spool\Printers\*
net start “spooler”

and tell users to use it every time they has problems with damaged driver!

Tags: , , , ,

Tuesday, August 12th, 2008 Tips, windows 2 Comments

uninstall BitDefender - horrible

I’m testing some antivirus software (to compare performance and quality), first was BitDefender. I read some tests, and it has very good ranks. In my opinion it has some problems with windows xp sp3, but, now I noticed another problem.

I uninstalled (with add/remove programs) whole BitDefender (restarted my machine), and tried to install ESET NOD32. But NOD found that I have BitDefender installed, why?

First - registry…
deleted keys:

HKEY_CURRENT_USER\Software\BitDefender
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\BitDefender 2008
in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache
C:\Program Files\BitDefender\BitDefender 2008\bdagent.exe
C:\Program Files\BitDefender\BitDefender 2008\IEShow.exe
C:\Program Files\BitDefender\BitDefender 2008\seccenter.exe
and
HKEY_LOCAL_MACHINE\SOFTWARE\BitDefender

It worked :)

Tags:

Thursday, August 7th, 2008 Security, Tips, windows No Comments

resize ntfs partition for free

I looked up for a tool to resize ntfs partition (bootable one)… And found some easy in use (but looks very similar) tool - EASEUS Partition Manager Home Edition 1.6.4. It really works :)

Tags:

Tuesday, August 5th, 2008 Tips, windows No Comments

openvpn force tun/tap number

I made some vpn tunnels, but by default interface number is taken form successfull connect sequence. If you would like to set it up in config file instead of:

dev tun

use:

dev tun0

Tags:

Tuesday, August 5th, 2008 Linux, Tips No Comments

openvpn configuration, some problems with understanding certs

I have some problems with understanding the certs things… but I found rather clear howto at openvpn site:

Setting up your own Certificate Authority (CA) and generating certificates and keys for an OpenVPN server and multiple clients.

next tip, for much more security in openvpn is setting:

server side:

tls-auth /path/to/ta.key 0

client side:

tls-auth /path/to/ta.key 1

first you should generate this cert by:

openvpn –genkey –secret ta.key

and maybe changing the default blowfish alghoritm (128bit) with 256-bit AES by adding:

cipher AES-256-CBC

Tags: , , ,

Tuesday, August 5th, 2008 Linux, Security, Tips No Comments

niceshaper class file generator

Because I found rather impossible to write almost 100 entries into my class.ns file (form niceshaper 0.6), I did really easy oneliner to to this :)… proof of concept, but you can easly use it.

for i in `seq 10 100`; do echo -e “class download eth1 computer$i \n match dstip 192.168.2.$i \n htb prio 2 \nclass upload eth0 computer$i \n match srcip 192.168.2.$i \n htb prio 2 \n”; done >> class.nc

and the output simple output looks like this (one entry)

class download eth1 computer11
match dstip 192.168.2.11
htb prio 2
class upload eth0 computer11
match srcip 192.168.2.11
htb prio 2

you need explanation? OK…

seq x y - make sequential output from x to y, so if your IP class is from 22 to 38 change it to seq 22 38

everything else is based at number generated from seq so the computerXX identifier is same as its end of IP address, which for me is not a big problem, but there is no problem to take an entries form cat users.txt

Tags: , ,

Wednesday, June 18th, 2008 Linux, Tips, cribs 3 Comments

sync mount flag # UPDATED

I have an usb disk, quite quick, because it is WD MyBook… I mounted it with sync flag, because I want to have every data synced in case of power down or sth, but it was extremally slow!

# dd if=/root/plik of=/mnt/usb-disk/test.plik
1503+0 records in
1503+0 records out
769536 bytes (770 kB) copied, 20.2588 s, 38.0 kB/s

without sync flag:

# dd if=/root/plik of=/mnt/usb-disk/test.plik
3420160+0 records in
3420160+0 records out
1751121920 bytes (1.8 GB) copied, 59.4326 s, 29.5 MB/s

so i added a sync to the end of my backup script and it is really faster!

— UPDATE :)

OK… because I was not exact in my tests… and it was quite unprofessional…

two test files (to be sure that nothing has been cached in ram):

# dd if=/dev/urandom of=/root/file.test bs=1M count=200
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 61.2699 s, 3.4 MB/s

# dd if=/dev/urandom of=/root/file2.test bs=1M count=200
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 61.3002 s, 3.4 MB/s

one drive:

Vendor: WD Model: 7500AAC External

formated with ext3 FS,

TEST 1:
/dev/sde1 on /mnt/usb-disk type ext3 (rw)

mounted without sync flag… so the test will be:

# time dd if=/root/file.test of=/mnt/usb-disk/file1; sync
409600+0 records in
409600+0 records out
209715200 bytes (210 MB) copied, 4.13321 s, 50.7 MB/s

real 0m8.887s
user 0m0.184s
sys 0m3.536s

TEST 2:
/dev/sde1 on /mnt/usb-disk type ext3 (rw,sync)

now the test with sync flag
I know that it is quite not full… but I give up after 18 minutes…

# time dd if=/root/file2.test of=/mnt/usb-disk/file2
94360+0 records in
94360+0 records out
48312320 bytes (48 MB) copied, 1127.69 s, 42.8 kB/s

real 18m48.073s
user 0m0.000s
sys 0m0.192s

Tags:

Wednesday, June 18th, 2008 Tips, considers No Comments