hardware

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Sonoff / ITEAD ESP8266

Flash ESPEasy with a FTDI adapter
sudo apt-get install -y unzip wget python-minimal python-serial
wget -q https://codeload.github.com/espressif/esptool/zip/master -qO /tmp/espressif.zip
unzip /tmp/espressif.zip -d /tmp

wget http://www.letscontrolit.com/downloads/ESPEasy_R147_RC8.zip -qO /tmp/ESPEasy_R147_RC8.zip
unzip /tmp/ESPEasy_R147_RC8.zip -d /tmp
/tmp/esptool-master/esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio --flash_size 1MB 0x0 /tmp/ESPEasy_R147_1024.bin

# Connect to temporary WiFi access point
SSID: ESP_0
pass: configesp

Brother MFC-1910W

Install printer
wget https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-1910w.sh -O - | bash -

#!/bin/bash

IP=192.168.1.4

# Install printer
wget -q http://download.brother.com/welcome/dlf101543/mfc1910wlpr-3.0.1-1.i386.deb -P /tmp
wget -q http://download.brother.com/welcome/dlf101542/mfc1910wcupswrapper-3.0.1-1.i386.deb -P /tmp
dpkg -i /tmp/mfc1910*.deb
lpadmin -p Brother-MFC-1910 -E -v socket://${IP}:9100  -P /usr/share/ppd/brother/brother-MFC1910W-cups-en.ppd -o PageSize=A4

# Install scanner
wget -q http://download.brother.com/welcome/dlf006645/brscan4-0.4.3-3.amd64.deb -P /tmp
dpkg -i /tmp/brscan4-0.4.3-3.amd64.deb
brsaneconfig4 -a name=MFC-1910W2 model=MFC-1910W ip=${IP}

Check for newer DEB packages
http://support.brother.com/g/b/downloadlist.aspx?c=as_ot&lang=en&prod=mfc1910w_eu_as&os=128

LSI sas2lash

LSI sas2lash

sas2flash.efi -o –sasadd 50030390040e7a10
sas2flash -o –sasadd 50030390040e7a10
sas2flash -o -listsasadd

sas2flash -o -e 7 -c 0
sas2flash -f 9207-8e.bin -c 0
sas2flash -b mptsas2.rom -c 0

# create UEFI disc
http://www.panticz.de/Create-UEFI-disc

http://www.supermicro.com/support/faqs/faq.cfm?faq=19429
http://blog.widodh.nl/2014/10/flash-lsi-2308-to-it-mode-on-a-supermicro-x10sl7-f-mainboard/
http://www.lsi.com/sep/Documents/oracle/files/SAS2_Flash_Utility_Software_Ref_Guide.pdf

Ubuntu: Ericsson H5321gw / F5521gw mini PCI-e WWAN / UMTS card

Ericsson H5321gw (Thinkpad T530)
# lsusb | grep Ericsson
Bus 003 Device 004: ID 0bdb:1926 Ericsson Business Mobile Networks BV

# fix kernel driver
echo "/etc/modprobe.d/avoid-mbib.conf" > options cdc_ncm prefer_mbim=N

cat < /etc/udev/rules.d/99-mbm.rules
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926",
ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926",
ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"
EOF

# force USB modem to only connect via EDGE and not 3G?

ThinkPad

Lenovo ThinkPad L512
http://thinkwiki.de/L512

Lenovo ThinkPad L520
http://thinkwiki.de/L520

# ThinkVantage button
http://www.thinkwiki.org/wiki/ThinkPad_Button
http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work
http://www.thinkwiki.org/wiki/Installing_Ubuntu_11.04_%28Natty_Narwhal%29_on_a_ThinkPad_X220
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
156 XF86Launch1
# start calc
gsettings set org.gnome.settings-daemon.plugins.media-keys calculator 'Launch1'

thinkfan
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/installit/master/hardware/install.thinkfan.sh -O - | bash -

#!/bin/bash

# install
sudo apt-get install -y thinkfan

# configure kernel module
echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkpad_acpi.conf

# reload kernel module
sudo modprobe -r thinkpad_acpi && sudo modprobe thinkpad_acpi

sudo sed -i 's|START=no|START=yes|' /etc/default/thinkfan
sudo sed -i 's|DAEMON_ARGS="-q"|DAEMON_ARGS="-q -b 1 -s 15"|' /etc/default/thinkfan

cat <<EOF | sudo tee -a /etc/thinkfan.conf
hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input
(0,	0,	65)
(1,	65,	70)
(2,	70,	75)
(3,	75,	80)
(4,	80,	85)
(5,	85,	90)
(7,	90,	32767)
EOF

# start on Ubuntu Vivid
if [ $(lsb_release -rs | tr -d ".") -ge 1504 ]; then
    sed -i '$i /etc/init.d/thinkfan restart' /etc/rc.local
fi

# OPTIONAL: install lm-sensors to monitor temperatures
apt-get install -y lm-sensors

# manually set fan speed
echo level 0 | sudo tee -a /proc/acpi/ibm/fan

# read current fan settings
cat /proc/acpi/ibm/fan

# GNOME Sensors Applet
sudo apt-get install sensors-applet

# Links
http://thinkwiki.de/Thinkfan
http://zmalltalker.com/zlog/thinkfan.html
http://www.thinkwiki.org/wiki/Thermal_Sensors
http://www.thinkwiki.org/wiki/How_to_control_fan_speed
https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon#WWAN_.28Mobile_broadband.29

IO performance benchmark script

Install
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/scripts/master/fio.sh -O - | bash -

#!/bin/bash

OUT=/tmp/fio.out

# install fio
sudo apt-get install -y fio

# clear
[ -f ${OUT} ] && rm ${OUT}

# run fio benchmark
for SIZE in 4 8 16; do
    for BS in 4 16 64; do
        for JOBS in 128 254 512; do
            for TIME in 60 120 240; do
                RESULT=$(fio --rw=readwrite --name=test --direct=1 --group_reporting --time_based --size=${SIZE}M --bs=${BS}k --numjobs=${JOBS} --runtime=${TIME} | grep iops | cut -d "=" -f4 | cut -d "," -f1)
                echo "${SIZE}M,${BS}K,${JOBS}x,${TIME}s,$(echo ${RESULT} | tr ' ', ',')" | tee -a ${OUT}
            done
        done
    done
done

ZyXEL NSA320

enable telnet
login as admin
http://192.168.2.127/r38571,/adv,/cgi-bin/remote_help-cgi?type=backdoor
telnet 192.168.2.127
root
YOUR_PASS

USB TTL to NSA-320
http://dl.panticz.de/hardware/zyxel_nsa320/nsa320_usb_ttl.jpg

install ssh
wget ftp://ftp.zyxel-tech.de/2.new_mirror/NSA310/4.40/zypkg/web_prefix -O /i-data/d154583a/admin/zy-pkgs/web_prefix
# firmware / package / reload
# install ffp
/i-data/d154583a/admin/zy-pkgs/ffp/ffp.log

#
# NEW
#

Syndicate content