Hardware

Notebooks
http://thinkwiki.de/
http://en.wikipedia.org/wiki/HP_EliteBook

Test tools
http://code.google.com/p/inxi/ - a full featured system information script
http://www.advancedclustering.com/software/breakin.html - Breakin
http://www.hdt-project.org/ - Hardware Detection Tool
http://www.stresslinux.org - stresslinux
http://ezix.org/project/wiki/HardwareLiSter - Hardware Lister (lshw)
http://www.hitachigst.com/hdd/support/download.htm?linkto=QL#DFT - Hitachi Drive Fitness Test
http://www.memtest.org/ - Memtest86+ (Advanced Memory Diagnostic Tool)
http://memtest.org/download/beta/?C=M;O=D - memtest86+ beta version
http://pyropus.ca/software/memtester - memtester (userspace utility for testing the memory
http://www.nongnu.org/dmidecode/ - get BIOS informations
http://smartmontools.sourceforge.net/ - smartmontools (monitor hdd's using the SMART system built into the hard drive)
http://www.supermicro.com/support/faqs/faq.cfm?faq=8659 - Supermicro BIOS recovery procedure

Links
http://de.wikipedia.org/wiki/RJ-Steckverbindung - RJ Steckverbindung
http://pciids.sourceforge.net/ - The Linux PCI ID Repository
http://sispmctl.sourceforge.net/ - Silver Shield PM (Control for Linux)
CHDK - Open-Source extension for Canon cameras
http://www.ocforums.com/showthread.php?t=486495
http://domesdomain.de/blog/2008/01/13/howto-harmony-555-mit-ubuntu-konfigurieren/ - Configure Harmony 555 with Ubuntu
http://www.bohne-lang.de/spec/linux/modeline/ - Monitor modeline tool
http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html - Partition Size Larger than 2TB
http://www.thomas-krenn.com/de/wiki/IPMI_Passwort_zur%C3%BCcksetzen - IPMI password reset
http://www.thomas-krenn.com/de/wiki/Konsistenz_des_RAIDs_%C3%BCberpr%C3%BCfen - RAID Controller CLI (german)

Wake on lan
wakeonlan -i 192.168.2.255 00:11:22:33:44:55

Tegra2
http://www.elinux.org/Installation_Detail
http://forum.xbmc.org/showthread.php?t=71297

Apple TV2
http://support.firecore.com/entries/387605 - Jailbreaking 101 - Seas0nPass

Bios
PHLASH16.exe command line parameter

Stress
stress --cpu 8 --io 8 --vm 2 --vm-bytes 2048M --hdd 4 --timeout 3600s

Harddisk
# get reallocated count with smartctl
smartctl /dev/sda -a | grep Reallocated
http://www.schirmacher.de/display/INFO/Defekte+Festplatten+finden

LSI RAID controller
smartctl -a -d megaraid,0 /dev/sda

Calculate total writen GB from a disc (SSD)
apt-get install -y bc smartmontools --no-install-recommends
echo "Total GB written: $(echo "scale=3; $(sudo /usr/sbin/smartctl -A /dev/sda | grep "Total_LBAs_Written" | awk '{print $10}') * 512 / $((1024*1024*1024))" | bc)"

AMT (Intel vPro)
http://www.panticz.de/Intel-AMT-vPro-under-Linux
http://manpages.ubuntu.com/manpages/jaunty/man7/amt-howto.7.html

Change PIN from your mobile
**04**[OLD_PIN]*[NEW_PIN]*[NEW_PIN]#[ANSWER_KEY]

Bonnie++ (HDD perfomance check)
http://www.jamescoyle.net/how-to/599-benchmark-disk-io-with-dd-and-bonnie
bonnie++ -f -u root -d /mnt -r 4g -s 256g -n 512
cat bonnie.out.csv | bon_csv2html > bonnie.out.html

Bonnie++ results
160GB FUJITSU MHW2160B,4G,37442,77,37637,9,19241,4,45381,76,46092,6,139.7,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
160GB ST9160310AS,4G,45247,91,46763,11,23317,4,53899,89,52040,6,198.9,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++

fio (IO performance)
http://www.bluestop.org/fio/HOWTO.txt
http://www.thomas-krenn.com/de/wiki/Fio_Grundlagen
fio --rw=randrw --name=test --size=16M --bs=4k --direct=1 --numjobs=1024
fio --rw=readwrite --name=test --size=16M --direct=1 --bs=4k --numjobs=128 --group_reporting --runtime=10 --time_based | grep iops

Bios flash under Linux
http://www.coreboot.org/

cpufrequtils
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

badblocks
# read only
badblocks -wv /dev/sdb -b 4096

# write (destory all data)
badblocks -svw -b 512 -c 65536 /dev/sdb -o badblocks.out
badblocks -b 4096 -c 32768 -t ${PATTERN} -w -f ${DEVICE}

