[[Raspberry Pi Zero(W)]]

-ソフトを最新に

 sudo apt-get update
 sudo apt-get upgrade
 

-ユーザをrootに変更

 sudo su -
 passwd


-raspi-config で設定変更
--タイムゾーン
--キーボードタイプ
--ssh
--i2c

-/etc/ssh/sshd_config

 PermitRootLogin yes
 #PermitRootLogin without-password

-/etc/hostname

 raspberrypi-204

-/etc/hosts

 127.0.0.1       localhost
 ::1             localhost ip6-localhost ip6-loopback
 ff02::1         ip6-allnodes
 ff02::2         ip6-allrouters
 
 127.0.1.1       raspberrypi-204

-/etc/wpa_supplicant/wpa_supplicant.conf

 #country=GB
 #ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 #update_config=1
 
 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 update_config=1
 network={
    ssid="xxxx"
    proto=WPA2
    key_mgmt=WPA-PSK
    psk="xxxxxxxxx"
 }


-/etc/interfaces
-/etc/dhcpcd.conf

 # interfaces(5) file used by ifup(8) and ifdown(8)
 # It is possible to fall back to a static IP if DHCP fails:
 # define static profile
 #profile static_eth0
 #static ip_address=192.168.1.23/24
 #static routers=192.168.1.1
 #static domain_name_servers=192.168.1.1
 
 # Please note that this file is written to be used with dhcpcd
 # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
 # fallback to static profile on eth0
 #interface eth0
 #fallback static_eth0
 
 # Include files from /etc/network/interfaces.d:
 source-directory /etc/network/interfaces.d
 interface wlan0
 static ip_address=192.168.0.117/24
 static routers=192.168.0.1
 static domain_name_servers=202.234.232.6
 
 auto lo
 iface lo inet loopback
 
 iface eth0 inet manual
 
 allow-hotplug wlan0
 iface wlan0 inet static
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 address 192.168.0.204
 network 192.168.0.0
 netmask 255.255.255.0
 broadcast 192.168.0.255
 gateway 192.168.0.1
 dns-nameservers 192.168.0.1
 
 #allow-hotplug wlan1
 #iface wlan1 inet manual
 #    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


proxy 在りの場所からの場合以下を設定する

-/etc/profile

-/etc/apt/apt.conf

-/etc/wgetrc

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS