RaspBerry PI

webcam server 구성

세모데 2019. 6. 14. 20:10

1. 모듈 설치

 

   apt-get update

   apt-get install motion

 

2.  설정 

   아래 설정 파일들을 열어서 설정 내용을 변경

 

   - /etc/motion/motion.conf

     daemon off                   --> daemon on

     webcam_localhost = on   --> webcam_localhost = off

 

   - /etc/default/motion

     start_motion_daemon = no  --> start_motion_daemon = yes

     stream_localhost = on        --> stream_localhost = off

 

   - /etc/modules  (raspberry pi 카메라 모듈 사용시)

     bcm2835-v412   라인추가

     ==> rebooting 필요

 

3. 서비스 start

   service motion start  

 

4. webcam 영상 보기

   raspberry pi ip를 확인후 (예, 10.10.10.10)

 

   http://10.10.10.10:8081 

 

5. dns

   개인 dns 등록이 필요하면 no-ip에서 신청 (무료)

   https://www.noip.com