# mark sectors as unusable
fsck -l badblocks.out /dev/sdb

Intel GMA500 Poulsbo graphic chip (NOT working for me)
apt-get install -y wget build-essential linux-headers-$(uname -r)
wget http://gma500re.altervista.org/scripts/poulsbo_ppa.sh && sh ./poulsbo_ppa.sh

Intel GMA4500 black screen
sed -i 's|quiet splash|quiet splash nomodeset|g' /etc/default/grub
update-grub

lshw
# in case of issues with ACPI "-disable DMI"
lshw -short

Software RAID
cat /proc/mdstat
mdadm --misc --detail /dev/md0

Radeon
http://wiki.ubuntuusers.de/Grafikkarten/ati/radeon

Lantronix SLS Spider Remote KVM default login
user: sysadmin
pass: PASS

Mobistel Cynus T1
http://www.android-hilfe.de/thema/os-4-4-2-kitkat-fuer-cynus-t1-imo-s88-myphone-a898-portiert-kein-fake.643379/

FRITZ!Box firmware
# speed test
http://avm.de/nc/service/zack-der-speedtest-fuer-ihre-breitbandverbindung/
# iperf speed test
https:/192.168.178.1/support.lua
iperf -c 192.168.178.1 -p 4711 -t 60 -i 10
iperf.exe -c 192.168.178.1 -p 4712 -u -t 60 -i 10 -b 1000M

# fix 1h VPN timeout
CONNECTION=CON1
while true
do
[ "$(nmcli con show ${CONNECTION} | grep STATUS)" ] || nmcli con up id ${CONNECTION}
sleep 10
done

identify by serial number
# HP
http://h20564.www2.hpe.com/hpsc/wc/public/viewDetails?index=0

# Fujitsu
http://support.ts.fujitsu.com/IndexWarranty.asp?lng=COM

simple permomance tests

echo HOST: $(hostname -f)
echo CPU: $(cat /proc/cpuinfo  | grep "model name" | head -1 | cut -d":" -f2)
echo Cores: $(cat /proc/cpuinfo | grep processor | wc -l)
 
# cpu
openssl speed
time echo "scale=5000; 4*a(1)" | bc -l
 
# generate inventary
rm /tmp/hwlist.out
IFS=$(echo -en "\n\b")
for HOST in $(wget -q http://auth.example.com/agent/pawkon/accounts -O - | cut -d "@" -f2 | sort -u); do
    TYPE=$(ssh ${HOST} -o ConnectTimeout=3 dmesg | grep -i xen 1>/dev/null && echo XEN || echo PHY)
    DIST=$(ssh ${HOST} -o ConnectTimeout=3 lsb_release -cs 2> /dev/null)
    [ -z ${DIST} ] && DIST=$(ssh ${HOST} -o ConnectTimeout=3 cat /etc/apt/sources.list 2> /dev/null | grep main | head -1 | cut -d" " -f3)
    CORE=$(ssh ${HOST} -o ConnectTimeout=3 cat /proc/cpuinfo | grep processor | wc -l)
    CPU=$(ssh ${HOST} -o ConnectTimeout=3 cat /proc/cpuinfo | grep "model name" | head -1 | cut -d ":" -f2 | sed "s/[ ][ ]*/ /g")
    RAM=$(ssh ${HOST} -o ConnectTimeout=3 free -m | head -2 | tail -1 | sed "s/[ ][ ]*/ /g" | cut -d" " -f2)
    LOAD=$(ssh ${HOST} -o ConnectTimeout=3 cat /proc/loadavg | cut -d" " -f1,2,3 2> /dev/null)
 
    printf "%-51s: %-4s %-10s %-10s %-3s %-45s %s\n" ${HOST#*@} ${TYPE} ${DIST} "${RAM} MB" "${CORE} Cores" ${CPU} ${LOAD}| tee -a /tmp/hwlist.out
done
 
# hdd (with signature)
dd if=/dev/zero of=testfile bs=512 count=100000 oflag=direct | md5sum
dd if=/dev/zero of=testfile bs=512 count=100000 oflag=dsync | md5sum
dd if=/dev/zero of=testfile bs=1G count=4 oflag=direct | md5sum
dd if=/dev/zero of=testfile bs=1G count=4 oflag=dsync | md5sum

Memtest86 UEFI
https://www.memtest86.com/download.htm
https://liranv.github.io/post/booting-memtest86-uefi/

Printer
# HP LaserJet 1005
sudo apt-get install hplip
sudo hp-setup -i

Show CPU frequency

# get available governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
 
# get current governor
cat  /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
 
# set governor
echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
# show CPU frequency
watch -n 0.5 "cat /proc/cpuinfo | grep MHz"