Reference: https://www.element14.com/community/thread/21377/l/how-do-i-permanently-disable-the-swap-service
Category: Raspberry Pi
Setup Gitlab & Jenkins on Raspberry Pi 2
Objective: Installing and configuring Gitlab and Jenkins on Raspberry Pi 2 Background: I currently have extra Raspberry Pi and would like to use for something useful. I found Jenkins and Gitlab are able to install on Raspberry Pi. This article is to share the step by step guide how to setup Gitlab and Jenkins…
Raspberry pi에 Let’s Encrypt SSL 설치하기
Raspberry Pi의 IP를 알아낸다음에 Router에서 DMZ를 설정하여 외부 IP로 접속할 경우 Raspberry Pi로 접근이 되도록 한다. Raspberry Pi에 아파치를 설치한다. 설치방법: https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md 외부 IP로 접속하여 Apache 설치 여부를 확인한다. Raspberry Pi에 다이나믹 도메인을 연결한다 https://www.noip.com (무료) 에 가입을 한다 NoIP Dynamic Update Client를 다운로드 및 설치한다. 다운로드: https://www.noip.com/download?page=linux 설치방법: https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client-on-ubuntu/ 다이나믹 도메인 (http://xxxxx.ddns.net)에 접속이 되는지 확인한다….
Secure Raspberry Pi with iptables, PSAD, Fail2ban and OSSEC
Disable ping $ echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all Install iptables and iptables-persistent $ sudo apt-get install iptables iptables-persistent $ sudo service iptables-persistent start Create shell script $ nano reset_iptables.sh #!/usr/bin/env bash iptables -F iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -m conntrack –ctstate ESTABLISHED,RELATED…
Raspberry Pi – Push Button + LED
import RPi.GPIO as GPIO from time import sleep PIN18 = 12 PIN25 = 22 GPIO.setmode(GPIO.BOARD) GPIO.setup(PIN25, GPIO.IN) GPIO.setup(PIN18, GPIO.OUT) LEDON = False while 1: try: if GPIO.input(PIN25): if LEDON == True: print “– PIN25 ON” LEDON = False GPIO.output(PIN18, False) else: print “– PIN25 OFF” LEDON = True GPIO.output(PIN18, True) sleep(1) except KeyboardInterrupt: GPIO.cleanup()…