projets:openstreetview:rpiinstall
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
projets:openstreetview:rpiinstall [2014/05/09 05:32] – [Création du point d'accès wifi] arnaudr | projets:openstreetview:rpiinstall [2024/04/16 22:26] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Installation de la raspberry Pi ====== | ||
+ | |||
+ | ===== Utilisation du version minimaliste de raspbian ===== | ||
+ | |||
+ | Nous avons choisis une version minimaliste de raspbian disponnible ici : | ||
+ | http:// | ||
+ | |||
+ | Pour préparer la carte SD suivre le tuto ici (section command line interface) : | ||
+ | http:// | ||
+ | |||
+ | ===== Création du point d' | ||
+ | |||
+ | Suivre ce tuto : http:// | ||
+ | Un autre tuto en français : http:// | ||
+ | |||
+ | < | ||
+ | Note pour la clé wifi Brest-wirless faut installer : | ||
+ | sudo apt-get install zd1211-firmware | ||
+ | </ | ||
+ | |||
+ | Installer le nécessaire pour avoir du wifi : | ||
+ | apt-get install wireless-tools wpasupplicant | ||
+ | | ||
+ | apt-get install hostapd udhcpd | ||
+ | |||
+ | Notre fichier /// | ||
+ | < | ||
+ | # Sample udhcpd configuration file (/ | ||
+ | |||
+ | # The start and end of the IP lease block | ||
+ | |||
+ | start 192.168.42.100 # | ||
+ | end 192.168.42.150 # | ||
+ | |||
+ | |||
+ | # The interface that udhcpd will use | ||
+ | |||
+ | interface wlan0 # | ||
+ | |||
+ | |||
+ | # The maximim number of leases (includes addressesd reserved | ||
+ | # by OFFER' | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | # If remaining is true (default), udhcpd will store the time | ||
+ | # remaining for each lease in the udhcpd leases file. This is | ||
+ | # for embedded systems that cannot keep time between reboots. | ||
+ | # If you set remaining to no, the absolute time that the lease | ||
+ | # expires at will be stored in the dhcpd.leases file. | ||
+ | |||
+ | remaining yes # | ||
+ | |||
+ | |||
+ | # The time period at which udhcpd will write out a dhcpd.leases | ||
+ | # file. If this is 0, udhcpd will never automatically write a | ||
+ | # lease file. (specified in seconds) | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | # The amount of time that an IP will be reserved (leased) for if a | ||
+ | # DHCP decline message is received (seconds). | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | # The amount of time that an IP will be reserved (leased) for if an | ||
+ | # ARP conflct occurs. (seconds | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | # How long an offered address is reserved (leased) in seconds | ||
+ | |||
+ | # | ||
+ | |||
+ | # If a lease to be given is below this value, the full lease time is | ||
+ | # instead used (seconds). | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | # The location of the leases file | ||
+ | |||
+ | # | ||
+ | |||
+ | # The location of the pid file | ||
+ | # | ||
+ | |||
+ | # Everytime udhcpd writes a leases file, the below script will be called. | ||
+ | # Useful for writing the lease file to flash every few hours. | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # The following are bootp specific options, setable by udhcpd. | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # The remainer of options are DHCP options and can be specifed with the | ||
+ | # keyword ' | ||
+ | # as the dns option, they can be listed on the same line, or multiple | ||
+ | # lines. The only option with a default is ' | ||
+ | |||
+ | #Examles | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | opt dns 8.8.8.8 4.2.2.2 # The DNS servers client devices will use. | ||
+ | opt subnet 255.255.255.0 | ||
+ | opt router 192.168.42.1 # The Pi's IP address on wlan0 which we will set up shortly. | ||
+ | opt lease 864000 # 10 day DHCP lease time in seconds | ||
+ | |||
+ | # Currently supported options, for more info, see options.c | ||
+ | #opt subnet | ||
+ | #opt timezone | ||
+ | #opt router | ||
+ | #opt timesrv | ||
+ | #opt namesrv | ||
+ | #opt dns | ||
+ | #opt logsrv | ||
+ | #opt cookiesrv | ||
+ | #opt lprsrv | ||
+ | #opt bootsize | ||
+ | #opt domain | ||
+ | #opt swapsrv | ||
+ | #opt rootpath | ||
+ | #opt ipttl | ||
+ | #opt mtu | ||
+ | #opt broadcast | ||
+ | #opt wins | ||
+ | #opt lease | ||
+ | #opt ntpsrv | ||
+ | #opt tftp | ||
+ | #opt bootfile | ||
+ | #opt wpad | ||
+ | |||
+ | # Static leases map | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # --- EyeFi Cards --- | ||
+ | static_lease 00: | ||
+ | static_lease 00: | ||
+ | static_lease 00: | ||
+ | static_lease 00: | ||
+ | static_lease 00: | ||
+ | static_lease 00: | ||
+ | </ | ||
+ | |||
+ | Nous donnons une adresse IP fixe aux cartes EyeFi pour pouvoir les identifier plus facilement par la suite. | ||
+ | |||
+ | Notre fichier /// | ||
+ | < | ||
+ | # interfaces(5) file used by ifup(8) and ifdown(8) | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | allow-hotplug eth0 | ||
+ | iface eth0 inet dhcp | ||
+ | |||
+ | auto wlan0 | ||
+ | iface wlan0 inet static | ||
+ | address 192.168.42.1 | ||
+ | netmask 255.255.255.0 | ||
+ | |||
+ | up iptables-restore < / | ||
+ | </ | ||
+ | |||
+ | Notre fichier /// | ||
+ | < | ||
+ | # interface wlan du Wi-Fi | ||
+ | interface=wlan0 | ||
+ | |||
+ | # nl80211 avec tous les drivers Linux mac80211 | ||
+ | driver=nl80211 | ||
+ | |||
+ | # Nom du spot Wi-Fi | ||
+ | ssid=OpenStreetView | ||
+ | |||
+ | # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g) | ||
+ | hw_mode=g | ||
+ | |||
+ | # canal de fréquence Wi-Fi (1-14) | ||
+ | channel=6 | ||
+ | |||
+ | # Wi-Fi ouvert, pas d' | ||
+ | auth_algs=1 | ||
+ | |||
+ | # Beacon interval in kus (1.024 ms) | ||
+ | beacon_int=100 | ||
+ | |||
+ | # DTIM (delivery trafic information message) | ||
+ | dtim_period=2 | ||
+ | |||
+ | # Maximum number of stations allowed in station table | ||
+ | max_num_sta=15 | ||
+ | |||
+ | # RTS/CTS threshold; 2347 = disabled (default) | ||
+ | rts_threshold=2347 | ||
+ | |||
+ | # Fragmentation threshold; 2346 = disabled (default) | ||
+ | fragm_threshold=2346 | ||
+ | |||
+ | #control interface, will be used by hostapd_cli | ||
+ | ctrl_interface=/ | ||
+ | |||
+ | wmm_enabled=0 | ||
+ | </ | ||
+ | |||
+ | ===== Python3.2 ===== | ||
+ | |||
+ | apt-get install python3.2 | ||
+ | |||
+ | ===== Bluetooth (pour la montre liveview) ===== | ||
+ | |||
+ | Installation du bluetooth : | ||
+ | apt-get install bluetooth | ||
+ | | ||
+ | Démarrer la montre en restant appuyer sur les 2 boutons. | ||
+ | |||
+ | Faire un scan bluetooth : | ||
+ | pi@raspberry-pi: | ||
+ | Scanning ... | ||
+ | BC: | ||
+ | 30: | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== I2C (boussoles, accéléro ...) ===== | ||
+ | |||
+ | apt-get install python-smbus python3-serial | ||
+ | | ||
+ | Ajouter en fin du ~/.bashrc : | ||
+ | export QUICK2WIRE_API_HOME=/ | ||
+ | export PYTHONPATH=$PYTHONPATH: | ||
+ | | ||
+ | Puis faire un : | ||
+ | source .bashrc | ||
+ | | ||
+ | Permissions, | ||
+ | KERNEL==" | ||
+ | | ||
+ | ===== Liaison série avec l' | ||
+ | |||
+ | sudo usermod -a -G dialout pi | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
projets/openstreetview/rpiinstall.txt · Dernière modification : 2024/04/16 22:26 de 127.0.0.1