Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
openssl genrsa -out MyRootCA.key 2048 | |
openssl req -x509 -new -nodes -key MyRootCA.key -sha256 -days 1024 -out MyRootCA.pem | |
openssl genrsa -out MyClient1.key 2048 | |
openssl req -new -key MyClient1.key -out MyClient1.csr | |
openssl x509 -req -in MyClient1.csr -CA MyRootCA.pem -CAkey MyRootCA.key -CAcreateserial -out MyClient1.pem -days 1024 -sha256 |
In the first case with set encoding=utf-8, you'll change the output encoding that is shown in the terminal. | |
In the second case with set fileencoding=utf-8, you'll change the output encoding of the file that is written. |
python -c "import cv2; print(cv2.getBuildInformation())" |
Blocos de Endereços Reservados | |
CIDR Bloco de Endereços Descrição Referência | |
0.0.0.0/8 Rede corrente (só funciona como endereço de origem) RFC 1700 | |
10.0.0.0/8 Rede Privada RFC 1918 | |
14.0.0.0/8 Rede Pública RFC 1700 | |
39.0.0.0/8 Reservado RFC 1797 | |
127.0.0.0/8 Localhost RFC 3330 | |
128.0.0.0/16 Reservado (IANA) RFC 3330 | |
169.254.0.0/16 Zeroconf RFC 3927 | |
172.16.0.0/12 Rede privada RFC 1918 |
The solution suggested by Diego is good except that it's pretty slow and has a huge video delay since the vlc there re-streams a stream of the raspvid. Since 12/2013 there is an official v4l2 driver available: http://www.ics.com/blog/raspberry-pi-camera-module#.VJFhbyvF-b8 This renders the mentioned re-streaming obsolete. Simply load the module and use it: | |
sudo modprobe bcm2835-v4l2 | |
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}' | |
This creates an http stream at port 12345, you can use other formats too, like the rtcp one from the Diego's answer. Read more on it here: https://web.archive.org/web/20151012014829/http://www.videolan.org:80/doc/streaming-howto/en/ch03.html |