auth otp sur proxmox
si probleme d’auth : editer /etc/pve/domains.cfg et commenter la ligne tfa type=oath
si probleme d’auth : editer /etc/pve/domains.cfg et commenter la ligne tfa type=oath
1 2 |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 |
installation fhem
1 2 3 4 5 6 7 |
wget http://fhem.de/fhem-5.5.deb apt-get install libwww-perl libdevice-serialport-perl apt-get -f install dpkg - i fhem-5.5.deb |
modification du fichier /opt/fhem/fhem.cfg
Suite à une mise a jour d’openmediavault j’ai perdu l’ipv6. faut éditer : /etc/sysctl.d/99-openmediavault.conf et mettre à 0 ou commenter la ligne avec un # net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 0
1 2 3 4 5 6 7 8 |
apt-get install build-essential dos2unix libsnmp-dev apt-get install rrdtool snmp snmpd binutils gcc cpp autoconf automake libtool php5-cli php5-gd php5-curl cd /var/www wget http://www.cacti.net/downloads/cacti-0.8.8b.tar.gz tar xvf cacti-0.8.8b.tar.gz mv cacti-0.8.8b cacti rm cacti-0.8.8b.tar.gz |
1 2 3 4 5 6 7 8 9 10 11 |
mysql -p mysql> create database cacti; mysql> grant all privileges on cacti.* to 'cacti'@'localhost' identified by '********'; mysql> quit cd cacti mysql -u cacti -p -D cacti < cacti.sql cd include vi config.php |
1 2 3 4 |
vi /etc/cron.d/cacti y mettre ceci : */5 * * * * root /usr/bin/php -q /var/www/poller.php >> /var/log/poller.log 2>&1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
installation spine wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8b.tar.gz tar -xvf cacti-spine-0.8.8b.tar.gz cd cacti-spine-0.8.8b ./bootstrap ./configure make make install cp /usr/local/spine/etc/spine.conf.dist /usr/local/spine/etc/spine.conf vi /usr/local/spine/etc/spine.conf paramétrer cacti |
Comme à chaque installation, impossible d’uploader le code sur l’arduino. Modifier le fichier hardware/arduino/boards.txt diecimila.upload.protocol=stk500 a la place de arduino nano328.upload.protocol=stk500
soit prendre le deb et l’installer : http://repository.pi3g.com/debian/pool/main/r/rtl8188eu/rtl8188eu_348-2_armhf.deb soir lire ceci : http://blog.pi3g.com/2013/10/easy-tp-link-tl-wn725-driver-installation/
Voila, après écriture de l’image raspbian avec w32diskimager, mis sur une tele avec un clavier usb : raspi-config
1 2 3 4 5 6 7 8 9 |
1 expand filesystem 2 change user password (attention clavier qwerty) 4 internationalisation options I1 Change locale ( fr_FR.UTF-8 UTF8) mis en default I2 Change Timezone ( Europe / Paris) I3 Change keybord layout (generic 105-key, other French, French, default, no compose key, no) 8 Advanced Options A4 SSH (Enable) |
Finish et reboot now Je recupere l’ip et je me connecte en ssh Ensuite une p’tite maj et installation de vim… Continuer la lecture
Changement d’interface pour ma télécommande des volets de onewire vers i2c. Cliquer pour agrandir voici le script python qui va avec :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
#! /usr/bin/python import smbus import sys import getopt import time bus = smbus.SMBus(0) # For revision 1 Raspberry Pi, change to bus = smbus.SMBus(1) for revision 2. address = 0x38 # I2C address of PCF8574A tempo = 0.01 def usage(): print 'Usage:volet.py -o <output> -s <low|high>' def main(): try: opts, args = getopt.getopt(sys.argv[1:],"ho:s:",["output=","state="]) if not opts: usage() sys.exit(2) except getopt.GetoptError: usage() sys.exit(2) for opt, arg in opts: if opt == '-h': usage() sys.exit() elif opt in ("-o", "--output"): output = int(arg) elif opt in ("-s", "--state"): state = arg if output == 0: bus.write_byte(address,0xdf) # df met le bit 5 a 0 (STOP) time.sleep(tempo) bus.write_byte(address,0xff) # on met tous les bits a 1 time.sleep(tempo) sys.exit() y = 1 # bit 1 a 1 de y for x in range(1,7): bus.write_byte(address,0xbf) # bf met le bit 6 a 0 (SEL) time.sleep(tempo) bus.write_byte(address,0xff) # on met tous les bits a 1 time.sleep(tempo) if output&y == y: # verifie le bit de output avec celui de y bus.write_byte(address,0xfb) # fb met le bit 2 a 0 (VAL) time.sleep(tempo) bus.write_byte(address,0xff) # on met tous les bits a 1 time.sleep(tempo) y = y << 1 # on decale le bit dans y else: if state == "high": bus.write_byte(address,0xf7) # f7 met le bit 3 a 0 (UP) time.sleep(tempo) bus.write_byte(address,0xff) # on met tous les bits a 1 time.sleep(tempo) elif state == "low": bus.write_byte(address,0xef) # ef met le bit 4 a 0 (DOWN) time.sleep(tempo) bus.write_byte(address,0xff) # on met tous les bits a 1 time.sleep(tempo) else: sys.exit() if __name__ == "__main__": main() |
wget http://file.zhujunsan.net/8188eu.ko cp 8188eu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless/ depmod -a modprobe 8188eu ajouter à /etc/network/interfaces allow-hotplug wlan0 auto wlan0 iface wlan0 inet dhcp wpa-ssid “ssid” wpa-psk “password”