Ebook on git

Posted by coldtobi | 29 Oct, 2009, 22:29

git is a quite complex version control system, which is very powerful but hard for starters.

I use it SCMs for at least 8 years now, starting with CVS at the university for my thesis, and in professional context with the propieraty MKS for 5 years.  But git is still different, and going beyond basics is not trivial. Therefore I am currently looking for a ebook on git, to deepen my knowledge on it.

I found  two:

The git community book explains everything, but is still hard. 

But I just realized, that there is a ebook in debian's repository, which is quite nice to read: the debian package is "gitmagic" and can be downloaded also here, including some translations.


Blog and Website | Comments (0) | Trackbacks (0)

Using USB Devices in a VirtualBox Guest (Linux Host)

Posted by coldtobi | 15 Oct, 2009, 22:52

If you cannot access USB devices from within your virtual box, you should check these points:


Linux / Debian | Comments (2) | Trackbacks (0)

Compacting a Virtualbox image

Posted by coldtobi | 11 Oct, 2009, 20:06

My Laptop is on the move: I finally decided to reinstall it as a consequence from a self-inflicted filesystem crash. But this is also a good chance to switch filesystems. This was also already on my list for some time.

While coping all data to a safe place, I tried to figure out how to compact the Virtual Box image I use once in a while -- as its containing XP guest bloated during its lifetime. So when doing the autumn cleanup, why I shouldnt also try to clean up that to?

Disclaimer: The instructions are conserving space very aggressivly. You should not follow them if you are unsure what you are doing.  Repeat: No safety pins attached! It may explode right into your face! You did backup, right?

With some help of google, here are the instructions to shrink a vdi, the image containing the guest Windows XP:

1. Merge all snapshots (optional, but for best results you should do it).Note: Click the topmost "parent" snapshot and use "discard snapshot" to actually merge all together.....)

2. Start the Guest XP and clean it up:

  • Remove all unused programs.
  • To see space-hogs, use a tool like WinDirStat. If you see that there are programms you need seldom but takes lots of space, consider "compressing" it (Can be enabled on the files property dialog, "advanced settings")
  • Remove all Service-Pack and Windows Update folder (In the Windows directory, something like $NTServicePackUninstall$ or $NTUninstallKB<number>) Check Google for detailed instructions. 
  • Empty the trash can
  • Disable suspend-2-disk (hibernate) and virtual memory
  • reboot the guest
  • Defrag the guests' drive. Do it twice.
  • Use nullfile (get it here) to fill unused sector with "easy to compress" zeros.
  • Turn on again virtual memory and hibernation support. 
  • Turn off the guest OS

Now, the vdi is ready to be compressed. 

Start a shell and execute this command to complete the operation:

VBoxManage modifyhd <path-to-your-VDI> compact
(for me its: VBoxManage modifyhd /home/tobi/.VirtualBox/VDI/WindowsXP.vdi compact)


Beware: This takes some time. So do not use it if you are in a hurry or on battery power ;-)

Blog and Website | Comments (0) | Trackbacks (0)

Thecus N2100: Testing kernels

Posted by coldtobi | 1 Jul, 2009, 23:40

Some time ago, I wrote how to test a kernel on the Thecus (here).

As I did not update the kernel for some time, I decided  to update to 2.6.30. As usual, I wanted to try it before flasing it permanently. To enforce this, I do not have the package "flash-kernel" installed. But unfortunatly, this time the testing method did not work or the kernel did not boot...


Linux / Debian, Thecus N2100 | Comments (1) | Trackbacks (0)

Solarpowerlog released

Posted by coldtobi | 16 Jun, 2009, 21:12

Yesterday I made my initial release for solarpowerlog. Solarpowerlog is an application designed to keep track about photovoltaic systems.

It is desigend as an framework to be as much extenbile as possible. 

Currently it does support to connect to sputnik engineering "Solarmax" Inverters over TCP/IP, but the framework is designed to be easily expanded to support other types of inverters too.

So here are some links for the interested:


solarpowerlog | Comments (1) | Trackbacks (0)

Libucommon for debian

Posted by coldtobi | 11 Jun, 2009, 22:00

During my recent programming on solarpowerlog, I discovered that  the Lib Common C++ seems to have some bugs, at least in the TCPStream class. (bugreport)

So I decided to check its supposed succeedor. But this one is not packged for debian.... (RFP pending)

Short stort: Here it is.


Blog and Website | Comments (0) | Trackbacks (0)

Mini trick: Don't show printers in samba shares

Posted by coldtobi | 19 May, 2009, 22:24

To help Windows understanding, that your local samba server does not support a printer, add to your smb.conf in the [global] section

    disable spoolss = yes

Reload samba, add it will vanish ;-)

Blog and Website | Comments (0) | Trackbacks (0)