LVM Reference

/

There are already some LVM tutorials out there and I don’t want to write another one. Most of the time you just need a reference for the most common commands. create Physical Volume (PV) pvcreate /dev/sdb Volume Group (LV) vgcreate vg_data /dev/sdb Logical Volume (LV) lvcreate –L 10G –n lv_data01 vg_data mkfs.ext3 /dev/vg_data/lv_data01 mount /dev/vg_data/lv_data01 Read More

Tanita BC-601 Scale Script

/

I own a body scale called Tanita BC-601. Everyt ime I step on it all the data will be written to an SD card and they include a pretty pretty bad Windows software to analyze the data. Besides the quality. Who wants to boot Windows just to read that data… There is one file for Read More

Fritzbox: fetch data with a bash script

/

Fritzbox is a popular router with many great features. Today I want share a script that allows you to extract some information without using the web interface. Many thanks to home.debian-hell.org. This post inspred me to look into this topic and I reused the connection part. #!/bin/bash _FBOX=”https://$1″ _HTTP_USERNAME=”$2″ _HTTP_PASSWORD=”$3″ _USERNAME=”” _PASSWORD=”” _EXPORT_PASSWORD=”foobar” echo “Fritzbox URL: Read More

Bash: Telephone number reverse search

/

You want to know who called you? Here is a small bash function that helps you. Add this to your .bashrc function numsearch { curl -s -k “http://www.dastelefonbuch.de/?kw=$1&s=a20000&cmd=search&ort_ok=0&sp=3&vert_ok=0&aktion=23” | grep -e ‘$id=’ -e ‘na=’ | cut -d “&” -f 5-9 | sed -e ‘s/na=//’ -e ‘s/&st=/, /’ -e ‘s/&hn=/ /’ -e ‘s/&pc=/, /’ -e ‘s/&ci=/ Read More

Microsoft: Windows Performance Analyzer

/

Windows Performance Analysis is sometimes needed. Let me show you a tools that could help you. You know the probably the TaskManager, perfmon.exe and ProcessExplorer.exe Another tool that is not so well known is WPA (Windows Performance Analyzer). In Windows 7 this tool was called xperf You need to install the Windows Performance Toolkit from Read More

Mac OS settings

/

Some settings can only be changed with the GUI. There are already some sites which are listing a lot of them. Here is another collection from useful commands that I’ve collected Mac OS X # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 # Disable Read More

Linux: Kickstart Installation

/

When you installed your fist CentOS host you will probably know that the detailed package selection can take a some time. In my test lab I want to make the installation as easy as possible. In a production environment servers should be as standardized as possible. Simple solution. Use one kickstart file for one host. Read More

MDT 2012: Custom Partition Configuration

/

In the task sequence you can specify how do you want to size your disks. In the test lab that is usually ok, because I thin provision most disk anyway. On some of the test client I still wanted that extra performance. But to save space I’ve created smaller disks. Result: Task sequence fails due Read More

Active Directory: User Info

/

If you need some information from a user account you can use this script. user_info.ps1 #create table $tabName = “users” $table = New-Object system.Data.DataTable “$tabName” #create columns $name = New-Object system.Data.DataColumn name,([string]) $title = New-Object system.Data.DataColumn title,([string]) $department = New-Object system.Data.DataColumn department,([string]) $company = New-Object system.Data.DataColumn company,([string]) $telephonenumber = New-Object system.Data.DataColumn telephonenumber,([string]) $mobile = New-Object Read More

Software: clusterssh

/

Just a short software hint. In case you have some linux servers and you need to do execute the same commands on all of them. puppet is ok, but not if you just want do run only one commaned on 20 hosts. rdist, dsh, … can help you, but I was searching for something different Read More