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.

LSI / Broadcom MegaRAID Storcli

# install storcli (MegaCli)
# https://www.broadcom.com/products/storage/raid-controllers/megaraid-sas-9361-4i#downloads

apt install -y unzip
wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/007.0606.0000.0000_Unified_StorCLI.zip -qO /tmp/StorCLI.zip
unzip /tmp/StorCLI.zip -d /tmp/
unzip /tmp/MR_SAS_Unified_StorCLI_*.zip -d /tmp
unzip /tmp/versionChangeSet/univ_viva_cli_rel/Unified_storcli_all_os.zip -d /tmp/
dpkg -i /tmp/Unified_storcli_all_os/Ubuntu/storcli_*_all.deb
ln -s /opt/MegaRAID/storcli/storcli64 /usr/local/sbin/storcli

or

Build smartmontools

# install software to compile
apt-get update
apt-get install -y subversion build-essential automake

# get smartmontools from repository
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools

# compile
cd smartmontools
./autogen.sh
./configure
make
make install

Links
http://sourceforge.net/apps/trac/smartmontools/wiki/Download

Install Brother MFC-7320 on Ubuntu

Printer
wget https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.printer.sh -O - | sudo bash -

#!/bin/bash

# enable multiverse repository
cat < /etc/apt/sources.list.d/extra-repository.list
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) universe
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) multiverse
EOF
apt-get update -qq

# install printer driver
apt-get install -y brother-cups-wrapper-laser

# remove multiverse repository
rm /etc/apt/sources.list.d/extra-repository.list
apt-get update -qq

# create printer
lpadmin -p Brother-MFC-7320 -E -v usb://Brother/MFC-7320 -P /usr/share/ppd/Brother/MFC7220.ppd -o PageSize=A4

# FIXME: set resolution to 1200
# -o Resolution=1200x600dp
1

Scanner
!!! First POWER OFF your Brother MFC-7320 !!!
wget http://www.panticz.de/sites/default/files/scripts/install.brother-mfc-7320.scanner.sh -O - | sudo bash -


  

    

    Page not found | panticz.de
    







    









    
          
  
  


  
Page not found
The requested page could not be found.
1

!!! Now you can POWER ON your Brother MFC-7320 again !!!
Go Applications > Graphics > Simple Scan

Fax
not tested yet, see: http://wiki.ubuntuusers.de/Brother/Fax

Links
http://wiki.ubuntuusers.de/Brother/Drucker
http://wiki.ubuntuusers.de/Brother/Scanner
http://wiki.ubuntuusers.de/Brother/Fax
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-7320
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html

IPMI

apt-add-repository universe
apt install freeipmi-tools ipmitool
ipmi-sensors

Install ipmitool (IPMI command line client)
wget https://raw.githubusercontent.com/panticz/installit/master/install.ipmitool.sh -O - | bash -

#!/bin/bash

apt-get install -y ipmitool

cat <<EOF>> /etc/modules
ipmi_devintf
ipmi_msghandler
ipmi_poweroff
ipmi_si
ipmi_watchdog
EOF

Configure BMC to DHCP
apt install -y ipmitool
# show BMC interface informations
ipmitool lan print

# set dhcp IP
ipmitool lan set 1 ipsrc dhcp

# set static IP
ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 10.0.1.11
ipmitool lan set 1 netmask_address 255.255.255.0
ipmitool lan set 1 defgw ipaddr 10.0.1.252

# dep: supermicro tool
ipmicfg -dhcp off
ipmicfg -dhcp on
ipmicfg -m

UID identificator
BMC_IP=10.0.1.123
BMC_USER=ADMIN
BMC_PASS=ADMIN

# enable UID light
ipmitool -H ${BMC_IP} -U ${BMC_USER} -P ${BMC_PASS} raw 0x30 0x0d

# disable UID light
ipmitool -H ${BMC_IP} -U ${BMC_USER} -P ${BMC_PASS} raw 0x30 0x0e

