Saminnet-Search Article Wiki Forum Piwigo SNS Cloud vtiger Sugar
Pi zero wlan0 boot

  • Data-Articles
    • Baja iwf (53) Sun09,20:21pm

      sesuai post saya yang terakhirツdisini, rumah dua pohon sedang dalam pembangunan tahap 2 dengan material utama menggunakan baja. baja adalah material konstruksi yang paling padat apabila dibandingkan dengan beton dan kayu karena memiliki berat satuan yang cukup besar. karena baja bisa difabrikasi di pabrik, pemasangan di site bisa lebih cepat dibandingkan dengan beton yang mesti dicetak dan ditun…

      Read More...

Pi zero wlan0 boot

The recommended way to set up anyツRaspberry Piツis with a keyboard, mouse, and monitor. TheツPi Zeroツand theツPi Zero Wmakes this even harder by requiring you to have aツUSB adapterツ(for the mouse and keyboard), and aツmini HDMI adapterツ(for the monitor).ツSince the Pi Zero W is WiFi enabled, we can preconfigure the operating system to enable SSH and have the WiFi credentialsツwhen we are first powering the device. Thus, when it comes online, it will be available on your local network for youツto start using the Pi. Since we'll be controling the device via command line, you'll want to beツconfortable with the terminal.ツ

Materials:

  • Raspberry Pi Zero W
  • microSD card
  • Micro USB cable

Micro SD Card Setup

First, you'll have to flash the microSD card with an operating system. I recommend aツ32GB SanDisk MicroSD card; it worked perfectly. It also comes with an adapter, which is how I was able to insert the MicroSD card into my computer.

1.ツDownload Raspbian Stretch Lite

Raspbian Stretch Lite is the "lite" version of the operating system for Raspberry Pis. The "lite" means that there just isn't a GUI desktop included in the OS, so we'll be doing everything via the command line.

2.ツDownload Etcher

Etcher is an awesome tool, created byツResin.io,ツthat lets us burn images to SD cards & USB drives. In this case, we'll use it to flash theツStretchツLight OS to the MicroSD card.

3. Flash OS to MicroSD with Etcher

Etcher makes things simple. Just select the image, select your MicroSD card, and flash!

This step is only necessary because Etcher automatically unmounts the SD card.

Before we put the microSD card into the Pi, we'll need to edit some files.

Once you reinsert, on Mac and Windows, you should see a new device namedツboot.

Once selected, you'll see files similar to this:

On Linux, you'll see the full Stretch Lite OS. You'll want to do the rest of the steps in theツ/bootツfolder.

5.ツEnable SSH

Inツboot, create a file calledツssh. This file (no file extension needed) will enable SSH on the Pi.

6.ツENABLE WIFI

Create a file calledツwpa_supplicant.conf.ツThis is a configuration file that will allow you to pre-configure the WiFi credentials. On boot, the Pi will copy and use this as the default configuration file.

In this file, place the following content:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1network={
ssid="WIFI_SSID"
scan_ssid=1
psk="WIFI_PASSWORD"
key_mgmt=WPA-PSK
}

Please double check and verify the WiFi credentials. If not, the next step will be hard.

SSH into the Pi Zero W

Insert microSD card into the Pi and power with the micro USBツcable. Now, after the Pi turns on, in about 30-90 seconds, it will fully boot and connect to WiFi.

Open your terminal. I recommendツHyper.

If you only have one Raspberry Pi on your network,ツyou can SSH into the device via its hostname:

ssh pi@raspberrypi.local 

Once you have more than one Pi on your network, a number will be attached to the hostname.

raspberrypi-NUM.local

NUM will be the order in which they came on the network.You can find your device in one of two ways:

  • If you have access to your router dashboard, you should be able to see all the devices listed on your network. If so, find the Raspberry Pi, and copy the IP address.
  • You can useツAngry IP Scannerツto scan your network on your machine. With it, you'll be able to see the Pi. Once found, copy the IP address ( it will be located along with the hostname).

Note: The default password isツraspberry

Update and Install Libraries

It's highly recommended to update your device and change the default password.

To update the Pi:

sudo apt-get update && sudo apt-get upgrade -y 

You may need to installツpip:

sudo apt-get install python-pip

To change password, use this command:

passwd 

Then, the instructions in the terminal will walk you through changing the password.

That's a wrap

That's it! Now, you are ready to begin building cool things with your Raspberry PI Zero W. If you need example code, check out thisツHackster project. It's anツexample application for creating an API for the Raspberry Pi Zero W to control four LEDs, each connected to its own GPIO.ツ

Comments   

 
0 #1 Guest 2019-04-30 11:31
Feel free to sutf to my web page; Como Instalar
Quote
 

Articles by Date

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email