Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Manual Steps

Veerendra edited this page Nov 12, 2022 · 14 revisions

Manual Steps

*Below documentation referred user as veerendra, hostname as atom and IP as 192.168.0.120. Please change these values according your requirement

Write OS Image on SD card

Configure hostname, user, wlan and locale like below by clicking ⚙️ and click WRITE

ufw ufw

Configure your machine

Below command should run on your machine(that you connect Pi)

  • Copy ssh keys to Pi for password less authentication

    $ PIUSER="veerendra"
    $ PIIP="192.168.0.120"
    
    $ ssh-copy-id $PIUSER@$PIIP
    veerendra@192.168.0.120's password:
    
    Number of key(s) added: 1
    
    Now try logging into the machine, with:   "ssh 'veerendra@192.168.0.120'"
    and check to make sure that only the key(s) you wanted were added.
    
  • Add ssh config

    cat >> ~/.ssh/config <<EOF
    Host atom
      HostName 192.168.0.120
      user veerendra
    EOF
    

Configure your Pi

Below command should on Pi

  1. Login into Pi and Set root user password

    veerendra@atom:~$ sudo passwd
    New password:
    Retype new password:
    passwd: password updated successfully
    
  2. Make the user sudoer

    • Login into pi and run below commands
    veerendra@atom:~$ PIUSER="veerendra"
    
    veerendra@atom:~$ echo "$PIUSER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$PIUSER
    [sudo] password for veerendra:
    veerendra ALL=(ALL:ALL) NOPASSWD: ALL
    
  3. (Optional) Sometimes, eth0 interface won't up. Make the eth0 interface if required

    $ sudo netplan set ethernets.eth0.dhcp4=true
    $ sudo netplan try
    $ sudo netplan generate
    $ sudo netplan apply
    
Clone this wiki locally