sabato 16 maggio 2009

VNC screen scrambled

Many Apple servers out there are headless. That is particularly true for the ones before the advent of the Xserve with Intel processor.
And quite often, servers are managed remotely using software like the multitude of VNC server (GPL) or Apple Remote Desktop (commercial).

I personally choose Vine Server OSX Vnc to control a couple of Xserve. One with Panther server and the other one with Tiger server. This program has the advantage to handle international keyboard layout over the VNC server self contained in Tiger which can't.

I think I played around with Monitor Preferences because at some point logging into the VNC server presented a screen like this.


For some times I ended up quitting the VNC client and relaunching it again to get a comprehensible image. But that was very annoying.

So I did some internet searches and I found the solution to the problem removing the file
/Library/Preferences/com.apple.windowserver.plist
on the server side.

domenica 3 maggio 2009

NT Backup and .bks file (reloaded)

The Windows program NT Backup can use a file with the extension .bks that contains the list of files or group of files to be saved.
As a matter of fact you can also use this file to exclude some files you don't want to be included into the backup set.

The syntax of the .bks file is as follows

X:\
This entire drive will be backed up.
X:\Folder_name\
Files in this folder will be backed up.
X:\Folder_name\ /exclude
Files in this folder will be excluded.
X:\File_name.ext
This file will be backed up.
X:\File_name.ext /exclude
This file will be excluded.
SystemState
The System State will be backed up.
\\Server\Share\Folder\
These network files will be backed up.

This file is normally created and managed by the program itself and it seems to be the only way to obtain a properly formatted .bks.

In fact, the .bks file is a "special" UNICODE file without the Unicode header (0xFFFE).
If you manually edit this file i.e. with NOTEPAD, the standard text editor included since the first version of Windows, and save it as a Unicode you are ruined. The scheduled backup job stop working.
It is very handy indeed to be able to manage that file as you like with your favourite text editor.
As long as you do that you need to strip the first two bytes (0xFFFE) off the .bks.

A simple way is to use a hexadecimal file editor.

Below you'll find some links to a few Hex Editor programs

Windows
Hex Editor XVI32

Mac OS X
HexEdit

Linux
Midnight Commander