Categoriearchief: Automatisering

Gentoo chroot in bestaande installatie


mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1=”(chroot) $PS1″

Kernel aanpassen

cd /usr/src/linux
make menuconfig

make && make modules_install
cp arch/x86/boot/bzImage /boot/kernel-2.6.27-r8   #for 32 bit
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.27-r8     #for 64 bit

Informatie hardware

System rescue CD om lokaal windows wachtwoord te wijzigen

System rescue CD om lokaal windows wachtwoord te wijzigen:

Optie 1: Boot met ntpass

Optie 2: Start met linux

ntfs-3g /dev/sda1 /mnt/windows

optie:  force  Force the mounting even if the NTFS logfile is unclean. The logfile will be unconditionally cleared. Use this option with caution and for your own responsibility.

cd /mnt/windows/Windows/System32/config

chntpw SAM

Om SAM te zoeken: find . -iname ‘sam*’ -prin

Tip, om bootable USB-key te maken:UNetbootin

Windows 7 keyboard shortcuts

Windows 7 keyboard shortcuts

Veel werken ook in Windows XP / Vista

Toetsencombinatie Functie
Windows Logo + Tab Met Aero-effect door open applicaties bladeren (alternatief voor Alt + Tab)
Windows Logo + E Start Windows Explorer
Windows Logo + R Start Run Command
Windows Logo + F Open zoekvenster
Windows Logo + X Open Mobility Center
Windows Logo + L Lock het systeem
Windows Logo + U Open Ease Of Access Center (toegankelijkheidsopties)
Windows Logo + P Kies uitvoerbron voor videobron(nen)
Windows Logo + T Wandel door geopende Super Taskbar-items
Windows Logo + 1 t/m 0 Open bijbehorend venster in de taakbalk (van links naar rechts)
Windows Logo + S Open One Note Screen Clipping Tool (vereist OneNote)
Windows Logo + M Minimaliseer alle geopende vensters
Windows Logo + D Toon het bureaublad
Windows Logo + Spatiebalk Bekijk het bureaublad
Windows Logo + Pijl Omhoog Maximaliseer het geopende venster
Windows Logo + Pijl Omlaag Minimaliseer het geopende venster/herstel vorig formaat
Windows Logo + Pijl Links Verplaats venster naar links en neem helft van het scherm in
Windows Logo + Pijl Rechts Verplaats venster naar rechts en neem helft van het scherm in
Windows Logo + Shift + Pijl Links Verplaats venster naar linkermonitor (vereist dualmonitor-setup)
Windows Logo + Shift + Pijl Rechts Verplaats venster naar rechtermonitor (vereist dualmonitor-setup)
Control + muisklik op vastgepind taskbar-icoon Wandel door geopende Aero Peek-previews
Control + Shift + muisklik op vastgepind taskbar-icoon Start een nieuw venster van de applicatie met administrator-rechten
Shift + muisklik op vastgepind taskbar-icoon Start een nieuw venster van de applicatie
Alt + Pijl Omhoog Ga een directory omhoog (werkt in Windows Explorer)
Alt + Pijl Links/Rechts Ga een stap Terug/Vooruit (werkt in Windows Explorer)


Handige portage (Gentoo commando’s)

Portage information query tool


portageq owners / [<filename>]



equery depends pkgspec

list all direct dependencies matching pkgspec

Voorbeeld forceren foute checksum ebuild

# ebuild –force /usr/portage/x11-misc/googleearth/googleearth-5.1.3506.3999_beta.ebuild manifest

Genereer nieuwe checksum

ebuild <naam>-<versie>.ebuild digest

Revdep Rebuild

# revdep-rebuild -i

Check op consistency

perl-cleaner all
emerge -uD world

eselect python set pythonXX
emerge –depclean


La File Fixer

# lafilefixer –justfixit

Outlook 2010 create rule when receiving “on behalf of”

When creating a rule to act on incoming messages in Outlook 2010 which are send ‘on behalf of’ the “from people or public group” option does not work. This option only checks the actual sender.

As workaround you can create a rule and let it check the ‘message header’. Check the ‘Internet headers’ in the message properties and use the ‘From’ field there, The format is something like “From: xxxx <xxxxx@xxxxx>”. Use this text in a rule “with specific words in the message header”

Thunderbird: Creating complex mails with inline images

If you create your HTML message in some other application, and insert it in the message by using Thunderbird’s Insert – HTML… dialog, then you can usually use that other application to add the moz-do-not-send attribute to each IMG tag. For example, the resulting tag might look like:

img src="" moz-do-not-send="true"


In an HTML-formatted message, you can send mail with a pointer to a picture rather than embedding the actual picture in the message. The advantage is that the message is much smaller. The disadvantage is that the picture is physically on another server; if the image is unavailable?now or in the future?your recipient will not see it. Some e-mail clients might also be configured to block remote images.

  1. In the Compose window, select “Insert -> Image”. The “Image Properties” dialog box will appear.
  2. Fill in the “Image Location” field with the URI of the picture. You can type it in if you know it, or you can paste it in. For example, in Firefox, right-click on the image and choose “Copy Image Location”. Then in Thunderbird right-click in the “Image Location” field to paste in the URI.
  3. Put some words in the “Alternate text:” field. If you do not, Thunderbird will refuse to send the message.
  4. Next, click on the “Advanced Edit” button. The “Advanced Property Editor” dialog will open.
  5. In the “Attribute:” field at the bottom, type moz-do-not-send.
  6. In the “Value:” field at the bottom, type true.
  7. Press the “OK” button to exit the “Advanced Property Editor” dialog and then press “OK” again to exit the “Image Properties” dialog.