Update Mellanox firmware under Ubuntu

Install
boot from Ubuntu Live CD

wget http://www.mellanox.com/downloads/MFT/mft-3.1.0-8.tgz -P /tmp
tar xzf /tmp/mft-*.tgz -C /tmp

apt-get update
apt-get install -y rpm2cpio

# compile kernel module
cd /tmp
rpm2cpio /tmp/mft-*/SRPMS/kernel-mft-*.src.rpm | cpio -i --make-directories
tar xzf /tmp/kernel-mft-*.tgz -C /tmp/
cd /tmp/kernel-mft-*
apt-get install -y linux-headers-$(uname -r)
apt-get install -y make
apt-get install gcc -y --no-install-recommends
make
mkdir /lib/modules/$(uname -r)/kernel/drivers/mft/

Linpack under Ubuntu / Linux

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.linpack.sh";
echo "wget -q --no-check-certificate $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

# get CPU info
CPU=$(cat /proc/cpuinfo | grep "model name" | tail -1)
COUNT=$(cat /proc/cpuinfo | grep processor | wc -l)
echo "CPU : $CPU"
echo "COUNT : $COUNT"

# OPTIONAL: configure parameter
# export MKL_DYNAMIC=false
# export OMP_NUM_THREADS=4

# run
runme_xeon64

Links
http://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download - Intel LINPACK Download
http://www.roylongbottom.org.uk/linpack%20results.htm

Pogoplug: Debian extra programs

# configure hostname
echo hs > /etc/hostname

# congigure network
mv /etc/network/interfaces /etc/network/interfaces.org
cat < /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.254
dns-nameservers 192.168.2.254
dns-search panticz
EOF

# configure dns
cat < /etc/resolv.conf
search panticz
nameserver 192.168.2.254
EOF

# install dhcp server
apt-get install -y dhcp3-server
mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd

Install dvdbackup under OpenELEC

mkdir /tmp/deb

URL=http://ubuntu.mirror.cambrium.nl/ubuntu//pool/universe/d/dvdbackup/dvdb…
wget ${URL} -O /tmp/dvdbackup_amd64.deb
dpkg -x /tmp/dvdbackup_amd64.deb /tmp/deb
scp /tmp/deb/usr/bin/dvdbackup root@openelec:/storage/dvdbackup

URL=http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_amd6…
wget ${URL} -O /tmp/libdvdcss2_amd64.deb
dpkg -x /tmp/libdvdcss2_amd64.deb /tmp/deb
scp /tmp/deb/usr/lib/libdvdcss.so.2.1.0 root@openelec:/storage/libdvdcss.so.2

Pogoplug: Install Debian

Install Debian
# connect to PogoPlug
ssh root@192.168.2.155
ceadmin

# prepare USB flash (1GB root, 256MB swap)
printf "o\nn\np\n1\n\n+1G\nn\np\n2\n\n+256M\nt\n2\n82\nw\n" | fdisk /dev/sda

# download and execute debian installation script
cd /tmp
wget http://projects.doozan.com/debian/dockstar.debian-squeeze.sh
chmod +x dockstar.debian-squeeze.sh
export PATH=$PATH:/usr/sbin:/sbin
./dockstar.debian-squeeze.sh
ok

# login to new debian intallation
ssh root@192.168.1.X
pass: root

# change root password
passwd

Configure netconsole

Debian: Fix Squeeze ixgbe kernel module for Intel 10 Gigabit NIC

# download fixed ixgbe module
mkdir /tmp/ixgbe
cd /tmp/ixgbe
wget http://debian.tk-dns.de/dists/stable/tks/binary-amd64/intel/ixgbe-2.6.32-5_3.9.15_amd64.deb
dpkg-deb -x ixgbe-2.6.32-5_3.9.15_amd64.deb .

# extract initrd
mkdir /tmp/new
cd /tmp/new
gunzip < /var/lib/tftpboot/debian/squeeze/amd64/initrd.gz | cpio -i --make-directories

# replace ixgbe module
cp /tmp/initrd/lib/modules/2.6.32-5-amd64/kernel/drivers/net/ixgbe/ixgbe.ko lib/modules/2.6.32-5-amd64/kernel/drivers/net/ixgbe/ixgbe.ko

# compress initrd
find ./ | cpio -H newc -o > ../initrd
gzip ../initrd

# replace in