configure bmc user
NEW_BMC_USER=devops
NEW_BMC_PASS=pass1234
ipmitool -H ${BMC_IP} -U ${BMC_USER} -P ${BMC_PASS} user set name 2 ${NEW_BMC_USER}
ipmitool -H ${BMC_IP} -U ${NEW_BMC_USER} -P ${BMC_PASS} user set password 2 ${NEW_BMC_PASS}

view sensors readings
ipmitool sdr

# howto
ipmitool mc reset cold -I lan -H ${IP} -U ADMIN -P ADMIN
ipmitool power reset -I lan -H ${IP} -U ADMIN -P ADMIN

# power on / off
ipmitool -I lanplus -H SERVER_IP -U ADMIN -P ADMIN power on
ipmitool -I lanplus -H SERVER_IP -U ADMIN -P ADMIN power off
ipmitool -I lanplus -H SERVER_IP -U ADMIN -P ADMIN power reset

# get IPMI IP
IPMI_IP=$(ipmitool lan print | grep "IP Address" | grep -v Source | cut -d":" -f2)

Posts
22 (TCP) SMASH
80 (TCP) HTTP (unsecure Webinterface)
443 (TCP) HTTPS (secure Webinterface)
623 (UDP) IPMI
2937 (TCP) KVM console
5900 (TCP) remote console (KVM over IP, on webinterface)
5901 (TCP) Video (remote console)
5120 (TCP) CD (remote console)
5123 (TCP) Floppy (remote console)
8889 (TCP) WS-MAN

Configure User
https://docs.oracle.com/en/database/oracle/oracle-database/18/cwlin/example-of-bmc-configuration-using-ipmitool.html#GUID-11E563E0-3688-4FE9-8440-81402A7AC23A
https://www.thomas-krenn.com/de/wiki/IPMI_Konfiguration_unter_Linux_mittels_ipmitool
https://www.thomas-krenn.com/de/wiki/IPMI_Konfiguration_unter_Linux_mittels_ipmitool

# test
ipmitool -I lanplus -H 192.168.1.100 -U ADMIN -P ADMIN sdr
ipmitool -I lan -H 192.168.1.100 -U ADMIN -P ADMIN sdr

Power consumption
sudo apt install -y freeipmi-tools
ipmi-dcmi --get-system-power-statistics

Links
http://www.thomas-krenn.com/de/wiki/Netzwerk_Ports_Supermicro_Remote_Management_%28IPMI,_KVM_over_IP%29_f%C3%BCr_Firewall_Konfiguration - Supermicro IPMI / KVM Ports
http://buttersideup.com/docs/howto/IPMI_on_Debian.html
https://www.thomas-krenn.com/de/wiki/IPMI_Sensor_Monitoring_Plugin
http://www.thomas-krenn.com/de/wiki/IPMI_Passwort_zur%C3%BCcksetzen
ftp://ftp.supermicro.com/utility/IPMICFG/Linux/

Logitech QuckCam Webcam on OpenWrt

install
opkg install kmod-usb-core kmod-usb2 kmod-video-core kmod-video-gspca-core kmod-video-gspca-zc3xx motion

configure
sed -i 's|output_normal on|output_normal off|g' /etc/motion.conf
sed -i 's|webcam_localhost on|webcam_localhost off|g' /etc/motion.conf

start
motion

view
http://YOUR_OPENWRT_IP:8081

OPTINAL: anable acces from outside
iptables -A input_wan -p tcp --dport 8081 -j ACCEPT

links
http://eko.one.pl/index.php?p=openwrt-webcam

APC Back-UPS ES 700G under Ubuntu

# install
apt-get install -y apcupsd

# configure
sed -i 's|UPSCABLE smart|UPSCABLE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|UPSTYPE apcsmart|UPSTYPE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|DEVICE /dev/ttyS0|DEVICE|g' /etc/apcupsd/apcupsd.conf
sed -i 's|ISCONFIGURED=no|ISCONFIGURED=yes|g' /etc/default/apcupsd

# start apcupsd demon
/etc/init.d/apcupsd start

# get status
apcaccess status

# configure
/etc/init.d/apcupsd stop
apctest

# monitor
tail -f /var/log/apcupsd.events

# OPTIONAL: configure /etc/apcupsd/apccontrol

# LINKS

Syndicate content