'Network/Raspberry Pi 5' 카테고리의 글 목록
개발 블로그

Network/Raspberry Pi 5
[Raspberry Pi 5] GUI 데스크톱 세팅(VNC)
2025.05.14
1. raspi-config 설치apt updateapt install raspi-config -y2. raspi-config 실행raspi-config3. raspi-config 설정(VNC 활성화 작업)‘3 Interface Options Configure connections to peripherale’ 선택‘I3 VNC Enable/disable graphical remote access using RealVNC’ 활성화(엔터 누르면 활성화 할꺼냐고 묻는데 "yes" 누르면 된다)4. VNC Viewer 설치 Download VNC Viewer by RealVNC®RealVNC® Viewer is the original VNC Viewer and the most secure way to conne..
Network/Raspberry Pi 5
[Raspberry Pi 5] Mosquitto 설치
2025.03.26
라즈베리파이에 아두이노 연결하고 mqtt 사용할거라 설치했다. 1. Mosquitto 설치apt install -y mosquitto mosquitto-clients2. Mosquitto 실행$ systemctl enable mosquittoSynchronizing state of mosquitto.service with SysV service script with /lib/systemd/systemd-sysv-install.Executing: /lib/systemd/systemd-sysv-install enable mosquitto$ systemctl start mosquitto$ systemctl status mosquitto● mosquitto.service - Mosquitto MQTT Broke..

Network/Raspberry Pi 5
[Raspberry Pi 5] jar 배포
2025.03.03
토이 프로젝트 진행 중에 라즈베리파이 내부에 jar를 배포해야 했다. 처음에 war 방식으로 진행하다가 나중에 집와서 방식이 다르다는 것을 깨닫고 ‘아..’ 했다. 추후에 다시 작업할 일 있으면 참고할려고 메모용으로 남기는 포스팅이다. 선수 작업으로 해당 jar에 맞는 jdk가 설치되어 있어야 한다. 1. 포트포워딩 작업알아서 포트포워딩하자.2. Apache2 conf 파일 수정Apache2 기준으로 수정 파일 경로는 ‘/etc/apache2/sites-available/000-defeault.conf’이다. ServerAdmin webmaster@localhost ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_..

Network/Raspberry Pi 5
[Raspberry Pi 5] Prometheus 시각화를 위한 Grafana 설치 및 연동
2025.01.05
1. Grafana Image 설치docker pull grafana/grafana2. Grafana Docker 실행docker run -d --name=grafana -p 3000:3000 grafana/grafana3. Prometheus 연동 나는 외부에서도 접속할 수 있게 포트 포워딩 했으므로 공인 IP:3000으로 접속하였다. 만약 컴퓨터에서 가상 머신으로 설치했다면 포트 번호 앞에 localhost, 127.0.0.1로 접속이 가능 할 것이며 라즈베리파이와 같은 미니 PC를 사용해 네트워크를 따로 두고 있다면 해당 사설 IP:3000으로 접속이 가능 할 것이다. 나는 포트 포워딩 할 때 공인 IP:3000으로 접근할 경우 외부 포트 : 3000, 내부 포트 : 3000(3000은 Grafan..

Network/Raspberry Pi 5
[Raspberry Pi 5] Docker를 이용한 Prometheus 설치
2025.01.05
그렇다고 한다.. 궁금해져서 설치만 해보고 자야겠다. 1. Prometheus 이미지 설치docker pull prom/prometheus2. node_exporter 이미지 설치(시스템 메트릭을 제공하는 도구)docker pull prom/node-exporter3. Prometheus 설정 파일 생성nano prometheus.yml global: scrape_interval: 15sscrape_configs: - job_name: 'RASPBERRY_PI' static_configs: - targets: ['192.168.0.48:9100'] 15초마다 192.168.0.48:9100에서 node_exporter가 제공하는 메트릭을 수집하며 작업 이름은 ‘RASPBERRY_PI’ ..