miércoles, 19 de junio de 2019

Raspbian Lite Setup

Hello everyone, today we are going to install and configure Raspbian Lite.

For hardware you can install this it in whatever you want, but keep in mind that this OS is optimized for Raspberry Pi products and that 4GB of storage are recommended.
I'll be using a Raspberry Pi Zero W. With this out of the way let's get to the fun part.

After installing Raspbian Lite form the RaspberryPi download page, next flash the image to the SD card. If you don't know how to do this here is another article on how to do it.

Once that's done, open the new disc you have on your computer and add a new file with no extension named ssh, all lower case, to later enable SSH.

Now, for the people using a device that doesn't have a Ethernet port, and can't or don't want to use a screen, you'll have to create a new file named wpa_supplicant.conf and paste this code, remember to change the country, name and password according to the wifi network you want to use.


 country=US  
 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev  
 update_config=1  
 network={  
     scan_ssid=1  
     ssid="the_2.4-hz-wireless-network"  
     psk="the_2.4-hz-wireless-network_password"  
     proto=WPA  
     key_mgmt=WPA-PSK   
 }  

Place the microSD card on you device and power it.

Now SSH to your device. If you don't know how we also have a tutorial for that here.

Username: pi
Password: raspberry
To change the default password write on the console passwd

To set a static ip type: sudo nano /etc/dhcpcd.conf and paste at the bottom
 interface wlan0  
 static ip_address=192.168.1.12/24  
 static routers=192.168.1.1  
 static domain_name_servers=192.168.1.1 8.8.8.8  
In this example it will only apply if your connected by WiFi, for Ethernet use eth0 instead of wlan0

And for more settings type on your console sudo raspi-config.

A video I made explaining the process:

No hay comentarios:

Publicar un comentario