Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

126 total results found

ssh 패스워드 없이

Linux Command

백업을 만들고 원격지로 백업 폴더로 전송하기 위해서는 백업을 하는 서버가 출발지가 되고 백업 파일을 받는 서버가 도착지가 된다.      연결을 하려고하는 client 서버(출발지)에서 아래 실행  ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub [user]@[host] 수신 서버(수신지) 아래  실행 -- 필요 없을 수 있음  chmod 700 ~/.ssh/ chmod 600 ~/.ssh/auth...

Start and Stop Shell

RaspberryPi Zero 2w

Start and Stop Shell    Start Shell #!/bin/bash echo echo '##### START KKo KKo Rack #####' echo wpa_cli -i wlan0 status echo echo FILENAME=/home/hyunsu/work/nohup.out if [ -f "$FILENAME" ] ; then echo "nohup.out delete !" rm /home/hyunsu/...

Main Python 프로그램 [serverUsb.py]

RaspberryPi Zero 2w

Main Python 프로그램  serverUsb.py from flask import Flask, render_template, send_from_directory, Response, request, send_file # from flask_socketio import SocketIO from pathlib import Path from capture import capture_and_save from usbwebcamera import UsbWeb...

USB Camera [usbwebcamera.py]

RaspberryPi Zero 2w

usbwebcamera.py import cv2 import threading import time import logging import os logger = logging.getLogger(__name__) archive_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'archive') thread = None class UsbWebCamera: de...

GPIO 프로그램 [gpioControl.py]

RaspberryPi Zero 2w

gpioControl.py import RPi.GPIO as GPIO from time import sleep ina1 = 33 ina2 = 35 ena = 37 inb1 = 31 inb2 = 29 enb = 23 fire = 16 UpDownCam=12 RightLeftCam=18 GPIO.setmode(GPIO.BOARD) GPIO.setup(UpDownCam, GPIO.OUT, initial=1) GPIO...

듣기와 번역하여 말하기 프로그램 [listenSpeech.py]

RaspberryPi Zero 2w

listenSpeech.py 의외로 간단 ㅎㅎ 구글님의 지원을 받아서  from google_trans_new import google_translator from google_speech import Speech from time import sleep translator = google_translator() class ListenSpeech(object): def speech(self,message): ko_r...

화면 캡쳐 [capture.py]

RaspberryPi Zero 2w

capture.py   import cv2 import datetime, time from pathlib import Path def capture_and_save(im): s = im.shape # Add a timestamp font = cv2.FONT_HERSHEY_SIMPLEX bottomLeftCornerOfText = (10,s[0]-10) fontScale = 1 fontColor =...

기타 프로그램 및 화면 소스

RaspberryPi Zero 2w

기타 프로그램 및 화면 소스 conf.py from pathlib import Path p = Path("logs") if not p.exists(): p.mkdir() dictConfig = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(asctim...

연결 구성도

RaspberryPi Zero 2w

 

LTE 데이터로 인터넷 사용

LTE 4G

LTE 유심을 가지고 LTE를 사용하는 방법을 기술  pi@CamPi:~ $ git clone https://github.com/sixfab/Sixfab_PPP_Installer.git Cloning into 'Sixfab_PPP_Installer'... remote: Enumerating objects: 524, done. remote: Counting objects: 100% (75/75), done. remote: Compressing object...

Proxy server

Work Space

Proxy Server  #!/usr/bin/python # This is a simple port-forward / proxy, written using only the default python # library. If you want to make a suggestion or fix something you can contact-me # at voorloop_at_gmail.com # Distributed over IDC(I Don't Care) ...

RaspberryPi VPN Client

RaspberryPi VPN

sudo apt-get install pptp-linux -y hyunsu@zero2:~ $ sudo apt-get install pptp-linux -y Reading package lists... Done Building dependency tree... Done Reading state information... Done The following package was automatically installed and is no longer requ...

Raspberry Pi 스피커 / 마이크 선택

Basic Raspberry Pi

USB 마이크와 스피커 연결하기 (ALSA) aplay -l 명령어로 스피커의 카드와 디바이스 번호를 확인aplay -l  arecord -l 명령어로 마이크의 카드와 디바이스 번호를 확인arecord -l .asoundrc 설정파일에 스피커와 마이크의 연결정보를 다음과 같이 작성  pcm.!default{ type asym playback.pcm{ type hw card 0 } capture.pcm{ t...

버전 업그레이드 정보

ΑΒΡΑΞΑΣ

버전 09 --> 1.0  : ALTER TABLE tb_users ADD COLUMN logindate date NOT NULL;   실행 후 업그레이드 

Start, Stop Shell

Submarine

start shell  #!/bin/bash echo echo '##### START Submarine #####' echo wpa_cli -i wlan0 status echo echo FILENAME=/home/hyunsu/submarine/nohup.out if [ -f "$FILENAME" ] ; then echo "nohup.out delete !" rm /home/hyunsu/submarine...

메인프로그램 SubMarine.py

Submarine

SubMarine.py 메인 프로그램  from flask import Flask, render_template, send_from_directory, Response, send_file, request, redirect, url_for from flask_socketio import SocketIO import argparse, logging, logging.config, conf import os from power import PowerStatu...

USB 카메라 프로그램 (Thread)

Submarine

USB 카메라 프로그램 (Thread) import cv2 import threading import time import logging import os logger = logging.getLogger(__name__) archive_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'archive') thread = None status = True class Us...

PI 카메라 프로그램 (Thread)

Submarine

PI 카메라 프로그램 (Thread) # import the necessary packages from picamera.array import PiRGBArray from picamera import PiCamera import cv2 import threading import time import logging import os logger = logging.getLogger(__name__) archive_path = os.path.jo...

메인 화면 index.html

Submarine

메인 화면 index.html {% extends "base.html" %} {% block content %} <div class="container"> <center> Submarine 0.1 </center> <form name="frm"> <table> <tr> <td colspan=3> Temperature = <span id="temp...

메인 프로그램 KKBoobyTrap.py

꼬꼬락 Booby Trap

KKBoobyTrap.py from flask import Flask, render_template, send_from_directory, Response, send_file, request, redirect, url_for from flask_socketio import SocketIO from pathlib import Path from capture import capture_and_save from piwebcamera import PiWebCa...