boltblog

Fixing Windows Update errors

Posted on February 27, 2009

The ultimate .bat-file for completely resetting and fixing all sorts of stupid Windows Update errors

VMware Server and Windows Firewall

Posted on January 21, 2009

VMware server uses port 902/TCP for remote connections. It is easy enough to allow outside connections to this port through the Windows Firewall interface in the Control Panel.

However, if you want to do it the "Windows Way (TM)" the trick is to add "vmware-authd.exe", found in the VMware Server folder in your installation directory, to the list of allowed programs. Then, even if you change which port number VMware should use, the Windows Firewall will allow it.

Filed under: Reference, Windows No Comments

How to kill a process that uses too much CPU

Posted on October 23, 2008

Cleaning up my 'dump' directory, I found this aging script I got from somewhere, which will check the current CPU usage of a program and kill it if it uses too much. This is useful if you are for some reason forced to run buggy, closed source software which get stuck in endless loops when things go wrong. I've been there, it wasn't fun, but this thing solved it. Thank you, french christmas...




Norwegian Windows edition on suicide mission

Posted on October 23, 2008

So I downloaded this Debian netinstall image... and Windows went suicidal?

Filed under: Linux, Rants Continue reading

Fun with “beep”

Posted on October 22, 2008

At the end of my huge list of stuff I always install on a Debian box, I put a "beep" to let me know when it's done, because I will no doubt be doing something else, most likely on a different screen, when it's done.

Now, suppose you run a lot of processes you want to know when are done, it's nice to have separate, easily distinguishable sounds for each event. Of course you could do this by playing a short mp3 or something with mpg321 or mplayer if you have a sound card set up on that particular box, but even if you do, playing short tunes on the PC speaker is so much more geeky, and thus cool, since you've already proven yourself to be a geek by working on the linux box in the first place.

Beep has the ability to play a sound at any frequency your PC speaker can do, and with configurable length... do I hear music?

Filed under: Linux Continue reading

ssh: how to permit root login only from local network / ip

Posted on October 22, 2008

From version 4.3p2, sshd supports an interesting option called Match. At the time of writing, this is the version supplied with Debian Etch (stable).

Filed under: Howto's Continue reading

Disable .bash_history logging in bash, Debian

Posted on October 19, 2008

I hate the .bash_history file. It never contains what I want, screws up when using multiple sessions and generally contains junk. I like to disable the .bash_history file, while still keeping the ability to push the "up"-key to scroll through earlier commands in the same session.

The way to do this is to set $HISTFILE to /dev/null. Bash will now log all its history to a nice, black hole.

This can be done at the beginning of ~/.bashrc

...
HISTFILE=/dev/null
...

There. Now I wont forget.

Filed under: Reference 1 Comment

Encrypted swap in Debian

Posted on October 18, 2008

So, you got your home directory encryopted, but you're not sure what sensitive material could end up in swap? After a long day of running a whole lot of applications and processes, many interesting things could potentially wind up there. So here's how to make sure that data is completely garbled after a reboot.

Filed under: Howto's Continue reading

Vista file transfer estimates: WTF?

Posted on October 8, 2008

In Windows XP, it seemed like the estimated transfer time of files in a folder, when copying that folder from one place to another, was estimated purely based on the sum of the file sizes and the current transfer speed. It also seemed to have a preference for transferring the larger files first.

Filed under: Rants Continue reading

What separates a straight network cable from a crossover network cable

Posted on October 6, 2008

If you're connecting two machines with just a single network cable, like we did with parallell and serial cables back in the days, you've no doubt used a crossover cable. But why is this?