기본 콘텐츠로 건너뛰기

cerbot 사용하기

https://certbot.eff.org  에 접속 instructions를 살펴보면( https://certbot.eff.org/instructions ),   command line 에 익숙하고 80 port가 open된 HTTP server가 필요하고, sudo 사용이 가능한 ssh 접속을 할 수 있어야 하고, wildcard cert를 필요로 한다면 DNS credentials도 있어야 한다. 설치 macOS brew install letsencrypt webroot 방식 : web server를 직접 운영하는 경우 사용 설정 macOS 80(HTTP)/443(HTTPS) port 는 root 에게만 권한이 있으므로, launchd plist 파일을 /Library/LaunchDaemons/"your.plist"에 작성하고 chown root "your.plist"로 사용자를 root로 변경 실행 sudo certbot certonly --webroot standalone 방식 :  실행 sudo certbot certonly --standalone -d "domain" 실행하면 다음 위치에 인증서와 개인키가 설치된다. /etc/letsencrypt/live/"domain"/privkey.pem /etc/letsencrypt/live/"domain"/fullchain.pem
최근 글

DDNS(Dynamic DNS) 서버 만들기

이 글에서는 PowerDNS를 사용하여 DDNS를 만드는 방법에 대해 설명한다. PowerDNS의 예전 버젼에서는 recursive 처리가 포함되어 있었지만, 보안의 이유로 Authoritative Server와  Recursor로 분리되었다. Authoritative Server가 외부에서 요청되는 query에 대해 응답하는 용도로 사용되며, 여기서는 Authoritative Server를 통해 DDNS 서버를 만드는 방법을 정리한다. 설치 https://repo.powerdns.com/ 에 설치관련 내용이 정리되어 있다. Ubuntu 16.04기준으로, 4.4.x version의 설치 방법을 보면, 다음의 방법으로 설치할 수 있다. Create the file '/etc/apt/sources.list.d/pdns.list' with this content: deb [arch=amd64] http://repo.powerdns.com/ubuntu xenial-auth-44 main And this to '/etc/apt/preferences.d/pdns': Package: pdns-* Pin: origin repo.powerdns.com Pin-Priority: 600 and execute the following commands: curl https://repo.powerdns.com/FD380FBB-pub.asc | sudo apt-key add - && sudo apt-get update && sudo apt-get install pdns-server MySQL 연동 1. MySQL backend 설치 MySQL backend 를 다음과 같이 설치한다. sudo apt-get install pdns-backend-mysql /etc/powerdns/pdns.conf 파일에 다음과 같은 내용을 작성한다. launch = gmysql gmysql-host = 127.0.0.1 gmysql-user ...

원격에서 wireshark 사용하기

출처 : https://j2doll.github.io/wireshark-remote-command-win/README.ko.html ============================ linux pc 기반 ============================ # mkfifo /tmp/wireshark # wireshark -k -i /tmp/wireshark # ssh root@172.20.0.17 "/nand1/tcpdump -s 0 -U -w - -i eth0 not port 22" > /tmp/wireshark ============================ Window PC에서 packet capture ============================ 다음을 파일명  "remotecap.cmd"로 저장하여 command 창에서 실행 ** 환경변수 값은 상황에 맞게 변경 해야함. @REM ---------------------------------------------------- @REM remotecap.cmd @REM   Example command for captruing eremote network packet @REM  using wireshark and tcpdump. @REM   First written by j2doll. September 10th 2016. @REM   https://github.com/j2doll/wireshark-remote-command-win @REM   http://j2doll.tistory.com @REM ---------------------------------------------------- @REM install putty and wireshark on your windows pc. @SET PLINK_PATH="C:\Program Files\PuTTY\pli...

Visual studio code에서 CMake를 통해 cross compile 하기

Visual Studio Code(이하 VSC) 및 확장 기능(C/C++, CMake, CMake Tools)을 설치 합니다. project folder를 생성 한다. 예: mkdir hello VSC → 파일 → 폴더열기 → 생성한 hello 폴더 선택 Toolchain 설치 ctrl + shift + p → CMake: Edit user-local CMake kits 선택 ~/.local/share/CMakeTools/cmake-tools.json 파일이 열리면 다음과 같은 내용으로 설치된 toolchain 경로를 입력한다. {      "name" :  "RockChip rv1108" ,      "compilers" : {        "C" :  "toolschain_path/usr/bin/arm-linux-gcc" ,        "CXX" :  "toolschain_path/usr/bin/arm-linux-g++"      }    }, CMakeList.txt 생성 ctrl + shift + p → CMake: Quick Start → RockChip rv1108 → project 명(예 : hello) → Executable  ** 참고 : 다른 toolchain을 사용하고 싶다면 : ctrl + shift + p → CMake : Select a kit Build ctrl + shift + p → CMake: Build  build 폴더 밑에 결과 파일 생성

음성인식 기반 시스템 구성(2017년 7월 기준)

Intellij Artifacts 실행시 필요한 종속 library 추가.

개발 과정에서 build하여 run하면 잘 수행 되지만, artifact를 만들어서 실행하면 실행되지 않아 고생했다. 결국 찾은 방법이란 것이, 의존성을 갖고 있는 라이브러리가 함께 artifacts에 포함되지 않아서 발생한 문제였다. Intellij에서 라이브러리를 artifacts에 추가 하는 방법은, File -> Project Structure -> Artifacts -> Output Layout -> + -> Library Files -> 추가할 library 선택 이다. $ java -jar out/artifacts/JavaFXApp/JavaFXApp.jar 로 실행하면, 실행이 잘 된다.