Table of Contents
Installation Raspbian
- Télécharger directement Raspbian
- vérifier le checksum (sha1sum) du zip avant l'extraction
- démonter la partition qui pourrait s'être montée automatiquement
- dd bs=4m if=~/Downloads/fichier-img.img of=/dev/rdisk3 (ne pas préciser de partition)
Premier démarrage
- brancher clavier, souris, HDMI, alimentation (et boot)
options/commandes du premier boot
- expand filesystem
- I18N options :
- Locale : be_BY.UTF-8 UTF-8 (keep en_GB.UTF-8 as default locale)
- TimeZone : Europe Brussels
- Keyboard layout :
- 102 intl > Others > Belgian > Belgian [no caption after]
- Alt gr ⇒ the default fort the keyboard layout
- No compose key
- Ctrl alt backspace do nothing
- Advanced options
- Hostname : sensors
- Memory split (for gpu): min ⇒ 16
- SSH Server enabled
- quit and reboot it through network link
Après le reboot sur le réseau
- sudo aptitude update
- sudo aptitude upgrade
- ssh-keygen -t dsa
- .ssh/config Host nono HostName laf.mooo.com
- ssh-copy-id -i .ssh/id_dsa.pub nono
Install des auto tunnels
- aptitude install autossh
- /etc/defaults/autossh :
# Settings for autossh. This file is sourced by /bin/bash from
# /etc/init.d/autossh.
AUTOSSH_USER=pi
autossh_opts -M 0 -q -N -f -o ServerAliveCountMax=3 \
-o ServerAliveInterval=60
tunnel -R 2002:localhost:22 -R :8001:localhost:8000 nono
- chmod +x /etc/init.d/autossh
- mkdir /var/run/autossh
- /etc/init.d/autossh
- update-rc.d autossh defaults
Access to gitolite repo
get the public key of sensors device & put into the gitolite config config .ssh/config :
Host git User git HostName helpcomputer.org Port 2233
Access to gitolite repo
git clone git:domotique
Reinstall bcm2835.h
http://www.airspayce.com/mikem/bcm2835/ follow the instruction remove all tgz & folder tester le make sinon try again
gpio cli install
Sakis-3g
- cd /tmp
- sudo aptitude install libusb-dev
- cd sakis3g-source
- ./compile
- follow the step by step from compile :
For installing it, use:
$ sudo bash || su # cp build/sakis3gz /usr/bin/sakis3g * remove /tmp/sakis3g-source
ppp
Is needed by sakis3G
- aptitude install ppp
Sakis: Establish a connection
Use the following command to known what to specify into APN variable
sudo sakis3g --interactive connect
create /etc/sakis3g.conf and put into :
APN=internet.proximus.be
A run of sudo sakis3G connect works
UMTS Keeper
Reference : http://mintakaconciencia.net/squares/umtskeeper/
- move into a specific folder & make a tar zxvf
- chmod +x umtskeeper
- cp umtskeeper.conf.sample umtskeeper.conf
conf['deviceName'] = 'Huawei'
conf['logMsg'] = True conf['httpServer'] = True conf['writeHTMLStats'] = True #The Parameters are
Create the following folders:
- /run/umtskeeper/
- /var/log/umtskeeper/
Move:
- umtskeeper into /usr/bin/
- umtskeeper.conf into /etc
Done you can run now :
sudo umtskeeper --conf /etc/umtskeeper.conf
Add the following line to your /etc/rc.local
/usr/bin/umtskeeper --conf /etc/umtskeeper.conf
Retrieve some file from umts tgz and put it into webfolder: sudo cp favicon.ico style.css robots.txt /var/run/umtskeeper/
