File "raspberry_commande.txt"

Full Path: /home/analogde/www/RaspBerry/raspberry_commande.txt
File size: 2.76 KB
MIME-type: text/plain
Charset: utf-8

raspivid -o myvid.h264 -w 1280 -h 720

raspivid -o myvid.h264


Convertir H264 to MP4

sudo apt-get update
sudo apt-get install -y gpac
MP4Box -fps 30 -add myvid.h264 myvid.mp4


Creating an MP4 File Using AVCONV
sudo apt-get install -y libav-tools
avconv -r 30 -i myvid.h264 -vcodec copy myvid.mp4




sudo apt-get -y install omxplayer



ffmpeg


 sudo service apache2 start
 
  sudo service apache2 stop
  
 pi@raspberrypi /var/www $ cd /etc/apache2
pi@raspberrypi /etc/apache2 $ sudo vi apache2.conf

Aller la fin du fichier et rajouter:
ServerName localhost

sudo service apache2 restart

sudo cp ~/truc.html /var/www par exemple

sudo chown ton_login /var/www

Aussi, je te conseille de consulter la doc qui concerne LAMP et en particulier :
- la gestion des répertoires de travail
- ou la gestion des hôtes virtuels



lien symbolique
sudo ln -s /~/web /var/www



http://cpalui.free.fr/
http://raspberry-pi.developpez.com/tutoriels/serveur-web/
http://www.pihomeserver.fr/2013/05/24/raspberry-pi-home-server-donner-une-ip-statique-a-votre-machine/

Pour une freebox, les options de redirection se trouvent dans « Configurer mon routeur Freebox » et « Redirections / Baux DHCP ». Là on explique que le port externe 80 TCP doit être redirigé vers le port interne 80 à l'adresse IP interne de votre serveur. Et on refait la même chose pour les ports 443 (HTTPS), 21 (FTP), 3306 (MySQL) et le port SSH que vous avez configuré.



192.168.1.254  serveur freebox


http://www.sky-future.net/2014/01/comment-configurer-une-adresse-ip-statique-sur-votre-raspberry-pi/


ifconfig :  192.168.1.31


sudo nano /etc/network/interfaces

iface eth0 inet static
address 192.168.1.31
netmask 255.255.255.0
gateway 192.168.1.254




/**************************

auto lo
 
iface lo inet loopback
iface eth0 inet static
 
address 192.168.1.32    pour moi .31
netmask 255.255.255.0
gateway 192.168.1.1   .254
 
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp


********************************
ifdown eth0; ifup eth0

reboot

et ifconfig pour connaitre les changements



http://micro-add.fr/definir-une-ip-statique-pour-le-rpi-chez-free/



http://www.touteladomotique.com/index.php?option=com_content&id=581:2012092801&Itemid=14

http://www.framboise314.fr/une-camera-de-surveillance-video-avec-le-raspberry-pi/



sudo vi  /etc/network/interfaces
auto lo 
 
iface lo inet loopback 
iface eth0 inet static #IP statique et non plus DHCP
 address 192.168.0.52  #L'IP au pif que j'ai choisi
 netmask 255.255.255.0 #Le masque de sous réseau /24
 gateway 192.168.0.250 #La passerelle vers internet
 dns-nameservers 192.168.0.250 8.8.8.8 allow-hotplug wlan0
iface wlan0 inet manual 
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf 
iface default inet dhcp