2016년 2월 12일 금요일

RaspberryPi - 01

Setting

Locale


Timezone


Password

passwd

Vim Install

sudo apt-get install vim

Static Network Setting

vim /etc/network/interfaces

Before

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.confc

After

auto lo
iface lo inet loopback

# The primary network interface
# auto eth0
# iface eth0 inet dhcp

# menual
auto eth0     
iface eth0 inet static      
address 192.168.0.10     
netmask 255.255.255.0     
network 192.168.0.0      
broadcast 192.168.0.255
gateway 192.168.0.1
sudo /etc/init.d/networking restart

Raspberry Config

raspi-config

Ssh port change

현재 포트 확인

sudo netstat -anp | grep LISTEN | grep sshd

포트변경

cat /etc/ssh/sshd_config | egrep ^\#?Port
sudo vim /etc/ssh/sshd_config

Before

Port 22

After

#Port 22
Port 10022
sudo /etc/init.d/ssh restart
ssh -p 10022 pi@192.168.0.10

댓글 없음:

댓글 쓰기