Setup Raspberry PI OS with SSH and WIFI the NEW (3/2021) Easy Way

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] so this is not a video that i was expecting to make right now uh a couple days ago i made a video about like what i consider the best way to set up a raspberry pi uh you can find it below um it's the way i've been doing it for years it's it's by far was the easiest way the very next day after i published my video raspberry pi dropped a whole bunch of new software that essentially focused on the very problems that i was trying to solve with my video uh they basically rolled out a way of doing it all within their their image writing software all in the graphical user interface it's way easy way straightforward and essentially invalidates the entire video that i just published so i'm going to salvage a few things from that video that you can that that still works and then i'm gonna film a couple more and we'll go over what raspberry pi changed and just how much easier now it is to set up a raspberry pi and in the way that i was talking about um so let's go get into it okay so this time around you don't need to download any files because raspberry pi has been able to work everything into their their gui so it makes everything way easier but you do want to go to the link in the description and go to their site for their image writer and that's the only package you need to download so download that start it up and then uh come back here okay so now that you have the raspberry pi imager installed the first thing you want to do is you want to take your micro sd card plug it into your card reader and then plug that into the computer now if it's not a fresh card what you want to do is right click on that drive and format it before we do anything else all right so now that you have the new raspberry pi imager open i'm going to walk you through how to set up wi-fi how to write the operating system to it and how to enable something called ssh so the first thing you want to do is um is click control shift x and what this does is that brings up a hidden advanced settings menu so going through here you want to be sure that you've selected set hostname so hostname is essentially what your router sees so if you were to go into a list of devices connected to your router you would see in this case raspberry pi if you have multiple raspberry pi's floating around you're going to want to make sure your host name is different from each one so you could do like raspberry pi 1 2 or you know whatever you want the next thing you want to do is enable ssh so ssh is a protocol that basically allows you to uh to connect to computers from another computer so i can basically send commands to the raspberry pi that say update or install the software package do whatever i want to basically set up my raspberry pi for whatever application that i want to do so in this case where we're telling it to enable ssh from default this is a really nice new feature because they were worried about security so they started not enabling ssh from by default um so it's a real big pain to have to have to enable it but now you can just say you know you've got my permission to go ahead and do it um you want to use password password authentication then this is essentially the password that's going to ask you for when you try to establish a connection um i like to use the default password from the raspberry pi just because my my stuff isn't really really sensitive so they just use the word raspberry uh but you can change this to whatever you want to and make it make it more secure you want to make sure that configure wi-fi is turned on um you're gonna type in your ssid which is just your wi-fi name so mine is mad science too and then you just type in your wi-fi password you also want to have your your country code so you can look up online what your two-digit country code is for where you are going through here we're gonna have to go to the u.s and this menu um is kind of funky and you kind of got to go through for the u.s you got to go through a bunch of bunch of names here so bear with me for a second yeah i think they really need to to get a better menu here this is kind of a pain but if you don't know your code you just you just go to google and type in what is my two digit country code all right us um and that that basically is just telling the hardware what frequency to use for wi-fi and it's geographically uh configured um so we set all that okay now you click save and that's it uh now you want to click the operating system and it's going to give you a whole list here of operating systems so you've got just the regular multi-purpose raspberry pi os and this basically is just um just a blank os that you can download whatever packages you want or set it up however you want you can go down here and there's other ones like cody which is pretty cool it's like a uh a media player so you can make like your own apple tv or roku kind of thing uh there's an emulation in game os which is like to to run old fashion arcade games and build basically build your own gaming console so there's a lot of neat things here um if you click this button here it says raspberry pi os other it gives you two really cool features so the full version has like the full desktop environment it's it's basically a small computer you can sit down and surf the internet and full mouse control all that uh raspberry pi os light is a really stripped down version so if you're like using one of the smaller raspberry pi's like a like a zero w or you're trying to really get a lot of power out of your raspberry pi and you're trying not to like use all the system resources uh raspberry pi lights really cool the only problem is it's stripped down so you you will have to download any any packages and things that you want to have on the raspberry pi um but this is the one i end up using the most so that's what i'm going to go with the next thing you're going to do is you're going to click stored so this is my sd card that i plugged in earlier and then i'm just going to click write and then i'm going to say yes i want to continue uh now this is going to take a little while so there's there's really no need to uh to continue watching this um you can just we'll just gonna split to the next next next step here all right so now that that's done um go ahead and eject the sd card and you can plug it into your raspberry pi and let the raspberry pi completely boot up uh when that's finished um come back to the video okay so now that we have a booted up raspberry pi it should have went ahead and automatically connected to your wireless network so now we want to start a command prompt establish an ssh connection so connect to the raspberry pi and then it will allow us to start sending code so what you want to do is you want to go to search and you want to type in cmd and then open command prompt this is just essentially a command window and then what we're going to want to do is establish an ssh connection that's done by just typing ssh space and now you type the username so by default it's a pie on the raspberry pi so i type pie and then you say at and then it wants the host name so i use the default hostname of raspberry pi but if you change the host name then that's what you want to enter here so raspberry pi is what i use um so that reads ssh meaning i want to start an ssh connection pi which is the username for the pi at raspberry pi and then i press enter so now it's going to ask for the password i just use the default password raspberry if you typed in a different one then then you want to use that password but i'm going to type that in now raspberry so that pie raspberry pi that blue and green prompt there is on the actual raspberry pi so that means i have fully connected to the raspberry pi and now i can send the raspberry pi updates so i can send code like this um and that's essentially uh telling the raspberry pi to go on the internet the repositories and see if it needs to update and then download the updates um so you can update it you can upgrade it you can install new software packages you can create directories anything you want to to set up the raspberry pi for your project can be done from this prompt um so that's it it's it's super simple now that they that they finally got the gui thing together so if you have any questions uh feel free to put them in the in the comments i don't i don't mind helping out at all um thanks for taking a look
Info
Channel: Zach Burhop
Views: 18,797
Rating: undefined out of 5
Keywords: raspberry pi, raspi, raspian, programming, linux, coding, single-board computer, system on a chip, arm cpu, arm processor, arm architecture, retropie, emulator, pi, image writer, Raspberry pi Image writer
Id: nZyyfJYOhbM
Channel Id: undefined
Length: 9min 21sec (561 seconds)
Published: Fri Mar 26 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.