알뜰살뜰 정보/Raspberry PI 11

[라즈베리파이] RTL8192EU 무선랜 드라이버 설치

최고의 방법은 라즈베리파이에서 바로 인식되는 무선랜 카드를 사는 것이 가장 좋다. 위와 같은 사진이면 usb 인식은 되는 상황이니 아래를 참조해서 드라이버만 설치해주면 된다. 자세한 설정들은 아래 깃 주소에 README.md 읽으면 됨 이슈주의) Makefile은 nano가 아닌 vi로 수정할 것. 1. 1번 참조사이트 참고해서 make 빌드 시 raspberrypi-kernel-headers 경로를 못 찾는 경우 발생 => 경로를 임의로 지정해서 빌드했지만 너무 많이 나오는 설정값들.... 설정하는 것들을 default 값으로 넣었지만 에러 발생 2번 참조사이트로 해결함 2. kernel headers 문제 발생 => apt-get install 할때 raspberrypi-kernel-headers 로..

[Python] 라즈베리파이에서 파이썬 사용 오류 (정리 중)

라즈베리파이에 기본 설치되는 tkinter 모듈이 없을 때 ImportError: No module named tkinter Python2.7 import Tkinter as tk #대문자 T로 바꿔줘야함 Python3 import tkinter as tk Python2.7 사용 시 SyntaxError: Non-ASCII character '\xea' in file main_tk.py on line 44, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details 상단에 주석 작성 # -*- coding: utf-8 -*-

[Raspberry Pi] 라즈베리파이에서 파이썬 삭제하기

리눅스에서 파이썬 삭제하기 [주의 ] 기존 라즈베리파이 쓰고 있는 3.7버전 삭제 할 경우 python-samba 등 일부 패키지 작동하지 않음으로 특정 버전만 지울것 sudo apt autoremove python3 sudo apt autoremove python 즉 python3으로 지우지말고 버전을 입력해서 지울것 pi@raspberry:~ $ python -V Python 3.8.1 pi@raspberry:~ $ python3 -V -bash: python3: command not found pi@raspberry:~ $ sudo apt autoremove python Reading package lists... Done Building dependency tree Reading state inf..

(실행에러) Permission denied: '/dev/ttyAMA0' 에러

라즈베리파이에서 시리얼 통신 테스트 시 [Errno 13] Permission denied: '/dev/ttyAMA0' stty -F /dev/ttyAMA0 시 stty : /dev/ttyAMA0: Permission denied 권한 에러가 나오는 상황이다 라즈베리파이 시리얼 설정을 바꿔줘야한다. 아래 구문을 입력하면 다음 아래와 같은 사진이 나온다. $ sudo raspi-config 위를 끝마치면 재부팅하고 다시 시도해보자.

(주의) apt-update 시 N: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable' 해결방법

라즈베리파이 업데이트 시 주의 경고문이 발생했다. pi@raspberrypi:~ $ sudo apt-get update Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB] Get:5 http://raspbian...

(실행 에러) end kernel panic -not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]

에러문 end kernel panic -not syncing: VFS: Unable to mount root fs on unknown-block(179,2) 오랜만에 킨 라즈베리파이 펌웨어 꼬임.. 그냥 초기화 후 실행 조치방법 URL https://raspberrypi.stackexchange.com/questions/40854/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block179-6 Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,6) running Raspbian on top of NOOBS When booting, the sequen..

files list file for package 'raspberrypi-kernel' is missing final newline 에러 발생 시

apt-get upgrade error 에러files list file for package 'raspberrypi-kernel' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) dpkg: unrecoverable fatal error, aborting: files list file for package 'raspberrypi-kernel' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) 해결방법sudo rm /var/lib/dpkg/info/raspberrypi-kernel* sudo rm /var/lib/dpk..

WebIOPi not working index.html && WebIOPi 설치 방법

WebIOPi not working index.htmlyou should first patch file install done and install setup.sh file 패치파일을 실행 안시키고 설치 시 기본 index.html이 적용되지 않음 실패 시 화면 WebIOPi 설치 방법 1. WebIOPi 설치http://goo.gl/kV4pFy 클릭 후 WebIOPi-0.7.1.tar.gz 다운로드 합니다.그 후 압축을 풀어줍니다. 2. Patch File 설치sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch 3. Patch File 적용WebIOPi 압축 푼 폴더에 Patch File을 넣..