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

Crosscompile OpenWRT

<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/scripts/compile_openwrt_ar9132.sh";
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 "

";
?>

Compile for x86
sudo apt-get install -y --force-yes subversion libncurses5-dev libghc6-zlib-dev flex build-essential
cd /tmp
svn checkout svn://svn.openwrt.org/openwrt/trunk
make menuconfig

Links
http://wiki.openwrt.org/doc/howto/build
http://wiki.openwrt.org/doc/devel/crosscompile
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://www.ffnn.nl/pages/articles/linux/cgi-scripting-tips-for-bash-or-sh.php

LSI MegaRAID 9240-4i / 9260-4i perfomance

LSI MegaRAID 9240-4i / TOSHIBA MK1001TRKB SAS 1TB
1x HDD RAID0
write ? MB/s
read ? MB/s
2x HDD RAID1
write ? MB/s
read ? MB/s
4x HDD RAID5
write ~28 MB/s
read ? MB/s
4x HDD RAID10
write 300 MB/s
read ? MB/s

LSI MegaRAID 9260-4i / TOSHIBA MK1001TRKB SAS 1TB
1x HDD RAID0
write 145 MB/s
read 147 MB/s
2x HDD RAID1
write 145 MB/s
read 160 MB/s
4x HDD RAID5
write ~18 MB/s
read 430 MB/s
4x HDD RAID10

USB Serial adapter (Digitus DA-70156 USB Seriell Adapter USB 2.0)

# lsusb
Bus 006 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

# create udev roule
cat << EOF | sudo tee /etc/udev/rules.d/70-usb-serial.rules
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666"
EOF

# connect to serial port
screen /dev/ttyUSB0 115200

# buy on Amazon
http://www.amazon.de/gp/product/B0030IT780/ref=as_li_ss_tl?ie=UTF8&camp=1638&creative=19454&creativeASIN=B0030IT780&linkCode=as2&tag=wwwpanticzde-21

Brother MFC 7320

Install printer
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.printer.sh";
echo "wget $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 "

";
?>

Install scanner
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.scanner.sh";
echo "wget $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 "

";
?>

Create thumbnail with ImageMagic

# rename JPG to jpg
for i in *.JPG; do
mv $i "${i%.JPG}.jpg"
done

# create thumbnails
for i in *.jpg; do
convert $i -pointsize 72 -quality 90 -resize 600x800 -unsharp 0x.5 ${i/.jpg/_tmb.jpg}
done

# create thumbnails from pdf
for i in *.pdf; do
convert $i -pointsize 72 -quality 90 -resize 140x200 -unsharp 0x.5 ${i/.pdf/_tmb.jpg}
done

# convert jpg to pdf
mkdir pdf
for i in *.jpg; do
convert $i -quality 70 -density 72x72 -sharpen "0x1" -page A4 pdf/${i/.jpg/.pdf}
done

# Links
http://www.imagemagick.org/Usage/thumbnails/

Yamaha RX-V3800 / RX-V3900 AV-Receiver

Install and configure DLNA server for Yamaha RX-V3800
# install MiniDLNA
http://www.panticz.de/Install-MiniDLNA

# configure MiniDLNA for Yamaha PC/MCX player
sed -i 's|#notify_interval=895|notify_interval=86400|g' /etc/minidlna.conf

lyc
http://www.panticz.de/lyc

wlyc
http://www.panticz.de/wlyc

wlyc for Yamaha RX-V3900
https://github.com/panticz/wlyc/blob/master/wlyc3900.html
http://dl.panticz.de/wlyc/wlyc3900.html

Comparison Chart: Yamaha RX-Z7 vs. RX-V3900 vs. RX-V3800