##Keep in mind
- Use
sudo nmap -sP -T4 10.0.30.1-254
to detect connected devices. - Then use
sudo nmap -v -A -T4 10.0.30.1
get all opened port and services on this machine. - Start a vnc server on raspi.
vncserver :1 -geometry 1200x700 -depth 24
- apt update use goagent proxy.
sudo apt-get -o Acquire::http::proxy="http://10.42.0.1:8087/" update
- Statistic folder size:
du -h --max-depth=1
##View the video over mplayer
Install mplayer: sudo apt-get install mplayer
Rasperry Pi: raspivid -t 999999 -o | omxplayer
##Stream video over a network (Official Doc)
Install related tool (both client & raspi): sudo apt-get install mplayer netcat
Some Linux : nc -l -p 5001 | mplayer -fps 31 -cache 1024 -
(Record on the other side: nc -l -p 5001 | ffmpeg -r 31 -i - out.avi
)
Rasperry Pi: raspivid -t 999999 -o - | nc 10.42.0.1 5001
##Camera Error
1 | $ raspistill -o haha.jpg |
Fixed by: Kernels >= 3.10: w1_gpio destroys i2c bus 0, raspicam doesn’t work anymore
##Connect to Wifi
- ifconfig: Enable your wireless device.
- iwlist: List the available wireless access points.
- iwconfig: Configure your wireless connection.
- dhclient: Get your IP address via dhcp.
/etc/network/if-up.d/upstart
1 | iwlist wlan0 scan |
##Load Camera to /dev/video0
HELP
1 | uv4l --driver raspicam --auto-video_nr |
##Motion detect HELP
1 | LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so motion -c ./motion.conf |