sudo dd bs=4M if=/dev/sdb | gzip > ~/camelberry_image-`date +%d%m%y`.gz
sudo gzip -dc ~/camelberry_image-date.gz | dd bs=4M of=/dev/sdb
Como root:
apt-get install i2c-tools
echo "i2c-dev" >> /etc/modules
echo "dtparam=i2c1=on" >> /boot/config.txt
Comandos para luces:
alias leds_ir_on='sudo i2cset -y 1 0x70 0x09 0x0f;sudo i2cset -y 1 0x70 0x00 0xa5'
alias leds_white_on='sudo i2cset -y 1 0x70 0x09 0x0f;sudo i2cset -y 1 0x70 0x00 0x5a'
alias leds_off='sudo i2cset -y 1 0x70 0x00 0x00'
sudo modprobe bcm2835-v4l2 # o meter en /etc/modules
cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:12345}' :demux=264
#!/bin/bash
CURRENT=$(df /media/disk1 | grep / | awk '{ print $5}' | sed 's/%//g')
THRESHOLD=97
if [ "$CURRENT" -gt "$THRESHOLD" ] ; then
mail -s 'Disk Space Alert' [email protected] << EOF
The external disk partition remaining free space is critically low. Used: $CURRENT%
EOF
fi