Windows: Change the Volume Serial Number of a partition or volume

Hi,

for some migration scenarios it is nesseccary to set Volume Serial Number of a partition or volume. For example when you move  a license manager to a new hardware and the licenses are bound to the disk serial.
More »

Fritz!box: Einrichten für Internettelefonie der Telekom

Hallo,

die Telekom drängt Ihre Kunden immer mehr weg von den alten analogen bzw. ISDN basierten Telefondiensten hin zu den neuen auf dem Internet aufbauenden Anschlüssen, auch VoIP (Voice over IP) genannt.

Das einrichten mit den von der Telekom favorisierten Speedport Routern klappt meist ohne Probleme. Nicht jeder will aber die Leihgebühr von ca 5€ jedes Monat aufbringen bzw. man möchte einen bereits vorhanden VoIP fähigen Router verwenden.  Hier steht man erstmal vor der Hürde der manuellen Konfiguration des SIP Dienstes.

Für eine Fritz!box sind folgende Schritte notwendig:

  • Update auf die aktuelle Firmware Version, dadurch wird die Liste der Internettelefonieanbieter akualisiert.
  • Einrichten des DSL Zugangs
  • Einrichten der Internet Telefonie

More »

Windows: Writing a new MBR an a USB Drive to boot Windows PE

Hi,

booting operating systems, such as linux live systems or Windows PE based installations (Windows Vista,7,8),  from a USB Drive or Stick is a nice featured.

Unfortunately each writes it own boot code to the MBR (Master boot record). The boot code of Windows PE 2 and later  loads \BOOTMGR, linux is usually loaded with \syslinux.

Well known linux installers like TUXBOOT, the Universal-USB-Installer or UNetBootin do updating the MBR by installing the syslinux bootloader.

To get the  Windows PE MBR back without formating the stick, do the following steps.
More »

Linux: Automount Windows or Samba shares

Hi,

today I will explain how to easy it is to automatically mount a windows share on linux.

The following packages are necessary: autofs, cifs/samba client tools

In this example I use a debian linux system.

root@dev # apt-get install autofs cifs-utils

edit the auto.master file with your favorite editor:

root@dev # vi /etc/auto.master

add the following line

/media/cifs /etc/auto.cifs --ghost

  • /media/cifs – is the root directory where the mount points are created (this is not the mount point itself!), the directory must exist.
  • /etc/auto.cifs – the definition file of the mount points
  • --ghost This option will create the mount point permanently, even the share isn’t mounted (there are doubledashes before ghost:-))

Create a new file /etc/auto.cifs and add your share definition. In this example the Windows computer is mediaserver with the share multimedia$ (Note: you have to quote the $ character in auto.cifs file or you got  cifs_mount failed w/return code = -6). The share should be mounted as user michl which has UID 1000 and GID 1000. Insert the following line to /etc/auto.cifs:

root@dev # touch /etc/auto.cifs

root@dev # vi /etc/auto.cifs
More »

WordPress: prevent comment spam on wordpress

Hi,

on wordpress based websites comment spam is all around.

If you are hosting WordPress on a apache webserver there is a simple but effective way to refuse automatically created comment spam from bots:
Redirect all HTTP Post requests directed to the wordpress comment form (wp-comments-post.php) and which do not have a referer from your site or has an empty User-Agent string away from your site. For example to the bots localhost 🙂

The only requirement is the apache module mod_rewrite and a .htaccess file in the root folder of your blog.

If not exists, create a .htaccess file within the root directory of your blog, or add the following directive to an already existing .htaccess file. Replace “www.yourdomain.com” with the address of your website.
More »

Original Theme by Schiy · Powered by WordPress