User Tools

Site Tools


raspi:config

Raspberry Pi Zero W

Raspbian GNU/Linux 10 (buster)

Network

Set Static IP

vi /etc/dhcpcd.conf
...
# Example static IP configuration:
#interface eth0
interface wlan0
static ip_address=192.168.150.191/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.150.1
static domain_name_servers=192.168.150.1
...

Set WLAN Config

vi /etc/wpa_supplicant/wpa_supplicant.conf
...
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE

network={
        ssid="SSID-Name_1"
        psk="Password_for_SSID-Name_1"
        id_str="id_string_for_SSID-Name_1"
}

network={
        ssid="SSID-Name_2"
        psk="Password_for_SSID-Name_2"
        id_str="id_string_for_SSID-Name_2"
}
...

Set Hostname

vi /etc/hostname
vi /etc/hosts

Change pi-User

vi /etc/passwd
vi /etc/group
vi  /etc/shadow
# exchange pi -> new-user

cd /home
mv pi new-user

vi /etc/sudoers.d/010_pi-nopasswd
# exchange pi -> new-user
raspi/config.txt · Last modified: 2023/01/11 20:29 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki