HEADLESS SETUP - Jetson Nano

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello it's Jim from Jetson hacks comm where we are all about developing for the Nvidia Jetson developer kits we will be running the Jetson without a graphical user interface and simply interfacing with the Nano over a network connection using SSH many edge computing applications do not require a monitor keyboard and mouse in earlier versions of jetpack there was a requirement for the Jetson Nano to be connected to a monitor and keyboard for initial setup with the latest release of jet pack which is 4.2.1 we can simply use a USB cable to connect to the Jetson and set up the Nano from our host machine we use the host machine to flash our microSD card and configure the Jetson people typically refer to these as a PC or a laptop the host can be a Linux Windows or a Macintosh machine there is a script named om - config that runs on the Jetson the first time it boots if there is a monitor and keyboard connected to the Jetson the script will walk you through a number of steps which will configure the system as a desktop graphical user environment we call this a GUI GUI GUI GUI it's fun to say however if there is no monitor attached on the first boot om - config you can set up the Jetson Nano in a minimal configuration without a desktop graphical environment you will be able to interface with the Jetson using a network connection in order to set the Jetson up in headless mode you will need to attach a USB cable to the micro USB port on the Jetson and connect the other end to your host computer also you need to power the Jetson from the barrel jack don't forget the j48 jumper we've done a video before and how to do that I will leave a link in the description below we will wait until setup time to power up the Jetson we will go over three examples the first example we'll set up the Jetson Nano for access from an existing wireless network using an a boon to host the next example we'll set up the Jetson for access over a wired Ethernet connection again from an abouttwo host and finally we will set up the Jetson Nano for access from a wired Ethernet connection this time setup from a Windows machine the first step is to prepare a SD card image for the Jetson Nano we will use HR to flash our SD card we are on a host machine that's running a boon - so let's download for Linux x64 etcher also runs on the Mac and Windows let's say that in this folder downloading and let's go open that folder up let's extract our little friend and we can get rid of this let's go grab the SD card image that we are going to flash we can grab this from a couple of places we can grab it from the jetpack page or you can get from the Jetson Download Center you may need to log into your Jetson developer account to access these files it's free to sign up and use since we are here we will download the SD card image let's save it here it says it will take about a half hour to download download complete before we leave the Jetson download center let's grab the l40 documentation it's down here a little ways we are looking for the latest version and let's download it let's extract the documentation and here's the start page we are now ready to flash the SD card let's insert the SD card into the host this card has an older version of L 40 on it startup editor it says select image we will use the image we just downloaded we can leave it in this zip format Nature understands that so our target here it is continue I've been working on this 45 minutes are you sure you want to do this continue password this will take a while about 45 minutes or so flash complete now we are ready to set up our Jetson we have opened up the L 40 documentation that we downloaded earlier we go to the section reconfiguring a Jetson device with om - config let's plug in our USB cable its micro USB on one side and it's a type-a connector on the other we plug the microUSB side into the Jetson and the USB a side into the host make sure you are using a USB cable that has data capabilities let's insert our SD card into the Jetson in this example we will set up the Jetson to run headless Li over an existing Wi-Fi network we have already installed the Wi-Fi card I'll leave a link in the description below on how to install the card let's open up a terminal we are going to use an application called screen for our serial terminal interface screen also runs on the Macintosh in a later example I will show you how to use putty on Windows to set up your Jetson let's install screen on a Linux machine the Jetson will present itself as a TTY ACM device in /dev on a Macintosh will be TTY USB modem also in this /dev directory and on a Windows machine it will be a comport let's take a look at our /dev directory the jetson is not yet powered up but we see that there is another device attached to our host I happen to know that this device is I fingerprint reader on this laptop let's plug the power into the barrel Jack of the Jetson the jetsam will mount to this window the l40 read me and let's take a gander at it again there it is slash dev slash tty ACM 1 we are ready to connect to the Jetson and we want to connect at 115 200 and we are greeted with the licensing threats important notice read carefully oh my Oh whistles maybe there's a piano limitations grant of licenses oh my I will just accept my fate my fate is sealed tab okay choose the language I'll take English English tab and then okay select your location it's a country territory or area United States tab okay select your time zone I'll pick Pacific tab okay this is a clock set to UTC yes police enter the real name of this user ha I'm not falling for that full name for the new user Jetson hacks tab ok username for your account I will say Jetson hacks tab ok choose the password about this tab okay reenter password to verify tab okay you entered a password that consists of less than 8 characters which is considered too weak use a weak password yes please here's where we select our network access we are going to use double and wireless Ethernet tab okay we select the network we want to use kanga is our guest Network kanga tab okay it has security on it so it's one of these little rascals tab okay enter the password then hit okay please enter the host name for this system hmm it's a single word and we need to consult our network administrator nope I'm gonna make something up how about nano King tab okay now the Nano will reboot the Nano takes about 30 seconds to reboot now we should be able to SSH into it the second bro tip you want to be on the same wireless network as the Nano when you try to connect to it so let's check that out kanga let's connect to the jetsam one more time over the USB cable to figure out what the wireless IP address is here's a nice little message the system has been minimized by removing packages and content that are not required on a system that users do not log into and restore the content by running the unmanned let's get the Jetson IP address ifconfig we are looking for wlan0 now let's ssh into the Nano ssh our account name at the IP address warning remote host identification has changed it is possible that someone is doing something nasty well I think we already know that there's always someone doing something nasty basically what this is telling us is that the SSH key has changed the Jetson I have connected the Jetson to this machine before so let's fix that thankfully they provide the fix here let's do that we will copy and paste this that appears to make it somewhat happier let's try to SSH into it again the authenticity of the host cannot be established are you sure you want to continue connecting yes please password will type in my weak password so we are now connected to Jetson over wireless let's get rid of the USB connection let's unplug the USB cable and we should still have our wireless connection we're in like Flynn for our second example let's set the Jetson nano up to run over a wired Ethernet connection let's unplug our Jetson and remove the SD card as before we use a Cho to flash a new Jetson image we insert the SD card into the host these files are from the previous flash and as before we select the target and flash flash complete let's put our SD card into the nano and plug in the ethernet cable to the Jetson the other end of the ethernet cable is hooked up to a router the Jetson is on the same network as our host let's reconnect the USB cable from the host to the Jetson and plug the power into the Jetson the Jetson will boot takes about 30 to 45 seconds the l40 readme window opens up here again we use the screen app and we're back to Licensing hell they had to write an addendum to Dante's Inferno when EULA's came out it's called hell the ultimate level you may have to hit the Escape key a couple of times to get things going we'll go through this until we get to the network setup part this time instead of using the wireless connection we will set it up for Ethernet tab and then okay and now we set up the hostname still not talking to my network administrator I'm just gonna call it nano Queen tab and then okay it then sets up the system takes about 45 seconds and then the Jetson reboots let's connect to the Jetson over USB and figure out what its IP address is we'll enter our account name and then our week password as before we use ifconfig to look up our IP address it's under eth0 and in our case 10.0 1:21 let's open up another terminal and ssh into the Jetson warning remote host identification has changed oh my it is possible that someone is doing something nasty in this case we are the nasty doers so let's fix this up like we did last time and let's try SSH again are you sure you want to continue connecting yes please I enter my weak password as before we are running a minimized system at this point over SSH and our Ethernet cable for our last example we are going to do the same Ethernet setup on a Windows 10 machine before leaving the abouttwo machine I will create a new SD card image let's remove power from the Jetson and then we will switch over to the Windows machine okay I'm over here on the Windows machine I have just flashed another SD card let's open up device manager in the View menu let's show hidden devices we are interested in ports now let's power on the Jetson Nano make sure that the USB cable is connected to the Jetson and the host insert the SD card make sure that the ethernet is connected to the Jetson and plug in the power cable we can see that the Nano showed up as a USB serial device on Comm for now we can interface to the Jetson using the serial interface application putty you can download putty from putty org for Windows or Linux let's open up putty this is similar to what we did with Abu - let's switch over to serial we know the Nano is on comm for our speed is 1015 200 and open oh look a licensing party oh boy these are the same steps as the boom to set up our network access will be over Ethernet okay I think my eyes are starting to bleed I've seen too may license agreements today tab and then okay choose our language English English sounds like a name for a band select your location tab okay where are you Pacific tab okay and UTC yes please enter the real name of this user huh I'm not falling for this Jetson hacks tab and then okay username for the new account Jetson ax tab and then okay choose a password I will go with my standard weak password tab and then okay let's reenter the password tab and then okay you entered a password that consists of less than 8 characters which is considered too weak used weak password yes please and we use eth0 which is Ethernet tab then okay [Music] please enter the hostname for this system let's call it nano prints tab then okay it takes about 45 seconds to set up after the setup DJ's and nano will reboot the putty fatal error let's close putty and start it again let's figure out what the IP address of the Jetson is let's grab that from our USB connection serial comm for 115 200 open we enter our account name and then our weak password and then ifconfig to get our eth0 IP address it is 10.0 dot 1.21 let's close this session and now we can use putty to ssh into the jetson let's start putting up again we enter the IP address of the Jetson here and then open hoodie security alert you have no guarantee that the server is the computer that you think it is yes to add the key please log in as Jetson hacks weak password and we're in we can unplug our USB cable we aren't using that anymore and we are still connected don't you get you started for the headless setup of the Jetson Nano if you liked the video give it a thumbs up and please subscribe thanks for watching [Music]
Info
Channel: JetsonHacks
Views: 41,776
Rating: undefined out of 5
Keywords: JetsonHacks, jetson nano, jetson nano developer kit, nvidia jetson nano developer kit, nvidia jetson, nvidia jetson nano, jetson nano tutorial, nvidia jetson tutorial, jetpack 4.2.1, headless, headless setup, jetpack, L4T 32.2
Id: Ch1NKfER0oM
Channel Id: undefined
Length: 22min 16sec (1336 seconds)
Published: Tue Aug 20 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.