Install thttpd
apt-get install thttpd
sed -i 's|ENABLED=no|ENABLED=yes|g' /etc/default/thttpd
/etc/init.d/thttpd restart
apt-get install thttpd
sed -i 's|ENABLED=no|ENABLED=yes|g' /etc/default/thttpd
/etc/init.d/thttpd restart
# 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
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
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
<?php
$URL="http://www.panticz.de/sites/default/files/magento/404/magento-fix-404-on-language-change.diff";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
<?php
$URL="http://www.panticz.de/sites/default/files/magento/sitemap/mkSitemapImages.php";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
<?php
$URL="http://installit.googlecode.com/hg/install.glusterfs-server.sh";
echo "wget -q $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
# 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
<?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 / 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