[라즈베이파이]라즈비안 설치 및 기본설정
설치
* 라즈비안 다운로드
https://www.raspberrypi.org/downloads/raspbian/
* Win32DiskImager 다운로드
https://sourceforge.net/projects/win32diskimager/
* 라즈비안 img 파일을 SD메모리에 write
* 라즈베리파이에 SD메모리 삽입
최초계정
login as: pi
pi@xxxxxxxx's password: raspberry
언어 및 키보드 설정
pi@raspberrypi:~ $ sudo raspi-config
4 Localisation Options Set up language and regional settings to match your location
I1 Change Locale Set up language and regional settings to match your location
en_GB.UTF-8 UTF-8 선택
en_US.UTF-8 UTF-8 선택
ko_KR.UTF-8 UTF-8 선택
Ok
en_US.UTF-8 선택
Ok
I3 Change Keyboard Layout Set the keyboard layout to match your keyboard
Generic 105-key (Intl) PC 선택
Ok
Korean - Korean (101/104 key compatible)
Ok
The default for the keyboard layout
Ok
No compose key
Ok
SSH 사용설정
pi@raspberrypi:~ $ sudo raspi-config
5 Interfacing Options Config connections to peripherals
P2 SSH Enable/Disable remote command line access to your Pi using SSH
Yes
reboot~
.......
pi@raspberrypi:~ $ sudo cp /etc/ssh/ssh_config /etc/ssh/ssh_config.bak
pi@raspberrypi:~ $ sudo vi /etc/ssh/ssh_config
ForwordX11 yes # 주석해제
eth0 고정IP 설정
pi@raspberrypi:~ $ sudo cp /etc/dhcpcd.conf /etc/dhcpcd.conf.bak
pi@raspberrypi:~ $ sudo vi /etc/dhcpcd.conf
하단내용 추가
interface eth0
static ip_address=192.168.0.xx
static netmask=255.255.255.0
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
라즈비안 참고사이트 : https://wikidocs.net/book/483