Introduction to the Raspberry Pi

Demo

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

Take your x86 Virtual Pi further by installing Raspbian on it.

Keywords

  • Raspbian
  • Virtual PC
  • desktop
  • Virtual Machine
  • VM

About this video

Author(s)
Jeffrey Barkstrom
First online
14 December 2019
DOI
https://doi.org/10.1007/978-1-4842-5571-1_8
Online ISBN
978-1-4842-5571-1
Publisher
Apress
Copyright information
© Jeffrey Barkstrom 2019

Video Transcript

Now to install Raspbian in a virtual machine, you need to do something different. So we’re going to go back to our Raspberry Pi download page. If we scroll down, right here you can see it has Raspberry Pi Desktop for PC and Mac. And so you can install this directly. I’m a PC or Mac. But what we’re going to do is install in a virtual machine.

So again, click on that. That will take you to the download page. And again, either download Torrent or download ISO. Once that’s done downloading, we’re going to go to virtualbox.org, and we’re going to download VirtualBox 6. And for Windows host, you would just click on here. And that will download the file.

So once you’ve installed VirtualBox, open it up. And yours should be completely blank. I have one VM here already. But we’ll show you how to install the Raspbian image. So first we’re going to click on New. And we’re going to call this Raspbian. And under Type, you want to put Linux and then Debian 64. Then click Next.

And for memory, we’re going to make it 2 gigabytes of memory, which is right there. Click Next. Create a virtual hard disk, and we’re going to click Create. And we want the virtual hard disk, and Next. Dynamically allocated. And we’re going to actually make that bigger than that. We’ll make it about 30 gigs. And then Create.

And so now our Raspbian virtual box is created, but we still have to change some settings. So we keep that highlighted blue. We’re going to click on Settings. And we’re going to go to System. We’re going to turn off floppy drive.

And Processor– if you have it available, you can go to 2. For storage– where it says empty.

So next we’re going to go over to this little disk here. Choose virtual optical disk. And then we’re going to click on our Raspbian RPV. And then here you can see it says x86 stretch. And so that means it’s for the x86 platform. Click Open.

And then we’re going to go down to Network. And to use our network adapter, we’re going to put bridged adapter. And then our adapter on our computer should show up. And then we’re going to click OK.

And now we can start our Raspbian. And so basically we have it highlighted. Click Start. And it should start loading up. And what we’re going to do is tab down to Install, and then hit Install.

And then if you’re familiar with a Debian install, this is going to be almost exactly the same. So tab down to your language– for your keyboard, this is. And for me, it’s up to American English. Hit Enter.

Then hit use entire disk, and it will show you your virtual disk. And then all files. And you just hit Enter for all those. And then finish partitioning and right– hit Enter. And then you have to tab over to Yes, and then enter again. And then that will start copying to those disks.

So next we want to say yes to install the GRUB bootloader. And then go down to VirtualBox. And then finally, click Continue to reboot. Hit Debian.

And so now we’re back to the familiar Debian or Raspberry Pi Desktop. And same thing again, except for one difference. So again, we have to pick our country, our language, and our time zone. You notice it’s missing one option here. Click Next. Change our password. Hit Next.

And so this screen is not in your normal Raspberry Pi setup. So we’re going to check that. Click Next. And then I would actually skip the updating the software here, because it seems to freeze every time I do it. And then click Restart.

Now we’re back to our desktop. And so we’re going to type in the terminal. We’re going to type in sudo su. We’re going to type in app gets updates. And that will give us our new sources list. We’re going to type in clear so we can see what we’re doing. And then app gets upgrade, and this will update everything on our system. We’re going to hit Yes.

We’re going to keep local version. Good. So that all installed successfully. So we can type clear if we want to reuse that window. Or we can just close it.

So if we look at the Raspberry Pi menu here, this is actually the full version. So you can see there’s a lot more programs here. And some of the things actually are sort of interesting. So there’s the Scratch– the program developing, the Sense HAT, the Sonic Pi, so our different things there. Assimilator.

And here it actually has Libre Office installed. It also has a mail program, has some games, and the same accessories. And pretty much everything else is the same. So you get some more programming and an office program. And probably the biggest thing on here is actually Libre Office.

Good. And then same thing– so if you want to shut it down, just shut down. And then our VirtualBox– then we can just close.