raspberry_pi - wlshiu/my_note GitHub Wiki

raspberry pi

pin out

  • peripheral

    • adapter (mini usb)
    • usb ethernet device
    • Ethernet RJ45 Cable
  • windows side

    • usb ethernet

      set static ip 192.168.99.2

    • putty

      1. link 192.168.99.1:22

      2. account

        username: pi

        password: raspberry

    • samba

      \\192.168.99.1

  • raspberry-pi

    • root

      $ su
      Password: toor
      
    • fix IP eth0

      $ sudo vi /etc/dhcpcd.conf
      ...
      # It is possible to fall back to a static IP if DHCP fails:
       define static profile
      profile static_eth0
      static ip_address=192.168.99.1
      static routers=192.168.99.254
      static domain_name_servers=192.168.99.254
      
      # fallback to static profile on eth0
      interface eth0
      fallback static_eth0
      ...
      
  • uart